babylon.nodeEditor.max.js 3.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875
  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 .sliderLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .sliderLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .slider {\n grid-column: 2;\n margin-right: 5px;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .slider .range {\n -webkit-appearance: none;\n width: 120px;\n height: 6px;\n background: #d3d3d3;\n border-radius: 5px;\n outline: none;\n opacity: 0.7;\n -webkit-transition: .2s;\n transition: opacity .2s; }\n #propertyTab .sliderLine .slider .range:hover {\n opacity: 1; }\n #propertyTab .sliderLine .slider .range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #propertyTab .sliderLine .slider .range::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\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 .no-right-margin {\n margin-right: 0; }\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% / 7);\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.blocker {\n visibility: hidden;\n position: absolute;\n width: calc(100% - 40px);\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(20, 20, 20, 0.95);\n font-family: \"acumin-pro\";\n color: white;\n font-size: 24px;\n display: grid;\n align-content: center;\n justify-content: center;\n user-select: none;\n padding: 20px;\n text-align: center; }\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/graphlib/index.js":
  8002. /*!**********************************************************!*\
  8003. !*** C:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  8004. \**********************************************************/
  8005. /*! no static exports found */
  8006. /***/ (function(module, exports, __webpack_require__) {
  8007. /**
  8008. * Copyright (c) 2014, Chris Pettitt
  8009. * All rights reserved.
  8010. *
  8011. * Redistribution and use in source and binary forms, with or without
  8012. * modification, are permitted provided that the following conditions are met:
  8013. *
  8014. * 1. Redistributions of source code must retain the above copyright notice, this
  8015. * list of conditions and the following disclaimer.
  8016. *
  8017. * 2. Redistributions in binary form must reproduce the above copyright notice,
  8018. * this list of conditions and the following disclaimer in the documentation
  8019. * and/or other materials provided with the distribution.
  8020. *
  8021. * 3. Neither the name of the copyright holder nor the names of its contributors
  8022. * may be used to endorse or promote products derived from this software without
  8023. * specific prior written permission.
  8024. *
  8025. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  8026. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  8027. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  8028. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  8029. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8030. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  8031. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  8032. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  8033. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  8034. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8035. */
  8036. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  8037. module.exports = {
  8038. Graph: lib.Graph,
  8039. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  8040. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  8041. version: lib.version
  8042. };
  8043. /***/ }),
  8044. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  8045. /*!***********************************************************************!*\
  8046. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  8047. \***********************************************************************/
  8048. /*! no static exports found */
  8049. /***/ (function(module, exports, __webpack_require__) {
  8050. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8051. module.exports = components;
  8052. function components(g) {
  8053. var visited = {},
  8054. cmpts = [],
  8055. cmpt;
  8056. function dfs(v) {
  8057. if (_.has(visited, v)) return;
  8058. visited[v] = true;
  8059. cmpt.push(v);
  8060. _.each(g.successors(v), dfs);
  8061. _.each(g.predecessors(v), dfs);
  8062. }
  8063. _.each(g.nodes(), function(v) {
  8064. cmpt = [];
  8065. dfs(v);
  8066. if (cmpt.length) {
  8067. cmpts.push(cmpt);
  8068. }
  8069. });
  8070. return cmpts;
  8071. }
  8072. /***/ }),
  8073. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  8074. /*!****************************************************************!*\
  8075. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  8076. \****************************************************************/
  8077. /*! no static exports found */
  8078. /***/ (function(module, exports, __webpack_require__) {
  8079. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8080. module.exports = dfs;
  8081. /*
  8082. * A helper that preforms a pre- or post-order traversal on the input graph
  8083. * and returns the nodes in the order they were visited. If the graph is
  8084. * undirected then this algorithm will navigate using neighbors. If the graph
  8085. * is directed then this algorithm will navigate using successors.
  8086. *
  8087. * Order must be one of "pre" or "post".
  8088. */
  8089. function dfs(g, vs, order) {
  8090. if (!_.isArray(vs)) {
  8091. vs = [vs];
  8092. }
  8093. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  8094. var acc = [],
  8095. visited = {};
  8096. _.each(vs, function(v) {
  8097. if (!g.hasNode(v)) {
  8098. throw new Error("Graph does not have node: " + v);
  8099. }
  8100. doDfs(g, v, order === "post", visited, navigation, acc);
  8101. });
  8102. return acc;
  8103. }
  8104. function doDfs(g, v, postorder, visited, navigation, acc) {
  8105. if (!_.has(visited, v)) {
  8106. visited[v] = true;
  8107. if (!postorder) { acc.push(v); }
  8108. _.each(navigation(v), function(w) {
  8109. doDfs(g, w, postorder, visited, navigation, acc);
  8110. });
  8111. if (postorder) { acc.push(v); }
  8112. }
  8113. }
  8114. /***/ }),
  8115. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  8116. /*!*************************************************************************!*\
  8117. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  8118. \*************************************************************************/
  8119. /*! no static exports found */
  8120. /***/ (function(module, exports, __webpack_require__) {
  8121. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8122. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8123. module.exports = dijkstraAll;
  8124. function dijkstraAll(g, weightFunc, edgeFunc) {
  8125. return _.transform(g.nodes(), function(acc, v) {
  8126. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  8127. }, {});
  8128. }
  8129. /***/ }),
  8130. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  8131. /*!*********************************************************************!*\
  8132. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  8133. \*********************************************************************/
  8134. /*! no static exports found */
  8135. /***/ (function(module, exports, __webpack_require__) {
  8136. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8137. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8138. module.exports = dijkstra;
  8139. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8140. function dijkstra(g, source, weightFn, edgeFn) {
  8141. return runDijkstra(g, String(source),
  8142. weightFn || DEFAULT_WEIGHT_FUNC,
  8143. edgeFn || function(v) { return g.outEdges(v); });
  8144. }
  8145. function runDijkstra(g, source, weightFn, edgeFn) {
  8146. var results = {},
  8147. pq = new PriorityQueue(),
  8148. v, vEntry;
  8149. var updateNeighbors = function(edge) {
  8150. var w = edge.v !== v ? edge.v : edge.w,
  8151. wEntry = results[w],
  8152. weight = weightFn(edge),
  8153. distance = vEntry.distance + weight;
  8154. if (weight < 0) {
  8155. throw new Error("dijkstra does not allow negative edge weights. " +
  8156. "Bad edge: " + edge + " Weight: " + weight);
  8157. }
  8158. if (distance < wEntry.distance) {
  8159. wEntry.distance = distance;
  8160. wEntry.predecessor = v;
  8161. pq.decrease(w, distance);
  8162. }
  8163. };
  8164. g.nodes().forEach(function(v) {
  8165. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  8166. results[v] = { distance: distance };
  8167. pq.add(v, distance);
  8168. });
  8169. while (pq.size() > 0) {
  8170. v = pq.removeMin();
  8171. vEntry = results[v];
  8172. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  8173. break;
  8174. }
  8175. edgeFn(v).forEach(updateNeighbors);
  8176. }
  8177. return results;
  8178. }
  8179. /***/ }),
  8180. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  8181. /*!************************************************************************!*\
  8182. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  8183. \************************************************************************/
  8184. /*! no static exports found */
  8185. /***/ (function(module, exports, __webpack_require__) {
  8186. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8187. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  8188. module.exports = findCycles;
  8189. function findCycles(g) {
  8190. return _.filter(tarjan(g), function(cmpt) {
  8191. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  8192. });
  8193. }
  8194. /***/ }),
  8195. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  8196. /*!***************************************************************************!*\
  8197. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  8198. \***************************************************************************/
  8199. /*! no static exports found */
  8200. /***/ (function(module, exports, __webpack_require__) {
  8201. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8202. module.exports = floydWarshall;
  8203. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8204. function floydWarshall(g, weightFn, edgeFn) {
  8205. return runFloydWarshall(g,
  8206. weightFn || DEFAULT_WEIGHT_FUNC,
  8207. edgeFn || function(v) { return g.outEdges(v); });
  8208. }
  8209. function runFloydWarshall(g, weightFn, edgeFn) {
  8210. var results = {},
  8211. nodes = g.nodes();
  8212. nodes.forEach(function(v) {
  8213. results[v] = {};
  8214. results[v][v] = { distance: 0 };
  8215. nodes.forEach(function(w) {
  8216. if (v !== w) {
  8217. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  8218. }
  8219. });
  8220. edgeFn(v).forEach(function(edge) {
  8221. var w = edge.v === v ? edge.w : edge.v,
  8222. d = weightFn(edge);
  8223. results[v][w] = { distance: d, predecessor: v };
  8224. });
  8225. });
  8226. nodes.forEach(function(k) {
  8227. var rowK = results[k];
  8228. nodes.forEach(function(i) {
  8229. var rowI = results[i];
  8230. nodes.forEach(function(j) {
  8231. var ik = rowI[k];
  8232. var kj = rowK[j];
  8233. var ij = rowI[j];
  8234. var altDistance = ik.distance + kj.distance;
  8235. if (altDistance < ij.distance) {
  8236. ij.distance = altDistance;
  8237. ij.predecessor = kj.predecessor;
  8238. }
  8239. });
  8240. });
  8241. });
  8242. return results;
  8243. }
  8244. /***/ }),
  8245. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  8246. /*!******************************************************************!*\
  8247. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  8248. \******************************************************************/
  8249. /*! no static exports found */
  8250. /***/ (function(module, exports, __webpack_require__) {
  8251. module.exports = {
  8252. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  8253. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8254. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  8255. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  8256. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  8257. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  8258. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  8259. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  8260. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  8261. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  8262. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  8263. };
  8264. /***/ }),
  8265. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  8266. /*!***********************************************************************!*\
  8267. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  8268. \***********************************************************************/
  8269. /*! no static exports found */
  8270. /***/ (function(module, exports, __webpack_require__) {
  8271. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  8272. module.exports = isAcyclic;
  8273. function isAcyclic(g) {
  8274. try {
  8275. topsort(g);
  8276. } catch (e) {
  8277. if (e instanceof topsort.CycleException) {
  8278. return false;
  8279. }
  8280. throw e;
  8281. }
  8282. return true;
  8283. }
  8284. /***/ }),
  8285. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  8286. /*!**********************************************************************!*\
  8287. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  8288. \**********************************************************************/
  8289. /*! no static exports found */
  8290. /***/ (function(module, exports, __webpack_require__) {
  8291. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8292. module.exports = postorder;
  8293. function postorder(g, vs) {
  8294. return dfs(g, vs, "post");
  8295. }
  8296. /***/ }),
  8297. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  8298. /*!*********************************************************************!*\
  8299. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  8300. \*********************************************************************/
  8301. /*! no static exports found */
  8302. /***/ (function(module, exports, __webpack_require__) {
  8303. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8304. module.exports = preorder;
  8305. function preorder(g, vs) {
  8306. return dfs(g, vs, "pre");
  8307. }
  8308. /***/ }),
  8309. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  8310. /*!*****************************************************************!*\
  8311. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  8312. \*****************************************************************/
  8313. /*! no static exports found */
  8314. /***/ (function(module, exports, __webpack_require__) {
  8315. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8316. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  8317. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8318. module.exports = prim;
  8319. function prim(g, weightFunc) {
  8320. var result = new Graph(),
  8321. parents = {},
  8322. pq = new PriorityQueue(),
  8323. v;
  8324. function updateNeighbors(edge) {
  8325. var w = edge.v === v ? edge.w : edge.v,
  8326. pri = pq.priority(w);
  8327. if (pri !== undefined) {
  8328. var edgeWeight = weightFunc(edge);
  8329. if (edgeWeight < pri) {
  8330. parents[w] = v;
  8331. pq.decrease(w, edgeWeight);
  8332. }
  8333. }
  8334. }
  8335. if (g.nodeCount() === 0) {
  8336. return result;
  8337. }
  8338. _.each(g.nodes(), function(v) {
  8339. pq.add(v, Number.POSITIVE_INFINITY);
  8340. result.setNode(v);
  8341. });
  8342. // Start from an arbitrary node
  8343. pq.decrease(g.nodes()[0], 0);
  8344. var init = false;
  8345. while (pq.size() > 0) {
  8346. v = pq.removeMin();
  8347. if (_.has(parents, v)) {
  8348. result.setEdge(v, parents[v]);
  8349. } else if (init) {
  8350. throw new Error("Input graph is not connected: " + g);
  8351. } else {
  8352. init = true;
  8353. }
  8354. g.nodeEdges(v).forEach(updateNeighbors);
  8355. }
  8356. return result;
  8357. }
  8358. /***/ }),
  8359. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  8360. /*!*******************************************************************!*\
  8361. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  8362. \*******************************************************************/
  8363. /*! no static exports found */
  8364. /***/ (function(module, exports, __webpack_require__) {
  8365. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8366. module.exports = tarjan;
  8367. function tarjan(g) {
  8368. var index = 0,
  8369. stack = [],
  8370. visited = {}, // node id -> { onStack, lowlink, index }
  8371. results = [];
  8372. function dfs(v) {
  8373. var entry = visited[v] = {
  8374. onStack: true,
  8375. lowlink: index,
  8376. index: index++
  8377. };
  8378. stack.push(v);
  8379. g.successors(v).forEach(function(w) {
  8380. if (!_.has(visited, w)) {
  8381. dfs(w);
  8382. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  8383. } else if (visited[w].onStack) {
  8384. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  8385. }
  8386. });
  8387. if (entry.lowlink === entry.index) {
  8388. var cmpt = [],
  8389. w;
  8390. do {
  8391. w = stack.pop();
  8392. visited[w].onStack = false;
  8393. cmpt.push(w);
  8394. } while (v !== w);
  8395. results.push(cmpt);
  8396. }
  8397. }
  8398. g.nodes().forEach(function(v) {
  8399. if (!_.has(visited, v)) {
  8400. dfs(v);
  8401. }
  8402. });
  8403. return results;
  8404. }
  8405. /***/ }),
  8406. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8407. /*!********************************************************************!*\
  8408. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8409. \********************************************************************/
  8410. /*! no static exports found */
  8411. /***/ (function(module, exports, __webpack_require__) {
  8412. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8413. module.exports = topsort;
  8414. topsort.CycleException = CycleException;
  8415. function topsort(g) {
  8416. var visited = {},
  8417. stack = {},
  8418. results = [];
  8419. function visit(node) {
  8420. if (_.has(stack, node)) {
  8421. throw new CycleException();
  8422. }
  8423. if (!_.has(visited, node)) {
  8424. stack[node] = true;
  8425. visited[node] = true;
  8426. _.each(g.predecessors(node), visit);
  8427. delete stack[node];
  8428. results.push(node);
  8429. }
  8430. }
  8431. _.each(g.sinks(), visit);
  8432. if (_.size(visited) !== g.nodeCount()) {
  8433. throw new CycleException();
  8434. }
  8435. return results;
  8436. }
  8437. function CycleException() {}
  8438. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8439. /***/ }),
  8440. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8441. /*!****************************************************************************!*\
  8442. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8443. \****************************************************************************/
  8444. /*! no static exports found */
  8445. /***/ (function(module, exports, __webpack_require__) {
  8446. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8447. module.exports = PriorityQueue;
  8448. /**
  8449. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8450. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8451. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8452. * the queue. Adding and removing elements takes O(log n) time. A key can
  8453. * have its priority decreased in O(log n) time.
  8454. */
  8455. function PriorityQueue() {
  8456. this._arr = [];
  8457. this._keyIndices = {};
  8458. }
  8459. /**
  8460. * Returns the number of elements in the queue. Takes `O(1)` time.
  8461. */
  8462. PriorityQueue.prototype.size = function() {
  8463. return this._arr.length;
  8464. };
  8465. /**
  8466. * Returns the keys that are in the queue. Takes `O(n)` time.
  8467. */
  8468. PriorityQueue.prototype.keys = function() {
  8469. return this._arr.map(function(x) { return x.key; });
  8470. };
  8471. /**
  8472. * Returns `true` if **key** is in the queue and `false` if not.
  8473. */
  8474. PriorityQueue.prototype.has = function(key) {
  8475. return _.has(this._keyIndices, key);
  8476. };
  8477. /**
  8478. * Returns the priority for **key**. If **key** is not present in the queue
  8479. * then this function returns `undefined`. Takes `O(1)` time.
  8480. *
  8481. * @param {Object} key
  8482. */
  8483. PriorityQueue.prototype.priority = function(key) {
  8484. var index = this._keyIndices[key];
  8485. if (index !== undefined) {
  8486. return this._arr[index].priority;
  8487. }
  8488. };
  8489. /**
  8490. * Returns the key for the minimum element in this queue. If the queue is
  8491. * empty this function throws an Error. Takes `O(1)` time.
  8492. */
  8493. PriorityQueue.prototype.min = function() {
  8494. if (this.size() === 0) {
  8495. throw new Error("Queue underflow");
  8496. }
  8497. return this._arr[0].key;
  8498. };
  8499. /**
  8500. * Inserts a new key into the priority queue. If the key already exists in
  8501. * the queue this function returns `false`; otherwise it will return `true`.
  8502. * Takes `O(n)` time.
  8503. *
  8504. * @param {Object} key the key to add
  8505. * @param {Number} priority the initial priority for the key
  8506. */
  8507. PriorityQueue.prototype.add = function(key, priority) {
  8508. var keyIndices = this._keyIndices;
  8509. key = String(key);
  8510. if (!_.has(keyIndices, key)) {
  8511. var arr = this._arr;
  8512. var index = arr.length;
  8513. keyIndices[key] = index;
  8514. arr.push({key: key, priority: priority});
  8515. this._decrease(index);
  8516. return true;
  8517. }
  8518. return false;
  8519. };
  8520. /**
  8521. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8522. */
  8523. PriorityQueue.prototype.removeMin = function() {
  8524. this._swap(0, this._arr.length - 1);
  8525. var min = this._arr.pop();
  8526. delete this._keyIndices[min.key];
  8527. this._heapify(0);
  8528. return min.key;
  8529. };
  8530. /**
  8531. * Decreases the priority for **key** to **priority**. If the new priority is
  8532. * greater than the previous priority, this function will throw an Error.
  8533. *
  8534. * @param {Object} key the key for which to raise priority
  8535. * @param {Number} priority the new priority for the key
  8536. */
  8537. PriorityQueue.prototype.decrease = function(key, priority) {
  8538. var index = this._keyIndices[key];
  8539. if (priority > this._arr[index].priority) {
  8540. throw new Error("New priority is greater than current priority. " +
  8541. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8542. }
  8543. this._arr[index].priority = priority;
  8544. this._decrease(index);
  8545. };
  8546. PriorityQueue.prototype._heapify = function(i) {
  8547. var arr = this._arr;
  8548. var l = 2 * i,
  8549. r = l + 1,
  8550. largest = i;
  8551. if (l < arr.length) {
  8552. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8553. if (r < arr.length) {
  8554. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8555. }
  8556. if (largest !== i) {
  8557. this._swap(i, largest);
  8558. this._heapify(largest);
  8559. }
  8560. }
  8561. };
  8562. PriorityQueue.prototype._decrease = function(index) {
  8563. var arr = this._arr;
  8564. var priority = arr[index].priority;
  8565. var parent;
  8566. while (index !== 0) {
  8567. parent = index >> 1;
  8568. if (arr[parent].priority < priority) {
  8569. break;
  8570. }
  8571. this._swap(index, parent);
  8572. index = parent;
  8573. }
  8574. };
  8575. PriorityQueue.prototype._swap = function(i, j) {
  8576. var arr = this._arr;
  8577. var keyIndices = this._keyIndices;
  8578. var origArrI = arr[i];
  8579. var origArrJ = arr[j];
  8580. arr[i] = origArrJ;
  8581. arr[j] = origArrI;
  8582. keyIndices[origArrJ.key] = i;
  8583. keyIndices[origArrI.key] = j;
  8584. };
  8585. /***/ }),
  8586. /***/ "../../node_modules/graphlib/lib/graph.js":
  8587. /*!**************************************************************!*\
  8588. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8589. \**************************************************************/
  8590. /*! no static exports found */
  8591. /***/ (function(module, exports, __webpack_require__) {
  8592. "use strict";
  8593. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8594. module.exports = Graph;
  8595. var DEFAULT_EDGE_NAME = "\x00",
  8596. GRAPH_NODE = "\x00",
  8597. EDGE_KEY_DELIM = "\x01";
  8598. // Implementation notes:
  8599. //
  8600. // * Node id query functions should return string ids for the nodes
  8601. // * Edge id query functions should return an "edgeObj", edge object, that is
  8602. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8603. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8604. // reference edges. This is because we need a performant way to look these
  8605. // edges up and, object properties, which have string keys, are the closest
  8606. // we're going to get to a performant hashtable in JavaScript.
  8607. function Graph(opts) {
  8608. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8609. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8610. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8611. // Label for the graph itself
  8612. this._label = undefined;
  8613. // Defaults to be set when creating a new node
  8614. this._defaultNodeLabelFn = _.constant(undefined);
  8615. // Defaults to be set when creating a new edge
  8616. this._defaultEdgeLabelFn = _.constant(undefined);
  8617. // v -> label
  8618. this._nodes = {};
  8619. if (this._isCompound) {
  8620. // v -> parent
  8621. this._parent = {};
  8622. // v -> children
  8623. this._children = {};
  8624. this._children[GRAPH_NODE] = {};
  8625. }
  8626. // v -> edgeObj
  8627. this._in = {};
  8628. // u -> v -> Number
  8629. this._preds = {};
  8630. // v -> edgeObj
  8631. this._out = {};
  8632. // v -> w -> Number
  8633. this._sucs = {};
  8634. // e -> edgeObj
  8635. this._edgeObjs = {};
  8636. // e -> label
  8637. this._edgeLabels = {};
  8638. }
  8639. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8640. Graph.prototype._nodeCount = 0;
  8641. /* Number of edges in the graph. Should only be changed by the implementation. */
  8642. Graph.prototype._edgeCount = 0;
  8643. /* === Graph functions ========= */
  8644. Graph.prototype.isDirected = function() {
  8645. return this._isDirected;
  8646. };
  8647. Graph.prototype.isMultigraph = function() {
  8648. return this._isMultigraph;
  8649. };
  8650. Graph.prototype.isCompound = function() {
  8651. return this._isCompound;
  8652. };
  8653. Graph.prototype.setGraph = function(label) {
  8654. this._label = label;
  8655. return this;
  8656. };
  8657. Graph.prototype.graph = function() {
  8658. return this._label;
  8659. };
  8660. /* === Node functions ========== */
  8661. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8662. if (!_.isFunction(newDefault)) {
  8663. newDefault = _.constant(newDefault);
  8664. }
  8665. this._defaultNodeLabelFn = newDefault;
  8666. return this;
  8667. };
  8668. Graph.prototype.nodeCount = function() {
  8669. return this._nodeCount;
  8670. };
  8671. Graph.prototype.nodes = function() {
  8672. return _.keys(this._nodes);
  8673. };
  8674. Graph.prototype.sources = function() {
  8675. var self = this;
  8676. return _.filter(this.nodes(), function(v) {
  8677. return _.isEmpty(self._in[v]);
  8678. });
  8679. };
  8680. Graph.prototype.sinks = function() {
  8681. var self = this;
  8682. return _.filter(this.nodes(), function(v) {
  8683. return _.isEmpty(self._out[v]);
  8684. });
  8685. };
  8686. Graph.prototype.setNodes = function(vs, value) {
  8687. var args = arguments;
  8688. var self = this;
  8689. _.each(vs, function(v) {
  8690. if (args.length > 1) {
  8691. self.setNode(v, value);
  8692. } else {
  8693. self.setNode(v);
  8694. }
  8695. });
  8696. return this;
  8697. };
  8698. Graph.prototype.setNode = function(v, value) {
  8699. if (_.has(this._nodes, v)) {
  8700. if (arguments.length > 1) {
  8701. this._nodes[v] = value;
  8702. }
  8703. return this;
  8704. }
  8705. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8706. if (this._isCompound) {
  8707. this._parent[v] = GRAPH_NODE;
  8708. this._children[v] = {};
  8709. this._children[GRAPH_NODE][v] = true;
  8710. }
  8711. this._in[v] = {};
  8712. this._preds[v] = {};
  8713. this._out[v] = {};
  8714. this._sucs[v] = {};
  8715. ++this._nodeCount;
  8716. return this;
  8717. };
  8718. Graph.prototype.node = function(v) {
  8719. return this._nodes[v];
  8720. };
  8721. Graph.prototype.hasNode = function(v) {
  8722. return _.has(this._nodes, v);
  8723. };
  8724. Graph.prototype.removeNode = function(v) {
  8725. var self = this;
  8726. if (_.has(this._nodes, v)) {
  8727. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8728. delete this._nodes[v];
  8729. if (this._isCompound) {
  8730. this._removeFromParentsChildList(v);
  8731. delete this._parent[v];
  8732. _.each(this.children(v), function(child) {
  8733. self.setParent(child);
  8734. });
  8735. delete this._children[v];
  8736. }
  8737. _.each(_.keys(this._in[v]), removeEdge);
  8738. delete this._in[v];
  8739. delete this._preds[v];
  8740. _.each(_.keys(this._out[v]), removeEdge);
  8741. delete this._out[v];
  8742. delete this._sucs[v];
  8743. --this._nodeCount;
  8744. }
  8745. return this;
  8746. };
  8747. Graph.prototype.setParent = function(v, parent) {
  8748. if (!this._isCompound) {
  8749. throw new Error("Cannot set parent in a non-compound graph");
  8750. }
  8751. if (_.isUndefined(parent)) {
  8752. parent = GRAPH_NODE;
  8753. } else {
  8754. // Coerce parent to string
  8755. parent += "";
  8756. for (var ancestor = parent;
  8757. !_.isUndefined(ancestor);
  8758. ancestor = this.parent(ancestor)) {
  8759. if (ancestor === v) {
  8760. throw new Error("Setting " + parent+ " as parent of " + v +
  8761. " would create a cycle");
  8762. }
  8763. }
  8764. this.setNode(parent);
  8765. }
  8766. this.setNode(v);
  8767. this._removeFromParentsChildList(v);
  8768. this._parent[v] = parent;
  8769. this._children[parent][v] = true;
  8770. return this;
  8771. };
  8772. Graph.prototype._removeFromParentsChildList = function(v) {
  8773. delete this._children[this._parent[v]][v];
  8774. };
  8775. Graph.prototype.parent = function(v) {
  8776. if (this._isCompound) {
  8777. var parent = this._parent[v];
  8778. if (parent !== GRAPH_NODE) {
  8779. return parent;
  8780. }
  8781. }
  8782. };
  8783. Graph.prototype.children = function(v) {
  8784. if (_.isUndefined(v)) {
  8785. v = GRAPH_NODE;
  8786. }
  8787. if (this._isCompound) {
  8788. var children = this._children[v];
  8789. if (children) {
  8790. return _.keys(children);
  8791. }
  8792. } else if (v === GRAPH_NODE) {
  8793. return this.nodes();
  8794. } else if (this.hasNode(v)) {
  8795. return [];
  8796. }
  8797. };
  8798. Graph.prototype.predecessors = function(v) {
  8799. var predsV = this._preds[v];
  8800. if (predsV) {
  8801. return _.keys(predsV);
  8802. }
  8803. };
  8804. Graph.prototype.successors = function(v) {
  8805. var sucsV = this._sucs[v];
  8806. if (sucsV) {
  8807. return _.keys(sucsV);
  8808. }
  8809. };
  8810. Graph.prototype.neighbors = function(v) {
  8811. var preds = this.predecessors(v);
  8812. if (preds) {
  8813. return _.union(preds, this.successors(v));
  8814. }
  8815. };
  8816. Graph.prototype.isLeaf = function (v) {
  8817. var neighbors;
  8818. if (this.isDirected()) {
  8819. neighbors = this.successors(v);
  8820. } else {
  8821. neighbors = this.neighbors(v);
  8822. }
  8823. return neighbors.length === 0;
  8824. };
  8825. Graph.prototype.filterNodes = function(filter) {
  8826. var copy = new this.constructor({
  8827. directed: this._isDirected,
  8828. multigraph: this._isMultigraph,
  8829. compound: this._isCompound
  8830. });
  8831. copy.setGraph(this.graph());
  8832. var self = this;
  8833. _.each(this._nodes, function(value, v) {
  8834. if (filter(v)) {
  8835. copy.setNode(v, value);
  8836. }
  8837. });
  8838. _.each(this._edgeObjs, function(e) {
  8839. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8840. copy.setEdge(e, self.edge(e));
  8841. }
  8842. });
  8843. var parents = {};
  8844. function findParent(v) {
  8845. var parent = self.parent(v);
  8846. if (parent === undefined || copy.hasNode(parent)) {
  8847. parents[v] = parent;
  8848. return parent;
  8849. } else if (parent in parents) {
  8850. return parents[parent];
  8851. } else {
  8852. return findParent(parent);
  8853. }
  8854. }
  8855. if (this._isCompound) {
  8856. _.each(copy.nodes(), function(v) {
  8857. copy.setParent(v, findParent(v));
  8858. });
  8859. }
  8860. return copy;
  8861. };
  8862. /* === Edge functions ========== */
  8863. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8864. if (!_.isFunction(newDefault)) {
  8865. newDefault = _.constant(newDefault);
  8866. }
  8867. this._defaultEdgeLabelFn = newDefault;
  8868. return this;
  8869. };
  8870. Graph.prototype.edgeCount = function() {
  8871. return this._edgeCount;
  8872. };
  8873. Graph.prototype.edges = function() {
  8874. return _.values(this._edgeObjs);
  8875. };
  8876. Graph.prototype.setPath = function(vs, value) {
  8877. var self = this,
  8878. args = arguments;
  8879. _.reduce(vs, function(v, w) {
  8880. if (args.length > 1) {
  8881. self.setEdge(v, w, value);
  8882. } else {
  8883. self.setEdge(v, w);
  8884. }
  8885. return w;
  8886. });
  8887. return this;
  8888. };
  8889. /*
  8890. * setEdge(v, w, [value, [name]])
  8891. * setEdge({ v, w, [name] }, [value])
  8892. */
  8893. Graph.prototype.setEdge = function() {
  8894. var v, w, name, value,
  8895. valueSpecified = false,
  8896. arg0 = arguments[0];
  8897. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8898. v = arg0.v;
  8899. w = arg0.w;
  8900. name = arg0.name;
  8901. if (arguments.length === 2) {
  8902. value = arguments[1];
  8903. valueSpecified = true;
  8904. }
  8905. } else {
  8906. v = arg0;
  8907. w = arguments[1];
  8908. name = arguments[3];
  8909. if (arguments.length > 2) {
  8910. value = arguments[2];
  8911. valueSpecified = true;
  8912. }
  8913. }
  8914. v = "" + v;
  8915. w = "" + w;
  8916. if (!_.isUndefined(name)) {
  8917. name = "" + name;
  8918. }
  8919. var e = edgeArgsToId(this._isDirected, v, w, name);
  8920. if (_.has(this._edgeLabels, e)) {
  8921. if (valueSpecified) {
  8922. this._edgeLabels[e] = value;
  8923. }
  8924. return this;
  8925. }
  8926. if (!_.isUndefined(name) && !this._isMultigraph) {
  8927. throw new Error("Cannot set a named edge when isMultigraph = false");
  8928. }
  8929. // It didn't exist, so we need to create it.
  8930. // First ensure the nodes exist.
  8931. this.setNode(v);
  8932. this.setNode(w);
  8933. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8934. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8935. // Ensure we add undirected edges in a consistent way.
  8936. v = edgeObj.v;
  8937. w = edgeObj.w;
  8938. Object.freeze(edgeObj);
  8939. this._edgeObjs[e] = edgeObj;
  8940. incrementOrInitEntry(this._preds[w], v);
  8941. incrementOrInitEntry(this._sucs[v], w);
  8942. this._in[w][e] = edgeObj;
  8943. this._out[v][e] = edgeObj;
  8944. this._edgeCount++;
  8945. return this;
  8946. };
  8947. Graph.prototype.edge = function(v, w, name) {
  8948. var e = (arguments.length === 1
  8949. ? edgeObjToId(this._isDirected, arguments[0])
  8950. : edgeArgsToId(this._isDirected, v, w, name));
  8951. return this._edgeLabels[e];
  8952. };
  8953. Graph.prototype.hasEdge = function(v, w, name) {
  8954. var e = (arguments.length === 1
  8955. ? edgeObjToId(this._isDirected, arguments[0])
  8956. : edgeArgsToId(this._isDirected, v, w, name));
  8957. return _.has(this._edgeLabels, e);
  8958. };
  8959. Graph.prototype.removeEdge = function(v, w, name) {
  8960. var e = (arguments.length === 1
  8961. ? edgeObjToId(this._isDirected, arguments[0])
  8962. : edgeArgsToId(this._isDirected, v, w, name)),
  8963. edge = this._edgeObjs[e];
  8964. if (edge) {
  8965. v = edge.v;
  8966. w = edge.w;
  8967. delete this._edgeLabels[e];
  8968. delete this._edgeObjs[e];
  8969. decrementOrRemoveEntry(this._preds[w], v);
  8970. decrementOrRemoveEntry(this._sucs[v], w);
  8971. delete this._in[w][e];
  8972. delete this._out[v][e];
  8973. this._edgeCount--;
  8974. }
  8975. return this;
  8976. };
  8977. Graph.prototype.inEdges = function(v, u) {
  8978. var inV = this._in[v];
  8979. if (inV) {
  8980. var edges = _.values(inV);
  8981. if (!u) {
  8982. return edges;
  8983. }
  8984. return _.filter(edges, function(edge) { return edge.v === u; });
  8985. }
  8986. };
  8987. Graph.prototype.outEdges = function(v, w) {
  8988. var outV = this._out[v];
  8989. if (outV) {
  8990. var edges = _.values(outV);
  8991. if (!w) {
  8992. return edges;
  8993. }
  8994. return _.filter(edges, function(edge) { return edge.w === w; });
  8995. }
  8996. };
  8997. Graph.prototype.nodeEdges = function(v, w) {
  8998. var inEdges = this.inEdges(v, w);
  8999. if (inEdges) {
  9000. return inEdges.concat(this.outEdges(v, w));
  9001. }
  9002. };
  9003. function incrementOrInitEntry(map, k) {
  9004. if (map[k]) {
  9005. map[k]++;
  9006. } else {
  9007. map[k] = 1;
  9008. }
  9009. }
  9010. function decrementOrRemoveEntry(map, k) {
  9011. if (!--map[k]) { delete map[k]; }
  9012. }
  9013. function edgeArgsToId(isDirected, v_, w_, name) {
  9014. var v = "" + v_;
  9015. var w = "" + w_;
  9016. if (!isDirected && v > w) {
  9017. var tmp = v;
  9018. v = w;
  9019. w = tmp;
  9020. }
  9021. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  9022. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  9023. }
  9024. function edgeArgsToObj(isDirected, v_, w_, name) {
  9025. var v = "" + v_;
  9026. var w = "" + w_;
  9027. if (!isDirected && v > w) {
  9028. var tmp = v;
  9029. v = w;
  9030. w = tmp;
  9031. }
  9032. var edgeObj = { v: v, w: w };
  9033. if (name) {
  9034. edgeObj.name = name;
  9035. }
  9036. return edgeObj;
  9037. }
  9038. function edgeObjToId(isDirected, edgeObj) {
  9039. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  9040. }
  9041. /***/ }),
  9042. /***/ "../../node_modules/graphlib/lib/index.js":
  9043. /*!**************************************************************!*\
  9044. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  9045. \**************************************************************/
  9046. /*! no static exports found */
  9047. /***/ (function(module, exports, __webpack_require__) {
  9048. // Includes only the "core" of graphlib
  9049. module.exports = {
  9050. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  9051. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  9052. };
  9053. /***/ }),
  9054. /***/ "../../node_modules/graphlib/lib/json.js":
  9055. /*!*************************************************************!*\
  9056. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  9057. \*************************************************************/
  9058. /*! no static exports found */
  9059. /***/ (function(module, exports, __webpack_require__) {
  9060. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  9061. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  9062. module.exports = {
  9063. write: write,
  9064. read: read
  9065. };
  9066. function write(g) {
  9067. var json = {
  9068. options: {
  9069. directed: g.isDirected(),
  9070. multigraph: g.isMultigraph(),
  9071. compound: g.isCompound()
  9072. },
  9073. nodes: writeNodes(g),
  9074. edges: writeEdges(g)
  9075. };
  9076. if (!_.isUndefined(g.graph())) {
  9077. json.value = _.clone(g.graph());
  9078. }
  9079. return json;
  9080. }
  9081. function writeNodes(g) {
  9082. return _.map(g.nodes(), function(v) {
  9083. var nodeValue = g.node(v),
  9084. parent = g.parent(v),
  9085. node = { v: v };
  9086. if (!_.isUndefined(nodeValue)) {
  9087. node.value = nodeValue;
  9088. }
  9089. if (!_.isUndefined(parent)) {
  9090. node.parent = parent;
  9091. }
  9092. return node;
  9093. });
  9094. }
  9095. function writeEdges(g) {
  9096. return _.map(g.edges(), function(e) {
  9097. var edgeValue = g.edge(e),
  9098. edge = { v: e.v, w: e.w };
  9099. if (!_.isUndefined(e.name)) {
  9100. edge.name = e.name;
  9101. }
  9102. if (!_.isUndefined(edgeValue)) {
  9103. edge.value = edgeValue;
  9104. }
  9105. return edge;
  9106. });
  9107. }
  9108. function read(json) {
  9109. var g = new Graph(json.options).setGraph(json.value);
  9110. _.each(json.nodes, function(entry) {
  9111. g.setNode(entry.v, entry.value);
  9112. if (entry.parent) {
  9113. g.setParent(entry.v, entry.parent);
  9114. }
  9115. });
  9116. _.each(json.edges, function(entry) {
  9117. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  9118. });
  9119. return g;
  9120. }
  9121. /***/ }),
  9122. /***/ "../../node_modules/graphlib/lib/lodash.js":
  9123. /*!***************************************************************!*\
  9124. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  9125. \***************************************************************/
  9126. /*! no static exports found */
  9127. /***/ (function(module, exports, __webpack_require__) {
  9128. /* global window */
  9129. var lodash;
  9130. if (true) {
  9131. try {
  9132. lodash = {
  9133. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  9134. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  9135. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  9136. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  9137. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  9138. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  9139. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  9140. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  9141. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  9142. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  9143. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  9144. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  9145. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  9146. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  9147. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  9148. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  9149. };
  9150. } catch (e) {}
  9151. }
  9152. if (!lodash) {
  9153. lodash = window._;
  9154. }
  9155. module.exports = lodash;
  9156. /***/ }),
  9157. /***/ "../../node_modules/graphlib/lib/version.js":
  9158. /*!****************************************************************!*\
  9159. !*** C:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  9160. \****************************************************************/
  9161. /*! no static exports found */
  9162. /***/ (function(module, exports) {
  9163. module.exports = '2.1.7';
  9164. /***/ }),
  9165. /***/ "../../node_modules/lodash/_DataView.js":
  9166. /*!************************************************************!*\
  9167. !*** C:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  9168. \************************************************************/
  9169. /*! no static exports found */
  9170. /***/ (function(module, exports, __webpack_require__) {
  9171. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9172. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9173. /* Built-in method references that are verified to be native. */
  9174. var DataView = getNative(root, 'DataView');
  9175. module.exports = DataView;
  9176. /***/ }),
  9177. /***/ "../../node_modules/lodash/_Hash.js":
  9178. /*!********************************************************!*\
  9179. !*** C:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  9180. \********************************************************/
  9181. /*! no static exports found */
  9182. /***/ (function(module, exports, __webpack_require__) {
  9183. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  9184. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  9185. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  9186. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  9187. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  9188. /**
  9189. * Creates a hash object.
  9190. *
  9191. * @private
  9192. * @constructor
  9193. * @param {Array} [entries] The key-value pairs to cache.
  9194. */
  9195. function Hash(entries) {
  9196. var index = -1,
  9197. length = entries == null ? 0 : entries.length;
  9198. this.clear();
  9199. while (++index < length) {
  9200. var entry = entries[index];
  9201. this.set(entry[0], entry[1]);
  9202. }
  9203. }
  9204. // Add methods to `Hash`.
  9205. Hash.prototype.clear = hashClear;
  9206. Hash.prototype['delete'] = hashDelete;
  9207. Hash.prototype.get = hashGet;
  9208. Hash.prototype.has = hashHas;
  9209. Hash.prototype.set = hashSet;
  9210. module.exports = Hash;
  9211. /***/ }),
  9212. /***/ "../../node_modules/lodash/_ListCache.js":
  9213. /*!*************************************************************!*\
  9214. !*** C:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  9215. \*************************************************************/
  9216. /*! no static exports found */
  9217. /***/ (function(module, exports, __webpack_require__) {
  9218. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  9219. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  9220. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  9221. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  9222. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  9223. /**
  9224. * Creates an list cache object.
  9225. *
  9226. * @private
  9227. * @constructor
  9228. * @param {Array} [entries] The key-value pairs to cache.
  9229. */
  9230. function ListCache(entries) {
  9231. var index = -1,
  9232. length = entries == null ? 0 : entries.length;
  9233. this.clear();
  9234. while (++index < length) {
  9235. var entry = entries[index];
  9236. this.set(entry[0], entry[1]);
  9237. }
  9238. }
  9239. // Add methods to `ListCache`.
  9240. ListCache.prototype.clear = listCacheClear;
  9241. ListCache.prototype['delete'] = listCacheDelete;
  9242. ListCache.prototype.get = listCacheGet;
  9243. ListCache.prototype.has = listCacheHas;
  9244. ListCache.prototype.set = listCacheSet;
  9245. module.exports = ListCache;
  9246. /***/ }),
  9247. /***/ "../../node_modules/lodash/_Map.js":
  9248. /*!*******************************************************!*\
  9249. !*** C:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  9250. \*******************************************************/
  9251. /*! no static exports found */
  9252. /***/ (function(module, exports, __webpack_require__) {
  9253. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9254. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9255. /* Built-in method references that are verified to be native. */
  9256. var Map = getNative(root, 'Map');
  9257. module.exports = Map;
  9258. /***/ }),
  9259. /***/ "../../node_modules/lodash/_MapCache.js":
  9260. /*!************************************************************!*\
  9261. !*** C:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  9262. \************************************************************/
  9263. /*! no static exports found */
  9264. /***/ (function(module, exports, __webpack_require__) {
  9265. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  9266. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  9267. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  9268. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  9269. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  9270. /**
  9271. * Creates a map cache object to store key-value pairs.
  9272. *
  9273. * @private
  9274. * @constructor
  9275. * @param {Array} [entries] The key-value pairs to cache.
  9276. */
  9277. function MapCache(entries) {
  9278. var index = -1,
  9279. length = entries == null ? 0 : entries.length;
  9280. this.clear();
  9281. while (++index < length) {
  9282. var entry = entries[index];
  9283. this.set(entry[0], entry[1]);
  9284. }
  9285. }
  9286. // Add methods to `MapCache`.
  9287. MapCache.prototype.clear = mapCacheClear;
  9288. MapCache.prototype['delete'] = mapCacheDelete;
  9289. MapCache.prototype.get = mapCacheGet;
  9290. MapCache.prototype.has = mapCacheHas;
  9291. MapCache.prototype.set = mapCacheSet;
  9292. module.exports = MapCache;
  9293. /***/ }),
  9294. /***/ "../../node_modules/lodash/_Promise.js":
  9295. /*!***********************************************************!*\
  9296. !*** C:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  9297. \***********************************************************/
  9298. /*! no static exports found */
  9299. /***/ (function(module, exports, __webpack_require__) {
  9300. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9301. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9302. /* Built-in method references that are verified to be native. */
  9303. var Promise = getNative(root, 'Promise');
  9304. module.exports = Promise;
  9305. /***/ }),
  9306. /***/ "../../node_modules/lodash/_Set.js":
  9307. /*!*******************************************************!*\
  9308. !*** C:/Repos/Babylon.js/node_modules/lodash/_Set.js ***!
  9309. \*******************************************************/
  9310. /*! no static exports found */
  9311. /***/ (function(module, exports, __webpack_require__) {
  9312. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9313. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9314. /* Built-in method references that are verified to be native. */
  9315. var Set = getNative(root, 'Set');
  9316. module.exports = Set;
  9317. /***/ }),
  9318. /***/ "../../node_modules/lodash/_SetCache.js":
  9319. /*!************************************************************!*\
  9320. !*** C:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  9321. \************************************************************/
  9322. /*! no static exports found */
  9323. /***/ (function(module, exports, __webpack_require__) {
  9324. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  9325. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  9326. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  9327. /**
  9328. *
  9329. * Creates an array cache object to store unique values.
  9330. *
  9331. * @private
  9332. * @constructor
  9333. * @param {Array} [values] The values to cache.
  9334. */
  9335. function SetCache(values) {
  9336. var index = -1,
  9337. length = values == null ? 0 : values.length;
  9338. this.__data__ = new MapCache;
  9339. while (++index < length) {
  9340. this.add(values[index]);
  9341. }
  9342. }
  9343. // Add methods to `SetCache`.
  9344. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  9345. SetCache.prototype.has = setCacheHas;
  9346. module.exports = SetCache;
  9347. /***/ }),
  9348. /***/ "../../node_modules/lodash/_Stack.js":
  9349. /*!*********************************************************!*\
  9350. !*** C:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  9351. \*********************************************************/
  9352. /*! no static exports found */
  9353. /***/ (function(module, exports, __webpack_require__) {
  9354. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  9355. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  9356. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  9357. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  9358. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  9359. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  9360. /**
  9361. * Creates a stack cache object to store key-value pairs.
  9362. *
  9363. * @private
  9364. * @constructor
  9365. * @param {Array} [entries] The key-value pairs to cache.
  9366. */
  9367. function Stack(entries) {
  9368. var data = this.__data__ = new ListCache(entries);
  9369. this.size = data.size;
  9370. }
  9371. // Add methods to `Stack`.
  9372. Stack.prototype.clear = stackClear;
  9373. Stack.prototype['delete'] = stackDelete;
  9374. Stack.prototype.get = stackGet;
  9375. Stack.prototype.has = stackHas;
  9376. Stack.prototype.set = stackSet;
  9377. module.exports = Stack;
  9378. /***/ }),
  9379. /***/ "../../node_modules/lodash/_Symbol.js":
  9380. /*!**********************************************************!*\
  9381. !*** C:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  9382. \**********************************************************/
  9383. /*! no static exports found */
  9384. /***/ (function(module, exports, __webpack_require__) {
  9385. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9386. /** Built-in value references. */
  9387. var Symbol = root.Symbol;
  9388. module.exports = Symbol;
  9389. /***/ }),
  9390. /***/ "../../node_modules/lodash/_Uint8Array.js":
  9391. /*!**************************************************************!*\
  9392. !*** C:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  9393. \**************************************************************/
  9394. /*! no static exports found */
  9395. /***/ (function(module, exports, __webpack_require__) {
  9396. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9397. /** Built-in value references. */
  9398. var Uint8Array = root.Uint8Array;
  9399. module.exports = Uint8Array;
  9400. /***/ }),
  9401. /***/ "../../node_modules/lodash/_WeakMap.js":
  9402. /*!***********************************************************!*\
  9403. !*** C:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9404. \***********************************************************/
  9405. /*! no static exports found */
  9406. /***/ (function(module, exports, __webpack_require__) {
  9407. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9408. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9409. /* Built-in method references that are verified to be native. */
  9410. var WeakMap = getNative(root, 'WeakMap');
  9411. module.exports = WeakMap;
  9412. /***/ }),
  9413. /***/ "../../node_modules/lodash/_apply.js":
  9414. /*!*********************************************************!*\
  9415. !*** C:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  9416. \*********************************************************/
  9417. /*! no static exports found */
  9418. /***/ (function(module, exports) {
  9419. /**
  9420. * A faster alternative to `Function#apply`, this function invokes `func`
  9421. * with the `this` binding of `thisArg` and the arguments of `args`.
  9422. *
  9423. * @private
  9424. * @param {Function} func The function to invoke.
  9425. * @param {*} thisArg The `this` binding of `func`.
  9426. * @param {Array} args The arguments to invoke `func` with.
  9427. * @returns {*} Returns the result of `func`.
  9428. */
  9429. function apply(func, thisArg, args) {
  9430. switch (args.length) {
  9431. case 0: return func.call(thisArg);
  9432. case 1: return func.call(thisArg, args[0]);
  9433. case 2: return func.call(thisArg, args[0], args[1]);
  9434. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9435. }
  9436. return func.apply(thisArg, args);
  9437. }
  9438. module.exports = apply;
  9439. /***/ }),
  9440. /***/ "../../node_modules/lodash/_arrayEach.js":
  9441. /*!*************************************************************!*\
  9442. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9443. \*************************************************************/
  9444. /*! no static exports found */
  9445. /***/ (function(module, exports) {
  9446. /**
  9447. * A specialized version of `_.forEach` for arrays without support for
  9448. * iteratee shorthands.
  9449. *
  9450. * @private
  9451. * @param {Array} [array] The array to iterate over.
  9452. * @param {Function} iteratee The function invoked per iteration.
  9453. * @returns {Array} Returns `array`.
  9454. */
  9455. function arrayEach(array, iteratee) {
  9456. var index = -1,
  9457. length = array == null ? 0 : array.length;
  9458. while (++index < length) {
  9459. if (iteratee(array[index], index, array) === false) {
  9460. break;
  9461. }
  9462. }
  9463. return array;
  9464. }
  9465. module.exports = arrayEach;
  9466. /***/ }),
  9467. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9468. /*!***************************************************************!*\
  9469. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9470. \***************************************************************/
  9471. /*! no static exports found */
  9472. /***/ (function(module, exports) {
  9473. /**
  9474. * A specialized version of `_.filter` for arrays without support for
  9475. * iteratee shorthands.
  9476. *
  9477. * @private
  9478. * @param {Array} [array] The array to iterate over.
  9479. * @param {Function} predicate The function invoked per iteration.
  9480. * @returns {Array} Returns the new filtered array.
  9481. */
  9482. function arrayFilter(array, predicate) {
  9483. var index = -1,
  9484. length = array == null ? 0 : array.length,
  9485. resIndex = 0,
  9486. result = [];
  9487. while (++index < length) {
  9488. var value = array[index];
  9489. if (predicate(value, index, array)) {
  9490. result[resIndex++] = value;
  9491. }
  9492. }
  9493. return result;
  9494. }
  9495. module.exports = arrayFilter;
  9496. /***/ }),
  9497. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9498. /*!*****************************************************************!*\
  9499. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9500. \*****************************************************************/
  9501. /*! no static exports found */
  9502. /***/ (function(module, exports, __webpack_require__) {
  9503. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9504. /**
  9505. * A specialized version of `_.includes` for arrays without support for
  9506. * specifying an index to search from.
  9507. *
  9508. * @private
  9509. * @param {Array} [array] The array to inspect.
  9510. * @param {*} target The value to search for.
  9511. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9512. */
  9513. function arrayIncludes(array, value) {
  9514. var length = array == null ? 0 : array.length;
  9515. return !!length && baseIndexOf(array, value, 0) > -1;
  9516. }
  9517. module.exports = arrayIncludes;
  9518. /***/ }),
  9519. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9520. /*!*********************************************************************!*\
  9521. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9522. \*********************************************************************/
  9523. /*! no static exports found */
  9524. /***/ (function(module, exports) {
  9525. /**
  9526. * This function is like `arrayIncludes` except that it accepts a comparator.
  9527. *
  9528. * @private
  9529. * @param {Array} [array] The array to inspect.
  9530. * @param {*} target The value to search for.
  9531. * @param {Function} comparator The comparator invoked per element.
  9532. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9533. */
  9534. function arrayIncludesWith(array, value, comparator) {
  9535. var index = -1,
  9536. length = array == null ? 0 : array.length;
  9537. while (++index < length) {
  9538. if (comparator(value, array[index])) {
  9539. return true;
  9540. }
  9541. }
  9542. return false;
  9543. }
  9544. module.exports = arrayIncludesWith;
  9545. /***/ }),
  9546. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9547. /*!*****************************************************************!*\
  9548. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9549. \*****************************************************************/
  9550. /*! no static exports found */
  9551. /***/ (function(module, exports, __webpack_require__) {
  9552. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9553. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9554. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9555. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9556. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9557. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9558. /** Used for built-in method references. */
  9559. var objectProto = Object.prototype;
  9560. /** Used to check objects for own properties. */
  9561. var hasOwnProperty = objectProto.hasOwnProperty;
  9562. /**
  9563. * Creates an array of the enumerable property names of the array-like `value`.
  9564. *
  9565. * @private
  9566. * @param {*} value The value to query.
  9567. * @param {boolean} inherited Specify returning inherited property names.
  9568. * @returns {Array} Returns the array of property names.
  9569. */
  9570. function arrayLikeKeys(value, inherited) {
  9571. var isArr = isArray(value),
  9572. isArg = !isArr && isArguments(value),
  9573. isBuff = !isArr && !isArg && isBuffer(value),
  9574. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9575. skipIndexes = isArr || isArg || isBuff || isType,
  9576. result = skipIndexes ? baseTimes(value.length, String) : [],
  9577. length = result.length;
  9578. for (var key in value) {
  9579. if ((inherited || hasOwnProperty.call(value, key)) &&
  9580. !(skipIndexes && (
  9581. // Safari 9 has enumerable `arguments.length` in strict mode.
  9582. key == 'length' ||
  9583. // Node.js 0.10 has enumerable non-index properties on buffers.
  9584. (isBuff && (key == 'offset' || key == 'parent')) ||
  9585. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9586. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9587. // Skip index properties.
  9588. isIndex(key, length)
  9589. ))) {
  9590. result.push(key);
  9591. }
  9592. }
  9593. return result;
  9594. }
  9595. module.exports = arrayLikeKeys;
  9596. /***/ }),
  9597. /***/ "../../node_modules/lodash/_arrayMap.js":
  9598. /*!************************************************************!*\
  9599. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9600. \************************************************************/
  9601. /*! no static exports found */
  9602. /***/ (function(module, exports) {
  9603. /**
  9604. * A specialized version of `_.map` for arrays without support for iteratee
  9605. * shorthands.
  9606. *
  9607. * @private
  9608. * @param {Array} [array] The array to iterate over.
  9609. * @param {Function} iteratee The function invoked per iteration.
  9610. * @returns {Array} Returns the new mapped array.
  9611. */
  9612. function arrayMap(array, iteratee) {
  9613. var index = -1,
  9614. length = array == null ? 0 : array.length,
  9615. result = Array(length);
  9616. while (++index < length) {
  9617. result[index] = iteratee(array[index], index, array);
  9618. }
  9619. return result;
  9620. }
  9621. module.exports = arrayMap;
  9622. /***/ }),
  9623. /***/ "../../node_modules/lodash/_arrayPush.js":
  9624. /*!*************************************************************!*\
  9625. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9626. \*************************************************************/
  9627. /*! no static exports found */
  9628. /***/ (function(module, exports) {
  9629. /**
  9630. * Appends the elements of `values` to `array`.
  9631. *
  9632. * @private
  9633. * @param {Array} array The array to modify.
  9634. * @param {Array} values The values to append.
  9635. * @returns {Array} Returns `array`.
  9636. */
  9637. function arrayPush(array, values) {
  9638. var index = -1,
  9639. length = values.length,
  9640. offset = array.length;
  9641. while (++index < length) {
  9642. array[offset + index] = values[index];
  9643. }
  9644. return array;
  9645. }
  9646. module.exports = arrayPush;
  9647. /***/ }),
  9648. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9649. /*!***************************************************************!*\
  9650. !*** C:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9651. \***************************************************************/
  9652. /*! no static exports found */
  9653. /***/ (function(module, exports) {
  9654. /**
  9655. * A specialized version of `_.reduce` for arrays without support for
  9656. * iteratee shorthands.
  9657. *
  9658. * @private
  9659. * @param {Array} [array] The array to iterate over.
  9660. * @param {Function} iteratee The function invoked per iteration.
  9661. * @param {*} [accumulator] The initial value.
  9662. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9663. * the initial value.
  9664. * @returns {*} Returns the accumulated value.
  9665. */
  9666. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9667. var index = -1,
  9668. length = array == null ? 0 : array.length;
  9669. if (initAccum && length) {
  9670. accumulator = array[++index];
  9671. }
  9672. while (++index < length) {
  9673. accumulator = iteratee(accumulator, array[index], index, array);
  9674. }
  9675. return accumulator;
  9676. }
  9677. module.exports = arrayReduce;
  9678. /***/ }),
  9679. /***/ "../../node_modules/lodash/_arraySome.js":
  9680. /*!*************************************************************!*\
  9681. !*** C:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9682. \*************************************************************/
  9683. /*! no static exports found */
  9684. /***/ (function(module, exports) {
  9685. /**
  9686. * A specialized version of `_.some` for arrays without support for iteratee
  9687. * shorthands.
  9688. *
  9689. * @private
  9690. * @param {Array} [array] The array to iterate over.
  9691. * @param {Function} predicate The function invoked per iteration.
  9692. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9693. * else `false`.
  9694. */
  9695. function arraySome(array, predicate) {
  9696. var index = -1,
  9697. length = array == null ? 0 : array.length;
  9698. while (++index < length) {
  9699. if (predicate(array[index], index, array)) {
  9700. return true;
  9701. }
  9702. }
  9703. return false;
  9704. }
  9705. module.exports = arraySome;
  9706. /***/ }),
  9707. /***/ "../../node_modules/lodash/_asciiSize.js":
  9708. /*!*************************************************************!*\
  9709. !*** C:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9710. \*************************************************************/
  9711. /*! no static exports found */
  9712. /***/ (function(module, exports, __webpack_require__) {
  9713. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9714. /**
  9715. * Gets the size of an ASCII `string`.
  9716. *
  9717. * @private
  9718. * @param {string} string The string inspect.
  9719. * @returns {number} Returns the string size.
  9720. */
  9721. var asciiSize = baseProperty('length');
  9722. module.exports = asciiSize;
  9723. /***/ }),
  9724. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9725. /*!********************************************************************!*\
  9726. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9727. \********************************************************************/
  9728. /*! no static exports found */
  9729. /***/ (function(module, exports, __webpack_require__) {
  9730. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9731. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9732. /**
  9733. * This function is like `assignValue` except that it doesn't assign
  9734. * `undefined` values.
  9735. *
  9736. * @private
  9737. * @param {Object} object The object to modify.
  9738. * @param {string} key The key of the property to assign.
  9739. * @param {*} value The value to assign.
  9740. */
  9741. function assignMergeValue(object, key, value) {
  9742. if ((value !== undefined && !eq(object[key], value)) ||
  9743. (value === undefined && !(key in object))) {
  9744. baseAssignValue(object, key, value);
  9745. }
  9746. }
  9747. module.exports = assignMergeValue;
  9748. /***/ }),
  9749. /***/ "../../node_modules/lodash/_assignValue.js":
  9750. /*!***************************************************************!*\
  9751. !*** C:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9752. \***************************************************************/
  9753. /*! no static exports found */
  9754. /***/ (function(module, exports, __webpack_require__) {
  9755. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9756. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9757. /** Used for built-in method references. */
  9758. var objectProto = Object.prototype;
  9759. /** Used to check objects for own properties. */
  9760. var hasOwnProperty = objectProto.hasOwnProperty;
  9761. /**
  9762. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9763. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9764. * for equality comparisons.
  9765. *
  9766. * @private
  9767. * @param {Object} object The object to modify.
  9768. * @param {string} key The key of the property to assign.
  9769. * @param {*} value The value to assign.
  9770. */
  9771. function assignValue(object, key, value) {
  9772. var objValue = object[key];
  9773. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9774. (value === undefined && !(key in object))) {
  9775. baseAssignValue(object, key, value);
  9776. }
  9777. }
  9778. module.exports = assignValue;
  9779. /***/ }),
  9780. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9781. /*!****************************************************************!*\
  9782. !*** C:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9783. \****************************************************************/
  9784. /*! no static exports found */
  9785. /***/ (function(module, exports, __webpack_require__) {
  9786. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9787. /**
  9788. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9789. *
  9790. * @private
  9791. * @param {Array} array The array to inspect.
  9792. * @param {*} key The key to search for.
  9793. * @returns {number} Returns the index of the matched value, else `-1`.
  9794. */
  9795. function assocIndexOf(array, key) {
  9796. var length = array.length;
  9797. while (length--) {
  9798. if (eq(array[length][0], key)) {
  9799. return length;
  9800. }
  9801. }
  9802. return -1;
  9803. }
  9804. module.exports = assocIndexOf;
  9805. /***/ }),
  9806. /***/ "../../node_modules/lodash/_baseAssign.js":
  9807. /*!**************************************************************!*\
  9808. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9809. \**************************************************************/
  9810. /*! no static exports found */
  9811. /***/ (function(module, exports, __webpack_require__) {
  9812. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9813. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9814. /**
  9815. * The base implementation of `_.assign` without support for multiple sources
  9816. * or `customizer` functions.
  9817. *
  9818. * @private
  9819. * @param {Object} object The destination object.
  9820. * @param {Object} source The source object.
  9821. * @returns {Object} Returns `object`.
  9822. */
  9823. function baseAssign(object, source) {
  9824. return object && copyObject(source, keys(source), object);
  9825. }
  9826. module.exports = baseAssign;
  9827. /***/ }),
  9828. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9829. /*!****************************************************************!*\
  9830. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9831. \****************************************************************/
  9832. /*! no static exports found */
  9833. /***/ (function(module, exports, __webpack_require__) {
  9834. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9835. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9836. /**
  9837. * The base implementation of `_.assignIn` without support for multiple sources
  9838. * or `customizer` functions.
  9839. *
  9840. * @private
  9841. * @param {Object} object The destination object.
  9842. * @param {Object} source The source object.
  9843. * @returns {Object} Returns `object`.
  9844. */
  9845. function baseAssignIn(object, source) {
  9846. return object && copyObject(source, keysIn(source), object);
  9847. }
  9848. module.exports = baseAssignIn;
  9849. /***/ }),
  9850. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9851. /*!*******************************************************************!*\
  9852. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9853. \*******************************************************************/
  9854. /*! no static exports found */
  9855. /***/ (function(module, exports, __webpack_require__) {
  9856. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9857. /**
  9858. * The base implementation of `assignValue` and `assignMergeValue` without
  9859. * value checks.
  9860. *
  9861. * @private
  9862. * @param {Object} object The object to modify.
  9863. * @param {string} key The key of the property to assign.
  9864. * @param {*} value The value to assign.
  9865. */
  9866. function baseAssignValue(object, key, value) {
  9867. if (key == '__proto__' && defineProperty) {
  9868. defineProperty(object, key, {
  9869. 'configurable': true,
  9870. 'enumerable': true,
  9871. 'value': value,
  9872. 'writable': true
  9873. });
  9874. } else {
  9875. object[key] = value;
  9876. }
  9877. }
  9878. module.exports = baseAssignValue;
  9879. /***/ }),
  9880. /***/ "../../node_modules/lodash/_baseClone.js":
  9881. /*!*************************************************************!*\
  9882. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9883. \*************************************************************/
  9884. /*! no static exports found */
  9885. /***/ (function(module, exports, __webpack_require__) {
  9886. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9887. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9888. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9889. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9890. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9891. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9892. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9893. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9894. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9895. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9896. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9897. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9898. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9899. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9900. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9901. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9902. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9903. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9904. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9905. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9906. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9907. /** Used to compose bitmasks for cloning. */
  9908. var CLONE_DEEP_FLAG = 1,
  9909. CLONE_FLAT_FLAG = 2,
  9910. CLONE_SYMBOLS_FLAG = 4;
  9911. /** `Object#toString` result references. */
  9912. var argsTag = '[object Arguments]',
  9913. arrayTag = '[object Array]',
  9914. boolTag = '[object Boolean]',
  9915. dateTag = '[object Date]',
  9916. errorTag = '[object Error]',
  9917. funcTag = '[object Function]',
  9918. genTag = '[object GeneratorFunction]',
  9919. mapTag = '[object Map]',
  9920. numberTag = '[object Number]',
  9921. objectTag = '[object Object]',
  9922. regexpTag = '[object RegExp]',
  9923. setTag = '[object Set]',
  9924. stringTag = '[object String]',
  9925. symbolTag = '[object Symbol]',
  9926. weakMapTag = '[object WeakMap]';
  9927. var arrayBufferTag = '[object ArrayBuffer]',
  9928. dataViewTag = '[object DataView]',
  9929. float32Tag = '[object Float32Array]',
  9930. float64Tag = '[object Float64Array]',
  9931. int8Tag = '[object Int8Array]',
  9932. int16Tag = '[object Int16Array]',
  9933. int32Tag = '[object Int32Array]',
  9934. uint8Tag = '[object Uint8Array]',
  9935. uint8ClampedTag = '[object Uint8ClampedArray]',
  9936. uint16Tag = '[object Uint16Array]',
  9937. uint32Tag = '[object Uint32Array]';
  9938. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9939. var cloneableTags = {};
  9940. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9941. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9942. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9943. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9944. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9945. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9946. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9947. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9948. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9949. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9950. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9951. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9952. cloneableTags[weakMapTag] = false;
  9953. /**
  9954. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9955. * traversed objects.
  9956. *
  9957. * @private
  9958. * @param {*} value The value to clone.
  9959. * @param {boolean} bitmask The bitmask flags.
  9960. * 1 - Deep clone
  9961. * 2 - Flatten inherited properties
  9962. * 4 - Clone symbols
  9963. * @param {Function} [customizer] The function to customize cloning.
  9964. * @param {string} [key] The key of `value`.
  9965. * @param {Object} [object] The parent object of `value`.
  9966. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9967. * @returns {*} Returns the cloned value.
  9968. */
  9969. function baseClone(value, bitmask, customizer, key, object, stack) {
  9970. var result,
  9971. isDeep = bitmask & CLONE_DEEP_FLAG,
  9972. isFlat = bitmask & CLONE_FLAT_FLAG,
  9973. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  9974. if (customizer) {
  9975. result = object ? customizer(value, key, object, stack) : customizer(value);
  9976. }
  9977. if (result !== undefined) {
  9978. return result;
  9979. }
  9980. if (!isObject(value)) {
  9981. return value;
  9982. }
  9983. var isArr = isArray(value);
  9984. if (isArr) {
  9985. result = initCloneArray(value);
  9986. if (!isDeep) {
  9987. return copyArray(value, result);
  9988. }
  9989. } else {
  9990. var tag = getTag(value),
  9991. isFunc = tag == funcTag || tag == genTag;
  9992. if (isBuffer(value)) {
  9993. return cloneBuffer(value, isDeep);
  9994. }
  9995. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  9996. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  9997. if (!isDeep) {
  9998. return isFlat
  9999. ? copySymbolsIn(value, baseAssignIn(result, value))
  10000. : copySymbols(value, baseAssign(result, value));
  10001. }
  10002. } else {
  10003. if (!cloneableTags[tag]) {
  10004. return object ? value : {};
  10005. }
  10006. result = initCloneByTag(value, tag, isDeep);
  10007. }
  10008. }
  10009. // Check for circular references and return its corresponding clone.
  10010. stack || (stack = new Stack);
  10011. var stacked = stack.get(value);
  10012. if (stacked) {
  10013. return stacked;
  10014. }
  10015. stack.set(value, result);
  10016. if (isSet(value)) {
  10017. value.forEach(function(subValue) {
  10018. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  10019. });
  10020. } else if (isMap(value)) {
  10021. value.forEach(function(subValue, key) {
  10022. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10023. });
  10024. }
  10025. var keysFunc = isFull
  10026. ? (isFlat ? getAllKeysIn : getAllKeys)
  10027. : (isFlat ? keysIn : keys);
  10028. var props = isArr ? undefined : keysFunc(value);
  10029. arrayEach(props || value, function(subValue, key) {
  10030. if (props) {
  10031. key = subValue;
  10032. subValue = value[key];
  10033. }
  10034. // Recursively populate clone (susceptible to call stack limits).
  10035. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10036. });
  10037. return result;
  10038. }
  10039. module.exports = baseClone;
  10040. /***/ }),
  10041. /***/ "../../node_modules/lodash/_baseCreate.js":
  10042. /*!**************************************************************!*\
  10043. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  10044. \**************************************************************/
  10045. /*! no static exports found */
  10046. /***/ (function(module, exports, __webpack_require__) {
  10047. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  10048. /** Built-in value references. */
  10049. var objectCreate = Object.create;
  10050. /**
  10051. * The base implementation of `_.create` without support for assigning
  10052. * properties to the created object.
  10053. *
  10054. * @private
  10055. * @param {Object} proto The object to inherit from.
  10056. * @returns {Object} Returns the new object.
  10057. */
  10058. var baseCreate = (function() {
  10059. function object() {}
  10060. return function(proto) {
  10061. if (!isObject(proto)) {
  10062. return {};
  10063. }
  10064. if (objectCreate) {
  10065. return objectCreate(proto);
  10066. }
  10067. object.prototype = proto;
  10068. var result = new object;
  10069. object.prototype = undefined;
  10070. return result;
  10071. };
  10072. }());
  10073. module.exports = baseCreate;
  10074. /***/ }),
  10075. /***/ "../../node_modules/lodash/_baseEach.js":
  10076. /*!************************************************************!*\
  10077. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  10078. \************************************************************/
  10079. /*! no static exports found */
  10080. /***/ (function(module, exports, __webpack_require__) {
  10081. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  10082. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  10083. /**
  10084. * The base implementation of `_.forEach` without support for iteratee shorthands.
  10085. *
  10086. * @private
  10087. * @param {Array|Object} collection The collection to iterate over.
  10088. * @param {Function} iteratee The function invoked per iteration.
  10089. * @returns {Array|Object} Returns `collection`.
  10090. */
  10091. var baseEach = createBaseEach(baseForOwn);
  10092. module.exports = baseEach;
  10093. /***/ }),
  10094. /***/ "../../node_modules/lodash/_baseExtremum.js":
  10095. /*!****************************************************************!*\
  10096. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  10097. \****************************************************************/
  10098. /*! no static exports found */
  10099. /***/ (function(module, exports, __webpack_require__) {
  10100. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  10101. /**
  10102. * The base implementation of methods like `_.max` and `_.min` which accepts a
  10103. * `comparator` to determine the extremum value.
  10104. *
  10105. * @private
  10106. * @param {Array} array The array to iterate over.
  10107. * @param {Function} iteratee The iteratee invoked per iteration.
  10108. * @param {Function} comparator The comparator used to compare values.
  10109. * @returns {*} Returns the extremum value.
  10110. */
  10111. function baseExtremum(array, iteratee, comparator) {
  10112. var index = -1,
  10113. length = array.length;
  10114. while (++index < length) {
  10115. var value = array[index],
  10116. current = iteratee(value);
  10117. if (current != null && (computed === undefined
  10118. ? (current === current && !isSymbol(current))
  10119. : comparator(current, computed)
  10120. )) {
  10121. var computed = current,
  10122. result = value;
  10123. }
  10124. }
  10125. return result;
  10126. }
  10127. module.exports = baseExtremum;
  10128. /***/ }),
  10129. /***/ "../../node_modules/lodash/_baseFilter.js":
  10130. /*!**************************************************************!*\
  10131. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  10132. \**************************************************************/
  10133. /*! no static exports found */
  10134. /***/ (function(module, exports, __webpack_require__) {
  10135. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  10136. /**
  10137. * The base implementation of `_.filter` without support for iteratee shorthands.
  10138. *
  10139. * @private
  10140. * @param {Array|Object} collection The collection to iterate over.
  10141. * @param {Function} predicate The function invoked per iteration.
  10142. * @returns {Array} Returns the new filtered array.
  10143. */
  10144. function baseFilter(collection, predicate) {
  10145. var result = [];
  10146. baseEach(collection, function(value, index, collection) {
  10147. if (predicate(value, index, collection)) {
  10148. result.push(value);
  10149. }
  10150. });
  10151. return result;
  10152. }
  10153. module.exports = baseFilter;
  10154. /***/ }),
  10155. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  10156. /*!*****************************************************************!*\
  10157. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  10158. \*****************************************************************/
  10159. /*! no static exports found */
  10160. /***/ (function(module, exports) {
  10161. /**
  10162. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  10163. * support for iteratee shorthands.
  10164. *
  10165. * @private
  10166. * @param {Array} array The array to inspect.
  10167. * @param {Function} predicate The function invoked per iteration.
  10168. * @param {number} fromIndex The index to search from.
  10169. * @param {boolean} [fromRight] Specify iterating from right to left.
  10170. * @returns {number} Returns the index of the matched value, else `-1`.
  10171. */
  10172. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  10173. var length = array.length,
  10174. index = fromIndex + (fromRight ? 1 : -1);
  10175. while ((fromRight ? index-- : ++index < length)) {
  10176. if (predicate(array[index], index, array)) {
  10177. return index;
  10178. }
  10179. }
  10180. return -1;
  10181. }
  10182. module.exports = baseFindIndex;
  10183. /***/ }),
  10184. /***/ "../../node_modules/lodash/_baseFlatten.js":
  10185. /*!***************************************************************!*\
  10186. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  10187. \***************************************************************/
  10188. /*! no static exports found */
  10189. /***/ (function(module, exports, __webpack_require__) {
  10190. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10191. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  10192. /**
  10193. * The base implementation of `_.flatten` with support for restricting flattening.
  10194. *
  10195. * @private
  10196. * @param {Array} array The array to flatten.
  10197. * @param {number} depth The maximum recursion depth.
  10198. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  10199. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  10200. * @param {Array} [result=[]] The initial result value.
  10201. * @returns {Array} Returns the new flattened array.
  10202. */
  10203. function baseFlatten(array, depth, predicate, isStrict, result) {
  10204. var index = -1,
  10205. length = array.length;
  10206. predicate || (predicate = isFlattenable);
  10207. result || (result = []);
  10208. while (++index < length) {
  10209. var value = array[index];
  10210. if (depth > 0 && predicate(value)) {
  10211. if (depth > 1) {
  10212. // Recursively flatten arrays (susceptible to call stack limits).
  10213. baseFlatten(value, depth - 1, predicate, isStrict, result);
  10214. } else {
  10215. arrayPush(result, value);
  10216. }
  10217. } else if (!isStrict) {
  10218. result[result.length] = value;
  10219. }
  10220. }
  10221. return result;
  10222. }
  10223. module.exports = baseFlatten;
  10224. /***/ }),
  10225. /***/ "../../node_modules/lodash/_baseFor.js":
  10226. /*!***********************************************************!*\
  10227. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  10228. \***********************************************************/
  10229. /*! no static exports found */
  10230. /***/ (function(module, exports, __webpack_require__) {
  10231. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  10232. /**
  10233. * The base implementation of `baseForOwn` which iterates over `object`
  10234. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  10235. * Iteratee functions may exit iteration early by explicitly returning `false`.
  10236. *
  10237. * @private
  10238. * @param {Object} object The object to iterate over.
  10239. * @param {Function} iteratee The function invoked per iteration.
  10240. * @param {Function} keysFunc The function to get the keys of `object`.
  10241. * @returns {Object} Returns `object`.
  10242. */
  10243. var baseFor = createBaseFor();
  10244. module.exports = baseFor;
  10245. /***/ }),
  10246. /***/ "../../node_modules/lodash/_baseForOwn.js":
  10247. /*!**************************************************************!*\
  10248. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  10249. \**************************************************************/
  10250. /*! no static exports found */
  10251. /***/ (function(module, exports, __webpack_require__) {
  10252. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10253. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  10254. /**
  10255. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  10256. *
  10257. * @private
  10258. * @param {Object} object The object to iterate over.
  10259. * @param {Function} iteratee The function invoked per iteration.
  10260. * @returns {Object} Returns `object`.
  10261. */
  10262. function baseForOwn(object, iteratee) {
  10263. return object && baseFor(object, iteratee, keys);
  10264. }
  10265. module.exports = baseForOwn;
  10266. /***/ }),
  10267. /***/ "../../node_modules/lodash/_baseGet.js":
  10268. /*!***********************************************************!*\
  10269. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  10270. \***********************************************************/
  10271. /*! no static exports found */
  10272. /***/ (function(module, exports, __webpack_require__) {
  10273. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10274. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10275. /**
  10276. * The base implementation of `_.get` without support for default values.
  10277. *
  10278. * @private
  10279. * @param {Object} object The object to query.
  10280. * @param {Array|string} path The path of the property to get.
  10281. * @returns {*} Returns the resolved value.
  10282. */
  10283. function baseGet(object, path) {
  10284. path = castPath(path, object);
  10285. var index = 0,
  10286. length = path.length;
  10287. while (object != null && index < length) {
  10288. object = object[toKey(path[index++])];
  10289. }
  10290. return (index && index == length) ? object : undefined;
  10291. }
  10292. module.exports = baseGet;
  10293. /***/ }),
  10294. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  10295. /*!******************************************************************!*\
  10296. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  10297. \******************************************************************/
  10298. /*! no static exports found */
  10299. /***/ (function(module, exports, __webpack_require__) {
  10300. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10301. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  10302. /**
  10303. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  10304. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  10305. * symbols of `object`.
  10306. *
  10307. * @private
  10308. * @param {Object} object The object to query.
  10309. * @param {Function} keysFunc The function to get the keys of `object`.
  10310. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  10311. * @returns {Array} Returns the array of property names and symbols.
  10312. */
  10313. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  10314. var result = keysFunc(object);
  10315. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  10316. }
  10317. module.exports = baseGetAllKeys;
  10318. /***/ }),
  10319. /***/ "../../node_modules/lodash/_baseGetTag.js":
  10320. /*!**************************************************************!*\
  10321. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  10322. \**************************************************************/
  10323. /*! no static exports found */
  10324. /***/ (function(module, exports, __webpack_require__) {
  10325. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  10326. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  10327. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  10328. /** `Object#toString` result references. */
  10329. var nullTag = '[object Null]',
  10330. undefinedTag = '[object Undefined]';
  10331. /** Built-in value references. */
  10332. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  10333. /**
  10334. * The base implementation of `getTag` without fallbacks for buggy environments.
  10335. *
  10336. * @private
  10337. * @param {*} value The value to query.
  10338. * @returns {string} Returns the `toStringTag`.
  10339. */
  10340. function baseGetTag(value) {
  10341. if (value == null) {
  10342. return value === undefined ? undefinedTag : nullTag;
  10343. }
  10344. return (symToStringTag && symToStringTag in Object(value))
  10345. ? getRawTag(value)
  10346. : objectToString(value);
  10347. }
  10348. module.exports = baseGetTag;
  10349. /***/ }),
  10350. /***/ "../../node_modules/lodash/_baseGt.js":
  10351. /*!**********************************************************!*\
  10352. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  10353. \**********************************************************/
  10354. /*! no static exports found */
  10355. /***/ (function(module, exports) {
  10356. /**
  10357. * The base implementation of `_.gt` which doesn't coerce arguments.
  10358. *
  10359. * @private
  10360. * @param {*} value The value to compare.
  10361. * @param {*} other The other value to compare.
  10362. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  10363. * else `false`.
  10364. */
  10365. function baseGt(value, other) {
  10366. return value > other;
  10367. }
  10368. module.exports = baseGt;
  10369. /***/ }),
  10370. /***/ "../../node_modules/lodash/_baseHas.js":
  10371. /*!***********************************************************!*\
  10372. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  10373. \***********************************************************/
  10374. /*! no static exports found */
  10375. /***/ (function(module, exports) {
  10376. /** Used for built-in method references. */
  10377. var objectProto = Object.prototype;
  10378. /** Used to check objects for own properties. */
  10379. var hasOwnProperty = objectProto.hasOwnProperty;
  10380. /**
  10381. * The base implementation of `_.has` without support for deep paths.
  10382. *
  10383. * @private
  10384. * @param {Object} [object] The object to query.
  10385. * @param {Array|string} key The key to check.
  10386. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10387. */
  10388. function baseHas(object, key) {
  10389. return object != null && hasOwnProperty.call(object, key);
  10390. }
  10391. module.exports = baseHas;
  10392. /***/ }),
  10393. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10394. /*!*************************************************************!*\
  10395. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10396. \*************************************************************/
  10397. /*! no static exports found */
  10398. /***/ (function(module, exports) {
  10399. /**
  10400. * The base implementation of `_.hasIn` without support for deep paths.
  10401. *
  10402. * @private
  10403. * @param {Object} [object] The object to query.
  10404. * @param {Array|string} key The key to check.
  10405. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10406. */
  10407. function baseHasIn(object, key) {
  10408. return object != null && key in Object(object);
  10409. }
  10410. module.exports = baseHasIn;
  10411. /***/ }),
  10412. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10413. /*!***************************************************************!*\
  10414. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10415. \***************************************************************/
  10416. /*! no static exports found */
  10417. /***/ (function(module, exports, __webpack_require__) {
  10418. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10419. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10420. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10421. /**
  10422. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10423. *
  10424. * @private
  10425. * @param {Array} array The array to inspect.
  10426. * @param {*} value The value to search for.
  10427. * @param {number} fromIndex The index to search from.
  10428. * @returns {number} Returns the index of the matched value, else `-1`.
  10429. */
  10430. function baseIndexOf(array, value, fromIndex) {
  10431. return value === value
  10432. ? strictIndexOf(array, value, fromIndex)
  10433. : baseFindIndex(array, baseIsNaN, fromIndex);
  10434. }
  10435. module.exports = baseIndexOf;
  10436. /***/ }),
  10437. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10438. /*!*******************************************************************!*\
  10439. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10440. \*******************************************************************/
  10441. /*! no static exports found */
  10442. /***/ (function(module, exports, __webpack_require__) {
  10443. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10444. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10445. /** `Object#toString` result references. */
  10446. var argsTag = '[object Arguments]';
  10447. /**
  10448. * The base implementation of `_.isArguments`.
  10449. *
  10450. * @private
  10451. * @param {*} value The value to check.
  10452. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10453. */
  10454. function baseIsArguments(value) {
  10455. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10456. }
  10457. module.exports = baseIsArguments;
  10458. /***/ }),
  10459. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10460. /*!***************************************************************!*\
  10461. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10462. \***************************************************************/
  10463. /*! no static exports found */
  10464. /***/ (function(module, exports, __webpack_require__) {
  10465. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10466. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10467. /**
  10468. * The base implementation of `_.isEqual` which supports partial comparisons
  10469. * and tracks traversed objects.
  10470. *
  10471. * @private
  10472. * @param {*} value The value to compare.
  10473. * @param {*} other The other value to compare.
  10474. * @param {boolean} bitmask The bitmask flags.
  10475. * 1 - Unordered comparison
  10476. * 2 - Partial comparison
  10477. * @param {Function} [customizer] The function to customize comparisons.
  10478. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10479. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10480. */
  10481. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10482. if (value === other) {
  10483. return true;
  10484. }
  10485. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10486. return value !== value && other !== other;
  10487. }
  10488. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10489. }
  10490. module.exports = baseIsEqual;
  10491. /***/ }),
  10492. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10493. /*!*******************************************************************!*\
  10494. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10495. \*******************************************************************/
  10496. /*! no static exports found */
  10497. /***/ (function(module, exports, __webpack_require__) {
  10498. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10499. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10500. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10501. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10502. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10503. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10504. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10505. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10506. /** Used to compose bitmasks for value comparisons. */
  10507. var COMPARE_PARTIAL_FLAG = 1;
  10508. /** `Object#toString` result references. */
  10509. var argsTag = '[object Arguments]',
  10510. arrayTag = '[object Array]',
  10511. objectTag = '[object Object]';
  10512. /** Used for built-in method references. */
  10513. var objectProto = Object.prototype;
  10514. /** Used to check objects for own properties. */
  10515. var hasOwnProperty = objectProto.hasOwnProperty;
  10516. /**
  10517. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10518. * deep comparisons and tracks traversed objects enabling objects with circular
  10519. * references to be compared.
  10520. *
  10521. * @private
  10522. * @param {Object} object The object to compare.
  10523. * @param {Object} other The other object to compare.
  10524. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10525. * @param {Function} customizer The function to customize comparisons.
  10526. * @param {Function} equalFunc The function to determine equivalents of values.
  10527. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10528. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10529. */
  10530. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10531. var objIsArr = isArray(object),
  10532. othIsArr = isArray(other),
  10533. objTag = objIsArr ? arrayTag : getTag(object),
  10534. othTag = othIsArr ? arrayTag : getTag(other);
  10535. objTag = objTag == argsTag ? objectTag : objTag;
  10536. othTag = othTag == argsTag ? objectTag : othTag;
  10537. var objIsObj = objTag == objectTag,
  10538. othIsObj = othTag == objectTag,
  10539. isSameTag = objTag == othTag;
  10540. if (isSameTag && isBuffer(object)) {
  10541. if (!isBuffer(other)) {
  10542. return false;
  10543. }
  10544. objIsArr = true;
  10545. objIsObj = false;
  10546. }
  10547. if (isSameTag && !objIsObj) {
  10548. stack || (stack = new Stack);
  10549. return (objIsArr || isTypedArray(object))
  10550. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10551. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10552. }
  10553. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10554. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10555. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10556. if (objIsWrapped || othIsWrapped) {
  10557. var objUnwrapped = objIsWrapped ? object.value() : object,
  10558. othUnwrapped = othIsWrapped ? other.value() : other;
  10559. stack || (stack = new Stack);
  10560. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10561. }
  10562. }
  10563. if (!isSameTag) {
  10564. return false;
  10565. }
  10566. stack || (stack = new Stack);
  10567. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10568. }
  10569. module.exports = baseIsEqualDeep;
  10570. /***/ }),
  10571. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10572. /*!*************************************************************!*\
  10573. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10574. \*************************************************************/
  10575. /*! no static exports found */
  10576. /***/ (function(module, exports, __webpack_require__) {
  10577. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10578. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10579. /** `Object#toString` result references. */
  10580. var mapTag = '[object Map]';
  10581. /**
  10582. * The base implementation of `_.isMap` without Node.js optimizations.
  10583. *
  10584. * @private
  10585. * @param {*} value The value to check.
  10586. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10587. */
  10588. function baseIsMap(value) {
  10589. return isObjectLike(value) && getTag(value) == mapTag;
  10590. }
  10591. module.exports = baseIsMap;
  10592. /***/ }),
  10593. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10594. /*!***************************************************************!*\
  10595. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10596. \***************************************************************/
  10597. /*! no static exports found */
  10598. /***/ (function(module, exports, __webpack_require__) {
  10599. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10600. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10601. /** Used to compose bitmasks for value comparisons. */
  10602. var COMPARE_PARTIAL_FLAG = 1,
  10603. COMPARE_UNORDERED_FLAG = 2;
  10604. /**
  10605. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10606. *
  10607. * @private
  10608. * @param {Object} object The object to inspect.
  10609. * @param {Object} source The object of property values to match.
  10610. * @param {Array} matchData The property names, values, and compare flags to match.
  10611. * @param {Function} [customizer] The function to customize comparisons.
  10612. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10613. */
  10614. function baseIsMatch(object, source, matchData, customizer) {
  10615. var index = matchData.length,
  10616. length = index,
  10617. noCustomizer = !customizer;
  10618. if (object == null) {
  10619. return !length;
  10620. }
  10621. object = Object(object);
  10622. while (index--) {
  10623. var data = matchData[index];
  10624. if ((noCustomizer && data[2])
  10625. ? data[1] !== object[data[0]]
  10626. : !(data[0] in object)
  10627. ) {
  10628. return false;
  10629. }
  10630. }
  10631. while (++index < length) {
  10632. data = matchData[index];
  10633. var key = data[0],
  10634. objValue = object[key],
  10635. srcValue = data[1];
  10636. if (noCustomizer && data[2]) {
  10637. if (objValue === undefined && !(key in object)) {
  10638. return false;
  10639. }
  10640. } else {
  10641. var stack = new Stack;
  10642. if (customizer) {
  10643. var result = customizer(objValue, srcValue, key, object, source, stack);
  10644. }
  10645. if (!(result === undefined
  10646. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10647. : result
  10648. )) {
  10649. return false;
  10650. }
  10651. }
  10652. }
  10653. return true;
  10654. }
  10655. module.exports = baseIsMatch;
  10656. /***/ }),
  10657. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10658. /*!*************************************************************!*\
  10659. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10660. \*************************************************************/
  10661. /*! no static exports found */
  10662. /***/ (function(module, exports) {
  10663. /**
  10664. * The base implementation of `_.isNaN` without support for number objects.
  10665. *
  10666. * @private
  10667. * @param {*} value The value to check.
  10668. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10669. */
  10670. function baseIsNaN(value) {
  10671. return value !== value;
  10672. }
  10673. module.exports = baseIsNaN;
  10674. /***/ }),
  10675. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10676. /*!****************************************************************!*\
  10677. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10678. \****************************************************************/
  10679. /*! no static exports found */
  10680. /***/ (function(module, exports, __webpack_require__) {
  10681. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10682. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10683. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10684. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10685. /**
  10686. * Used to match `RegExp`
  10687. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10688. */
  10689. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10690. /** Used to detect host constructors (Safari). */
  10691. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10692. /** Used for built-in method references. */
  10693. var funcProto = Function.prototype,
  10694. objectProto = Object.prototype;
  10695. /** Used to resolve the decompiled source of functions. */
  10696. var funcToString = funcProto.toString;
  10697. /** Used to check objects for own properties. */
  10698. var hasOwnProperty = objectProto.hasOwnProperty;
  10699. /** Used to detect if a method is native. */
  10700. var reIsNative = RegExp('^' +
  10701. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10702. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10703. );
  10704. /**
  10705. * The base implementation of `_.isNative` without bad shim checks.
  10706. *
  10707. * @private
  10708. * @param {*} value The value to check.
  10709. * @returns {boolean} Returns `true` if `value` is a native function,
  10710. * else `false`.
  10711. */
  10712. function baseIsNative(value) {
  10713. if (!isObject(value) || isMasked(value)) {
  10714. return false;
  10715. }
  10716. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10717. return pattern.test(toSource(value));
  10718. }
  10719. module.exports = baseIsNative;
  10720. /***/ }),
  10721. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10722. /*!*************************************************************!*\
  10723. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10724. \*************************************************************/
  10725. /*! no static exports found */
  10726. /***/ (function(module, exports, __webpack_require__) {
  10727. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10728. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10729. /** `Object#toString` result references. */
  10730. var setTag = '[object Set]';
  10731. /**
  10732. * The base implementation of `_.isSet` without Node.js optimizations.
  10733. *
  10734. * @private
  10735. * @param {*} value The value to check.
  10736. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10737. */
  10738. function baseIsSet(value) {
  10739. return isObjectLike(value) && getTag(value) == setTag;
  10740. }
  10741. module.exports = baseIsSet;
  10742. /***/ }),
  10743. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10744. /*!********************************************************************!*\
  10745. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10746. \********************************************************************/
  10747. /*! no static exports found */
  10748. /***/ (function(module, exports, __webpack_require__) {
  10749. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10750. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10751. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10752. /** `Object#toString` result references. */
  10753. var argsTag = '[object Arguments]',
  10754. arrayTag = '[object Array]',
  10755. boolTag = '[object Boolean]',
  10756. dateTag = '[object Date]',
  10757. errorTag = '[object Error]',
  10758. funcTag = '[object Function]',
  10759. mapTag = '[object Map]',
  10760. numberTag = '[object Number]',
  10761. objectTag = '[object Object]',
  10762. regexpTag = '[object RegExp]',
  10763. setTag = '[object Set]',
  10764. stringTag = '[object String]',
  10765. weakMapTag = '[object WeakMap]';
  10766. var arrayBufferTag = '[object ArrayBuffer]',
  10767. dataViewTag = '[object DataView]',
  10768. float32Tag = '[object Float32Array]',
  10769. float64Tag = '[object Float64Array]',
  10770. int8Tag = '[object Int8Array]',
  10771. int16Tag = '[object Int16Array]',
  10772. int32Tag = '[object Int32Array]',
  10773. uint8Tag = '[object Uint8Array]',
  10774. uint8ClampedTag = '[object Uint8ClampedArray]',
  10775. uint16Tag = '[object Uint16Array]',
  10776. uint32Tag = '[object Uint32Array]';
  10777. /** Used to identify `toStringTag` values of typed arrays. */
  10778. var typedArrayTags = {};
  10779. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10780. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10781. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10782. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10783. typedArrayTags[uint32Tag] = true;
  10784. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10785. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10786. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10787. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10788. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10789. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10790. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10791. typedArrayTags[weakMapTag] = false;
  10792. /**
  10793. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10794. *
  10795. * @private
  10796. * @param {*} value The value to check.
  10797. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10798. */
  10799. function baseIsTypedArray(value) {
  10800. return isObjectLike(value) &&
  10801. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10802. }
  10803. module.exports = baseIsTypedArray;
  10804. /***/ }),
  10805. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10806. /*!****************************************************************!*\
  10807. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10808. \****************************************************************/
  10809. /*! no static exports found */
  10810. /***/ (function(module, exports, __webpack_require__) {
  10811. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10812. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10813. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10814. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10815. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10816. /**
  10817. * The base implementation of `_.iteratee`.
  10818. *
  10819. * @private
  10820. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10821. * @returns {Function} Returns the iteratee.
  10822. */
  10823. function baseIteratee(value) {
  10824. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10825. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10826. if (typeof value == 'function') {
  10827. return value;
  10828. }
  10829. if (value == null) {
  10830. return identity;
  10831. }
  10832. if (typeof value == 'object') {
  10833. return isArray(value)
  10834. ? baseMatchesProperty(value[0], value[1])
  10835. : baseMatches(value);
  10836. }
  10837. return property(value);
  10838. }
  10839. module.exports = baseIteratee;
  10840. /***/ }),
  10841. /***/ "../../node_modules/lodash/_baseKeys.js":
  10842. /*!************************************************************!*\
  10843. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10844. \************************************************************/
  10845. /*! no static exports found */
  10846. /***/ (function(module, exports, __webpack_require__) {
  10847. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10848. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10849. /** Used for built-in method references. */
  10850. var objectProto = Object.prototype;
  10851. /** Used to check objects for own properties. */
  10852. var hasOwnProperty = objectProto.hasOwnProperty;
  10853. /**
  10854. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10855. *
  10856. * @private
  10857. * @param {Object} object The object to query.
  10858. * @returns {Array} Returns the array of property names.
  10859. */
  10860. function baseKeys(object) {
  10861. if (!isPrototype(object)) {
  10862. return nativeKeys(object);
  10863. }
  10864. var result = [];
  10865. for (var key in Object(object)) {
  10866. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10867. result.push(key);
  10868. }
  10869. }
  10870. return result;
  10871. }
  10872. module.exports = baseKeys;
  10873. /***/ }),
  10874. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10875. /*!**************************************************************!*\
  10876. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10877. \**************************************************************/
  10878. /*! no static exports found */
  10879. /***/ (function(module, exports, __webpack_require__) {
  10880. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10881. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10882. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10883. /** Used for built-in method references. */
  10884. var objectProto = Object.prototype;
  10885. /** Used to check objects for own properties. */
  10886. var hasOwnProperty = objectProto.hasOwnProperty;
  10887. /**
  10888. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10889. *
  10890. * @private
  10891. * @param {Object} object The object to query.
  10892. * @returns {Array} Returns the array of property names.
  10893. */
  10894. function baseKeysIn(object) {
  10895. if (!isObject(object)) {
  10896. return nativeKeysIn(object);
  10897. }
  10898. var isProto = isPrototype(object),
  10899. result = [];
  10900. for (var key in object) {
  10901. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10902. result.push(key);
  10903. }
  10904. }
  10905. return result;
  10906. }
  10907. module.exports = baseKeysIn;
  10908. /***/ }),
  10909. /***/ "../../node_modules/lodash/_baseLt.js":
  10910. /*!**********************************************************!*\
  10911. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10912. \**********************************************************/
  10913. /*! no static exports found */
  10914. /***/ (function(module, exports) {
  10915. /**
  10916. * The base implementation of `_.lt` which doesn't coerce arguments.
  10917. *
  10918. * @private
  10919. * @param {*} value The value to compare.
  10920. * @param {*} other The other value to compare.
  10921. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10922. * else `false`.
  10923. */
  10924. function baseLt(value, other) {
  10925. return value < other;
  10926. }
  10927. module.exports = baseLt;
  10928. /***/ }),
  10929. /***/ "../../node_modules/lodash/_baseMap.js":
  10930. /*!***********************************************************!*\
  10931. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10932. \***********************************************************/
  10933. /*! no static exports found */
  10934. /***/ (function(module, exports, __webpack_require__) {
  10935. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10936. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10937. /**
  10938. * The base implementation of `_.map` without support for iteratee shorthands.
  10939. *
  10940. * @private
  10941. * @param {Array|Object} collection The collection to iterate over.
  10942. * @param {Function} iteratee The function invoked per iteration.
  10943. * @returns {Array} Returns the new mapped array.
  10944. */
  10945. function baseMap(collection, iteratee) {
  10946. var index = -1,
  10947. result = isArrayLike(collection) ? Array(collection.length) : [];
  10948. baseEach(collection, function(value, key, collection) {
  10949. result[++index] = iteratee(value, key, collection);
  10950. });
  10951. return result;
  10952. }
  10953. module.exports = baseMap;
  10954. /***/ }),
  10955. /***/ "../../node_modules/lodash/_baseMatches.js":
  10956. /*!***************************************************************!*\
  10957. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10958. \***************************************************************/
  10959. /*! no static exports found */
  10960. /***/ (function(module, exports, __webpack_require__) {
  10961. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10962. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10963. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10964. /**
  10965. * The base implementation of `_.matches` which doesn't clone `source`.
  10966. *
  10967. * @private
  10968. * @param {Object} source The object of property values to match.
  10969. * @returns {Function} Returns the new spec function.
  10970. */
  10971. function baseMatches(source) {
  10972. var matchData = getMatchData(source);
  10973. if (matchData.length == 1 && matchData[0][2]) {
  10974. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  10975. }
  10976. return function(object) {
  10977. return object === source || baseIsMatch(object, source, matchData);
  10978. };
  10979. }
  10980. module.exports = baseMatches;
  10981. /***/ }),
  10982. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  10983. /*!***********************************************************************!*\
  10984. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  10985. \***********************************************************************/
  10986. /*! no static exports found */
  10987. /***/ (function(module, exports, __webpack_require__) {
  10988. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  10989. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  10990. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  10991. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  10992. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  10993. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  10994. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10995. /** Used to compose bitmasks for value comparisons. */
  10996. var COMPARE_PARTIAL_FLAG = 1,
  10997. COMPARE_UNORDERED_FLAG = 2;
  10998. /**
  10999. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  11000. *
  11001. * @private
  11002. * @param {string} path The path of the property to get.
  11003. * @param {*} srcValue The value to match.
  11004. * @returns {Function} Returns the new spec function.
  11005. */
  11006. function baseMatchesProperty(path, srcValue) {
  11007. if (isKey(path) && isStrictComparable(srcValue)) {
  11008. return matchesStrictComparable(toKey(path), srcValue);
  11009. }
  11010. return function(object) {
  11011. var objValue = get(object, path);
  11012. return (objValue === undefined && objValue === srcValue)
  11013. ? hasIn(object, path)
  11014. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  11015. };
  11016. }
  11017. module.exports = baseMatchesProperty;
  11018. /***/ }),
  11019. /***/ "../../node_modules/lodash/_baseMerge.js":
  11020. /*!*************************************************************!*\
  11021. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  11022. \*************************************************************/
  11023. /*! no static exports found */
  11024. /***/ (function(module, exports, __webpack_require__) {
  11025. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11026. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11027. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11028. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  11029. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11030. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  11031. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  11032. /**
  11033. * The base implementation of `_.merge` without support for multiple sources.
  11034. *
  11035. * @private
  11036. * @param {Object} object The destination object.
  11037. * @param {Object} source The source object.
  11038. * @param {number} srcIndex The index of `source`.
  11039. * @param {Function} [customizer] The function to customize merged values.
  11040. * @param {Object} [stack] Tracks traversed source values and their merged
  11041. * counterparts.
  11042. */
  11043. function baseMerge(object, source, srcIndex, customizer, stack) {
  11044. if (object === source) {
  11045. return;
  11046. }
  11047. baseFor(source, function(srcValue, key) {
  11048. stack || (stack = new Stack);
  11049. if (isObject(srcValue)) {
  11050. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  11051. }
  11052. else {
  11053. var newValue = customizer
  11054. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  11055. : undefined;
  11056. if (newValue === undefined) {
  11057. newValue = srcValue;
  11058. }
  11059. assignMergeValue(object, key, newValue);
  11060. }
  11061. }, keysIn);
  11062. }
  11063. module.exports = baseMerge;
  11064. /***/ }),
  11065. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  11066. /*!*****************************************************************!*\
  11067. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  11068. \*****************************************************************/
  11069. /*! no static exports found */
  11070. /***/ (function(module, exports, __webpack_require__) {
  11071. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11072. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11073. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  11074. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11075. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11076. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11077. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11078. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  11079. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11080. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  11081. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11082. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  11083. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  11084. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  11085. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  11086. /**
  11087. * A specialized version of `baseMerge` for arrays and objects which performs
  11088. * deep merges and tracks traversed objects enabling objects with circular
  11089. * references to be merged.
  11090. *
  11091. * @private
  11092. * @param {Object} object The destination object.
  11093. * @param {Object} source The source object.
  11094. * @param {string} key The key of the value to merge.
  11095. * @param {number} srcIndex The index of `source`.
  11096. * @param {Function} mergeFunc The function to merge values.
  11097. * @param {Function} [customizer] The function to customize assigned values.
  11098. * @param {Object} [stack] Tracks traversed source values and their merged
  11099. * counterparts.
  11100. */
  11101. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  11102. var objValue = safeGet(object, key),
  11103. srcValue = safeGet(source, key),
  11104. stacked = stack.get(srcValue);
  11105. if (stacked) {
  11106. assignMergeValue(object, key, stacked);
  11107. return;
  11108. }
  11109. var newValue = customizer
  11110. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  11111. : undefined;
  11112. var isCommon = newValue === undefined;
  11113. if (isCommon) {
  11114. var isArr = isArray(srcValue),
  11115. isBuff = !isArr && isBuffer(srcValue),
  11116. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  11117. newValue = srcValue;
  11118. if (isArr || isBuff || isTyped) {
  11119. if (isArray(objValue)) {
  11120. newValue = objValue;
  11121. }
  11122. else if (isArrayLikeObject(objValue)) {
  11123. newValue = copyArray(objValue);
  11124. }
  11125. else if (isBuff) {
  11126. isCommon = false;
  11127. newValue = cloneBuffer(srcValue, true);
  11128. }
  11129. else if (isTyped) {
  11130. isCommon = false;
  11131. newValue = cloneTypedArray(srcValue, true);
  11132. }
  11133. else {
  11134. newValue = [];
  11135. }
  11136. }
  11137. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  11138. newValue = objValue;
  11139. if (isArguments(objValue)) {
  11140. newValue = toPlainObject(objValue);
  11141. }
  11142. else if (!isObject(objValue) || isFunction(objValue)) {
  11143. newValue = initCloneObject(srcValue);
  11144. }
  11145. }
  11146. else {
  11147. isCommon = false;
  11148. }
  11149. }
  11150. if (isCommon) {
  11151. // Recursively merge objects and arrays (susceptible to call stack limits).
  11152. stack.set(srcValue, newValue);
  11153. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  11154. stack['delete'](srcValue);
  11155. }
  11156. assignMergeValue(object, key, newValue);
  11157. }
  11158. module.exports = baseMergeDeep;
  11159. /***/ }),
  11160. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  11161. /*!***************************************************************!*\
  11162. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  11163. \***************************************************************/
  11164. /*! no static exports found */
  11165. /***/ (function(module, exports, __webpack_require__) {
  11166. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11167. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11168. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  11169. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  11170. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  11171. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  11172. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11173. /**
  11174. * The base implementation of `_.orderBy` without param guards.
  11175. *
  11176. * @private
  11177. * @param {Array|Object} collection The collection to iterate over.
  11178. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  11179. * @param {string[]} orders The sort orders of `iteratees`.
  11180. * @returns {Array} Returns the new sorted array.
  11181. */
  11182. function baseOrderBy(collection, iteratees, orders) {
  11183. var index = -1;
  11184. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  11185. var result = baseMap(collection, function(value, key, collection) {
  11186. var criteria = arrayMap(iteratees, function(iteratee) {
  11187. return iteratee(value);
  11188. });
  11189. return { 'criteria': criteria, 'index': ++index, 'value': value };
  11190. });
  11191. return baseSortBy(result, function(object, other) {
  11192. return compareMultiple(object, other, orders);
  11193. });
  11194. }
  11195. module.exports = baseOrderBy;
  11196. /***/ }),
  11197. /***/ "../../node_modules/lodash/_basePick.js":
  11198. /*!************************************************************!*\
  11199. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  11200. \************************************************************/
  11201. /*! no static exports found */
  11202. /***/ (function(module, exports, __webpack_require__) {
  11203. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  11204. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  11205. /**
  11206. * The base implementation of `_.pick` without support for individual
  11207. * property identifiers.
  11208. *
  11209. * @private
  11210. * @param {Object} object The source object.
  11211. * @param {string[]} paths The property paths to pick.
  11212. * @returns {Object} Returns the new object.
  11213. */
  11214. function basePick(object, paths) {
  11215. return basePickBy(object, paths, function(value, path) {
  11216. return hasIn(object, path);
  11217. });
  11218. }
  11219. module.exports = basePick;
  11220. /***/ }),
  11221. /***/ "../../node_modules/lodash/_basePickBy.js":
  11222. /*!**************************************************************!*\
  11223. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  11224. \**************************************************************/
  11225. /*! no static exports found */
  11226. /***/ (function(module, exports, __webpack_require__) {
  11227. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  11228. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  11229. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  11230. /**
  11231. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  11232. *
  11233. * @private
  11234. * @param {Object} object The source object.
  11235. * @param {string[]} paths The property paths to pick.
  11236. * @param {Function} predicate The function invoked per property.
  11237. * @returns {Object} Returns the new object.
  11238. */
  11239. function basePickBy(object, paths, predicate) {
  11240. var index = -1,
  11241. length = paths.length,
  11242. result = {};
  11243. while (++index < length) {
  11244. var path = paths[index],
  11245. value = baseGet(object, path);
  11246. if (predicate(value, path)) {
  11247. baseSet(result, castPath(path, object), value);
  11248. }
  11249. }
  11250. return result;
  11251. }
  11252. module.exports = basePickBy;
  11253. /***/ }),
  11254. /***/ "../../node_modules/lodash/_baseProperty.js":
  11255. /*!****************************************************************!*\
  11256. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  11257. \****************************************************************/
  11258. /*! no static exports found */
  11259. /***/ (function(module, exports) {
  11260. /**
  11261. * The base implementation of `_.property` without support for deep paths.
  11262. *
  11263. * @private
  11264. * @param {string} key The key of the property to get.
  11265. * @returns {Function} Returns the new accessor function.
  11266. */
  11267. function baseProperty(key) {
  11268. return function(object) {
  11269. return object == null ? undefined : object[key];
  11270. };
  11271. }
  11272. module.exports = baseProperty;
  11273. /***/ }),
  11274. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  11275. /*!********************************************************************!*\
  11276. !*** C:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  11277. \********************************************************************/
  11278. /*! no static exports found */
  11279. /***/ (function(module, exports, __webpack_require__) {
  11280. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  11281. /**
  11282. * A specialized version of `baseProperty` which supports deep paths.
  11283. *
  11284. * @private
  11285. * @param {Array|string} path The path of the property to get.
  11286. * @returns {Function} Returns the new accessor function.
  11287. */
  11288. function basePropertyDeep(path) {
  11289. return function(object) {
  11290. return baseGet(object, path);
  11291. };
  11292. }
  11293. module.exports = basePropertyDeep;
  11294. /***/ }),
  11295. /***/ "../../node_modules/lodash/_baseRange.js":
  11296. /*!*************************************************************!*\
  11297. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  11298. \*************************************************************/
  11299. /*! no static exports found */
  11300. /***/ (function(module, exports) {
  11301. /* Built-in method references for those with the same name as other `lodash` methods. */
  11302. var nativeCeil = Math.ceil,
  11303. nativeMax = Math.max;
  11304. /**
  11305. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  11306. * coerce arguments.
  11307. *
  11308. * @private
  11309. * @param {number} start The start of the range.
  11310. * @param {number} end The end of the range.
  11311. * @param {number} step The value to increment or decrement by.
  11312. * @param {boolean} [fromRight] Specify iterating from right to left.
  11313. * @returns {Array} Returns the range of numbers.
  11314. */
  11315. function baseRange(start, end, step, fromRight) {
  11316. var index = -1,
  11317. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  11318. result = Array(length);
  11319. while (length--) {
  11320. result[fromRight ? length : ++index] = start;
  11321. start += step;
  11322. }
  11323. return result;
  11324. }
  11325. module.exports = baseRange;
  11326. /***/ }),
  11327. /***/ "../../node_modules/lodash/_baseReduce.js":
  11328. /*!**************************************************************!*\
  11329. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  11330. \**************************************************************/
  11331. /*! no static exports found */
  11332. /***/ (function(module, exports) {
  11333. /**
  11334. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  11335. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  11336. *
  11337. * @private
  11338. * @param {Array|Object} collection The collection to iterate over.
  11339. * @param {Function} iteratee The function invoked per iteration.
  11340. * @param {*} accumulator The initial value.
  11341. * @param {boolean} initAccum Specify using the first or last element of
  11342. * `collection` as the initial value.
  11343. * @param {Function} eachFunc The function to iterate over `collection`.
  11344. * @returns {*} Returns the accumulated value.
  11345. */
  11346. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  11347. eachFunc(collection, function(value, index, collection) {
  11348. accumulator = initAccum
  11349. ? (initAccum = false, value)
  11350. : iteratee(accumulator, value, index, collection);
  11351. });
  11352. return accumulator;
  11353. }
  11354. module.exports = baseReduce;
  11355. /***/ }),
  11356. /***/ "../../node_modules/lodash/_baseRest.js":
  11357. /*!************************************************************!*\
  11358. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  11359. \************************************************************/
  11360. /*! no static exports found */
  11361. /***/ (function(module, exports, __webpack_require__) {
  11362. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  11363. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  11364. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  11365. /**
  11366. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  11367. *
  11368. * @private
  11369. * @param {Function} func The function to apply a rest parameter to.
  11370. * @param {number} [start=func.length-1] The start position of the rest parameter.
  11371. * @returns {Function} Returns the new function.
  11372. */
  11373. function baseRest(func, start) {
  11374. return setToString(overRest(func, start, identity), func + '');
  11375. }
  11376. module.exports = baseRest;
  11377. /***/ }),
  11378. /***/ "../../node_modules/lodash/_baseSet.js":
  11379. /*!***********************************************************!*\
  11380. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  11381. \***********************************************************/
  11382. /*! no static exports found */
  11383. /***/ (function(module, exports, __webpack_require__) {
  11384. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11385. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11386. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11387. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11388. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11389. /**
  11390. * The base implementation of `_.set`.
  11391. *
  11392. * @private
  11393. * @param {Object} object The object to modify.
  11394. * @param {Array|string} path The path of the property to set.
  11395. * @param {*} value The value to set.
  11396. * @param {Function} [customizer] The function to customize path creation.
  11397. * @returns {Object} Returns `object`.
  11398. */
  11399. function baseSet(object, path, value, customizer) {
  11400. if (!isObject(object)) {
  11401. return object;
  11402. }
  11403. path = castPath(path, object);
  11404. var index = -1,
  11405. length = path.length,
  11406. lastIndex = length - 1,
  11407. nested = object;
  11408. while (nested != null && ++index < length) {
  11409. var key = toKey(path[index]),
  11410. newValue = value;
  11411. if (index != lastIndex) {
  11412. var objValue = nested[key];
  11413. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11414. if (newValue === undefined) {
  11415. newValue = isObject(objValue)
  11416. ? objValue
  11417. : (isIndex(path[index + 1]) ? [] : {});
  11418. }
  11419. }
  11420. assignValue(nested, key, newValue);
  11421. nested = nested[key];
  11422. }
  11423. return object;
  11424. }
  11425. module.exports = baseSet;
  11426. /***/ }),
  11427. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11428. /*!*******************************************************************!*\
  11429. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11430. \*******************************************************************/
  11431. /*! no static exports found */
  11432. /***/ (function(module, exports, __webpack_require__) {
  11433. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11434. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11435. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11436. /**
  11437. * The base implementation of `setToString` without support for hot loop shorting.
  11438. *
  11439. * @private
  11440. * @param {Function} func The function to modify.
  11441. * @param {Function} string The `toString` result.
  11442. * @returns {Function} Returns `func`.
  11443. */
  11444. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11445. return defineProperty(func, 'toString', {
  11446. 'configurable': true,
  11447. 'enumerable': false,
  11448. 'value': constant(string),
  11449. 'writable': true
  11450. });
  11451. };
  11452. module.exports = baseSetToString;
  11453. /***/ }),
  11454. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11455. /*!**************************************************************!*\
  11456. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11457. \**************************************************************/
  11458. /*! no static exports found */
  11459. /***/ (function(module, exports) {
  11460. /**
  11461. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11462. * sort order of `array` and replaces criteria objects with their corresponding
  11463. * values.
  11464. *
  11465. * @private
  11466. * @param {Array} array The array to sort.
  11467. * @param {Function} comparer The function to define sort order.
  11468. * @returns {Array} Returns `array`.
  11469. */
  11470. function baseSortBy(array, comparer) {
  11471. var length = array.length;
  11472. array.sort(comparer);
  11473. while (length--) {
  11474. array[length] = array[length].value;
  11475. }
  11476. return array;
  11477. }
  11478. module.exports = baseSortBy;
  11479. /***/ }),
  11480. /***/ "../../node_modules/lodash/_baseTimes.js":
  11481. /*!*************************************************************!*\
  11482. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11483. \*************************************************************/
  11484. /*! no static exports found */
  11485. /***/ (function(module, exports) {
  11486. /**
  11487. * The base implementation of `_.times` without support for iteratee shorthands
  11488. * or max array length checks.
  11489. *
  11490. * @private
  11491. * @param {number} n The number of times to invoke `iteratee`.
  11492. * @param {Function} iteratee The function invoked per iteration.
  11493. * @returns {Array} Returns the array of results.
  11494. */
  11495. function baseTimes(n, iteratee) {
  11496. var index = -1,
  11497. result = Array(n);
  11498. while (++index < n) {
  11499. result[index] = iteratee(index);
  11500. }
  11501. return result;
  11502. }
  11503. module.exports = baseTimes;
  11504. /***/ }),
  11505. /***/ "../../node_modules/lodash/_baseToString.js":
  11506. /*!****************************************************************!*\
  11507. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11508. \****************************************************************/
  11509. /*! no static exports found */
  11510. /***/ (function(module, exports, __webpack_require__) {
  11511. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11512. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11513. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11514. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11515. /** Used as references for various `Number` constants. */
  11516. var INFINITY = 1 / 0;
  11517. /** Used to convert symbols to primitives and strings. */
  11518. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11519. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11520. /**
  11521. * The base implementation of `_.toString` which doesn't convert nullish
  11522. * values to empty strings.
  11523. *
  11524. * @private
  11525. * @param {*} value The value to process.
  11526. * @returns {string} Returns the string.
  11527. */
  11528. function baseToString(value) {
  11529. // Exit early for strings to avoid a performance hit in some environments.
  11530. if (typeof value == 'string') {
  11531. return value;
  11532. }
  11533. if (isArray(value)) {
  11534. // Recursively convert values (susceptible to call stack limits).
  11535. return arrayMap(value, baseToString) + '';
  11536. }
  11537. if (isSymbol(value)) {
  11538. return symbolToString ? symbolToString.call(value) : '';
  11539. }
  11540. var result = (value + '');
  11541. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11542. }
  11543. module.exports = baseToString;
  11544. /***/ }),
  11545. /***/ "../../node_modules/lodash/_baseUnary.js":
  11546. /*!*************************************************************!*\
  11547. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11548. \*************************************************************/
  11549. /*! no static exports found */
  11550. /***/ (function(module, exports) {
  11551. /**
  11552. * The base implementation of `_.unary` without support for storing metadata.
  11553. *
  11554. * @private
  11555. * @param {Function} func The function to cap arguments for.
  11556. * @returns {Function} Returns the new capped function.
  11557. */
  11558. function baseUnary(func) {
  11559. return function(value) {
  11560. return func(value);
  11561. };
  11562. }
  11563. module.exports = baseUnary;
  11564. /***/ }),
  11565. /***/ "../../node_modules/lodash/_baseUniq.js":
  11566. /*!************************************************************!*\
  11567. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11568. \************************************************************/
  11569. /*! no static exports found */
  11570. /***/ (function(module, exports, __webpack_require__) {
  11571. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11572. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11573. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11574. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11575. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11576. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11577. /** Used as the size to enable large array optimizations. */
  11578. var LARGE_ARRAY_SIZE = 200;
  11579. /**
  11580. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11581. *
  11582. * @private
  11583. * @param {Array} array The array to inspect.
  11584. * @param {Function} [iteratee] The iteratee invoked per element.
  11585. * @param {Function} [comparator] The comparator invoked per element.
  11586. * @returns {Array} Returns the new duplicate free array.
  11587. */
  11588. function baseUniq(array, iteratee, comparator) {
  11589. var index = -1,
  11590. includes = arrayIncludes,
  11591. length = array.length,
  11592. isCommon = true,
  11593. result = [],
  11594. seen = result;
  11595. if (comparator) {
  11596. isCommon = false;
  11597. includes = arrayIncludesWith;
  11598. }
  11599. else if (length >= LARGE_ARRAY_SIZE) {
  11600. var set = iteratee ? null : createSet(array);
  11601. if (set) {
  11602. return setToArray(set);
  11603. }
  11604. isCommon = false;
  11605. includes = cacheHas;
  11606. seen = new SetCache;
  11607. }
  11608. else {
  11609. seen = iteratee ? [] : result;
  11610. }
  11611. outer:
  11612. while (++index < length) {
  11613. var value = array[index],
  11614. computed = iteratee ? iteratee(value) : value;
  11615. value = (comparator || value !== 0) ? value : 0;
  11616. if (isCommon && computed === computed) {
  11617. var seenIndex = seen.length;
  11618. while (seenIndex--) {
  11619. if (seen[seenIndex] === computed) {
  11620. continue outer;
  11621. }
  11622. }
  11623. if (iteratee) {
  11624. seen.push(computed);
  11625. }
  11626. result.push(value);
  11627. }
  11628. else if (!includes(seen, computed, comparator)) {
  11629. if (seen !== result) {
  11630. seen.push(computed);
  11631. }
  11632. result.push(value);
  11633. }
  11634. }
  11635. return result;
  11636. }
  11637. module.exports = baseUniq;
  11638. /***/ }),
  11639. /***/ "../../node_modules/lodash/_baseValues.js":
  11640. /*!**************************************************************!*\
  11641. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11642. \**************************************************************/
  11643. /*! no static exports found */
  11644. /***/ (function(module, exports, __webpack_require__) {
  11645. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11646. /**
  11647. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11648. * array of `object` property values corresponding to the property names
  11649. * of `props`.
  11650. *
  11651. * @private
  11652. * @param {Object} object The object to query.
  11653. * @param {Array} props The property names to get values for.
  11654. * @returns {Object} Returns the array of property values.
  11655. */
  11656. function baseValues(object, props) {
  11657. return arrayMap(props, function(key) {
  11658. return object[key];
  11659. });
  11660. }
  11661. module.exports = baseValues;
  11662. /***/ }),
  11663. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11664. /*!*****************************************************************!*\
  11665. !*** C:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11666. \*****************************************************************/
  11667. /*! no static exports found */
  11668. /***/ (function(module, exports) {
  11669. /**
  11670. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11671. *
  11672. * @private
  11673. * @param {Array} props The property identifiers.
  11674. * @param {Array} values The property values.
  11675. * @param {Function} assignFunc The function to assign values.
  11676. * @returns {Object} Returns the new object.
  11677. */
  11678. function baseZipObject(props, values, assignFunc) {
  11679. var index = -1,
  11680. length = props.length,
  11681. valsLength = values.length,
  11682. result = {};
  11683. while (++index < length) {
  11684. var value = index < valsLength ? values[index] : undefined;
  11685. assignFunc(result, props[index], value);
  11686. }
  11687. return result;
  11688. }
  11689. module.exports = baseZipObject;
  11690. /***/ }),
  11691. /***/ "../../node_modules/lodash/_cacheHas.js":
  11692. /*!************************************************************!*\
  11693. !*** C:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11694. \************************************************************/
  11695. /*! no static exports found */
  11696. /***/ (function(module, exports) {
  11697. /**
  11698. * Checks if a `cache` value for `key` exists.
  11699. *
  11700. * @private
  11701. * @param {Object} cache The cache to query.
  11702. * @param {string} key The key of the entry to check.
  11703. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11704. */
  11705. function cacheHas(cache, key) {
  11706. return cache.has(key);
  11707. }
  11708. module.exports = cacheHas;
  11709. /***/ }),
  11710. /***/ "../../node_modules/lodash/_castFunction.js":
  11711. /*!****************************************************************!*\
  11712. !*** C:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11713. \****************************************************************/
  11714. /*! no static exports found */
  11715. /***/ (function(module, exports, __webpack_require__) {
  11716. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11717. /**
  11718. * Casts `value` to `identity` if it's not a function.
  11719. *
  11720. * @private
  11721. * @param {*} value The value to inspect.
  11722. * @returns {Function} Returns cast function.
  11723. */
  11724. function castFunction(value) {
  11725. return typeof value == 'function' ? value : identity;
  11726. }
  11727. module.exports = castFunction;
  11728. /***/ }),
  11729. /***/ "../../node_modules/lodash/_castPath.js":
  11730. /*!************************************************************!*\
  11731. !*** C:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  11732. \************************************************************/
  11733. /*! no static exports found */
  11734. /***/ (function(module, exports, __webpack_require__) {
  11735. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11736. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11737. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11738. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11739. /**
  11740. * Casts `value` to a path array if it's not one.
  11741. *
  11742. * @private
  11743. * @param {*} value The value to inspect.
  11744. * @param {Object} [object] The object to query keys on.
  11745. * @returns {Array} Returns the cast property path array.
  11746. */
  11747. function castPath(value, object) {
  11748. if (isArray(value)) {
  11749. return value;
  11750. }
  11751. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11752. }
  11753. module.exports = castPath;
  11754. /***/ }),
  11755. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11756. /*!********************************************************************!*\
  11757. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11758. \********************************************************************/
  11759. /*! no static exports found */
  11760. /***/ (function(module, exports, __webpack_require__) {
  11761. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11762. /**
  11763. * Creates a clone of `arrayBuffer`.
  11764. *
  11765. * @private
  11766. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11767. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11768. */
  11769. function cloneArrayBuffer(arrayBuffer) {
  11770. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11771. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11772. return result;
  11773. }
  11774. module.exports = cloneArrayBuffer;
  11775. /***/ }),
  11776. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11777. /*!***************************************************************!*\
  11778. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11779. \***************************************************************/
  11780. /*! no static exports found */
  11781. /***/ (function(module, exports, __webpack_require__) {
  11782. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11783. /** Detect free variable `exports`. */
  11784. var freeExports = true && exports && !exports.nodeType && exports;
  11785. /** Detect free variable `module`. */
  11786. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11787. /** Detect the popular CommonJS extension `module.exports`. */
  11788. var moduleExports = freeModule && freeModule.exports === freeExports;
  11789. /** Built-in value references. */
  11790. var Buffer = moduleExports ? root.Buffer : undefined,
  11791. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11792. /**
  11793. * Creates a clone of `buffer`.
  11794. *
  11795. * @private
  11796. * @param {Buffer} buffer The buffer to clone.
  11797. * @param {boolean} [isDeep] Specify a deep clone.
  11798. * @returns {Buffer} Returns the cloned buffer.
  11799. */
  11800. function cloneBuffer(buffer, isDeep) {
  11801. if (isDeep) {
  11802. return buffer.slice();
  11803. }
  11804. var length = buffer.length,
  11805. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11806. buffer.copy(result);
  11807. return result;
  11808. }
  11809. module.exports = cloneBuffer;
  11810. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11811. /***/ }),
  11812. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11813. /*!*****************************************************************!*\
  11814. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11815. \*****************************************************************/
  11816. /*! no static exports found */
  11817. /***/ (function(module, exports, __webpack_require__) {
  11818. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11819. /**
  11820. * Creates a clone of `dataView`.
  11821. *
  11822. * @private
  11823. * @param {Object} dataView The data view to clone.
  11824. * @param {boolean} [isDeep] Specify a deep clone.
  11825. * @returns {Object} Returns the cloned data view.
  11826. */
  11827. function cloneDataView(dataView, isDeep) {
  11828. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11829. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11830. }
  11831. module.exports = cloneDataView;
  11832. /***/ }),
  11833. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11834. /*!***************************************************************!*\
  11835. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11836. \***************************************************************/
  11837. /*! no static exports found */
  11838. /***/ (function(module, exports) {
  11839. /** Used to match `RegExp` flags from their coerced string values. */
  11840. var reFlags = /\w*$/;
  11841. /**
  11842. * Creates a clone of `regexp`.
  11843. *
  11844. * @private
  11845. * @param {Object} regexp The regexp to clone.
  11846. * @returns {Object} Returns the cloned regexp.
  11847. */
  11848. function cloneRegExp(regexp) {
  11849. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11850. result.lastIndex = regexp.lastIndex;
  11851. return result;
  11852. }
  11853. module.exports = cloneRegExp;
  11854. /***/ }),
  11855. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11856. /*!***************************************************************!*\
  11857. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11858. \***************************************************************/
  11859. /*! no static exports found */
  11860. /***/ (function(module, exports, __webpack_require__) {
  11861. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11862. /** Used to convert symbols to primitives and strings. */
  11863. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11864. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11865. /**
  11866. * Creates a clone of the `symbol` object.
  11867. *
  11868. * @private
  11869. * @param {Object} symbol The symbol object to clone.
  11870. * @returns {Object} Returns the cloned symbol object.
  11871. */
  11872. function cloneSymbol(symbol) {
  11873. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11874. }
  11875. module.exports = cloneSymbol;
  11876. /***/ }),
  11877. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11878. /*!*******************************************************************!*\
  11879. !*** C:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11880. \*******************************************************************/
  11881. /*! no static exports found */
  11882. /***/ (function(module, exports, __webpack_require__) {
  11883. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11884. /**
  11885. * Creates a clone of `typedArray`.
  11886. *
  11887. * @private
  11888. * @param {Object} typedArray The typed array to clone.
  11889. * @param {boolean} [isDeep] Specify a deep clone.
  11890. * @returns {Object} Returns the cloned typed array.
  11891. */
  11892. function cloneTypedArray(typedArray, isDeep) {
  11893. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11894. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11895. }
  11896. module.exports = cloneTypedArray;
  11897. /***/ }),
  11898. /***/ "../../node_modules/lodash/_compareAscending.js":
  11899. /*!********************************************************************!*\
  11900. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11901. \********************************************************************/
  11902. /*! no static exports found */
  11903. /***/ (function(module, exports, __webpack_require__) {
  11904. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11905. /**
  11906. * Compares values to sort them in ascending order.
  11907. *
  11908. * @private
  11909. * @param {*} value The value to compare.
  11910. * @param {*} other The other value to compare.
  11911. * @returns {number} Returns the sort order indicator for `value`.
  11912. */
  11913. function compareAscending(value, other) {
  11914. if (value !== other) {
  11915. var valIsDefined = value !== undefined,
  11916. valIsNull = value === null,
  11917. valIsReflexive = value === value,
  11918. valIsSymbol = isSymbol(value);
  11919. var othIsDefined = other !== undefined,
  11920. othIsNull = other === null,
  11921. othIsReflexive = other === other,
  11922. othIsSymbol = isSymbol(other);
  11923. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11924. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11925. (valIsNull && othIsDefined && othIsReflexive) ||
  11926. (!valIsDefined && othIsReflexive) ||
  11927. !valIsReflexive) {
  11928. return 1;
  11929. }
  11930. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11931. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11932. (othIsNull && valIsDefined && valIsReflexive) ||
  11933. (!othIsDefined && valIsReflexive) ||
  11934. !othIsReflexive) {
  11935. return -1;
  11936. }
  11937. }
  11938. return 0;
  11939. }
  11940. module.exports = compareAscending;
  11941. /***/ }),
  11942. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11943. /*!*******************************************************************!*\
  11944. !*** C:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11945. \*******************************************************************/
  11946. /*! no static exports found */
  11947. /***/ (function(module, exports, __webpack_require__) {
  11948. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11949. /**
  11950. * Used by `_.orderBy` to compare multiple properties of a value to another
  11951. * and stable sort them.
  11952. *
  11953. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11954. * specify an order of "desc" for descending or "asc" for ascending sort order
  11955. * of corresponding values.
  11956. *
  11957. * @private
  11958. * @param {Object} object The object to compare.
  11959. * @param {Object} other The other object to compare.
  11960. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11961. * @returns {number} Returns the sort order indicator for `object`.
  11962. */
  11963. function compareMultiple(object, other, orders) {
  11964. var index = -1,
  11965. objCriteria = object.criteria,
  11966. othCriteria = other.criteria,
  11967. length = objCriteria.length,
  11968. ordersLength = orders.length;
  11969. while (++index < length) {
  11970. var result = compareAscending(objCriteria[index], othCriteria[index]);
  11971. if (result) {
  11972. if (index >= ordersLength) {
  11973. return result;
  11974. }
  11975. var order = orders[index];
  11976. return result * (order == 'desc' ? -1 : 1);
  11977. }
  11978. }
  11979. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  11980. // that causes it, under certain circumstances, to provide the same value for
  11981. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  11982. // for more details.
  11983. //
  11984. // This also ensures a stable sort in V8 and other engines.
  11985. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  11986. return object.index - other.index;
  11987. }
  11988. module.exports = compareMultiple;
  11989. /***/ }),
  11990. /***/ "../../node_modules/lodash/_copyArray.js":
  11991. /*!*************************************************************!*\
  11992. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  11993. \*************************************************************/
  11994. /*! no static exports found */
  11995. /***/ (function(module, exports) {
  11996. /**
  11997. * Copies the values of `source` to `array`.
  11998. *
  11999. * @private
  12000. * @param {Array} source The array to copy values from.
  12001. * @param {Array} [array=[]] The array to copy values to.
  12002. * @returns {Array} Returns `array`.
  12003. */
  12004. function copyArray(source, array) {
  12005. var index = -1,
  12006. length = source.length;
  12007. array || (array = Array(length));
  12008. while (++index < length) {
  12009. array[index] = source[index];
  12010. }
  12011. return array;
  12012. }
  12013. module.exports = copyArray;
  12014. /***/ }),
  12015. /***/ "../../node_modules/lodash/_copyObject.js":
  12016. /*!**************************************************************!*\
  12017. !*** C:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  12018. \**************************************************************/
  12019. /*! no static exports found */
  12020. /***/ (function(module, exports, __webpack_require__) {
  12021. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  12022. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  12023. /**
  12024. * Copies properties of `source` to `object`.
  12025. *
  12026. * @private
  12027. * @param {Object} source The object to copy properties from.
  12028. * @param {Array} props The property identifiers to copy.
  12029. * @param {Object} [object={}] The object to copy properties to.
  12030. * @param {Function} [customizer] The function to customize copied values.
  12031. * @returns {Object} Returns `object`.
  12032. */
  12033. function copyObject(source, props, object, customizer) {
  12034. var isNew = !object;
  12035. object || (object = {});
  12036. var index = -1,
  12037. length = props.length;
  12038. while (++index < length) {
  12039. var key = props[index];
  12040. var newValue = customizer
  12041. ? customizer(object[key], source[key], key, object, source)
  12042. : undefined;
  12043. if (newValue === undefined) {
  12044. newValue = source[key];
  12045. }
  12046. if (isNew) {
  12047. baseAssignValue(object, key, newValue);
  12048. } else {
  12049. assignValue(object, key, newValue);
  12050. }
  12051. }
  12052. return object;
  12053. }
  12054. module.exports = copyObject;
  12055. /***/ }),
  12056. /***/ "../../node_modules/lodash/_copySymbols.js":
  12057. /*!***************************************************************!*\
  12058. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  12059. \***************************************************************/
  12060. /*! no static exports found */
  12061. /***/ (function(module, exports, __webpack_require__) {
  12062. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12063. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  12064. /**
  12065. * Copies own symbols of `source` to `object`.
  12066. *
  12067. * @private
  12068. * @param {Object} source The object to copy symbols from.
  12069. * @param {Object} [object={}] The object to copy symbols to.
  12070. * @returns {Object} Returns `object`.
  12071. */
  12072. function copySymbols(source, object) {
  12073. return copyObject(source, getSymbols(source), object);
  12074. }
  12075. module.exports = copySymbols;
  12076. /***/ }),
  12077. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  12078. /*!*****************************************************************!*\
  12079. !*** C:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  12080. \*****************************************************************/
  12081. /*! no static exports found */
  12082. /***/ (function(module, exports, __webpack_require__) {
  12083. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12084. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  12085. /**
  12086. * Copies own and inherited symbols of `source` to `object`.
  12087. *
  12088. * @private
  12089. * @param {Object} source The object to copy symbols from.
  12090. * @param {Object} [object={}] The object to copy symbols to.
  12091. * @returns {Object} Returns `object`.
  12092. */
  12093. function copySymbolsIn(source, object) {
  12094. return copyObject(source, getSymbolsIn(source), object);
  12095. }
  12096. module.exports = copySymbolsIn;
  12097. /***/ }),
  12098. /***/ "../../node_modules/lodash/_coreJsData.js":
  12099. /*!**************************************************************!*\
  12100. !*** C:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  12101. \**************************************************************/
  12102. /*! no static exports found */
  12103. /***/ (function(module, exports, __webpack_require__) {
  12104. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12105. /** Used to detect overreaching core-js shims. */
  12106. var coreJsData = root['__core-js_shared__'];
  12107. module.exports = coreJsData;
  12108. /***/ }),
  12109. /***/ "../../node_modules/lodash/_createAssigner.js":
  12110. /*!******************************************************************!*\
  12111. !*** C:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  12112. \******************************************************************/
  12113. /*! no static exports found */
  12114. /***/ (function(module, exports, __webpack_require__) {
  12115. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  12116. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  12117. /**
  12118. * Creates a function like `_.assign`.
  12119. *
  12120. * @private
  12121. * @param {Function} assigner The function to assign values.
  12122. * @returns {Function} Returns the new assigner function.
  12123. */
  12124. function createAssigner(assigner) {
  12125. return baseRest(function(object, sources) {
  12126. var index = -1,
  12127. length = sources.length,
  12128. customizer = length > 1 ? sources[length - 1] : undefined,
  12129. guard = length > 2 ? sources[2] : undefined;
  12130. customizer = (assigner.length > 3 && typeof customizer == 'function')
  12131. ? (length--, customizer)
  12132. : undefined;
  12133. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  12134. customizer = length < 3 ? undefined : customizer;
  12135. length = 1;
  12136. }
  12137. object = Object(object);
  12138. while (++index < length) {
  12139. var source = sources[index];
  12140. if (source) {
  12141. assigner(object, source, index, customizer);
  12142. }
  12143. }
  12144. return object;
  12145. });
  12146. }
  12147. module.exports = createAssigner;
  12148. /***/ }),
  12149. /***/ "../../node_modules/lodash/_createBaseEach.js":
  12150. /*!******************************************************************!*\
  12151. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  12152. \******************************************************************/
  12153. /*! no static exports found */
  12154. /***/ (function(module, exports, __webpack_require__) {
  12155. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12156. /**
  12157. * Creates a `baseEach` or `baseEachRight` function.
  12158. *
  12159. * @private
  12160. * @param {Function} eachFunc The function to iterate over a collection.
  12161. * @param {boolean} [fromRight] Specify iterating from right to left.
  12162. * @returns {Function} Returns the new base function.
  12163. */
  12164. function createBaseEach(eachFunc, fromRight) {
  12165. return function(collection, iteratee) {
  12166. if (collection == null) {
  12167. return collection;
  12168. }
  12169. if (!isArrayLike(collection)) {
  12170. return eachFunc(collection, iteratee);
  12171. }
  12172. var length = collection.length,
  12173. index = fromRight ? length : -1,
  12174. iterable = Object(collection);
  12175. while ((fromRight ? index-- : ++index < length)) {
  12176. if (iteratee(iterable[index], index, iterable) === false) {
  12177. break;
  12178. }
  12179. }
  12180. return collection;
  12181. };
  12182. }
  12183. module.exports = createBaseEach;
  12184. /***/ }),
  12185. /***/ "../../node_modules/lodash/_createBaseFor.js":
  12186. /*!*****************************************************************!*\
  12187. !*** C:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  12188. \*****************************************************************/
  12189. /*! no static exports found */
  12190. /***/ (function(module, exports) {
  12191. /**
  12192. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  12193. *
  12194. * @private
  12195. * @param {boolean} [fromRight] Specify iterating from right to left.
  12196. * @returns {Function} Returns the new base function.
  12197. */
  12198. function createBaseFor(fromRight) {
  12199. return function(object, iteratee, keysFunc) {
  12200. var index = -1,
  12201. iterable = Object(object),
  12202. props = keysFunc(object),
  12203. length = props.length;
  12204. while (length--) {
  12205. var key = props[fromRight ? length : ++index];
  12206. if (iteratee(iterable[key], key, iterable) === false) {
  12207. break;
  12208. }
  12209. }
  12210. return object;
  12211. };
  12212. }
  12213. module.exports = createBaseFor;
  12214. /***/ }),
  12215. /***/ "../../node_modules/lodash/_createFind.js":
  12216. /*!**************************************************************!*\
  12217. !*** C:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  12218. \**************************************************************/
  12219. /*! no static exports found */
  12220. /***/ (function(module, exports, __webpack_require__) {
  12221. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  12222. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12223. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12224. /**
  12225. * Creates a `_.find` or `_.findLast` function.
  12226. *
  12227. * @private
  12228. * @param {Function} findIndexFunc The function to find the collection index.
  12229. * @returns {Function} Returns the new find function.
  12230. */
  12231. function createFind(findIndexFunc) {
  12232. return function(collection, predicate, fromIndex) {
  12233. var iterable = Object(collection);
  12234. if (!isArrayLike(collection)) {
  12235. var iteratee = baseIteratee(predicate, 3);
  12236. collection = keys(collection);
  12237. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  12238. }
  12239. var index = findIndexFunc(collection, predicate, fromIndex);
  12240. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  12241. };
  12242. }
  12243. module.exports = createFind;
  12244. /***/ }),
  12245. /***/ "../../node_modules/lodash/_createRange.js":
  12246. /*!***************************************************************!*\
  12247. !*** C:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  12248. \***************************************************************/
  12249. /*! no static exports found */
  12250. /***/ (function(module, exports, __webpack_require__) {
  12251. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  12252. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  12253. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  12254. /**
  12255. * Creates a `_.range` or `_.rangeRight` function.
  12256. *
  12257. * @private
  12258. * @param {boolean} [fromRight] Specify iterating from right to left.
  12259. * @returns {Function} Returns the new range function.
  12260. */
  12261. function createRange(fromRight) {
  12262. return function(start, end, step) {
  12263. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  12264. end = step = undefined;
  12265. }
  12266. // Ensure the sign of `-0` is preserved.
  12267. start = toFinite(start);
  12268. if (end === undefined) {
  12269. end = start;
  12270. start = 0;
  12271. } else {
  12272. end = toFinite(end);
  12273. }
  12274. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  12275. return baseRange(start, end, step, fromRight);
  12276. };
  12277. }
  12278. module.exports = createRange;
  12279. /***/ }),
  12280. /***/ "../../node_modules/lodash/_createSet.js":
  12281. /*!*************************************************************!*\
  12282. !*** C:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  12283. \*************************************************************/
  12284. /*! no static exports found */
  12285. /***/ (function(module, exports, __webpack_require__) {
  12286. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12287. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  12288. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12289. /** Used as references for various `Number` constants. */
  12290. var INFINITY = 1 / 0;
  12291. /**
  12292. * Creates a set object of `values`.
  12293. *
  12294. * @private
  12295. * @param {Array} values The values to add to the set.
  12296. * @returns {Object} Returns the new set.
  12297. */
  12298. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  12299. return new Set(values);
  12300. };
  12301. module.exports = createSet;
  12302. /***/ }),
  12303. /***/ "../../node_modules/lodash/_defineProperty.js":
  12304. /*!******************************************************************!*\
  12305. !*** C:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  12306. \******************************************************************/
  12307. /*! no static exports found */
  12308. /***/ (function(module, exports, __webpack_require__) {
  12309. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  12310. var defineProperty = (function() {
  12311. try {
  12312. var func = getNative(Object, 'defineProperty');
  12313. func({}, '', {});
  12314. return func;
  12315. } catch (e) {}
  12316. }());
  12317. module.exports = defineProperty;
  12318. /***/ }),
  12319. /***/ "../../node_modules/lodash/_equalArrays.js":
  12320. /*!***************************************************************!*\
  12321. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  12322. \***************************************************************/
  12323. /*! no static exports found */
  12324. /***/ (function(module, exports, __webpack_require__) {
  12325. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  12326. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  12327. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  12328. /** Used to compose bitmasks for value comparisons. */
  12329. var COMPARE_PARTIAL_FLAG = 1,
  12330. COMPARE_UNORDERED_FLAG = 2;
  12331. /**
  12332. * A specialized version of `baseIsEqualDeep` for arrays with support for
  12333. * partial deep comparisons.
  12334. *
  12335. * @private
  12336. * @param {Array} array The array to compare.
  12337. * @param {Array} other The other array to compare.
  12338. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12339. * @param {Function} customizer The function to customize comparisons.
  12340. * @param {Function} equalFunc The function to determine equivalents of values.
  12341. * @param {Object} stack Tracks traversed `array` and `other` objects.
  12342. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  12343. */
  12344. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  12345. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12346. arrLength = array.length,
  12347. othLength = other.length;
  12348. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  12349. return false;
  12350. }
  12351. // Assume cyclic values are equal.
  12352. var stacked = stack.get(array);
  12353. if (stacked && stack.get(other)) {
  12354. return stacked == other;
  12355. }
  12356. var index = -1,
  12357. result = true,
  12358. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  12359. stack.set(array, other);
  12360. stack.set(other, array);
  12361. // Ignore non-index properties.
  12362. while (++index < arrLength) {
  12363. var arrValue = array[index],
  12364. othValue = other[index];
  12365. if (customizer) {
  12366. var compared = isPartial
  12367. ? customizer(othValue, arrValue, index, other, array, stack)
  12368. : customizer(arrValue, othValue, index, array, other, stack);
  12369. }
  12370. if (compared !== undefined) {
  12371. if (compared) {
  12372. continue;
  12373. }
  12374. result = false;
  12375. break;
  12376. }
  12377. // Recursively compare arrays (susceptible to call stack limits).
  12378. if (seen) {
  12379. if (!arraySome(other, function(othValue, othIndex) {
  12380. if (!cacheHas(seen, othIndex) &&
  12381. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  12382. return seen.push(othIndex);
  12383. }
  12384. })) {
  12385. result = false;
  12386. break;
  12387. }
  12388. } else if (!(
  12389. arrValue === othValue ||
  12390. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  12391. )) {
  12392. result = false;
  12393. break;
  12394. }
  12395. }
  12396. stack['delete'](array);
  12397. stack['delete'](other);
  12398. return result;
  12399. }
  12400. module.exports = equalArrays;
  12401. /***/ }),
  12402. /***/ "../../node_modules/lodash/_equalByTag.js":
  12403. /*!**************************************************************!*\
  12404. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12405. \**************************************************************/
  12406. /*! no static exports found */
  12407. /***/ (function(module, exports, __webpack_require__) {
  12408. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12409. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12410. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12411. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12412. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12413. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12414. /** Used to compose bitmasks for value comparisons. */
  12415. var COMPARE_PARTIAL_FLAG = 1,
  12416. COMPARE_UNORDERED_FLAG = 2;
  12417. /** `Object#toString` result references. */
  12418. var boolTag = '[object Boolean]',
  12419. dateTag = '[object Date]',
  12420. errorTag = '[object Error]',
  12421. mapTag = '[object Map]',
  12422. numberTag = '[object Number]',
  12423. regexpTag = '[object RegExp]',
  12424. setTag = '[object Set]',
  12425. stringTag = '[object String]',
  12426. symbolTag = '[object Symbol]';
  12427. var arrayBufferTag = '[object ArrayBuffer]',
  12428. dataViewTag = '[object DataView]';
  12429. /** Used to convert symbols to primitives and strings. */
  12430. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12431. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12432. /**
  12433. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12434. * the same `toStringTag`.
  12435. *
  12436. * **Note:** This function only supports comparing values with tags of
  12437. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12438. *
  12439. * @private
  12440. * @param {Object} object The object to compare.
  12441. * @param {Object} other The other object to compare.
  12442. * @param {string} tag The `toStringTag` of the objects to compare.
  12443. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12444. * @param {Function} customizer The function to customize comparisons.
  12445. * @param {Function} equalFunc The function to determine equivalents of values.
  12446. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12447. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12448. */
  12449. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12450. switch (tag) {
  12451. case dataViewTag:
  12452. if ((object.byteLength != other.byteLength) ||
  12453. (object.byteOffset != other.byteOffset)) {
  12454. return false;
  12455. }
  12456. object = object.buffer;
  12457. other = other.buffer;
  12458. case arrayBufferTag:
  12459. if ((object.byteLength != other.byteLength) ||
  12460. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12461. return false;
  12462. }
  12463. return true;
  12464. case boolTag:
  12465. case dateTag:
  12466. case numberTag:
  12467. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12468. // Invalid dates are coerced to `NaN`.
  12469. return eq(+object, +other);
  12470. case errorTag:
  12471. return object.name == other.name && object.message == other.message;
  12472. case regexpTag:
  12473. case stringTag:
  12474. // Coerce regexes to strings and treat strings, primitives and objects,
  12475. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12476. // for more details.
  12477. return object == (other + '');
  12478. case mapTag:
  12479. var convert = mapToArray;
  12480. case setTag:
  12481. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12482. convert || (convert = setToArray);
  12483. if (object.size != other.size && !isPartial) {
  12484. return false;
  12485. }
  12486. // Assume cyclic values are equal.
  12487. var stacked = stack.get(object);
  12488. if (stacked) {
  12489. return stacked == other;
  12490. }
  12491. bitmask |= COMPARE_UNORDERED_FLAG;
  12492. // Recursively compare objects (susceptible to call stack limits).
  12493. stack.set(object, other);
  12494. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12495. stack['delete'](object);
  12496. return result;
  12497. case symbolTag:
  12498. if (symbolValueOf) {
  12499. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12500. }
  12501. }
  12502. return false;
  12503. }
  12504. module.exports = equalByTag;
  12505. /***/ }),
  12506. /***/ "../../node_modules/lodash/_equalObjects.js":
  12507. /*!****************************************************************!*\
  12508. !*** C:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12509. \****************************************************************/
  12510. /*! no static exports found */
  12511. /***/ (function(module, exports, __webpack_require__) {
  12512. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12513. /** Used to compose bitmasks for value comparisons. */
  12514. var COMPARE_PARTIAL_FLAG = 1;
  12515. /** Used for built-in method references. */
  12516. var objectProto = Object.prototype;
  12517. /** Used to check objects for own properties. */
  12518. var hasOwnProperty = objectProto.hasOwnProperty;
  12519. /**
  12520. * A specialized version of `baseIsEqualDeep` for objects with support for
  12521. * partial deep comparisons.
  12522. *
  12523. * @private
  12524. * @param {Object} object The object to compare.
  12525. * @param {Object} other The other object to compare.
  12526. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12527. * @param {Function} customizer The function to customize comparisons.
  12528. * @param {Function} equalFunc The function to determine equivalents of values.
  12529. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12530. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12531. */
  12532. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12533. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12534. objProps = getAllKeys(object),
  12535. objLength = objProps.length,
  12536. othProps = getAllKeys(other),
  12537. othLength = othProps.length;
  12538. if (objLength != othLength && !isPartial) {
  12539. return false;
  12540. }
  12541. var index = objLength;
  12542. while (index--) {
  12543. var key = objProps[index];
  12544. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12545. return false;
  12546. }
  12547. }
  12548. // Assume cyclic values are equal.
  12549. var stacked = stack.get(object);
  12550. if (stacked && stack.get(other)) {
  12551. return stacked == other;
  12552. }
  12553. var result = true;
  12554. stack.set(object, other);
  12555. stack.set(other, object);
  12556. var skipCtor = isPartial;
  12557. while (++index < objLength) {
  12558. key = objProps[index];
  12559. var objValue = object[key],
  12560. othValue = other[key];
  12561. if (customizer) {
  12562. var compared = isPartial
  12563. ? customizer(othValue, objValue, key, other, object, stack)
  12564. : customizer(objValue, othValue, key, object, other, stack);
  12565. }
  12566. // Recursively compare objects (susceptible to call stack limits).
  12567. if (!(compared === undefined
  12568. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12569. : compared
  12570. )) {
  12571. result = false;
  12572. break;
  12573. }
  12574. skipCtor || (skipCtor = key == 'constructor');
  12575. }
  12576. if (result && !skipCtor) {
  12577. var objCtor = object.constructor,
  12578. othCtor = other.constructor;
  12579. // Non `Object` object instances with different constructors are not equal.
  12580. if (objCtor != othCtor &&
  12581. ('constructor' in object && 'constructor' in other) &&
  12582. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12583. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12584. result = false;
  12585. }
  12586. }
  12587. stack['delete'](object);
  12588. stack['delete'](other);
  12589. return result;
  12590. }
  12591. module.exports = equalObjects;
  12592. /***/ }),
  12593. /***/ "../../node_modules/lodash/_flatRest.js":
  12594. /*!************************************************************!*\
  12595. !*** C:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12596. \************************************************************/
  12597. /*! no static exports found */
  12598. /***/ (function(module, exports, __webpack_require__) {
  12599. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12600. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12601. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12602. /**
  12603. * A specialized version of `baseRest` which flattens the rest array.
  12604. *
  12605. * @private
  12606. * @param {Function} func The function to apply a rest parameter to.
  12607. * @returns {Function} Returns the new function.
  12608. */
  12609. function flatRest(func) {
  12610. return setToString(overRest(func, undefined, flatten), func + '');
  12611. }
  12612. module.exports = flatRest;
  12613. /***/ }),
  12614. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12615. /*!**************************************************************!*\
  12616. !*** C:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12617. \**************************************************************/
  12618. /*! no static exports found */
  12619. /***/ (function(module, exports, __webpack_require__) {
  12620. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12621. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12622. module.exports = freeGlobal;
  12623. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12624. /***/ }),
  12625. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12626. /*!**************************************************************!*\
  12627. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12628. \**************************************************************/
  12629. /*! no static exports found */
  12630. /***/ (function(module, exports, __webpack_require__) {
  12631. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12632. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12633. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12634. /**
  12635. * Creates an array of own enumerable property names and symbols of `object`.
  12636. *
  12637. * @private
  12638. * @param {Object} object The object to query.
  12639. * @returns {Array} Returns the array of property names and symbols.
  12640. */
  12641. function getAllKeys(object) {
  12642. return baseGetAllKeys(object, keys, getSymbols);
  12643. }
  12644. module.exports = getAllKeys;
  12645. /***/ }),
  12646. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12647. /*!****************************************************************!*\
  12648. !*** C:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12649. \****************************************************************/
  12650. /*! no static exports found */
  12651. /***/ (function(module, exports, __webpack_require__) {
  12652. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12653. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12654. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12655. /**
  12656. * Creates an array of own and inherited enumerable property names and
  12657. * symbols of `object`.
  12658. *
  12659. * @private
  12660. * @param {Object} object The object to query.
  12661. * @returns {Array} Returns the array of property names and symbols.
  12662. */
  12663. function getAllKeysIn(object) {
  12664. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12665. }
  12666. module.exports = getAllKeysIn;
  12667. /***/ }),
  12668. /***/ "../../node_modules/lodash/_getMapData.js":
  12669. /*!**************************************************************!*\
  12670. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12671. \**************************************************************/
  12672. /*! no static exports found */
  12673. /***/ (function(module, exports, __webpack_require__) {
  12674. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12675. /**
  12676. * Gets the data for `map`.
  12677. *
  12678. * @private
  12679. * @param {Object} map The map to query.
  12680. * @param {string} key The reference key.
  12681. * @returns {*} Returns the map data.
  12682. */
  12683. function getMapData(map, key) {
  12684. var data = map.__data__;
  12685. return isKeyable(key)
  12686. ? data[typeof key == 'string' ? 'string' : 'hash']
  12687. : data.map;
  12688. }
  12689. module.exports = getMapData;
  12690. /***/ }),
  12691. /***/ "../../node_modules/lodash/_getMatchData.js":
  12692. /*!****************************************************************!*\
  12693. !*** C:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12694. \****************************************************************/
  12695. /*! no static exports found */
  12696. /***/ (function(module, exports, __webpack_require__) {
  12697. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12698. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12699. /**
  12700. * Gets the property names, values, and compare flags of `object`.
  12701. *
  12702. * @private
  12703. * @param {Object} object The object to query.
  12704. * @returns {Array} Returns the match data of `object`.
  12705. */
  12706. function getMatchData(object) {
  12707. var result = keys(object),
  12708. length = result.length;
  12709. while (length--) {
  12710. var key = result[length],
  12711. value = object[key];
  12712. result[length] = [key, value, isStrictComparable(value)];
  12713. }
  12714. return result;
  12715. }
  12716. module.exports = getMatchData;
  12717. /***/ }),
  12718. /***/ "../../node_modules/lodash/_getNative.js":
  12719. /*!*************************************************************!*\
  12720. !*** C:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  12721. \*************************************************************/
  12722. /*! no static exports found */
  12723. /***/ (function(module, exports, __webpack_require__) {
  12724. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12725. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12726. /**
  12727. * Gets the native function at `key` of `object`.
  12728. *
  12729. * @private
  12730. * @param {Object} object The object to query.
  12731. * @param {string} key The key of the method to get.
  12732. * @returns {*} Returns the function if it's native, else `undefined`.
  12733. */
  12734. function getNative(object, key) {
  12735. var value = getValue(object, key);
  12736. return baseIsNative(value) ? value : undefined;
  12737. }
  12738. module.exports = getNative;
  12739. /***/ }),
  12740. /***/ "../../node_modules/lodash/_getPrototype.js":
  12741. /*!****************************************************************!*\
  12742. !*** C:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12743. \****************************************************************/
  12744. /*! no static exports found */
  12745. /***/ (function(module, exports, __webpack_require__) {
  12746. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12747. /** Built-in value references. */
  12748. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12749. module.exports = getPrototype;
  12750. /***/ }),
  12751. /***/ "../../node_modules/lodash/_getRawTag.js":
  12752. /*!*************************************************************!*\
  12753. !*** C:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12754. \*************************************************************/
  12755. /*! no static exports found */
  12756. /***/ (function(module, exports, __webpack_require__) {
  12757. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12758. /** Used for built-in method references. */
  12759. var objectProto = Object.prototype;
  12760. /** Used to check objects for own properties. */
  12761. var hasOwnProperty = objectProto.hasOwnProperty;
  12762. /**
  12763. * Used to resolve the
  12764. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12765. * of values.
  12766. */
  12767. var nativeObjectToString = objectProto.toString;
  12768. /** Built-in value references. */
  12769. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12770. /**
  12771. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12772. *
  12773. * @private
  12774. * @param {*} value The value to query.
  12775. * @returns {string} Returns the raw `toStringTag`.
  12776. */
  12777. function getRawTag(value) {
  12778. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12779. tag = value[symToStringTag];
  12780. try {
  12781. value[symToStringTag] = undefined;
  12782. var unmasked = true;
  12783. } catch (e) {}
  12784. var result = nativeObjectToString.call(value);
  12785. if (unmasked) {
  12786. if (isOwn) {
  12787. value[symToStringTag] = tag;
  12788. } else {
  12789. delete value[symToStringTag];
  12790. }
  12791. }
  12792. return result;
  12793. }
  12794. module.exports = getRawTag;
  12795. /***/ }),
  12796. /***/ "../../node_modules/lodash/_getSymbols.js":
  12797. /*!**************************************************************!*\
  12798. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12799. \**************************************************************/
  12800. /*! no static exports found */
  12801. /***/ (function(module, exports, __webpack_require__) {
  12802. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12803. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12804. /** Used for built-in method references. */
  12805. var objectProto = Object.prototype;
  12806. /** Built-in value references. */
  12807. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12808. /* Built-in method references for those with the same name as other `lodash` methods. */
  12809. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12810. /**
  12811. * Creates an array of the own enumerable symbols of `object`.
  12812. *
  12813. * @private
  12814. * @param {Object} object The object to query.
  12815. * @returns {Array} Returns the array of symbols.
  12816. */
  12817. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12818. if (object == null) {
  12819. return [];
  12820. }
  12821. object = Object(object);
  12822. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12823. return propertyIsEnumerable.call(object, symbol);
  12824. });
  12825. };
  12826. module.exports = getSymbols;
  12827. /***/ }),
  12828. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12829. /*!****************************************************************!*\
  12830. !*** C:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12831. \****************************************************************/
  12832. /*! no static exports found */
  12833. /***/ (function(module, exports, __webpack_require__) {
  12834. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12835. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12836. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12837. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12838. /* Built-in method references for those with the same name as other `lodash` methods. */
  12839. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12840. /**
  12841. * Creates an array of the own and inherited enumerable symbols of `object`.
  12842. *
  12843. * @private
  12844. * @param {Object} object The object to query.
  12845. * @returns {Array} Returns the array of symbols.
  12846. */
  12847. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12848. var result = [];
  12849. while (object) {
  12850. arrayPush(result, getSymbols(object));
  12851. object = getPrototype(object);
  12852. }
  12853. return result;
  12854. };
  12855. module.exports = getSymbolsIn;
  12856. /***/ }),
  12857. /***/ "../../node_modules/lodash/_getTag.js":
  12858. /*!**********************************************************!*\
  12859. !*** C:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  12860. \**********************************************************/
  12861. /*! no static exports found */
  12862. /***/ (function(module, exports, __webpack_require__) {
  12863. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12864. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12865. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12866. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12867. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12868. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12869. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12870. /** `Object#toString` result references. */
  12871. var mapTag = '[object Map]',
  12872. objectTag = '[object Object]',
  12873. promiseTag = '[object Promise]',
  12874. setTag = '[object Set]',
  12875. weakMapTag = '[object WeakMap]';
  12876. var dataViewTag = '[object DataView]';
  12877. /** Used to detect maps, sets, and weakmaps. */
  12878. var dataViewCtorString = toSource(DataView),
  12879. mapCtorString = toSource(Map),
  12880. promiseCtorString = toSource(Promise),
  12881. setCtorString = toSource(Set),
  12882. weakMapCtorString = toSource(WeakMap);
  12883. /**
  12884. * Gets the `toStringTag` of `value`.
  12885. *
  12886. * @private
  12887. * @param {*} value The value to query.
  12888. * @returns {string} Returns the `toStringTag`.
  12889. */
  12890. var getTag = baseGetTag;
  12891. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12892. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12893. (Map && getTag(new Map) != mapTag) ||
  12894. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12895. (Set && getTag(new Set) != setTag) ||
  12896. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12897. getTag = function(value) {
  12898. var result = baseGetTag(value),
  12899. Ctor = result == objectTag ? value.constructor : undefined,
  12900. ctorString = Ctor ? toSource(Ctor) : '';
  12901. if (ctorString) {
  12902. switch (ctorString) {
  12903. case dataViewCtorString: return dataViewTag;
  12904. case mapCtorString: return mapTag;
  12905. case promiseCtorString: return promiseTag;
  12906. case setCtorString: return setTag;
  12907. case weakMapCtorString: return weakMapTag;
  12908. }
  12909. }
  12910. return result;
  12911. };
  12912. }
  12913. module.exports = getTag;
  12914. /***/ }),
  12915. /***/ "../../node_modules/lodash/_getValue.js":
  12916. /*!************************************************************!*\
  12917. !*** C:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  12918. \************************************************************/
  12919. /*! no static exports found */
  12920. /***/ (function(module, exports) {
  12921. /**
  12922. * Gets the value at `key` of `object`.
  12923. *
  12924. * @private
  12925. * @param {Object} [object] The object to query.
  12926. * @param {string} key The key of the property to get.
  12927. * @returns {*} Returns the property value.
  12928. */
  12929. function getValue(object, key) {
  12930. return object == null ? undefined : object[key];
  12931. }
  12932. module.exports = getValue;
  12933. /***/ }),
  12934. /***/ "../../node_modules/lodash/_hasPath.js":
  12935. /*!***********************************************************!*\
  12936. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12937. \***********************************************************/
  12938. /*! no static exports found */
  12939. /***/ (function(module, exports, __webpack_require__) {
  12940. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12941. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12942. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12943. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12944. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12945. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12946. /**
  12947. * Checks if `path` exists on `object`.
  12948. *
  12949. * @private
  12950. * @param {Object} object The object to query.
  12951. * @param {Array|string} path The path to check.
  12952. * @param {Function} hasFunc The function to check properties.
  12953. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12954. */
  12955. function hasPath(object, path, hasFunc) {
  12956. path = castPath(path, object);
  12957. var index = -1,
  12958. length = path.length,
  12959. result = false;
  12960. while (++index < length) {
  12961. var key = toKey(path[index]);
  12962. if (!(result = object != null && hasFunc(object, key))) {
  12963. break;
  12964. }
  12965. object = object[key];
  12966. }
  12967. if (result || ++index != length) {
  12968. return result;
  12969. }
  12970. length = object == null ? 0 : object.length;
  12971. return !!length && isLength(length) && isIndex(key, length) &&
  12972. (isArray(object) || isArguments(object));
  12973. }
  12974. module.exports = hasPath;
  12975. /***/ }),
  12976. /***/ "../../node_modules/lodash/_hasUnicode.js":
  12977. /*!**************************************************************!*\
  12978. !*** C:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  12979. \**************************************************************/
  12980. /*! no static exports found */
  12981. /***/ (function(module, exports) {
  12982. /** Used to compose unicode character classes. */
  12983. var rsAstralRange = '\\ud800-\\udfff',
  12984. rsComboMarksRange = '\\u0300-\\u036f',
  12985. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  12986. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  12987. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  12988. rsVarRange = '\\ufe0e\\ufe0f';
  12989. /** Used to compose unicode capture groups. */
  12990. var rsZWJ = '\\u200d';
  12991. /** 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/). */
  12992. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  12993. /**
  12994. * Checks if `string` contains Unicode symbols.
  12995. *
  12996. * @private
  12997. * @param {string} string The string to inspect.
  12998. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  12999. */
  13000. function hasUnicode(string) {
  13001. return reHasUnicode.test(string);
  13002. }
  13003. module.exports = hasUnicode;
  13004. /***/ }),
  13005. /***/ "../../node_modules/lodash/_hashClear.js":
  13006. /*!*************************************************************!*\
  13007. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  13008. \*************************************************************/
  13009. /*! no static exports found */
  13010. /***/ (function(module, exports, __webpack_require__) {
  13011. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13012. /**
  13013. * Removes all key-value entries from the hash.
  13014. *
  13015. * @private
  13016. * @name clear
  13017. * @memberOf Hash
  13018. */
  13019. function hashClear() {
  13020. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13021. this.size = 0;
  13022. }
  13023. module.exports = hashClear;
  13024. /***/ }),
  13025. /***/ "../../node_modules/lodash/_hashDelete.js":
  13026. /*!**************************************************************!*\
  13027. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13028. \**************************************************************/
  13029. /*! no static exports found */
  13030. /***/ (function(module, exports) {
  13031. /**
  13032. * Removes `key` and its value from the hash.
  13033. *
  13034. * @private
  13035. * @name delete
  13036. * @memberOf Hash
  13037. * @param {Object} hash The hash to modify.
  13038. * @param {string} key The key of the value to remove.
  13039. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13040. */
  13041. function hashDelete(key) {
  13042. var result = this.has(key) && delete this.__data__[key];
  13043. this.size -= result ? 1 : 0;
  13044. return result;
  13045. }
  13046. module.exports = hashDelete;
  13047. /***/ }),
  13048. /***/ "../../node_modules/lodash/_hashGet.js":
  13049. /*!***********************************************************!*\
  13050. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  13051. \***********************************************************/
  13052. /*! no static exports found */
  13053. /***/ (function(module, exports, __webpack_require__) {
  13054. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13055. /** Used to stand-in for `undefined` hash values. */
  13056. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13057. /** Used for built-in method references. */
  13058. var objectProto = Object.prototype;
  13059. /** Used to check objects for own properties. */
  13060. var hasOwnProperty = objectProto.hasOwnProperty;
  13061. /**
  13062. * Gets the hash value for `key`.
  13063. *
  13064. * @private
  13065. * @name get
  13066. * @memberOf Hash
  13067. * @param {string} key The key of the value to get.
  13068. * @returns {*} Returns the entry value.
  13069. */
  13070. function hashGet(key) {
  13071. var data = this.__data__;
  13072. if (nativeCreate) {
  13073. var result = data[key];
  13074. return result === HASH_UNDEFINED ? undefined : result;
  13075. }
  13076. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  13077. }
  13078. module.exports = hashGet;
  13079. /***/ }),
  13080. /***/ "../../node_modules/lodash/_hashHas.js":
  13081. /*!***********************************************************!*\
  13082. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  13083. \***********************************************************/
  13084. /*! no static exports found */
  13085. /***/ (function(module, exports, __webpack_require__) {
  13086. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13087. /** Used for built-in method references. */
  13088. var objectProto = Object.prototype;
  13089. /** Used to check objects for own properties. */
  13090. var hasOwnProperty = objectProto.hasOwnProperty;
  13091. /**
  13092. * Checks if a hash value for `key` exists.
  13093. *
  13094. * @private
  13095. * @name has
  13096. * @memberOf Hash
  13097. * @param {string} key The key of the entry to check.
  13098. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13099. */
  13100. function hashHas(key) {
  13101. var data = this.__data__;
  13102. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  13103. }
  13104. module.exports = hashHas;
  13105. /***/ }),
  13106. /***/ "../../node_modules/lodash/_hashSet.js":
  13107. /*!***********************************************************!*\
  13108. !*** C:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  13109. \***********************************************************/
  13110. /*! no static exports found */
  13111. /***/ (function(module, exports, __webpack_require__) {
  13112. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13113. /** Used to stand-in for `undefined` hash values. */
  13114. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13115. /**
  13116. * Sets the hash `key` to `value`.
  13117. *
  13118. * @private
  13119. * @name set
  13120. * @memberOf Hash
  13121. * @param {string} key The key of the value to set.
  13122. * @param {*} value The value to set.
  13123. * @returns {Object} Returns the hash instance.
  13124. */
  13125. function hashSet(key, value) {
  13126. var data = this.__data__;
  13127. this.size += this.has(key) ? 0 : 1;
  13128. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  13129. return this;
  13130. }
  13131. module.exports = hashSet;
  13132. /***/ }),
  13133. /***/ "../../node_modules/lodash/_initCloneArray.js":
  13134. /*!******************************************************************!*\
  13135. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  13136. \******************************************************************/
  13137. /*! no static exports found */
  13138. /***/ (function(module, exports) {
  13139. /** Used for built-in method references. */
  13140. var objectProto = Object.prototype;
  13141. /** Used to check objects for own properties. */
  13142. var hasOwnProperty = objectProto.hasOwnProperty;
  13143. /**
  13144. * Initializes an array clone.
  13145. *
  13146. * @private
  13147. * @param {Array} array The array to clone.
  13148. * @returns {Array} Returns the initialized clone.
  13149. */
  13150. function initCloneArray(array) {
  13151. var length = array.length,
  13152. result = new array.constructor(length);
  13153. // Add properties assigned by `RegExp#exec`.
  13154. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  13155. result.index = array.index;
  13156. result.input = array.input;
  13157. }
  13158. return result;
  13159. }
  13160. module.exports = initCloneArray;
  13161. /***/ }),
  13162. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  13163. /*!******************************************************************!*\
  13164. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  13165. \******************************************************************/
  13166. /*! no static exports found */
  13167. /***/ (function(module, exports, __webpack_require__) {
  13168. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  13169. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  13170. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  13171. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  13172. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  13173. /** `Object#toString` result references. */
  13174. var boolTag = '[object Boolean]',
  13175. dateTag = '[object Date]',
  13176. mapTag = '[object Map]',
  13177. numberTag = '[object Number]',
  13178. regexpTag = '[object RegExp]',
  13179. setTag = '[object Set]',
  13180. stringTag = '[object String]',
  13181. symbolTag = '[object Symbol]';
  13182. var arrayBufferTag = '[object ArrayBuffer]',
  13183. dataViewTag = '[object DataView]',
  13184. float32Tag = '[object Float32Array]',
  13185. float64Tag = '[object Float64Array]',
  13186. int8Tag = '[object Int8Array]',
  13187. int16Tag = '[object Int16Array]',
  13188. int32Tag = '[object Int32Array]',
  13189. uint8Tag = '[object Uint8Array]',
  13190. uint8ClampedTag = '[object Uint8ClampedArray]',
  13191. uint16Tag = '[object Uint16Array]',
  13192. uint32Tag = '[object Uint32Array]';
  13193. /**
  13194. * Initializes an object clone based on its `toStringTag`.
  13195. *
  13196. * **Note:** This function only supports cloning values with tags of
  13197. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  13198. *
  13199. * @private
  13200. * @param {Object} object The object to clone.
  13201. * @param {string} tag The `toStringTag` of the object to clone.
  13202. * @param {boolean} [isDeep] Specify a deep clone.
  13203. * @returns {Object} Returns the initialized clone.
  13204. */
  13205. function initCloneByTag(object, tag, isDeep) {
  13206. var Ctor = object.constructor;
  13207. switch (tag) {
  13208. case arrayBufferTag:
  13209. return cloneArrayBuffer(object);
  13210. case boolTag:
  13211. case dateTag:
  13212. return new Ctor(+object);
  13213. case dataViewTag:
  13214. return cloneDataView(object, isDeep);
  13215. case float32Tag: case float64Tag:
  13216. case int8Tag: case int16Tag: case int32Tag:
  13217. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  13218. return cloneTypedArray(object, isDeep);
  13219. case mapTag:
  13220. return new Ctor;
  13221. case numberTag:
  13222. case stringTag:
  13223. return new Ctor(object);
  13224. case regexpTag:
  13225. return cloneRegExp(object);
  13226. case setTag:
  13227. return new Ctor;
  13228. case symbolTag:
  13229. return cloneSymbol(object);
  13230. }
  13231. }
  13232. module.exports = initCloneByTag;
  13233. /***/ }),
  13234. /***/ "../../node_modules/lodash/_initCloneObject.js":
  13235. /*!*******************************************************************!*\
  13236. !*** C:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  13237. \*******************************************************************/
  13238. /*! no static exports found */
  13239. /***/ (function(module, exports, __webpack_require__) {
  13240. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  13241. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13242. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  13243. /**
  13244. * Initializes an object clone.
  13245. *
  13246. * @private
  13247. * @param {Object} object The object to clone.
  13248. * @returns {Object} Returns the initialized clone.
  13249. */
  13250. function initCloneObject(object) {
  13251. return (typeof object.constructor == 'function' && !isPrototype(object))
  13252. ? baseCreate(getPrototype(object))
  13253. : {};
  13254. }
  13255. module.exports = initCloneObject;
  13256. /***/ }),
  13257. /***/ "../../node_modules/lodash/_isFlattenable.js":
  13258. /*!*****************************************************************!*\
  13259. !*** C:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  13260. \*****************************************************************/
  13261. /*! no static exports found */
  13262. /***/ (function(module, exports, __webpack_require__) {
  13263. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13264. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13265. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  13266. /** Built-in value references. */
  13267. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  13268. /**
  13269. * Checks if `value` is a flattenable `arguments` object or array.
  13270. *
  13271. * @private
  13272. * @param {*} value The value to check.
  13273. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  13274. */
  13275. function isFlattenable(value) {
  13276. return isArray(value) || isArguments(value) ||
  13277. !!(spreadableSymbol && value && value[spreadableSymbol]);
  13278. }
  13279. module.exports = isFlattenable;
  13280. /***/ }),
  13281. /***/ "../../node_modules/lodash/_isIndex.js":
  13282. /*!***********************************************************!*\
  13283. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  13284. \***********************************************************/
  13285. /*! no static exports found */
  13286. /***/ (function(module, exports) {
  13287. /** Used as references for various `Number` constants. */
  13288. var MAX_SAFE_INTEGER = 9007199254740991;
  13289. /** Used to detect unsigned integer values. */
  13290. var reIsUint = /^(?:0|[1-9]\d*)$/;
  13291. /**
  13292. * Checks if `value` is a valid array-like index.
  13293. *
  13294. * @private
  13295. * @param {*} value The value to check.
  13296. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13297. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13298. */
  13299. function isIndex(value, length) {
  13300. var type = typeof value;
  13301. length = length == null ? MAX_SAFE_INTEGER : length;
  13302. return !!length &&
  13303. (type == 'number' ||
  13304. (type != 'symbol' && reIsUint.test(value))) &&
  13305. (value > -1 && value % 1 == 0 && value < length);
  13306. }
  13307. module.exports = isIndex;
  13308. /***/ }),
  13309. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  13310. /*!******************************************************************!*\
  13311. !*** C:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  13312. \******************************************************************/
  13313. /*! no static exports found */
  13314. /***/ (function(module, exports, __webpack_require__) {
  13315. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13316. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  13317. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13318. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13319. /**
  13320. * Checks if the given arguments are from an iteratee call.
  13321. *
  13322. * @private
  13323. * @param {*} value The potential iteratee value argument.
  13324. * @param {*} index The potential iteratee index or key argument.
  13325. * @param {*} object The potential iteratee object argument.
  13326. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13327. * else `false`.
  13328. */
  13329. function isIterateeCall(value, index, object) {
  13330. if (!isObject(object)) {
  13331. return false;
  13332. }
  13333. var type = typeof index;
  13334. if (type == 'number'
  13335. ? (isArrayLike(object) && isIndex(index, object.length))
  13336. : (type == 'string' && index in object)
  13337. ) {
  13338. return eq(object[index], value);
  13339. }
  13340. return false;
  13341. }
  13342. module.exports = isIterateeCall;
  13343. /***/ }),
  13344. /***/ "../../node_modules/lodash/_isKey.js":
  13345. /*!*********************************************************!*\
  13346. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  13347. \*********************************************************/
  13348. /*! no static exports found */
  13349. /***/ (function(module, exports, __webpack_require__) {
  13350. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13351. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13352. /** Used to match property names within property paths. */
  13353. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  13354. reIsPlainProp = /^\w*$/;
  13355. /**
  13356. * Checks if `value` is a property name and not a property path.
  13357. *
  13358. * @private
  13359. * @param {*} value The value to check.
  13360. * @param {Object} [object] The object to query keys on.
  13361. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  13362. */
  13363. function isKey(value, object) {
  13364. if (isArray(value)) {
  13365. return false;
  13366. }
  13367. var type = typeof value;
  13368. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  13369. value == null || isSymbol(value)) {
  13370. return true;
  13371. }
  13372. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  13373. (object != null && value in Object(object));
  13374. }
  13375. module.exports = isKey;
  13376. /***/ }),
  13377. /***/ "../../node_modules/lodash/_isKeyable.js":
  13378. /*!*************************************************************!*\
  13379. !*** C:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  13380. \*************************************************************/
  13381. /*! no static exports found */
  13382. /***/ (function(module, exports) {
  13383. /**
  13384. * Checks if `value` is suitable for use as unique object key.
  13385. *
  13386. * @private
  13387. * @param {*} value The value to check.
  13388. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13389. */
  13390. function isKeyable(value) {
  13391. var type = typeof value;
  13392. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13393. ? (value !== '__proto__')
  13394. : (value === null);
  13395. }
  13396. module.exports = isKeyable;
  13397. /***/ }),
  13398. /***/ "../../node_modules/lodash/_isMasked.js":
  13399. /*!************************************************************!*\
  13400. !*** C:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13401. \************************************************************/
  13402. /*! no static exports found */
  13403. /***/ (function(module, exports, __webpack_require__) {
  13404. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13405. /** Used to detect methods masquerading as native. */
  13406. var maskSrcKey = (function() {
  13407. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13408. return uid ? ('Symbol(src)_1.' + uid) : '';
  13409. }());
  13410. /**
  13411. * Checks if `func` has its source masked.
  13412. *
  13413. * @private
  13414. * @param {Function} func The function to check.
  13415. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13416. */
  13417. function isMasked(func) {
  13418. return !!maskSrcKey && (maskSrcKey in func);
  13419. }
  13420. module.exports = isMasked;
  13421. /***/ }),
  13422. /***/ "../../node_modules/lodash/_isPrototype.js":
  13423. /*!***************************************************************!*\
  13424. !*** C:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13425. \***************************************************************/
  13426. /*! no static exports found */
  13427. /***/ (function(module, exports) {
  13428. /** Used for built-in method references. */
  13429. var objectProto = Object.prototype;
  13430. /**
  13431. * Checks if `value` is likely a prototype object.
  13432. *
  13433. * @private
  13434. * @param {*} value The value to check.
  13435. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13436. */
  13437. function isPrototype(value) {
  13438. var Ctor = value && value.constructor,
  13439. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13440. return value === proto;
  13441. }
  13442. module.exports = isPrototype;
  13443. /***/ }),
  13444. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13445. /*!**********************************************************************!*\
  13446. !*** C:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13447. \**********************************************************************/
  13448. /*! no static exports found */
  13449. /***/ (function(module, exports, __webpack_require__) {
  13450. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13451. /**
  13452. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13453. *
  13454. * @private
  13455. * @param {*} value The value to check.
  13456. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13457. * equality comparisons, else `false`.
  13458. */
  13459. function isStrictComparable(value) {
  13460. return value === value && !isObject(value);
  13461. }
  13462. module.exports = isStrictComparable;
  13463. /***/ }),
  13464. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13465. /*!******************************************************************!*\
  13466. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13467. \******************************************************************/
  13468. /*! no static exports found */
  13469. /***/ (function(module, exports) {
  13470. /**
  13471. * Removes all key-value entries from the list cache.
  13472. *
  13473. * @private
  13474. * @name clear
  13475. * @memberOf ListCache
  13476. */
  13477. function listCacheClear() {
  13478. this.__data__ = [];
  13479. this.size = 0;
  13480. }
  13481. module.exports = listCacheClear;
  13482. /***/ }),
  13483. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13484. /*!*******************************************************************!*\
  13485. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13486. \*******************************************************************/
  13487. /*! no static exports found */
  13488. /***/ (function(module, exports, __webpack_require__) {
  13489. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13490. /** Used for built-in method references. */
  13491. var arrayProto = Array.prototype;
  13492. /** Built-in value references. */
  13493. var splice = arrayProto.splice;
  13494. /**
  13495. * Removes `key` and its value from the list cache.
  13496. *
  13497. * @private
  13498. * @name delete
  13499. * @memberOf ListCache
  13500. * @param {string} key The key of the value to remove.
  13501. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13502. */
  13503. function listCacheDelete(key) {
  13504. var data = this.__data__,
  13505. index = assocIndexOf(data, key);
  13506. if (index < 0) {
  13507. return false;
  13508. }
  13509. var lastIndex = data.length - 1;
  13510. if (index == lastIndex) {
  13511. data.pop();
  13512. } else {
  13513. splice.call(data, index, 1);
  13514. }
  13515. --this.size;
  13516. return true;
  13517. }
  13518. module.exports = listCacheDelete;
  13519. /***/ }),
  13520. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13521. /*!****************************************************************!*\
  13522. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13523. \****************************************************************/
  13524. /*! no static exports found */
  13525. /***/ (function(module, exports, __webpack_require__) {
  13526. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13527. /**
  13528. * Gets the list cache value for `key`.
  13529. *
  13530. * @private
  13531. * @name get
  13532. * @memberOf ListCache
  13533. * @param {string} key The key of the value to get.
  13534. * @returns {*} Returns the entry value.
  13535. */
  13536. function listCacheGet(key) {
  13537. var data = this.__data__,
  13538. index = assocIndexOf(data, key);
  13539. return index < 0 ? undefined : data[index][1];
  13540. }
  13541. module.exports = listCacheGet;
  13542. /***/ }),
  13543. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13544. /*!****************************************************************!*\
  13545. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13546. \****************************************************************/
  13547. /*! no static exports found */
  13548. /***/ (function(module, exports, __webpack_require__) {
  13549. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13550. /**
  13551. * Checks if a list cache value for `key` exists.
  13552. *
  13553. * @private
  13554. * @name has
  13555. * @memberOf ListCache
  13556. * @param {string} key The key of the entry to check.
  13557. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13558. */
  13559. function listCacheHas(key) {
  13560. return assocIndexOf(this.__data__, key) > -1;
  13561. }
  13562. module.exports = listCacheHas;
  13563. /***/ }),
  13564. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13565. /*!****************************************************************!*\
  13566. !*** C:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13567. \****************************************************************/
  13568. /*! no static exports found */
  13569. /***/ (function(module, exports, __webpack_require__) {
  13570. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13571. /**
  13572. * Sets the list cache `key` to `value`.
  13573. *
  13574. * @private
  13575. * @name set
  13576. * @memberOf ListCache
  13577. * @param {string} key The key of the value to set.
  13578. * @param {*} value The value to set.
  13579. * @returns {Object} Returns the list cache instance.
  13580. */
  13581. function listCacheSet(key, value) {
  13582. var data = this.__data__,
  13583. index = assocIndexOf(data, key);
  13584. if (index < 0) {
  13585. ++this.size;
  13586. data.push([key, value]);
  13587. } else {
  13588. data[index][1] = value;
  13589. }
  13590. return this;
  13591. }
  13592. module.exports = listCacheSet;
  13593. /***/ }),
  13594. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13595. /*!*****************************************************************!*\
  13596. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13597. \*****************************************************************/
  13598. /*! no static exports found */
  13599. /***/ (function(module, exports, __webpack_require__) {
  13600. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13601. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13602. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13603. /**
  13604. * Removes all key-value entries from the map.
  13605. *
  13606. * @private
  13607. * @name clear
  13608. * @memberOf MapCache
  13609. */
  13610. function mapCacheClear() {
  13611. this.size = 0;
  13612. this.__data__ = {
  13613. 'hash': new Hash,
  13614. 'map': new (Map || ListCache),
  13615. 'string': new Hash
  13616. };
  13617. }
  13618. module.exports = mapCacheClear;
  13619. /***/ }),
  13620. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13621. /*!******************************************************************!*\
  13622. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13623. \******************************************************************/
  13624. /*! no static exports found */
  13625. /***/ (function(module, exports, __webpack_require__) {
  13626. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13627. /**
  13628. * Removes `key` and its value from the map.
  13629. *
  13630. * @private
  13631. * @name delete
  13632. * @memberOf MapCache
  13633. * @param {string} key The key of the value to remove.
  13634. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13635. */
  13636. function mapCacheDelete(key) {
  13637. var result = getMapData(this, key)['delete'](key);
  13638. this.size -= result ? 1 : 0;
  13639. return result;
  13640. }
  13641. module.exports = mapCacheDelete;
  13642. /***/ }),
  13643. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13644. /*!***************************************************************!*\
  13645. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13646. \***************************************************************/
  13647. /*! no static exports found */
  13648. /***/ (function(module, exports, __webpack_require__) {
  13649. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13650. /**
  13651. * Gets the map value for `key`.
  13652. *
  13653. * @private
  13654. * @name get
  13655. * @memberOf MapCache
  13656. * @param {string} key The key of the value to get.
  13657. * @returns {*} Returns the entry value.
  13658. */
  13659. function mapCacheGet(key) {
  13660. return getMapData(this, key).get(key);
  13661. }
  13662. module.exports = mapCacheGet;
  13663. /***/ }),
  13664. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13665. /*!***************************************************************!*\
  13666. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13667. \***************************************************************/
  13668. /*! no static exports found */
  13669. /***/ (function(module, exports, __webpack_require__) {
  13670. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13671. /**
  13672. * Checks if a map value for `key` exists.
  13673. *
  13674. * @private
  13675. * @name has
  13676. * @memberOf MapCache
  13677. * @param {string} key The key of the entry to check.
  13678. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13679. */
  13680. function mapCacheHas(key) {
  13681. return getMapData(this, key).has(key);
  13682. }
  13683. module.exports = mapCacheHas;
  13684. /***/ }),
  13685. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13686. /*!***************************************************************!*\
  13687. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13688. \***************************************************************/
  13689. /*! no static exports found */
  13690. /***/ (function(module, exports, __webpack_require__) {
  13691. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13692. /**
  13693. * Sets the map `key` to `value`.
  13694. *
  13695. * @private
  13696. * @name set
  13697. * @memberOf MapCache
  13698. * @param {string} key The key of the value to set.
  13699. * @param {*} value The value to set.
  13700. * @returns {Object} Returns the map cache instance.
  13701. */
  13702. function mapCacheSet(key, value) {
  13703. var data = getMapData(this, key),
  13704. size = data.size;
  13705. data.set(key, value);
  13706. this.size += data.size == size ? 0 : 1;
  13707. return this;
  13708. }
  13709. module.exports = mapCacheSet;
  13710. /***/ }),
  13711. /***/ "../../node_modules/lodash/_mapToArray.js":
  13712. /*!**************************************************************!*\
  13713. !*** C:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13714. \**************************************************************/
  13715. /*! no static exports found */
  13716. /***/ (function(module, exports) {
  13717. /**
  13718. * Converts `map` to its key-value pairs.
  13719. *
  13720. * @private
  13721. * @param {Object} map The map to convert.
  13722. * @returns {Array} Returns the key-value pairs.
  13723. */
  13724. function mapToArray(map) {
  13725. var index = -1,
  13726. result = Array(map.size);
  13727. map.forEach(function(value, key) {
  13728. result[++index] = [key, value];
  13729. });
  13730. return result;
  13731. }
  13732. module.exports = mapToArray;
  13733. /***/ }),
  13734. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13735. /*!***************************************************************************!*\
  13736. !*** C:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13737. \***************************************************************************/
  13738. /*! no static exports found */
  13739. /***/ (function(module, exports) {
  13740. /**
  13741. * A specialized version of `matchesProperty` for source values suitable
  13742. * for strict equality comparisons, i.e. `===`.
  13743. *
  13744. * @private
  13745. * @param {string} key The key of the property to get.
  13746. * @param {*} srcValue The value to match.
  13747. * @returns {Function} Returns the new spec function.
  13748. */
  13749. function matchesStrictComparable(key, srcValue) {
  13750. return function(object) {
  13751. if (object == null) {
  13752. return false;
  13753. }
  13754. return object[key] === srcValue &&
  13755. (srcValue !== undefined || (key in Object(object)));
  13756. };
  13757. }
  13758. module.exports = matchesStrictComparable;
  13759. /***/ }),
  13760. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13761. /*!*****************************************************************!*\
  13762. !*** C:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13763. \*****************************************************************/
  13764. /*! no static exports found */
  13765. /***/ (function(module, exports, __webpack_require__) {
  13766. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13767. /** Used as the maximum memoize cache size. */
  13768. var MAX_MEMOIZE_SIZE = 500;
  13769. /**
  13770. * A specialized version of `_.memoize` which clears the memoized function's
  13771. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13772. *
  13773. * @private
  13774. * @param {Function} func The function to have its output memoized.
  13775. * @returns {Function} Returns the new memoized function.
  13776. */
  13777. function memoizeCapped(func) {
  13778. var result = memoize(func, function(key) {
  13779. if (cache.size === MAX_MEMOIZE_SIZE) {
  13780. cache.clear();
  13781. }
  13782. return key;
  13783. });
  13784. var cache = result.cache;
  13785. return result;
  13786. }
  13787. module.exports = memoizeCapped;
  13788. /***/ }),
  13789. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13790. /*!****************************************************************!*\
  13791. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13792. \****************************************************************/
  13793. /*! no static exports found */
  13794. /***/ (function(module, exports, __webpack_require__) {
  13795. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13796. /* Built-in method references that are verified to be native. */
  13797. var nativeCreate = getNative(Object, 'create');
  13798. module.exports = nativeCreate;
  13799. /***/ }),
  13800. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13801. /*!**************************************************************!*\
  13802. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13803. \**************************************************************/
  13804. /*! no static exports found */
  13805. /***/ (function(module, exports, __webpack_require__) {
  13806. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13807. /* Built-in method references for those with the same name as other `lodash` methods. */
  13808. var nativeKeys = overArg(Object.keys, Object);
  13809. module.exports = nativeKeys;
  13810. /***/ }),
  13811. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13812. /*!****************************************************************!*\
  13813. !*** C:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13814. \****************************************************************/
  13815. /*! no static exports found */
  13816. /***/ (function(module, exports) {
  13817. /**
  13818. * This function is like
  13819. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13820. * except that it includes inherited enumerable properties.
  13821. *
  13822. * @private
  13823. * @param {Object} object The object to query.
  13824. * @returns {Array} Returns the array of property names.
  13825. */
  13826. function nativeKeysIn(object) {
  13827. var result = [];
  13828. if (object != null) {
  13829. for (var key in Object(object)) {
  13830. result.push(key);
  13831. }
  13832. }
  13833. return result;
  13834. }
  13835. module.exports = nativeKeysIn;
  13836. /***/ }),
  13837. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13838. /*!************************************************************!*\
  13839. !*** C:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13840. \************************************************************/
  13841. /*! no static exports found */
  13842. /***/ (function(module, exports, __webpack_require__) {
  13843. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13844. /** Detect free variable `exports`. */
  13845. var freeExports = true && exports && !exports.nodeType && exports;
  13846. /** Detect free variable `module`. */
  13847. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13848. /** Detect the popular CommonJS extension `module.exports`. */
  13849. var moduleExports = freeModule && freeModule.exports === freeExports;
  13850. /** Detect free variable `process` from Node.js. */
  13851. var freeProcess = moduleExports && freeGlobal.process;
  13852. /** Used to access faster Node.js helpers. */
  13853. var nodeUtil = (function() {
  13854. try {
  13855. // Use `util.types` for Node.js 10+.
  13856. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13857. if (types) {
  13858. return types;
  13859. }
  13860. // Legacy `process.binding('util')` for Node.js < 10.
  13861. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13862. } catch (e) {}
  13863. }());
  13864. module.exports = nodeUtil;
  13865. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13866. /***/ }),
  13867. /***/ "../../node_modules/lodash/_objectToString.js":
  13868. /*!******************************************************************!*\
  13869. !*** C:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13870. \******************************************************************/
  13871. /*! no static exports found */
  13872. /***/ (function(module, exports) {
  13873. /** Used for built-in method references. */
  13874. var objectProto = Object.prototype;
  13875. /**
  13876. * Used to resolve the
  13877. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13878. * of values.
  13879. */
  13880. var nativeObjectToString = objectProto.toString;
  13881. /**
  13882. * Converts `value` to a string using `Object.prototype.toString`.
  13883. *
  13884. * @private
  13885. * @param {*} value The value to convert.
  13886. * @returns {string} Returns the converted string.
  13887. */
  13888. function objectToString(value) {
  13889. return nativeObjectToString.call(value);
  13890. }
  13891. module.exports = objectToString;
  13892. /***/ }),
  13893. /***/ "../../node_modules/lodash/_overArg.js":
  13894. /*!***********************************************************!*\
  13895. !*** C:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  13896. \***********************************************************/
  13897. /*! no static exports found */
  13898. /***/ (function(module, exports) {
  13899. /**
  13900. * Creates a unary function that invokes `func` with its argument transformed.
  13901. *
  13902. * @private
  13903. * @param {Function} func The function to wrap.
  13904. * @param {Function} transform The argument transform.
  13905. * @returns {Function} Returns the new function.
  13906. */
  13907. function overArg(func, transform) {
  13908. return function(arg) {
  13909. return func(transform(arg));
  13910. };
  13911. }
  13912. module.exports = overArg;
  13913. /***/ }),
  13914. /***/ "../../node_modules/lodash/_overRest.js":
  13915. /*!************************************************************!*\
  13916. !*** C:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  13917. \************************************************************/
  13918. /*! no static exports found */
  13919. /***/ (function(module, exports, __webpack_require__) {
  13920. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13921. /* Built-in method references for those with the same name as other `lodash` methods. */
  13922. var nativeMax = Math.max;
  13923. /**
  13924. * A specialized version of `baseRest` which transforms the rest array.
  13925. *
  13926. * @private
  13927. * @param {Function} func The function to apply a rest parameter to.
  13928. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13929. * @param {Function} transform The rest array transform.
  13930. * @returns {Function} Returns the new function.
  13931. */
  13932. function overRest(func, start, transform) {
  13933. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13934. return function() {
  13935. var args = arguments,
  13936. index = -1,
  13937. length = nativeMax(args.length - start, 0),
  13938. array = Array(length);
  13939. while (++index < length) {
  13940. array[index] = args[start + index];
  13941. }
  13942. index = -1;
  13943. var otherArgs = Array(start + 1);
  13944. while (++index < start) {
  13945. otherArgs[index] = args[index];
  13946. }
  13947. otherArgs[start] = transform(array);
  13948. return apply(func, this, otherArgs);
  13949. };
  13950. }
  13951. module.exports = overRest;
  13952. /***/ }),
  13953. /***/ "../../node_modules/lodash/_root.js":
  13954. /*!********************************************************!*\
  13955. !*** C:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  13956. \********************************************************/
  13957. /*! no static exports found */
  13958. /***/ (function(module, exports, __webpack_require__) {
  13959. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13960. /** Detect free variable `self`. */
  13961. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13962. /** Used as a reference to the global object. */
  13963. var root = freeGlobal || freeSelf || Function('return this')();
  13964. module.exports = root;
  13965. /***/ }),
  13966. /***/ "../../node_modules/lodash/_safeGet.js":
  13967. /*!***********************************************************!*\
  13968. !*** C:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13969. \***********************************************************/
  13970. /*! no static exports found */
  13971. /***/ (function(module, exports) {
  13972. /**
  13973. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  13974. *
  13975. * @private
  13976. * @param {Object} object The object to query.
  13977. * @param {string} key The key of the property to get.
  13978. * @returns {*} Returns the property value.
  13979. */
  13980. function safeGet(object, key) {
  13981. if (key === 'constructor' && typeof object[key] === 'function') {
  13982. return;
  13983. }
  13984. if (key == '__proto__') {
  13985. return;
  13986. }
  13987. return object[key];
  13988. }
  13989. module.exports = safeGet;
  13990. /***/ }),
  13991. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  13992. /*!***************************************************************!*\
  13993. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  13994. \***************************************************************/
  13995. /*! no static exports found */
  13996. /***/ (function(module, exports) {
  13997. /** Used to stand-in for `undefined` hash values. */
  13998. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13999. /**
  14000. * Adds `value` to the array cache.
  14001. *
  14002. * @private
  14003. * @name add
  14004. * @memberOf SetCache
  14005. * @alias push
  14006. * @param {*} value The value to cache.
  14007. * @returns {Object} Returns the cache instance.
  14008. */
  14009. function setCacheAdd(value) {
  14010. this.__data__.set(value, HASH_UNDEFINED);
  14011. return this;
  14012. }
  14013. module.exports = setCacheAdd;
  14014. /***/ }),
  14015. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14016. /*!***************************************************************!*\
  14017. !*** C:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14018. \***************************************************************/
  14019. /*! no static exports found */
  14020. /***/ (function(module, exports) {
  14021. /**
  14022. * Checks if `value` is in the array cache.
  14023. *
  14024. * @private
  14025. * @name has
  14026. * @memberOf SetCache
  14027. * @param {*} value The value to search for.
  14028. * @returns {number} Returns `true` if `value` is found, else `false`.
  14029. */
  14030. function setCacheHas(value) {
  14031. return this.__data__.has(value);
  14032. }
  14033. module.exports = setCacheHas;
  14034. /***/ }),
  14035. /***/ "../../node_modules/lodash/_setToArray.js":
  14036. /*!**************************************************************!*\
  14037. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14038. \**************************************************************/
  14039. /*! no static exports found */
  14040. /***/ (function(module, exports) {
  14041. /**
  14042. * Converts `set` to an array of its values.
  14043. *
  14044. * @private
  14045. * @param {Object} set The set to convert.
  14046. * @returns {Array} Returns the values.
  14047. */
  14048. function setToArray(set) {
  14049. var index = -1,
  14050. result = Array(set.size);
  14051. set.forEach(function(value) {
  14052. result[++index] = value;
  14053. });
  14054. return result;
  14055. }
  14056. module.exports = setToArray;
  14057. /***/ }),
  14058. /***/ "../../node_modules/lodash/_setToString.js":
  14059. /*!***************************************************************!*\
  14060. !*** C:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14061. \***************************************************************/
  14062. /*! no static exports found */
  14063. /***/ (function(module, exports, __webpack_require__) {
  14064. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14065. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  14066. /**
  14067. * Sets the `toString` method of `func` to return `string`.
  14068. *
  14069. * @private
  14070. * @param {Function} func The function to modify.
  14071. * @param {Function} string The `toString` result.
  14072. * @returns {Function} Returns `func`.
  14073. */
  14074. var setToString = shortOut(baseSetToString);
  14075. module.exports = setToString;
  14076. /***/ }),
  14077. /***/ "../../node_modules/lodash/_shortOut.js":
  14078. /*!************************************************************!*\
  14079. !*** C:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  14080. \************************************************************/
  14081. /*! no static exports found */
  14082. /***/ (function(module, exports) {
  14083. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  14084. var HOT_COUNT = 800,
  14085. HOT_SPAN = 16;
  14086. /* Built-in method references for those with the same name as other `lodash` methods. */
  14087. var nativeNow = Date.now;
  14088. /**
  14089. * Creates a function that'll short out and invoke `identity` instead
  14090. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  14091. * milliseconds.
  14092. *
  14093. * @private
  14094. * @param {Function} func The function to restrict.
  14095. * @returns {Function} Returns the new shortable function.
  14096. */
  14097. function shortOut(func) {
  14098. var count = 0,
  14099. lastCalled = 0;
  14100. return function() {
  14101. var stamp = nativeNow(),
  14102. remaining = HOT_SPAN - (stamp - lastCalled);
  14103. lastCalled = stamp;
  14104. if (remaining > 0) {
  14105. if (++count >= HOT_COUNT) {
  14106. return arguments[0];
  14107. }
  14108. } else {
  14109. count = 0;
  14110. }
  14111. return func.apply(undefined, arguments);
  14112. };
  14113. }
  14114. module.exports = shortOut;
  14115. /***/ }),
  14116. /***/ "../../node_modules/lodash/_stackClear.js":
  14117. /*!**************************************************************!*\
  14118. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  14119. \**************************************************************/
  14120. /*! no static exports found */
  14121. /***/ (function(module, exports, __webpack_require__) {
  14122. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  14123. /**
  14124. * Removes all key-value entries from the stack.
  14125. *
  14126. * @private
  14127. * @name clear
  14128. * @memberOf Stack
  14129. */
  14130. function stackClear() {
  14131. this.__data__ = new ListCache;
  14132. this.size = 0;
  14133. }
  14134. module.exports = stackClear;
  14135. /***/ }),
  14136. /***/ "../../node_modules/lodash/_stackDelete.js":
  14137. /*!***************************************************************!*\
  14138. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  14139. \***************************************************************/
  14140. /*! no static exports found */
  14141. /***/ (function(module, exports) {
  14142. /**
  14143. * Removes `key` and its value from the stack.
  14144. *
  14145. * @private
  14146. * @name delete
  14147. * @memberOf Stack
  14148. * @param {string} key The key of the value to remove.
  14149. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14150. */
  14151. function stackDelete(key) {
  14152. var data = this.__data__,
  14153. result = data['delete'](key);
  14154. this.size = data.size;
  14155. return result;
  14156. }
  14157. module.exports = stackDelete;
  14158. /***/ }),
  14159. /***/ "../../node_modules/lodash/_stackGet.js":
  14160. /*!************************************************************!*\
  14161. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  14162. \************************************************************/
  14163. /*! no static exports found */
  14164. /***/ (function(module, exports) {
  14165. /**
  14166. * Gets the stack value for `key`.
  14167. *
  14168. * @private
  14169. * @name get
  14170. * @memberOf Stack
  14171. * @param {string} key The key of the value to get.
  14172. * @returns {*} Returns the entry value.
  14173. */
  14174. function stackGet(key) {
  14175. return this.__data__.get(key);
  14176. }
  14177. module.exports = stackGet;
  14178. /***/ }),
  14179. /***/ "../../node_modules/lodash/_stackHas.js":
  14180. /*!************************************************************!*\
  14181. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  14182. \************************************************************/
  14183. /*! no static exports found */
  14184. /***/ (function(module, exports) {
  14185. /**
  14186. * Checks if a stack value for `key` exists.
  14187. *
  14188. * @private
  14189. * @name has
  14190. * @memberOf Stack
  14191. * @param {string} key The key of the entry to check.
  14192. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14193. */
  14194. function stackHas(key) {
  14195. return this.__data__.has(key);
  14196. }
  14197. module.exports = stackHas;
  14198. /***/ }),
  14199. /***/ "../../node_modules/lodash/_stackSet.js":
  14200. /*!************************************************************!*\
  14201. !*** C:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  14202. \************************************************************/
  14203. /*! no static exports found */
  14204. /***/ (function(module, exports, __webpack_require__) {
  14205. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14206. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  14207. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  14208. /** Used as the size to enable large array optimizations. */
  14209. var LARGE_ARRAY_SIZE = 200;
  14210. /**
  14211. * Sets the stack `key` to `value`.
  14212. *
  14213. * @private
  14214. * @name set
  14215. * @memberOf Stack
  14216. * @param {string} key The key of the value to set.
  14217. * @param {*} value The value to set.
  14218. * @returns {Object} Returns the stack cache instance.
  14219. */
  14220. function stackSet(key, value) {
  14221. var data = this.__data__;
  14222. if (data instanceof ListCache) {
  14223. var pairs = data.__data__;
  14224. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  14225. pairs.push([key, value]);
  14226. this.size = ++data.size;
  14227. return this;
  14228. }
  14229. data = this.__data__ = new MapCache(pairs);
  14230. }
  14231. data.set(key, value);
  14232. this.size = data.size;
  14233. return this;
  14234. }
  14235. module.exports = stackSet;
  14236. /***/ }),
  14237. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  14238. /*!*****************************************************************!*\
  14239. !*** C:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  14240. \*****************************************************************/
  14241. /*! no static exports found */
  14242. /***/ (function(module, exports) {
  14243. /**
  14244. * A specialized version of `_.indexOf` which performs strict equality
  14245. * comparisons of values, i.e. `===`.
  14246. *
  14247. * @private
  14248. * @param {Array} array The array to inspect.
  14249. * @param {*} value The value to search for.
  14250. * @param {number} fromIndex The index to search from.
  14251. * @returns {number} Returns the index of the matched value, else `-1`.
  14252. */
  14253. function strictIndexOf(array, value, fromIndex) {
  14254. var index = fromIndex - 1,
  14255. length = array.length;
  14256. while (++index < length) {
  14257. if (array[index] === value) {
  14258. return index;
  14259. }
  14260. }
  14261. return -1;
  14262. }
  14263. module.exports = strictIndexOf;
  14264. /***/ }),
  14265. /***/ "../../node_modules/lodash/_stringSize.js":
  14266. /*!**************************************************************!*\
  14267. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  14268. \**************************************************************/
  14269. /*! no static exports found */
  14270. /***/ (function(module, exports, __webpack_require__) {
  14271. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  14272. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  14273. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  14274. /**
  14275. * Gets the number of symbols in `string`.
  14276. *
  14277. * @private
  14278. * @param {string} string The string to inspect.
  14279. * @returns {number} Returns the string size.
  14280. */
  14281. function stringSize(string) {
  14282. return hasUnicode(string)
  14283. ? unicodeSize(string)
  14284. : asciiSize(string);
  14285. }
  14286. module.exports = stringSize;
  14287. /***/ }),
  14288. /***/ "../../node_modules/lodash/_stringToPath.js":
  14289. /*!****************************************************************!*\
  14290. !*** C:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  14291. \****************************************************************/
  14292. /*! no static exports found */
  14293. /***/ (function(module, exports, __webpack_require__) {
  14294. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  14295. /** Used to match property names within property paths. */
  14296. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  14297. /** Used to match backslashes in property paths. */
  14298. var reEscapeChar = /\\(\\)?/g;
  14299. /**
  14300. * Converts `string` to a property path array.
  14301. *
  14302. * @private
  14303. * @param {string} string The string to convert.
  14304. * @returns {Array} Returns the property path array.
  14305. */
  14306. var stringToPath = memoizeCapped(function(string) {
  14307. var result = [];
  14308. if (string.charCodeAt(0) === 46 /* . */) {
  14309. result.push('');
  14310. }
  14311. string.replace(rePropName, function(match, number, quote, subString) {
  14312. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  14313. });
  14314. return result;
  14315. });
  14316. module.exports = stringToPath;
  14317. /***/ }),
  14318. /***/ "../../node_modules/lodash/_toKey.js":
  14319. /*!*********************************************************!*\
  14320. !*** C:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  14321. \*********************************************************/
  14322. /*! no static exports found */
  14323. /***/ (function(module, exports, __webpack_require__) {
  14324. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14325. /** Used as references for various `Number` constants. */
  14326. var INFINITY = 1 / 0;
  14327. /**
  14328. * Converts `value` to a string key if it's not a string or symbol.
  14329. *
  14330. * @private
  14331. * @param {*} value The value to inspect.
  14332. * @returns {string|symbol} Returns the key.
  14333. */
  14334. function toKey(value) {
  14335. if (typeof value == 'string' || isSymbol(value)) {
  14336. return value;
  14337. }
  14338. var result = (value + '');
  14339. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  14340. }
  14341. module.exports = toKey;
  14342. /***/ }),
  14343. /***/ "../../node_modules/lodash/_toSource.js":
  14344. /*!************************************************************!*\
  14345. !*** C:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  14346. \************************************************************/
  14347. /*! no static exports found */
  14348. /***/ (function(module, exports) {
  14349. /** Used for built-in method references. */
  14350. var funcProto = Function.prototype;
  14351. /** Used to resolve the decompiled source of functions. */
  14352. var funcToString = funcProto.toString;
  14353. /**
  14354. * Converts `func` to its source code.
  14355. *
  14356. * @private
  14357. * @param {Function} func The function to convert.
  14358. * @returns {string} Returns the source code.
  14359. */
  14360. function toSource(func) {
  14361. if (func != null) {
  14362. try {
  14363. return funcToString.call(func);
  14364. } catch (e) {}
  14365. try {
  14366. return (func + '');
  14367. } catch (e) {}
  14368. }
  14369. return '';
  14370. }
  14371. module.exports = toSource;
  14372. /***/ }),
  14373. /***/ "../../node_modules/lodash/_unicodeSize.js":
  14374. /*!***************************************************************!*\
  14375. !*** C:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  14376. \***************************************************************/
  14377. /*! no static exports found */
  14378. /***/ (function(module, exports) {
  14379. /** Used to compose unicode character classes. */
  14380. var rsAstralRange = '\\ud800-\\udfff',
  14381. rsComboMarksRange = '\\u0300-\\u036f',
  14382. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  14383. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  14384. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  14385. rsVarRange = '\\ufe0e\\ufe0f';
  14386. /** Used to compose unicode capture groups. */
  14387. var rsAstral = '[' + rsAstralRange + ']',
  14388. rsCombo = '[' + rsComboRange + ']',
  14389. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  14390. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  14391. rsNonAstral = '[^' + rsAstralRange + ']',
  14392. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  14393. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14394. rsZWJ = '\\u200d';
  14395. /** Used to compose unicode regexes. */
  14396. var reOptMod = rsModifier + '?',
  14397. rsOptVar = '[' + rsVarRange + ']?',
  14398. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14399. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14400. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14401. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14402. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14403. /**
  14404. * Gets the size of a Unicode `string`.
  14405. *
  14406. * @private
  14407. * @param {string} string The string inspect.
  14408. * @returns {number} Returns the string size.
  14409. */
  14410. function unicodeSize(string) {
  14411. var result = reUnicode.lastIndex = 0;
  14412. while (reUnicode.test(string)) {
  14413. ++result;
  14414. }
  14415. return result;
  14416. }
  14417. module.exports = unicodeSize;
  14418. /***/ }),
  14419. /***/ "../../node_modules/lodash/clone.js":
  14420. /*!********************************************************!*\
  14421. !*** C:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  14422. \********************************************************/
  14423. /*! no static exports found */
  14424. /***/ (function(module, exports, __webpack_require__) {
  14425. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14426. /** Used to compose bitmasks for cloning. */
  14427. var CLONE_SYMBOLS_FLAG = 4;
  14428. /**
  14429. * Creates a shallow clone of `value`.
  14430. *
  14431. * **Note:** This method is loosely based on the
  14432. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14433. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14434. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14435. * arrays. The own enumerable properties of `arguments` objects are cloned
  14436. * as plain objects. An empty object is returned for uncloneable values such
  14437. * as error objects, functions, DOM nodes, and WeakMaps.
  14438. *
  14439. * @static
  14440. * @memberOf _
  14441. * @since 0.1.0
  14442. * @category Lang
  14443. * @param {*} value The value to clone.
  14444. * @returns {*} Returns the cloned value.
  14445. * @see _.cloneDeep
  14446. * @example
  14447. *
  14448. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14449. *
  14450. * var shallow = _.clone(objects);
  14451. * console.log(shallow[0] === objects[0]);
  14452. * // => true
  14453. */
  14454. function clone(value) {
  14455. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14456. }
  14457. module.exports = clone;
  14458. /***/ }),
  14459. /***/ "../../node_modules/lodash/cloneDeep.js":
  14460. /*!************************************************************!*\
  14461. !*** C:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14462. \************************************************************/
  14463. /*! no static exports found */
  14464. /***/ (function(module, exports, __webpack_require__) {
  14465. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14466. /** Used to compose bitmasks for cloning. */
  14467. var CLONE_DEEP_FLAG = 1,
  14468. CLONE_SYMBOLS_FLAG = 4;
  14469. /**
  14470. * This method is like `_.clone` except that it recursively clones `value`.
  14471. *
  14472. * @static
  14473. * @memberOf _
  14474. * @since 1.0.0
  14475. * @category Lang
  14476. * @param {*} value The value to recursively clone.
  14477. * @returns {*} Returns the deep cloned value.
  14478. * @see _.clone
  14479. * @example
  14480. *
  14481. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14482. *
  14483. * var deep = _.cloneDeep(objects);
  14484. * console.log(deep[0] === objects[0]);
  14485. * // => false
  14486. */
  14487. function cloneDeep(value) {
  14488. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14489. }
  14490. module.exports = cloneDeep;
  14491. /***/ }),
  14492. /***/ "../../node_modules/lodash/constant.js":
  14493. /*!***********************************************************!*\
  14494. !*** C:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  14495. \***********************************************************/
  14496. /*! no static exports found */
  14497. /***/ (function(module, exports) {
  14498. /**
  14499. * Creates a function that returns `value`.
  14500. *
  14501. * @static
  14502. * @memberOf _
  14503. * @since 2.4.0
  14504. * @category Util
  14505. * @param {*} value The value to return from the new function.
  14506. * @returns {Function} Returns the new constant function.
  14507. * @example
  14508. *
  14509. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14510. *
  14511. * console.log(objects);
  14512. * // => [{ 'a': 1 }, { 'a': 1 }]
  14513. *
  14514. * console.log(objects[0] === objects[1]);
  14515. * // => true
  14516. */
  14517. function constant(value) {
  14518. return function() {
  14519. return value;
  14520. };
  14521. }
  14522. module.exports = constant;
  14523. /***/ }),
  14524. /***/ "../../node_modules/lodash/defaults.js":
  14525. /*!***********************************************************!*\
  14526. !*** C:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  14527. \***********************************************************/
  14528. /*! no static exports found */
  14529. /***/ (function(module, exports, __webpack_require__) {
  14530. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14531. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14532. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14533. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14534. /** Used for built-in method references. */
  14535. var objectProto = Object.prototype;
  14536. /** Used to check objects for own properties. */
  14537. var hasOwnProperty = objectProto.hasOwnProperty;
  14538. /**
  14539. * Assigns own and inherited enumerable string keyed properties of source
  14540. * objects to the destination object for all destination properties that
  14541. * resolve to `undefined`. Source objects are applied from left to right.
  14542. * Once a property is set, additional values of the same property are ignored.
  14543. *
  14544. * **Note:** This method mutates `object`.
  14545. *
  14546. * @static
  14547. * @since 0.1.0
  14548. * @memberOf _
  14549. * @category Object
  14550. * @param {Object} object The destination object.
  14551. * @param {...Object} [sources] The source objects.
  14552. * @returns {Object} Returns `object`.
  14553. * @see _.defaultsDeep
  14554. * @example
  14555. *
  14556. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14557. * // => { 'a': 1, 'b': 2 }
  14558. */
  14559. var defaults = baseRest(function(object, sources) {
  14560. object = Object(object);
  14561. var index = -1;
  14562. var length = sources.length;
  14563. var guard = length > 2 ? sources[2] : undefined;
  14564. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14565. length = 1;
  14566. }
  14567. while (++index < length) {
  14568. var source = sources[index];
  14569. var props = keysIn(source);
  14570. var propsIndex = -1;
  14571. var propsLength = props.length;
  14572. while (++propsIndex < propsLength) {
  14573. var key = props[propsIndex];
  14574. var value = object[key];
  14575. if (value === undefined ||
  14576. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14577. object[key] = source[key];
  14578. }
  14579. }
  14580. }
  14581. return object;
  14582. });
  14583. module.exports = defaults;
  14584. /***/ }),
  14585. /***/ "../../node_modules/lodash/each.js":
  14586. /*!*******************************************************!*\
  14587. !*** C:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  14588. \*******************************************************/
  14589. /*! no static exports found */
  14590. /***/ (function(module, exports, __webpack_require__) {
  14591. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14592. /***/ }),
  14593. /***/ "../../node_modules/lodash/eq.js":
  14594. /*!*****************************************************!*\
  14595. !*** C:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  14596. \*****************************************************/
  14597. /*! no static exports found */
  14598. /***/ (function(module, exports) {
  14599. /**
  14600. * Performs a
  14601. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14602. * comparison between two values to determine if they are equivalent.
  14603. *
  14604. * @static
  14605. * @memberOf _
  14606. * @since 4.0.0
  14607. * @category Lang
  14608. * @param {*} value The value to compare.
  14609. * @param {*} other The other value to compare.
  14610. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14611. * @example
  14612. *
  14613. * var object = { 'a': 1 };
  14614. * var other = { 'a': 1 };
  14615. *
  14616. * _.eq(object, object);
  14617. * // => true
  14618. *
  14619. * _.eq(object, other);
  14620. * // => false
  14621. *
  14622. * _.eq('a', 'a');
  14623. * // => true
  14624. *
  14625. * _.eq('a', Object('a'));
  14626. * // => false
  14627. *
  14628. * _.eq(NaN, NaN);
  14629. * // => true
  14630. */
  14631. function eq(value, other) {
  14632. return value === other || (value !== value && other !== other);
  14633. }
  14634. module.exports = eq;
  14635. /***/ }),
  14636. /***/ "../../node_modules/lodash/filter.js":
  14637. /*!*********************************************************!*\
  14638. !*** C:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  14639. \*********************************************************/
  14640. /*! no static exports found */
  14641. /***/ (function(module, exports, __webpack_require__) {
  14642. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14643. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14644. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14645. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14646. /**
  14647. * Iterates over elements of `collection`, returning an array of all elements
  14648. * `predicate` returns truthy for. The predicate is invoked with three
  14649. * arguments: (value, index|key, collection).
  14650. *
  14651. * **Note:** Unlike `_.remove`, this method returns a new array.
  14652. *
  14653. * @static
  14654. * @memberOf _
  14655. * @since 0.1.0
  14656. * @category Collection
  14657. * @param {Array|Object} collection The collection to iterate over.
  14658. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14659. * @returns {Array} Returns the new filtered array.
  14660. * @see _.reject
  14661. * @example
  14662. *
  14663. * var users = [
  14664. * { 'user': 'barney', 'age': 36, 'active': true },
  14665. * { 'user': 'fred', 'age': 40, 'active': false }
  14666. * ];
  14667. *
  14668. * _.filter(users, function(o) { return !o.active; });
  14669. * // => objects for ['fred']
  14670. *
  14671. * // The `_.matches` iteratee shorthand.
  14672. * _.filter(users, { 'age': 36, 'active': true });
  14673. * // => objects for ['barney']
  14674. *
  14675. * // The `_.matchesProperty` iteratee shorthand.
  14676. * _.filter(users, ['active', false]);
  14677. * // => objects for ['fred']
  14678. *
  14679. * // The `_.property` iteratee shorthand.
  14680. * _.filter(users, 'active');
  14681. * // => objects for ['barney']
  14682. */
  14683. function filter(collection, predicate) {
  14684. var func = isArray(collection) ? arrayFilter : baseFilter;
  14685. return func(collection, baseIteratee(predicate, 3));
  14686. }
  14687. module.exports = filter;
  14688. /***/ }),
  14689. /***/ "../../node_modules/lodash/find.js":
  14690. /*!*******************************************************!*\
  14691. !*** C:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  14692. \*******************************************************/
  14693. /*! no static exports found */
  14694. /***/ (function(module, exports, __webpack_require__) {
  14695. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14696. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14697. /**
  14698. * Iterates over elements of `collection`, returning the first element
  14699. * `predicate` returns truthy for. The predicate is invoked with three
  14700. * arguments: (value, index|key, collection).
  14701. *
  14702. * @static
  14703. * @memberOf _
  14704. * @since 0.1.0
  14705. * @category Collection
  14706. * @param {Array|Object} collection The collection to inspect.
  14707. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14708. * @param {number} [fromIndex=0] The index to search from.
  14709. * @returns {*} Returns the matched element, else `undefined`.
  14710. * @example
  14711. *
  14712. * var users = [
  14713. * { 'user': 'barney', 'age': 36, 'active': true },
  14714. * { 'user': 'fred', 'age': 40, 'active': false },
  14715. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14716. * ];
  14717. *
  14718. * _.find(users, function(o) { return o.age < 40; });
  14719. * // => object for 'barney'
  14720. *
  14721. * // The `_.matches` iteratee shorthand.
  14722. * _.find(users, { 'age': 1, 'active': true });
  14723. * // => object for 'pebbles'
  14724. *
  14725. * // The `_.matchesProperty` iteratee shorthand.
  14726. * _.find(users, ['active', false]);
  14727. * // => object for 'fred'
  14728. *
  14729. * // The `_.property` iteratee shorthand.
  14730. * _.find(users, 'active');
  14731. * // => object for 'barney'
  14732. */
  14733. var find = createFind(findIndex);
  14734. module.exports = find;
  14735. /***/ }),
  14736. /***/ "../../node_modules/lodash/findIndex.js":
  14737. /*!************************************************************!*\
  14738. !*** C:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  14739. \************************************************************/
  14740. /*! no static exports found */
  14741. /***/ (function(module, exports, __webpack_require__) {
  14742. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14743. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14744. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14745. /* Built-in method references for those with the same name as other `lodash` methods. */
  14746. var nativeMax = Math.max;
  14747. /**
  14748. * This method is like `_.find` except that it returns the index of the first
  14749. * element `predicate` returns truthy for instead of the element itself.
  14750. *
  14751. * @static
  14752. * @memberOf _
  14753. * @since 1.1.0
  14754. * @category Array
  14755. * @param {Array} array The array to inspect.
  14756. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14757. * @param {number} [fromIndex=0] The index to search from.
  14758. * @returns {number} Returns the index of the found element, else `-1`.
  14759. * @example
  14760. *
  14761. * var users = [
  14762. * { 'user': 'barney', 'active': false },
  14763. * { 'user': 'fred', 'active': false },
  14764. * { 'user': 'pebbles', 'active': true }
  14765. * ];
  14766. *
  14767. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14768. * // => 0
  14769. *
  14770. * // The `_.matches` iteratee shorthand.
  14771. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14772. * // => 1
  14773. *
  14774. * // The `_.matchesProperty` iteratee shorthand.
  14775. * _.findIndex(users, ['active', false]);
  14776. * // => 0
  14777. *
  14778. * // The `_.property` iteratee shorthand.
  14779. * _.findIndex(users, 'active');
  14780. * // => 2
  14781. */
  14782. function findIndex(array, predicate, fromIndex) {
  14783. var length = array == null ? 0 : array.length;
  14784. if (!length) {
  14785. return -1;
  14786. }
  14787. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14788. if (index < 0) {
  14789. index = nativeMax(length + index, 0);
  14790. }
  14791. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14792. }
  14793. module.exports = findIndex;
  14794. /***/ }),
  14795. /***/ "../../node_modules/lodash/flatten.js":
  14796. /*!**********************************************************!*\
  14797. !*** C:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  14798. \**********************************************************/
  14799. /*! no static exports found */
  14800. /***/ (function(module, exports, __webpack_require__) {
  14801. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  14802. /**
  14803. * Flattens `array` a single level deep.
  14804. *
  14805. * @static
  14806. * @memberOf _
  14807. * @since 0.1.0
  14808. * @category Array
  14809. * @param {Array} array The array to flatten.
  14810. * @returns {Array} Returns the new flattened array.
  14811. * @example
  14812. *
  14813. * _.flatten([1, [2, [3, [4]], 5]]);
  14814. * // => [1, 2, [3, [4]], 5]
  14815. */
  14816. function flatten(array) {
  14817. var length = array == null ? 0 : array.length;
  14818. return length ? baseFlatten(array, 1) : [];
  14819. }
  14820. module.exports = flatten;
  14821. /***/ }),
  14822. /***/ "../../node_modules/lodash/forEach.js":
  14823. /*!**********************************************************!*\
  14824. !*** C:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  14825. \**********************************************************/
  14826. /*! no static exports found */
  14827. /***/ (function(module, exports, __webpack_require__) {
  14828. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14829. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  14830. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14831. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14832. /**
  14833. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  14834. * The iteratee is invoked with three arguments: (value, index|key, collection).
  14835. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14836. *
  14837. * **Note:** As with other "Collections" methods, objects with a "length"
  14838. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  14839. * or `_.forOwn` for object iteration.
  14840. *
  14841. * @static
  14842. * @memberOf _
  14843. * @since 0.1.0
  14844. * @alias each
  14845. * @category Collection
  14846. * @param {Array|Object} collection The collection to iterate over.
  14847. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14848. * @returns {Array|Object} Returns `collection`.
  14849. * @see _.forEachRight
  14850. * @example
  14851. *
  14852. * _.forEach([1, 2], function(value) {
  14853. * console.log(value);
  14854. * });
  14855. * // => Logs `1` then `2`.
  14856. *
  14857. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  14858. * console.log(key);
  14859. * });
  14860. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  14861. */
  14862. function forEach(collection, iteratee) {
  14863. var func = isArray(collection) ? arrayEach : baseEach;
  14864. return func(collection, castFunction(iteratee));
  14865. }
  14866. module.exports = forEach;
  14867. /***/ }),
  14868. /***/ "../../node_modules/lodash/forIn.js":
  14869. /*!********************************************************!*\
  14870. !*** C:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  14871. \********************************************************/
  14872. /*! no static exports found */
  14873. /***/ (function(module, exports, __webpack_require__) {
  14874. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14875. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14876. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14877. /**
  14878. * Iterates over own and inherited enumerable string keyed properties of an
  14879. * object and invokes `iteratee` for each property. The iteratee is invoked
  14880. * with three arguments: (value, key, object). Iteratee functions may exit
  14881. * iteration early by explicitly returning `false`.
  14882. *
  14883. * @static
  14884. * @memberOf _
  14885. * @since 0.3.0
  14886. * @category Object
  14887. * @param {Object} object The object to iterate over.
  14888. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14889. * @returns {Object} Returns `object`.
  14890. * @see _.forInRight
  14891. * @example
  14892. *
  14893. * function Foo() {
  14894. * this.a = 1;
  14895. * this.b = 2;
  14896. * }
  14897. *
  14898. * Foo.prototype.c = 3;
  14899. *
  14900. * _.forIn(new Foo, function(value, key) {
  14901. * console.log(key);
  14902. * });
  14903. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  14904. */
  14905. function forIn(object, iteratee) {
  14906. return object == null
  14907. ? object
  14908. : baseFor(object, castFunction(iteratee), keysIn);
  14909. }
  14910. module.exports = forIn;
  14911. /***/ }),
  14912. /***/ "../../node_modules/lodash/get.js":
  14913. /*!******************************************************!*\
  14914. !*** C:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  14915. \******************************************************/
  14916. /*! no static exports found */
  14917. /***/ (function(module, exports, __webpack_require__) {
  14918. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  14919. /**
  14920. * Gets the value at `path` of `object`. If the resolved value is
  14921. * `undefined`, the `defaultValue` is returned in its place.
  14922. *
  14923. * @static
  14924. * @memberOf _
  14925. * @since 3.7.0
  14926. * @category Object
  14927. * @param {Object} object The object to query.
  14928. * @param {Array|string} path The path of the property to get.
  14929. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  14930. * @returns {*} Returns the resolved value.
  14931. * @example
  14932. *
  14933. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  14934. *
  14935. * _.get(object, 'a[0].b.c');
  14936. * // => 3
  14937. *
  14938. * _.get(object, ['a', '0', 'b', 'c']);
  14939. * // => 3
  14940. *
  14941. * _.get(object, 'a.b.c', 'default');
  14942. * // => 'default'
  14943. */
  14944. function get(object, path, defaultValue) {
  14945. var result = object == null ? undefined : baseGet(object, path);
  14946. return result === undefined ? defaultValue : result;
  14947. }
  14948. module.exports = get;
  14949. /***/ }),
  14950. /***/ "../../node_modules/lodash/has.js":
  14951. /*!******************************************************!*\
  14952. !*** C:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  14953. \******************************************************/
  14954. /*! no static exports found */
  14955. /***/ (function(module, exports, __webpack_require__) {
  14956. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  14957. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14958. /**
  14959. * Checks if `path` is a direct property of `object`.
  14960. *
  14961. * @static
  14962. * @since 0.1.0
  14963. * @memberOf _
  14964. * @category Object
  14965. * @param {Object} object The object to query.
  14966. * @param {Array|string} path The path to check.
  14967. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14968. * @example
  14969. *
  14970. * var object = { 'a': { 'b': 2 } };
  14971. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  14972. *
  14973. * _.has(object, 'a');
  14974. * // => true
  14975. *
  14976. * _.has(object, 'a.b');
  14977. * // => true
  14978. *
  14979. * _.has(object, ['a', 'b']);
  14980. * // => true
  14981. *
  14982. * _.has(other, 'a');
  14983. * // => false
  14984. */
  14985. function has(object, path) {
  14986. return object != null && hasPath(object, path, baseHas);
  14987. }
  14988. module.exports = has;
  14989. /***/ }),
  14990. /***/ "../../node_modules/lodash/hasIn.js":
  14991. /*!********************************************************!*\
  14992. !*** C:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  14993. \********************************************************/
  14994. /*! no static exports found */
  14995. /***/ (function(module, exports, __webpack_require__) {
  14996. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  14997. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14998. /**
  14999. * Checks if `path` is a direct or inherited property of `object`.
  15000. *
  15001. * @static
  15002. * @memberOf _
  15003. * @since 4.0.0
  15004. * @category Object
  15005. * @param {Object} object The object to query.
  15006. * @param {Array|string} path The path to check.
  15007. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  15008. * @example
  15009. *
  15010. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  15011. *
  15012. * _.hasIn(object, 'a');
  15013. * // => true
  15014. *
  15015. * _.hasIn(object, 'a.b');
  15016. * // => true
  15017. *
  15018. * _.hasIn(object, ['a', 'b']);
  15019. * // => true
  15020. *
  15021. * _.hasIn(object, 'b');
  15022. * // => false
  15023. */
  15024. function hasIn(object, path) {
  15025. return object != null && hasPath(object, path, baseHasIn);
  15026. }
  15027. module.exports = hasIn;
  15028. /***/ }),
  15029. /***/ "../../node_modules/lodash/identity.js":
  15030. /*!***********************************************************!*\
  15031. !*** C:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15032. \***********************************************************/
  15033. /*! no static exports found */
  15034. /***/ (function(module, exports) {
  15035. /**
  15036. * This method returns the first argument it receives.
  15037. *
  15038. * @static
  15039. * @since 0.1.0
  15040. * @memberOf _
  15041. * @category Util
  15042. * @param {*} value Any value.
  15043. * @returns {*} Returns `value`.
  15044. * @example
  15045. *
  15046. * var object = { 'a': 1 };
  15047. *
  15048. * console.log(_.identity(object) === object);
  15049. * // => true
  15050. */
  15051. function identity(value) {
  15052. return value;
  15053. }
  15054. module.exports = identity;
  15055. /***/ }),
  15056. /***/ "../../node_modules/lodash/isArguments.js":
  15057. /*!**************************************************************!*\
  15058. !*** C:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15059. \**************************************************************/
  15060. /*! no static exports found */
  15061. /***/ (function(module, exports, __webpack_require__) {
  15062. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15063. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15064. /** Used for built-in method references. */
  15065. var objectProto = Object.prototype;
  15066. /** Used to check objects for own properties. */
  15067. var hasOwnProperty = objectProto.hasOwnProperty;
  15068. /** Built-in value references. */
  15069. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15070. /**
  15071. * Checks if `value` is likely an `arguments` object.
  15072. *
  15073. * @static
  15074. * @memberOf _
  15075. * @since 0.1.0
  15076. * @category Lang
  15077. * @param {*} value The value to check.
  15078. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15079. * else `false`.
  15080. * @example
  15081. *
  15082. * _.isArguments(function() { return arguments; }());
  15083. * // => true
  15084. *
  15085. * _.isArguments([1, 2, 3]);
  15086. * // => false
  15087. */
  15088. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15089. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15090. !propertyIsEnumerable.call(value, 'callee');
  15091. };
  15092. module.exports = isArguments;
  15093. /***/ }),
  15094. /***/ "../../node_modules/lodash/isArray.js":
  15095. /*!**********************************************************!*\
  15096. !*** C:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15097. \**********************************************************/
  15098. /*! no static exports found */
  15099. /***/ (function(module, exports) {
  15100. /**
  15101. * Checks if `value` is classified as an `Array` object.
  15102. *
  15103. * @static
  15104. * @memberOf _
  15105. * @since 0.1.0
  15106. * @category Lang
  15107. * @param {*} value The value to check.
  15108. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15109. * @example
  15110. *
  15111. * _.isArray([1, 2, 3]);
  15112. * // => true
  15113. *
  15114. * _.isArray(document.body.children);
  15115. * // => false
  15116. *
  15117. * _.isArray('abc');
  15118. * // => false
  15119. *
  15120. * _.isArray(_.noop);
  15121. * // => false
  15122. */
  15123. var isArray = Array.isArray;
  15124. module.exports = isArray;
  15125. /***/ }),
  15126. /***/ "../../node_modules/lodash/isArrayLike.js":
  15127. /*!**************************************************************!*\
  15128. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15129. \**************************************************************/
  15130. /*! no static exports found */
  15131. /***/ (function(module, exports, __webpack_require__) {
  15132. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15133. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15134. /**
  15135. * Checks if `value` is array-like. A value is considered array-like if it's
  15136. * not a function and has a `value.length` that's an integer greater than or
  15137. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15138. *
  15139. * @static
  15140. * @memberOf _
  15141. * @since 4.0.0
  15142. * @category Lang
  15143. * @param {*} value The value to check.
  15144. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15145. * @example
  15146. *
  15147. * _.isArrayLike([1, 2, 3]);
  15148. * // => true
  15149. *
  15150. * _.isArrayLike(document.body.children);
  15151. * // => true
  15152. *
  15153. * _.isArrayLike('abc');
  15154. * // => true
  15155. *
  15156. * _.isArrayLike(_.noop);
  15157. * // => false
  15158. */
  15159. function isArrayLike(value) {
  15160. return value != null && isLength(value.length) && !isFunction(value);
  15161. }
  15162. module.exports = isArrayLike;
  15163. /***/ }),
  15164. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15165. /*!********************************************************************!*\
  15166. !*** C:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15167. \********************************************************************/
  15168. /*! no static exports found */
  15169. /***/ (function(module, exports, __webpack_require__) {
  15170. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15171. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15172. /**
  15173. * This method is like `_.isArrayLike` except that it also checks if `value`
  15174. * is an object.
  15175. *
  15176. * @static
  15177. * @memberOf _
  15178. * @since 4.0.0
  15179. * @category Lang
  15180. * @param {*} value The value to check.
  15181. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15182. * else `false`.
  15183. * @example
  15184. *
  15185. * _.isArrayLikeObject([1, 2, 3]);
  15186. * // => true
  15187. *
  15188. * _.isArrayLikeObject(document.body.children);
  15189. * // => true
  15190. *
  15191. * _.isArrayLikeObject('abc');
  15192. * // => false
  15193. *
  15194. * _.isArrayLikeObject(_.noop);
  15195. * // => false
  15196. */
  15197. function isArrayLikeObject(value) {
  15198. return isObjectLike(value) && isArrayLike(value);
  15199. }
  15200. module.exports = isArrayLikeObject;
  15201. /***/ }),
  15202. /***/ "../../node_modules/lodash/isBuffer.js":
  15203. /*!***********************************************************!*\
  15204. !*** C:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15205. \***********************************************************/
  15206. /*! no static exports found */
  15207. /***/ (function(module, exports, __webpack_require__) {
  15208. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15209. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15210. /** Detect free variable `exports`. */
  15211. var freeExports = true && exports && !exports.nodeType && exports;
  15212. /** Detect free variable `module`. */
  15213. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15214. /** Detect the popular CommonJS extension `module.exports`. */
  15215. var moduleExports = freeModule && freeModule.exports === freeExports;
  15216. /** Built-in value references. */
  15217. var Buffer = moduleExports ? root.Buffer : undefined;
  15218. /* Built-in method references for those with the same name as other `lodash` methods. */
  15219. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15220. /**
  15221. * Checks if `value` is a buffer.
  15222. *
  15223. * @static
  15224. * @memberOf _
  15225. * @since 4.3.0
  15226. * @category Lang
  15227. * @param {*} value The value to check.
  15228. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15229. * @example
  15230. *
  15231. * _.isBuffer(new Buffer(2));
  15232. * // => true
  15233. *
  15234. * _.isBuffer(new Uint8Array(2));
  15235. * // => false
  15236. */
  15237. var isBuffer = nativeIsBuffer || stubFalse;
  15238. module.exports = isBuffer;
  15239. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15240. /***/ }),
  15241. /***/ "../../node_modules/lodash/isEmpty.js":
  15242. /*!**********************************************************!*\
  15243. !*** C:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  15244. \**********************************************************/
  15245. /*! no static exports found */
  15246. /***/ (function(module, exports, __webpack_require__) {
  15247. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15248. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15249. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15250. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15251. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15252. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15253. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15254. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15255. /** `Object#toString` result references. */
  15256. var mapTag = '[object Map]',
  15257. setTag = '[object Set]';
  15258. /** Used for built-in method references. */
  15259. var objectProto = Object.prototype;
  15260. /** Used to check objects for own properties. */
  15261. var hasOwnProperty = objectProto.hasOwnProperty;
  15262. /**
  15263. * Checks if `value` is an empty object, collection, map, or set.
  15264. *
  15265. * Objects are considered empty if they have no own enumerable string keyed
  15266. * properties.
  15267. *
  15268. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15269. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15270. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15271. *
  15272. * @static
  15273. * @memberOf _
  15274. * @since 0.1.0
  15275. * @category Lang
  15276. * @param {*} value The value to check.
  15277. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15278. * @example
  15279. *
  15280. * _.isEmpty(null);
  15281. * // => true
  15282. *
  15283. * _.isEmpty(true);
  15284. * // => true
  15285. *
  15286. * _.isEmpty(1);
  15287. * // => true
  15288. *
  15289. * _.isEmpty([1, 2, 3]);
  15290. * // => false
  15291. *
  15292. * _.isEmpty({ 'a': 1 });
  15293. * // => false
  15294. */
  15295. function isEmpty(value) {
  15296. if (value == null) {
  15297. return true;
  15298. }
  15299. if (isArrayLike(value) &&
  15300. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15301. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15302. return !value.length;
  15303. }
  15304. var tag = getTag(value);
  15305. if (tag == mapTag || tag == setTag) {
  15306. return !value.size;
  15307. }
  15308. if (isPrototype(value)) {
  15309. return !baseKeys(value).length;
  15310. }
  15311. for (var key in value) {
  15312. if (hasOwnProperty.call(value, key)) {
  15313. return false;
  15314. }
  15315. }
  15316. return true;
  15317. }
  15318. module.exports = isEmpty;
  15319. /***/ }),
  15320. /***/ "../../node_modules/lodash/isFunction.js":
  15321. /*!*************************************************************!*\
  15322. !*** C:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15323. \*************************************************************/
  15324. /*! no static exports found */
  15325. /***/ (function(module, exports, __webpack_require__) {
  15326. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15327. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15328. /** `Object#toString` result references. */
  15329. var asyncTag = '[object AsyncFunction]',
  15330. funcTag = '[object Function]',
  15331. genTag = '[object GeneratorFunction]',
  15332. proxyTag = '[object Proxy]';
  15333. /**
  15334. * Checks if `value` is classified as a `Function` object.
  15335. *
  15336. * @static
  15337. * @memberOf _
  15338. * @since 0.1.0
  15339. * @category Lang
  15340. * @param {*} value The value to check.
  15341. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15342. * @example
  15343. *
  15344. * _.isFunction(_);
  15345. * // => true
  15346. *
  15347. * _.isFunction(/abc/);
  15348. * // => false
  15349. */
  15350. function isFunction(value) {
  15351. if (!isObject(value)) {
  15352. return false;
  15353. }
  15354. // The use of `Object#toString` avoids issues with the `typeof` operator
  15355. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15356. var tag = baseGetTag(value);
  15357. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15358. }
  15359. module.exports = isFunction;
  15360. /***/ }),
  15361. /***/ "../../node_modules/lodash/isLength.js":
  15362. /*!***********************************************************!*\
  15363. !*** C:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15364. \***********************************************************/
  15365. /*! no static exports found */
  15366. /***/ (function(module, exports) {
  15367. /** Used as references for various `Number` constants. */
  15368. var MAX_SAFE_INTEGER = 9007199254740991;
  15369. /**
  15370. * Checks if `value` is a valid array-like length.
  15371. *
  15372. * **Note:** This method is loosely based on
  15373. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15374. *
  15375. * @static
  15376. * @memberOf _
  15377. * @since 4.0.0
  15378. * @category Lang
  15379. * @param {*} value The value to check.
  15380. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15381. * @example
  15382. *
  15383. * _.isLength(3);
  15384. * // => true
  15385. *
  15386. * _.isLength(Number.MIN_VALUE);
  15387. * // => false
  15388. *
  15389. * _.isLength(Infinity);
  15390. * // => false
  15391. *
  15392. * _.isLength('3');
  15393. * // => false
  15394. */
  15395. function isLength(value) {
  15396. return typeof value == 'number' &&
  15397. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15398. }
  15399. module.exports = isLength;
  15400. /***/ }),
  15401. /***/ "../../node_modules/lodash/isMap.js":
  15402. /*!********************************************************!*\
  15403. !*** C:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  15404. \********************************************************/
  15405. /*! no static exports found */
  15406. /***/ (function(module, exports, __webpack_require__) {
  15407. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15408. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15409. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15410. /* Node.js helper references. */
  15411. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15412. /**
  15413. * Checks if `value` is classified as a `Map` object.
  15414. *
  15415. * @static
  15416. * @memberOf _
  15417. * @since 4.3.0
  15418. * @category Lang
  15419. * @param {*} value The value to check.
  15420. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15421. * @example
  15422. *
  15423. * _.isMap(new Map);
  15424. * // => true
  15425. *
  15426. * _.isMap(new WeakMap);
  15427. * // => false
  15428. */
  15429. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15430. module.exports = isMap;
  15431. /***/ }),
  15432. /***/ "../../node_modules/lodash/isObject.js":
  15433. /*!***********************************************************!*\
  15434. !*** C:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  15435. \***********************************************************/
  15436. /*! no static exports found */
  15437. /***/ (function(module, exports) {
  15438. /**
  15439. * Checks if `value` is the
  15440. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15441. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15442. *
  15443. * @static
  15444. * @memberOf _
  15445. * @since 0.1.0
  15446. * @category Lang
  15447. * @param {*} value The value to check.
  15448. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15449. * @example
  15450. *
  15451. * _.isObject({});
  15452. * // => true
  15453. *
  15454. * _.isObject([1, 2, 3]);
  15455. * // => true
  15456. *
  15457. * _.isObject(_.noop);
  15458. * // => true
  15459. *
  15460. * _.isObject(null);
  15461. * // => false
  15462. */
  15463. function isObject(value) {
  15464. var type = typeof value;
  15465. return value != null && (type == 'object' || type == 'function');
  15466. }
  15467. module.exports = isObject;
  15468. /***/ }),
  15469. /***/ "../../node_modules/lodash/isObjectLike.js":
  15470. /*!***************************************************************!*\
  15471. !*** C:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15472. \***************************************************************/
  15473. /*! no static exports found */
  15474. /***/ (function(module, exports) {
  15475. /**
  15476. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15477. * and has a `typeof` result of "object".
  15478. *
  15479. * @static
  15480. * @memberOf _
  15481. * @since 4.0.0
  15482. * @category Lang
  15483. * @param {*} value The value to check.
  15484. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15485. * @example
  15486. *
  15487. * _.isObjectLike({});
  15488. * // => true
  15489. *
  15490. * _.isObjectLike([1, 2, 3]);
  15491. * // => true
  15492. *
  15493. * _.isObjectLike(_.noop);
  15494. * // => false
  15495. *
  15496. * _.isObjectLike(null);
  15497. * // => false
  15498. */
  15499. function isObjectLike(value) {
  15500. return value != null && typeof value == 'object';
  15501. }
  15502. module.exports = isObjectLike;
  15503. /***/ }),
  15504. /***/ "../../node_modules/lodash/isPlainObject.js":
  15505. /*!****************************************************************!*\
  15506. !*** C:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15507. \****************************************************************/
  15508. /*! no static exports found */
  15509. /***/ (function(module, exports, __webpack_require__) {
  15510. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15511. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15512. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15513. /** `Object#toString` result references. */
  15514. var objectTag = '[object Object]';
  15515. /** Used for built-in method references. */
  15516. var funcProto = Function.prototype,
  15517. objectProto = Object.prototype;
  15518. /** Used to resolve the decompiled source of functions. */
  15519. var funcToString = funcProto.toString;
  15520. /** Used to check objects for own properties. */
  15521. var hasOwnProperty = objectProto.hasOwnProperty;
  15522. /** Used to infer the `Object` constructor. */
  15523. var objectCtorString = funcToString.call(Object);
  15524. /**
  15525. * Checks if `value` is a plain object, that is, an object created by the
  15526. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15527. *
  15528. * @static
  15529. * @memberOf _
  15530. * @since 0.8.0
  15531. * @category Lang
  15532. * @param {*} value The value to check.
  15533. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15534. * @example
  15535. *
  15536. * function Foo() {
  15537. * this.a = 1;
  15538. * }
  15539. *
  15540. * _.isPlainObject(new Foo);
  15541. * // => false
  15542. *
  15543. * _.isPlainObject([1, 2, 3]);
  15544. * // => false
  15545. *
  15546. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15547. * // => true
  15548. *
  15549. * _.isPlainObject(Object.create(null));
  15550. * // => true
  15551. */
  15552. function isPlainObject(value) {
  15553. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15554. return false;
  15555. }
  15556. var proto = getPrototype(value);
  15557. if (proto === null) {
  15558. return true;
  15559. }
  15560. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15561. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15562. funcToString.call(Ctor) == objectCtorString;
  15563. }
  15564. module.exports = isPlainObject;
  15565. /***/ }),
  15566. /***/ "../../node_modules/lodash/isSet.js":
  15567. /*!********************************************************!*\
  15568. !*** C:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  15569. \********************************************************/
  15570. /*! no static exports found */
  15571. /***/ (function(module, exports, __webpack_require__) {
  15572. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15573. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15574. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15575. /* Node.js helper references. */
  15576. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15577. /**
  15578. * Checks if `value` is classified as a `Set` object.
  15579. *
  15580. * @static
  15581. * @memberOf _
  15582. * @since 4.3.0
  15583. * @category Lang
  15584. * @param {*} value The value to check.
  15585. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15586. * @example
  15587. *
  15588. * _.isSet(new Set);
  15589. * // => true
  15590. *
  15591. * _.isSet(new WeakSet);
  15592. * // => false
  15593. */
  15594. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15595. module.exports = isSet;
  15596. /***/ }),
  15597. /***/ "../../node_modules/lodash/isString.js":
  15598. /*!***********************************************************!*\
  15599. !*** C:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  15600. \***********************************************************/
  15601. /*! no static exports found */
  15602. /***/ (function(module, exports, __webpack_require__) {
  15603. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15604. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15605. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15606. /** `Object#toString` result references. */
  15607. var stringTag = '[object String]';
  15608. /**
  15609. * Checks if `value` is classified as a `String` primitive or object.
  15610. *
  15611. * @static
  15612. * @since 0.1.0
  15613. * @memberOf _
  15614. * @category Lang
  15615. * @param {*} value The value to check.
  15616. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15617. * @example
  15618. *
  15619. * _.isString('abc');
  15620. * // => true
  15621. *
  15622. * _.isString(1);
  15623. * // => false
  15624. */
  15625. function isString(value) {
  15626. return typeof value == 'string' ||
  15627. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15628. }
  15629. module.exports = isString;
  15630. /***/ }),
  15631. /***/ "../../node_modules/lodash/isSymbol.js":
  15632. /*!***********************************************************!*\
  15633. !*** C:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15634. \***********************************************************/
  15635. /*! no static exports found */
  15636. /***/ (function(module, exports, __webpack_require__) {
  15637. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15638. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15639. /** `Object#toString` result references. */
  15640. var symbolTag = '[object Symbol]';
  15641. /**
  15642. * Checks if `value` is classified as a `Symbol` primitive or object.
  15643. *
  15644. * @static
  15645. * @memberOf _
  15646. * @since 4.0.0
  15647. * @category Lang
  15648. * @param {*} value The value to check.
  15649. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15650. * @example
  15651. *
  15652. * _.isSymbol(Symbol.iterator);
  15653. * // => true
  15654. *
  15655. * _.isSymbol('abc');
  15656. * // => false
  15657. */
  15658. function isSymbol(value) {
  15659. return typeof value == 'symbol' ||
  15660. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15661. }
  15662. module.exports = isSymbol;
  15663. /***/ }),
  15664. /***/ "../../node_modules/lodash/isTypedArray.js":
  15665. /*!***************************************************************!*\
  15666. !*** C:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15667. \***************************************************************/
  15668. /*! no static exports found */
  15669. /***/ (function(module, exports, __webpack_require__) {
  15670. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15671. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15672. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15673. /* Node.js helper references. */
  15674. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15675. /**
  15676. * Checks if `value` is classified as a typed array.
  15677. *
  15678. * @static
  15679. * @memberOf _
  15680. * @since 3.0.0
  15681. * @category Lang
  15682. * @param {*} value The value to check.
  15683. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15684. * @example
  15685. *
  15686. * _.isTypedArray(new Uint8Array);
  15687. * // => true
  15688. *
  15689. * _.isTypedArray([]);
  15690. * // => false
  15691. */
  15692. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15693. module.exports = isTypedArray;
  15694. /***/ }),
  15695. /***/ "../../node_modules/lodash/isUndefined.js":
  15696. /*!**************************************************************!*\
  15697. !*** C:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15698. \**************************************************************/
  15699. /*! no static exports found */
  15700. /***/ (function(module, exports) {
  15701. /**
  15702. * Checks if `value` is `undefined`.
  15703. *
  15704. * @static
  15705. * @since 0.1.0
  15706. * @memberOf _
  15707. * @category Lang
  15708. * @param {*} value The value to check.
  15709. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15710. * @example
  15711. *
  15712. * _.isUndefined(void 0);
  15713. * // => true
  15714. *
  15715. * _.isUndefined(null);
  15716. * // => false
  15717. */
  15718. function isUndefined(value) {
  15719. return value === undefined;
  15720. }
  15721. module.exports = isUndefined;
  15722. /***/ }),
  15723. /***/ "../../node_modules/lodash/keys.js":
  15724. /*!*******************************************************!*\
  15725. !*** C:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  15726. \*******************************************************/
  15727. /*! no static exports found */
  15728. /***/ (function(module, exports, __webpack_require__) {
  15729. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15730. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15731. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15732. /**
  15733. * Creates an array of the own enumerable property names of `object`.
  15734. *
  15735. * **Note:** Non-object values are coerced to objects. See the
  15736. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15737. * for more details.
  15738. *
  15739. * @static
  15740. * @since 0.1.0
  15741. * @memberOf _
  15742. * @category Object
  15743. * @param {Object} object The object to query.
  15744. * @returns {Array} Returns the array of property names.
  15745. * @example
  15746. *
  15747. * function Foo() {
  15748. * this.a = 1;
  15749. * this.b = 2;
  15750. * }
  15751. *
  15752. * Foo.prototype.c = 3;
  15753. *
  15754. * _.keys(new Foo);
  15755. * // => ['a', 'b'] (iteration order is not guaranteed)
  15756. *
  15757. * _.keys('hi');
  15758. * // => ['0', '1']
  15759. */
  15760. function keys(object) {
  15761. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  15762. }
  15763. module.exports = keys;
  15764. /***/ }),
  15765. /***/ "../../node_modules/lodash/keysIn.js":
  15766. /*!*********************************************************!*\
  15767. !*** C:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  15768. \*********************************************************/
  15769. /*! no static exports found */
  15770. /***/ (function(module, exports, __webpack_require__) {
  15771. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15772. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  15773. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15774. /**
  15775. * Creates an array of the own and inherited enumerable property names of `object`.
  15776. *
  15777. * **Note:** Non-object values are coerced to objects.
  15778. *
  15779. * @static
  15780. * @memberOf _
  15781. * @since 3.0.0
  15782. * @category Object
  15783. * @param {Object} object The object to query.
  15784. * @returns {Array} Returns the array of property names.
  15785. * @example
  15786. *
  15787. * function Foo() {
  15788. * this.a = 1;
  15789. * this.b = 2;
  15790. * }
  15791. *
  15792. * Foo.prototype.c = 3;
  15793. *
  15794. * _.keysIn(new Foo);
  15795. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  15796. */
  15797. function keysIn(object) {
  15798. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  15799. }
  15800. module.exports = keysIn;
  15801. /***/ }),
  15802. /***/ "../../node_modules/lodash/last.js":
  15803. /*!*******************************************************!*\
  15804. !*** C:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  15805. \*******************************************************/
  15806. /*! no static exports found */
  15807. /***/ (function(module, exports) {
  15808. /**
  15809. * Gets the last element of `array`.
  15810. *
  15811. * @static
  15812. * @memberOf _
  15813. * @since 0.1.0
  15814. * @category Array
  15815. * @param {Array} array The array to query.
  15816. * @returns {*} Returns the last element of `array`.
  15817. * @example
  15818. *
  15819. * _.last([1, 2, 3]);
  15820. * // => 3
  15821. */
  15822. function last(array) {
  15823. var length = array == null ? 0 : array.length;
  15824. return length ? array[length - 1] : undefined;
  15825. }
  15826. module.exports = last;
  15827. /***/ }),
  15828. /***/ "../../node_modules/lodash/lodash.js":
  15829. /*!*********************************************************!*\
  15830. !*** C:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  15831. \*********************************************************/
  15832. /*! no static exports found */
  15833. /***/ (function(module, exports, __webpack_require__) {
  15834. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  15835. * @license
  15836. * Lodash <https://lodash.com/>
  15837. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  15838. * Released under MIT license <https://lodash.com/license>
  15839. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  15840. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  15841. */
  15842. ;(function() {
  15843. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  15844. var undefined;
  15845. /** Used as the semantic version number. */
  15846. var VERSION = '4.17.14';
  15847. /** Used as the size to enable large array optimizations. */
  15848. var LARGE_ARRAY_SIZE = 200;
  15849. /** Error message constants. */
  15850. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  15851. FUNC_ERROR_TEXT = 'Expected a function';
  15852. /** Used to stand-in for `undefined` hash values. */
  15853. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  15854. /** Used as the maximum memoize cache size. */
  15855. var MAX_MEMOIZE_SIZE = 500;
  15856. /** Used as the internal argument placeholder. */
  15857. var PLACEHOLDER = '__lodash_placeholder__';
  15858. /** Used to compose bitmasks for cloning. */
  15859. var CLONE_DEEP_FLAG = 1,
  15860. CLONE_FLAT_FLAG = 2,
  15861. CLONE_SYMBOLS_FLAG = 4;
  15862. /** Used to compose bitmasks for value comparisons. */
  15863. var COMPARE_PARTIAL_FLAG = 1,
  15864. COMPARE_UNORDERED_FLAG = 2;
  15865. /** Used to compose bitmasks for function metadata. */
  15866. var WRAP_BIND_FLAG = 1,
  15867. WRAP_BIND_KEY_FLAG = 2,
  15868. WRAP_CURRY_BOUND_FLAG = 4,
  15869. WRAP_CURRY_FLAG = 8,
  15870. WRAP_CURRY_RIGHT_FLAG = 16,
  15871. WRAP_PARTIAL_FLAG = 32,
  15872. WRAP_PARTIAL_RIGHT_FLAG = 64,
  15873. WRAP_ARY_FLAG = 128,
  15874. WRAP_REARG_FLAG = 256,
  15875. WRAP_FLIP_FLAG = 512;
  15876. /** Used as default options for `_.truncate`. */
  15877. var DEFAULT_TRUNC_LENGTH = 30,
  15878. DEFAULT_TRUNC_OMISSION = '...';
  15879. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  15880. var HOT_COUNT = 800,
  15881. HOT_SPAN = 16;
  15882. /** Used to indicate the type of lazy iteratees. */
  15883. var LAZY_FILTER_FLAG = 1,
  15884. LAZY_MAP_FLAG = 2,
  15885. LAZY_WHILE_FLAG = 3;
  15886. /** Used as references for various `Number` constants. */
  15887. var INFINITY = 1 / 0,
  15888. MAX_SAFE_INTEGER = 9007199254740991,
  15889. MAX_INTEGER = 1.7976931348623157e+308,
  15890. NAN = 0 / 0;
  15891. /** Used as references for the maximum length and index of an array. */
  15892. var MAX_ARRAY_LENGTH = 4294967295,
  15893. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  15894. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  15895. /** Used to associate wrap methods with their bit flags. */
  15896. var wrapFlags = [
  15897. ['ary', WRAP_ARY_FLAG],
  15898. ['bind', WRAP_BIND_FLAG],
  15899. ['bindKey', WRAP_BIND_KEY_FLAG],
  15900. ['curry', WRAP_CURRY_FLAG],
  15901. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  15902. ['flip', WRAP_FLIP_FLAG],
  15903. ['partial', WRAP_PARTIAL_FLAG],
  15904. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  15905. ['rearg', WRAP_REARG_FLAG]
  15906. ];
  15907. /** `Object#toString` result references. */
  15908. var argsTag = '[object Arguments]',
  15909. arrayTag = '[object Array]',
  15910. asyncTag = '[object AsyncFunction]',
  15911. boolTag = '[object Boolean]',
  15912. dateTag = '[object Date]',
  15913. domExcTag = '[object DOMException]',
  15914. errorTag = '[object Error]',
  15915. funcTag = '[object Function]',
  15916. genTag = '[object GeneratorFunction]',
  15917. mapTag = '[object Map]',
  15918. numberTag = '[object Number]',
  15919. nullTag = '[object Null]',
  15920. objectTag = '[object Object]',
  15921. promiseTag = '[object Promise]',
  15922. proxyTag = '[object Proxy]',
  15923. regexpTag = '[object RegExp]',
  15924. setTag = '[object Set]',
  15925. stringTag = '[object String]',
  15926. symbolTag = '[object Symbol]',
  15927. undefinedTag = '[object Undefined]',
  15928. weakMapTag = '[object WeakMap]',
  15929. weakSetTag = '[object WeakSet]';
  15930. var arrayBufferTag = '[object ArrayBuffer]',
  15931. dataViewTag = '[object DataView]',
  15932. float32Tag = '[object Float32Array]',
  15933. float64Tag = '[object Float64Array]',
  15934. int8Tag = '[object Int8Array]',
  15935. int16Tag = '[object Int16Array]',
  15936. int32Tag = '[object Int32Array]',
  15937. uint8Tag = '[object Uint8Array]',
  15938. uint8ClampedTag = '[object Uint8ClampedArray]',
  15939. uint16Tag = '[object Uint16Array]',
  15940. uint32Tag = '[object Uint32Array]';
  15941. /** Used to match empty string literals in compiled template source. */
  15942. var reEmptyStringLeading = /\b__p \+= '';/g,
  15943. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  15944. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  15945. /** Used to match HTML entities and HTML characters. */
  15946. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  15947. reUnescapedHtml = /[&<>"']/g,
  15948. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  15949. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  15950. /** Used to match template delimiters. */
  15951. var reEscape = /<%-([\s\S]+?)%>/g,
  15952. reEvaluate = /<%([\s\S]+?)%>/g,
  15953. reInterpolate = /<%=([\s\S]+?)%>/g;
  15954. /** Used to match property names within property paths. */
  15955. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  15956. reIsPlainProp = /^\w*$/,
  15957. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  15958. /**
  15959. * Used to match `RegExp`
  15960. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15961. */
  15962. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  15963. reHasRegExpChar = RegExp(reRegExpChar.source);
  15964. /** Used to match leading and trailing whitespace. */
  15965. var reTrim = /^\s+|\s+$/g,
  15966. reTrimStart = /^\s+/,
  15967. reTrimEnd = /\s+$/;
  15968. /** Used to match wrap detail comments. */
  15969. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  15970. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  15971. reSplitDetails = /,? & /;
  15972. /** Used to match words composed of alphanumeric characters. */
  15973. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  15974. /** Used to match backslashes in property paths. */
  15975. var reEscapeChar = /\\(\\)?/g;
  15976. /**
  15977. * Used to match
  15978. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  15979. */
  15980. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  15981. /** Used to match `RegExp` flags from their coerced string values. */
  15982. var reFlags = /\w*$/;
  15983. /** Used to detect bad signed hexadecimal string values. */
  15984. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  15985. /** Used to detect binary string values. */
  15986. var reIsBinary = /^0b[01]+$/i;
  15987. /** Used to detect host constructors (Safari). */
  15988. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  15989. /** Used to detect octal string values. */
  15990. var reIsOctal = /^0o[0-7]+$/i;
  15991. /** Used to detect unsigned integer values. */
  15992. var reIsUint = /^(?:0|[1-9]\d*)$/;
  15993. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  15994. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  15995. /** Used to ensure capturing order of template delimiters. */
  15996. var reNoMatch = /($^)/;
  15997. /** Used to match unescaped characters in compiled string literals. */
  15998. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  15999. /** Used to compose unicode character classes. */
  16000. var rsAstralRange = '\\ud800-\\udfff',
  16001. rsComboMarksRange = '\\u0300-\\u036f',
  16002. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  16003. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  16004. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  16005. rsDingbatRange = '\\u2700-\\u27bf',
  16006. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  16007. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  16008. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  16009. rsPunctuationRange = '\\u2000-\\u206f',
  16010. 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',
  16011. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  16012. rsVarRange = '\\ufe0e\\ufe0f',
  16013. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  16014. /** Used to compose unicode capture groups. */
  16015. var rsApos = "['\u2019]",
  16016. rsAstral = '[' + rsAstralRange + ']',
  16017. rsBreak = '[' + rsBreakRange + ']',
  16018. rsCombo = '[' + rsComboRange + ']',
  16019. rsDigits = '\\d+',
  16020. rsDingbat = '[' + rsDingbatRange + ']',
  16021. rsLower = '[' + rsLowerRange + ']',
  16022. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  16023. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  16024. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  16025. rsNonAstral = '[^' + rsAstralRange + ']',
  16026. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  16027. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  16028. rsUpper = '[' + rsUpperRange + ']',
  16029. rsZWJ = '\\u200d';
  16030. /** Used to compose unicode regexes. */
  16031. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  16032. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  16033. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  16034. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  16035. reOptMod = rsModifier + '?',
  16036. rsOptVar = '[' + rsVarRange + ']?',
  16037. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  16038. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  16039. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  16040. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  16041. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  16042. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  16043. /** Used to match apostrophes. */
  16044. var reApos = RegExp(rsApos, 'g');
  16045. /**
  16046. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  16047. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  16048. */
  16049. var reComboMark = RegExp(rsCombo, 'g');
  16050. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  16051. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  16052. /** Used to match complex or compound words. */
  16053. var reUnicodeWord = RegExp([
  16054. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  16055. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  16056. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  16057. rsUpper + '+' + rsOptContrUpper,
  16058. rsOrdUpper,
  16059. rsOrdLower,
  16060. rsDigits,
  16061. rsEmoji
  16062. ].join('|'), 'g');
  16063. /** 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/). */
  16064. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  16065. /** Used to detect strings that need a more robust regexp to match words. */
  16066. 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 ]/;
  16067. /** Used to assign default `context` object properties. */
  16068. var contextProps = [
  16069. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  16070. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  16071. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  16072. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  16073. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  16074. ];
  16075. /** Used to make template sourceURLs easier to identify. */
  16076. var templateCounter = -1;
  16077. /** Used to identify `toStringTag` values of typed arrays. */
  16078. var typedArrayTags = {};
  16079. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  16080. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  16081. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  16082. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  16083. typedArrayTags[uint32Tag] = true;
  16084. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  16085. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  16086. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  16087. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  16088. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  16089. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  16090. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  16091. typedArrayTags[weakMapTag] = false;
  16092. /** Used to identify `toStringTag` values supported by `_.clone`. */
  16093. var cloneableTags = {};
  16094. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  16095. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  16096. cloneableTags[boolTag] = cloneableTags[dateTag] =
  16097. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  16098. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  16099. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  16100. cloneableTags[numberTag] = cloneableTags[objectTag] =
  16101. cloneableTags[regexpTag] = cloneableTags[setTag] =
  16102. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  16103. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  16104. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  16105. cloneableTags[errorTag] = cloneableTags[funcTag] =
  16106. cloneableTags[weakMapTag] = false;
  16107. /** Used to map Latin Unicode letters to basic Latin letters. */
  16108. var deburredLetters = {
  16109. // Latin-1 Supplement block.
  16110. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  16111. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  16112. '\xc7': 'C', '\xe7': 'c',
  16113. '\xd0': 'D', '\xf0': 'd',
  16114. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  16115. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  16116. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  16117. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  16118. '\xd1': 'N', '\xf1': 'n',
  16119. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  16120. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  16121. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  16122. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  16123. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  16124. '\xc6': 'Ae', '\xe6': 'ae',
  16125. '\xde': 'Th', '\xfe': 'th',
  16126. '\xdf': 'ss',
  16127. // Latin Extended-A block.
  16128. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  16129. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  16130. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  16131. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  16132. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  16133. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  16134. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  16135. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  16136. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  16137. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  16138. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  16139. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  16140. '\u0134': 'J', '\u0135': 'j',
  16141. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  16142. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  16143. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  16144. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  16145. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  16146. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  16147. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  16148. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  16149. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  16150. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  16151. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  16152. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  16153. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  16154. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  16155. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  16156. '\u0174': 'W', '\u0175': 'w',
  16157. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  16158. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  16159. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  16160. '\u0132': 'IJ', '\u0133': 'ij',
  16161. '\u0152': 'Oe', '\u0153': 'oe',
  16162. '\u0149': "'n", '\u017f': 's'
  16163. };
  16164. /** Used to map characters to HTML entities. */
  16165. var htmlEscapes = {
  16166. '&': '&amp;',
  16167. '<': '&lt;',
  16168. '>': '&gt;',
  16169. '"': '&quot;',
  16170. "'": '&#39;'
  16171. };
  16172. /** Used to map HTML entities to characters. */
  16173. var htmlUnescapes = {
  16174. '&amp;': '&',
  16175. '&lt;': '<',
  16176. '&gt;': '>',
  16177. '&quot;': '"',
  16178. '&#39;': "'"
  16179. };
  16180. /** Used to escape characters for inclusion in compiled string literals. */
  16181. var stringEscapes = {
  16182. '\\': '\\',
  16183. "'": "'",
  16184. '\n': 'n',
  16185. '\r': 'r',
  16186. '\u2028': 'u2028',
  16187. '\u2029': 'u2029'
  16188. };
  16189. /** Built-in method references without a dependency on `root`. */
  16190. var freeParseFloat = parseFloat,
  16191. freeParseInt = parseInt;
  16192. /** Detect free variable `global` from Node.js. */
  16193. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  16194. /** Detect free variable `self`. */
  16195. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  16196. /** Used as a reference to the global object. */
  16197. var root = freeGlobal || freeSelf || Function('return this')();
  16198. /** Detect free variable `exports`. */
  16199. var freeExports = true && exports && !exports.nodeType && exports;
  16200. /** Detect free variable `module`. */
  16201. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16202. /** Detect the popular CommonJS extension `module.exports`. */
  16203. var moduleExports = freeModule && freeModule.exports === freeExports;
  16204. /** Detect free variable `process` from Node.js. */
  16205. var freeProcess = moduleExports && freeGlobal.process;
  16206. /** Used to access faster Node.js helpers. */
  16207. var nodeUtil = (function() {
  16208. try {
  16209. // Use `util.types` for Node.js 10+.
  16210. var types = freeModule && freeModule.require && freeModule.require('util').types;
  16211. if (types) {
  16212. return types;
  16213. }
  16214. // Legacy `process.binding('util')` for Node.js < 10.
  16215. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  16216. } catch (e) {}
  16217. }());
  16218. /* Node.js helper references. */
  16219. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  16220. nodeIsDate = nodeUtil && nodeUtil.isDate,
  16221. nodeIsMap = nodeUtil && nodeUtil.isMap,
  16222. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  16223. nodeIsSet = nodeUtil && nodeUtil.isSet,
  16224. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  16225. /*--------------------------------------------------------------------------*/
  16226. /**
  16227. * A faster alternative to `Function#apply`, this function invokes `func`
  16228. * with the `this` binding of `thisArg` and the arguments of `args`.
  16229. *
  16230. * @private
  16231. * @param {Function} func The function to invoke.
  16232. * @param {*} thisArg The `this` binding of `func`.
  16233. * @param {Array} args The arguments to invoke `func` with.
  16234. * @returns {*} Returns the result of `func`.
  16235. */
  16236. function apply(func, thisArg, args) {
  16237. switch (args.length) {
  16238. case 0: return func.call(thisArg);
  16239. case 1: return func.call(thisArg, args[0]);
  16240. case 2: return func.call(thisArg, args[0], args[1]);
  16241. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  16242. }
  16243. return func.apply(thisArg, args);
  16244. }
  16245. /**
  16246. * A specialized version of `baseAggregator` for arrays.
  16247. *
  16248. * @private
  16249. * @param {Array} [array] The array to iterate over.
  16250. * @param {Function} setter The function to set `accumulator` values.
  16251. * @param {Function} iteratee The iteratee to transform keys.
  16252. * @param {Object} accumulator The initial aggregated object.
  16253. * @returns {Function} Returns `accumulator`.
  16254. */
  16255. function arrayAggregator(array, setter, iteratee, accumulator) {
  16256. var index = -1,
  16257. length = array == null ? 0 : array.length;
  16258. while (++index < length) {
  16259. var value = array[index];
  16260. setter(accumulator, value, iteratee(value), array);
  16261. }
  16262. return accumulator;
  16263. }
  16264. /**
  16265. * A specialized version of `_.forEach` for arrays without support for
  16266. * iteratee shorthands.
  16267. *
  16268. * @private
  16269. * @param {Array} [array] The array to iterate over.
  16270. * @param {Function} iteratee The function invoked per iteration.
  16271. * @returns {Array} Returns `array`.
  16272. */
  16273. function arrayEach(array, iteratee) {
  16274. var index = -1,
  16275. length = array == null ? 0 : array.length;
  16276. while (++index < length) {
  16277. if (iteratee(array[index], index, array) === false) {
  16278. break;
  16279. }
  16280. }
  16281. return array;
  16282. }
  16283. /**
  16284. * A specialized version of `_.forEachRight` for arrays without support for
  16285. * iteratee shorthands.
  16286. *
  16287. * @private
  16288. * @param {Array} [array] The array to iterate over.
  16289. * @param {Function} iteratee The function invoked per iteration.
  16290. * @returns {Array} Returns `array`.
  16291. */
  16292. function arrayEachRight(array, iteratee) {
  16293. var length = array == null ? 0 : array.length;
  16294. while (length--) {
  16295. if (iteratee(array[length], length, array) === false) {
  16296. break;
  16297. }
  16298. }
  16299. return array;
  16300. }
  16301. /**
  16302. * A specialized version of `_.every` for arrays without support for
  16303. * iteratee shorthands.
  16304. *
  16305. * @private
  16306. * @param {Array} [array] The array to iterate over.
  16307. * @param {Function} predicate The function invoked per iteration.
  16308. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  16309. * else `false`.
  16310. */
  16311. function arrayEvery(array, predicate) {
  16312. var index = -1,
  16313. length = array == null ? 0 : array.length;
  16314. while (++index < length) {
  16315. if (!predicate(array[index], index, array)) {
  16316. return false;
  16317. }
  16318. }
  16319. return true;
  16320. }
  16321. /**
  16322. * A specialized version of `_.filter` for arrays without support for
  16323. * iteratee shorthands.
  16324. *
  16325. * @private
  16326. * @param {Array} [array] The array to iterate over.
  16327. * @param {Function} predicate The function invoked per iteration.
  16328. * @returns {Array} Returns the new filtered array.
  16329. */
  16330. function arrayFilter(array, predicate) {
  16331. var index = -1,
  16332. length = array == null ? 0 : array.length,
  16333. resIndex = 0,
  16334. result = [];
  16335. while (++index < length) {
  16336. var value = array[index];
  16337. if (predicate(value, index, array)) {
  16338. result[resIndex++] = value;
  16339. }
  16340. }
  16341. return result;
  16342. }
  16343. /**
  16344. * A specialized version of `_.includes` for arrays without support for
  16345. * specifying an index to search from.
  16346. *
  16347. * @private
  16348. * @param {Array} [array] The array to inspect.
  16349. * @param {*} target The value to search for.
  16350. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16351. */
  16352. function arrayIncludes(array, value) {
  16353. var length = array == null ? 0 : array.length;
  16354. return !!length && baseIndexOf(array, value, 0) > -1;
  16355. }
  16356. /**
  16357. * This function is like `arrayIncludes` except that it accepts a comparator.
  16358. *
  16359. * @private
  16360. * @param {Array} [array] The array to inspect.
  16361. * @param {*} target The value to search for.
  16362. * @param {Function} comparator The comparator invoked per element.
  16363. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16364. */
  16365. function arrayIncludesWith(array, value, comparator) {
  16366. var index = -1,
  16367. length = array == null ? 0 : array.length;
  16368. while (++index < length) {
  16369. if (comparator(value, array[index])) {
  16370. return true;
  16371. }
  16372. }
  16373. return false;
  16374. }
  16375. /**
  16376. * A specialized version of `_.map` for arrays without support for iteratee
  16377. * shorthands.
  16378. *
  16379. * @private
  16380. * @param {Array} [array] The array to iterate over.
  16381. * @param {Function} iteratee The function invoked per iteration.
  16382. * @returns {Array} Returns the new mapped array.
  16383. */
  16384. function arrayMap(array, iteratee) {
  16385. var index = -1,
  16386. length = array == null ? 0 : array.length,
  16387. result = Array(length);
  16388. while (++index < length) {
  16389. result[index] = iteratee(array[index], index, array);
  16390. }
  16391. return result;
  16392. }
  16393. /**
  16394. * Appends the elements of `values` to `array`.
  16395. *
  16396. * @private
  16397. * @param {Array} array The array to modify.
  16398. * @param {Array} values The values to append.
  16399. * @returns {Array} Returns `array`.
  16400. */
  16401. function arrayPush(array, values) {
  16402. var index = -1,
  16403. length = values.length,
  16404. offset = array.length;
  16405. while (++index < length) {
  16406. array[offset + index] = values[index];
  16407. }
  16408. return array;
  16409. }
  16410. /**
  16411. * A specialized version of `_.reduce` for arrays without support for
  16412. * iteratee shorthands.
  16413. *
  16414. * @private
  16415. * @param {Array} [array] The array to iterate over.
  16416. * @param {Function} iteratee The function invoked per iteration.
  16417. * @param {*} [accumulator] The initial value.
  16418. * @param {boolean} [initAccum] Specify using the first element of `array` as
  16419. * the initial value.
  16420. * @returns {*} Returns the accumulated value.
  16421. */
  16422. function arrayReduce(array, iteratee, accumulator, initAccum) {
  16423. var index = -1,
  16424. length = array == null ? 0 : array.length;
  16425. if (initAccum && length) {
  16426. accumulator = array[++index];
  16427. }
  16428. while (++index < length) {
  16429. accumulator = iteratee(accumulator, array[index], index, array);
  16430. }
  16431. return accumulator;
  16432. }
  16433. /**
  16434. * A specialized version of `_.reduceRight` for arrays without support for
  16435. * iteratee shorthands.
  16436. *
  16437. * @private
  16438. * @param {Array} [array] The array to iterate over.
  16439. * @param {Function} iteratee The function invoked per iteration.
  16440. * @param {*} [accumulator] The initial value.
  16441. * @param {boolean} [initAccum] Specify using the last element of `array` as
  16442. * the initial value.
  16443. * @returns {*} Returns the accumulated value.
  16444. */
  16445. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  16446. var length = array == null ? 0 : array.length;
  16447. if (initAccum && length) {
  16448. accumulator = array[--length];
  16449. }
  16450. while (length--) {
  16451. accumulator = iteratee(accumulator, array[length], length, array);
  16452. }
  16453. return accumulator;
  16454. }
  16455. /**
  16456. * A specialized version of `_.some` for arrays without support for iteratee
  16457. * shorthands.
  16458. *
  16459. * @private
  16460. * @param {Array} [array] The array to iterate over.
  16461. * @param {Function} predicate The function invoked per iteration.
  16462. * @returns {boolean} Returns `true` if any element passes the predicate check,
  16463. * else `false`.
  16464. */
  16465. function arraySome(array, predicate) {
  16466. var index = -1,
  16467. length = array == null ? 0 : array.length;
  16468. while (++index < length) {
  16469. if (predicate(array[index], index, array)) {
  16470. return true;
  16471. }
  16472. }
  16473. return false;
  16474. }
  16475. /**
  16476. * Gets the size of an ASCII `string`.
  16477. *
  16478. * @private
  16479. * @param {string} string The string inspect.
  16480. * @returns {number} Returns the string size.
  16481. */
  16482. var asciiSize = baseProperty('length');
  16483. /**
  16484. * Converts an ASCII `string` to an array.
  16485. *
  16486. * @private
  16487. * @param {string} string The string to convert.
  16488. * @returns {Array} Returns the converted array.
  16489. */
  16490. function asciiToArray(string) {
  16491. return string.split('');
  16492. }
  16493. /**
  16494. * Splits an ASCII `string` into an array of its words.
  16495. *
  16496. * @private
  16497. * @param {string} The string to inspect.
  16498. * @returns {Array} Returns the words of `string`.
  16499. */
  16500. function asciiWords(string) {
  16501. return string.match(reAsciiWord) || [];
  16502. }
  16503. /**
  16504. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  16505. * without support for iteratee shorthands, which iterates over `collection`
  16506. * using `eachFunc`.
  16507. *
  16508. * @private
  16509. * @param {Array|Object} collection The collection to inspect.
  16510. * @param {Function} predicate The function invoked per iteration.
  16511. * @param {Function} eachFunc The function to iterate over `collection`.
  16512. * @returns {*} Returns the found element or its key, else `undefined`.
  16513. */
  16514. function baseFindKey(collection, predicate, eachFunc) {
  16515. var result;
  16516. eachFunc(collection, function(value, key, collection) {
  16517. if (predicate(value, key, collection)) {
  16518. result = key;
  16519. return false;
  16520. }
  16521. });
  16522. return result;
  16523. }
  16524. /**
  16525. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  16526. * support for iteratee shorthands.
  16527. *
  16528. * @private
  16529. * @param {Array} array The array to inspect.
  16530. * @param {Function} predicate The function invoked per iteration.
  16531. * @param {number} fromIndex The index to search from.
  16532. * @param {boolean} [fromRight] Specify iterating from right to left.
  16533. * @returns {number} Returns the index of the matched value, else `-1`.
  16534. */
  16535. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  16536. var length = array.length,
  16537. index = fromIndex + (fromRight ? 1 : -1);
  16538. while ((fromRight ? index-- : ++index < length)) {
  16539. if (predicate(array[index], index, array)) {
  16540. return index;
  16541. }
  16542. }
  16543. return -1;
  16544. }
  16545. /**
  16546. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  16547. *
  16548. * @private
  16549. * @param {Array} array The array to inspect.
  16550. * @param {*} value The value to search for.
  16551. * @param {number} fromIndex The index to search from.
  16552. * @returns {number} Returns the index of the matched value, else `-1`.
  16553. */
  16554. function baseIndexOf(array, value, fromIndex) {
  16555. return value === value
  16556. ? strictIndexOf(array, value, fromIndex)
  16557. : baseFindIndex(array, baseIsNaN, fromIndex);
  16558. }
  16559. /**
  16560. * This function is like `baseIndexOf` except that it accepts a comparator.
  16561. *
  16562. * @private
  16563. * @param {Array} array The array to inspect.
  16564. * @param {*} value The value to search for.
  16565. * @param {number} fromIndex The index to search from.
  16566. * @param {Function} comparator The comparator invoked per element.
  16567. * @returns {number} Returns the index of the matched value, else `-1`.
  16568. */
  16569. function baseIndexOfWith(array, value, fromIndex, comparator) {
  16570. var index = fromIndex - 1,
  16571. length = array.length;
  16572. while (++index < length) {
  16573. if (comparator(array[index], value)) {
  16574. return index;
  16575. }
  16576. }
  16577. return -1;
  16578. }
  16579. /**
  16580. * The base implementation of `_.isNaN` without support for number objects.
  16581. *
  16582. * @private
  16583. * @param {*} value The value to check.
  16584. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  16585. */
  16586. function baseIsNaN(value) {
  16587. return value !== value;
  16588. }
  16589. /**
  16590. * The base implementation of `_.mean` and `_.meanBy` without support for
  16591. * iteratee shorthands.
  16592. *
  16593. * @private
  16594. * @param {Array} array The array to iterate over.
  16595. * @param {Function} iteratee The function invoked per iteration.
  16596. * @returns {number} Returns the mean.
  16597. */
  16598. function baseMean(array, iteratee) {
  16599. var length = array == null ? 0 : array.length;
  16600. return length ? (baseSum(array, iteratee) / length) : NAN;
  16601. }
  16602. /**
  16603. * The base implementation of `_.property` without support for deep paths.
  16604. *
  16605. * @private
  16606. * @param {string} key The key of the property to get.
  16607. * @returns {Function} Returns the new accessor function.
  16608. */
  16609. function baseProperty(key) {
  16610. return function(object) {
  16611. return object == null ? undefined : object[key];
  16612. };
  16613. }
  16614. /**
  16615. * The base implementation of `_.propertyOf` without support for deep paths.
  16616. *
  16617. * @private
  16618. * @param {Object} object The object to query.
  16619. * @returns {Function} Returns the new accessor function.
  16620. */
  16621. function basePropertyOf(object) {
  16622. return function(key) {
  16623. return object == null ? undefined : object[key];
  16624. };
  16625. }
  16626. /**
  16627. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  16628. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  16629. *
  16630. * @private
  16631. * @param {Array|Object} collection The collection to iterate over.
  16632. * @param {Function} iteratee The function invoked per iteration.
  16633. * @param {*} accumulator The initial value.
  16634. * @param {boolean} initAccum Specify using the first or last element of
  16635. * `collection` as the initial value.
  16636. * @param {Function} eachFunc The function to iterate over `collection`.
  16637. * @returns {*} Returns the accumulated value.
  16638. */
  16639. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  16640. eachFunc(collection, function(value, index, collection) {
  16641. accumulator = initAccum
  16642. ? (initAccum = false, value)
  16643. : iteratee(accumulator, value, index, collection);
  16644. });
  16645. return accumulator;
  16646. }
  16647. /**
  16648. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16649. * sort order of `array` and replaces criteria objects with their corresponding
  16650. * values.
  16651. *
  16652. * @private
  16653. * @param {Array} array The array to sort.
  16654. * @param {Function} comparer The function to define sort order.
  16655. * @returns {Array} Returns `array`.
  16656. */
  16657. function baseSortBy(array, comparer) {
  16658. var length = array.length;
  16659. array.sort(comparer);
  16660. while (length--) {
  16661. array[length] = array[length].value;
  16662. }
  16663. return array;
  16664. }
  16665. /**
  16666. * The base implementation of `_.sum` and `_.sumBy` without support for
  16667. * iteratee shorthands.
  16668. *
  16669. * @private
  16670. * @param {Array} array The array to iterate over.
  16671. * @param {Function} iteratee The function invoked per iteration.
  16672. * @returns {number} Returns the sum.
  16673. */
  16674. function baseSum(array, iteratee) {
  16675. var result,
  16676. index = -1,
  16677. length = array.length;
  16678. while (++index < length) {
  16679. var current = iteratee(array[index]);
  16680. if (current !== undefined) {
  16681. result = result === undefined ? current : (result + current);
  16682. }
  16683. }
  16684. return result;
  16685. }
  16686. /**
  16687. * The base implementation of `_.times` without support for iteratee shorthands
  16688. * or max array length checks.
  16689. *
  16690. * @private
  16691. * @param {number} n The number of times to invoke `iteratee`.
  16692. * @param {Function} iteratee The function invoked per iteration.
  16693. * @returns {Array} Returns the array of results.
  16694. */
  16695. function baseTimes(n, iteratee) {
  16696. var index = -1,
  16697. result = Array(n);
  16698. while (++index < n) {
  16699. result[index] = iteratee(index);
  16700. }
  16701. return result;
  16702. }
  16703. /**
  16704. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  16705. * of key-value pairs for `object` corresponding to the property names of `props`.
  16706. *
  16707. * @private
  16708. * @param {Object} object The object to query.
  16709. * @param {Array} props The property names to get values for.
  16710. * @returns {Object} Returns the key-value pairs.
  16711. */
  16712. function baseToPairs(object, props) {
  16713. return arrayMap(props, function(key) {
  16714. return [key, object[key]];
  16715. });
  16716. }
  16717. /**
  16718. * The base implementation of `_.unary` without support for storing metadata.
  16719. *
  16720. * @private
  16721. * @param {Function} func The function to cap arguments for.
  16722. * @returns {Function} Returns the new capped function.
  16723. */
  16724. function baseUnary(func) {
  16725. return function(value) {
  16726. return func(value);
  16727. };
  16728. }
  16729. /**
  16730. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16731. * array of `object` property values corresponding to the property names
  16732. * of `props`.
  16733. *
  16734. * @private
  16735. * @param {Object} object The object to query.
  16736. * @param {Array} props The property names to get values for.
  16737. * @returns {Object} Returns the array of property values.
  16738. */
  16739. function baseValues(object, props) {
  16740. return arrayMap(props, function(key) {
  16741. return object[key];
  16742. });
  16743. }
  16744. /**
  16745. * Checks if a `cache` value for `key` exists.
  16746. *
  16747. * @private
  16748. * @param {Object} cache The cache to query.
  16749. * @param {string} key The key of the entry to check.
  16750. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16751. */
  16752. function cacheHas(cache, key) {
  16753. return cache.has(key);
  16754. }
  16755. /**
  16756. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  16757. * that is not found in the character symbols.
  16758. *
  16759. * @private
  16760. * @param {Array} strSymbols The string symbols to inspect.
  16761. * @param {Array} chrSymbols The character symbols to find.
  16762. * @returns {number} Returns the index of the first unmatched string symbol.
  16763. */
  16764. function charsStartIndex(strSymbols, chrSymbols) {
  16765. var index = -1,
  16766. length = strSymbols.length;
  16767. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16768. return index;
  16769. }
  16770. /**
  16771. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  16772. * that is not found in the character symbols.
  16773. *
  16774. * @private
  16775. * @param {Array} strSymbols The string symbols to inspect.
  16776. * @param {Array} chrSymbols The character symbols to find.
  16777. * @returns {number} Returns the index of the last unmatched string symbol.
  16778. */
  16779. function charsEndIndex(strSymbols, chrSymbols) {
  16780. var index = strSymbols.length;
  16781. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16782. return index;
  16783. }
  16784. /**
  16785. * Gets the number of `placeholder` occurrences in `array`.
  16786. *
  16787. * @private
  16788. * @param {Array} array The array to inspect.
  16789. * @param {*} placeholder The placeholder to search for.
  16790. * @returns {number} Returns the placeholder count.
  16791. */
  16792. function countHolders(array, placeholder) {
  16793. var length = array.length,
  16794. result = 0;
  16795. while (length--) {
  16796. if (array[length] === placeholder) {
  16797. ++result;
  16798. }
  16799. }
  16800. return result;
  16801. }
  16802. /**
  16803. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  16804. * letters to basic Latin letters.
  16805. *
  16806. * @private
  16807. * @param {string} letter The matched letter to deburr.
  16808. * @returns {string} Returns the deburred letter.
  16809. */
  16810. var deburrLetter = basePropertyOf(deburredLetters);
  16811. /**
  16812. * Used by `_.escape` to convert characters to HTML entities.
  16813. *
  16814. * @private
  16815. * @param {string} chr The matched character to escape.
  16816. * @returns {string} Returns the escaped character.
  16817. */
  16818. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  16819. /**
  16820. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  16821. *
  16822. * @private
  16823. * @param {string} chr The matched character to escape.
  16824. * @returns {string} Returns the escaped character.
  16825. */
  16826. function escapeStringChar(chr) {
  16827. return '\\' + stringEscapes[chr];
  16828. }
  16829. /**
  16830. * Gets the value at `key` of `object`.
  16831. *
  16832. * @private
  16833. * @param {Object} [object] The object to query.
  16834. * @param {string} key The key of the property to get.
  16835. * @returns {*} Returns the property value.
  16836. */
  16837. function getValue(object, key) {
  16838. return object == null ? undefined : object[key];
  16839. }
  16840. /**
  16841. * Checks if `string` contains Unicode symbols.
  16842. *
  16843. * @private
  16844. * @param {string} string The string to inspect.
  16845. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  16846. */
  16847. function hasUnicode(string) {
  16848. return reHasUnicode.test(string);
  16849. }
  16850. /**
  16851. * Checks if `string` contains a word composed of Unicode symbols.
  16852. *
  16853. * @private
  16854. * @param {string} string The string to inspect.
  16855. * @returns {boolean} Returns `true` if a word is found, else `false`.
  16856. */
  16857. function hasUnicodeWord(string) {
  16858. return reHasUnicodeWord.test(string);
  16859. }
  16860. /**
  16861. * Converts `iterator` to an array.
  16862. *
  16863. * @private
  16864. * @param {Object} iterator The iterator to convert.
  16865. * @returns {Array} Returns the converted array.
  16866. */
  16867. function iteratorToArray(iterator) {
  16868. var data,
  16869. result = [];
  16870. while (!(data = iterator.next()).done) {
  16871. result.push(data.value);
  16872. }
  16873. return result;
  16874. }
  16875. /**
  16876. * Converts `map` to its key-value pairs.
  16877. *
  16878. * @private
  16879. * @param {Object} map The map to convert.
  16880. * @returns {Array} Returns the key-value pairs.
  16881. */
  16882. function mapToArray(map) {
  16883. var index = -1,
  16884. result = Array(map.size);
  16885. map.forEach(function(value, key) {
  16886. result[++index] = [key, value];
  16887. });
  16888. return result;
  16889. }
  16890. /**
  16891. * Creates a unary function that invokes `func` with its argument transformed.
  16892. *
  16893. * @private
  16894. * @param {Function} func The function to wrap.
  16895. * @param {Function} transform The argument transform.
  16896. * @returns {Function} Returns the new function.
  16897. */
  16898. function overArg(func, transform) {
  16899. return function(arg) {
  16900. return func(transform(arg));
  16901. };
  16902. }
  16903. /**
  16904. * Replaces all `placeholder` elements in `array` with an internal placeholder
  16905. * and returns an array of their indexes.
  16906. *
  16907. * @private
  16908. * @param {Array} array The array to modify.
  16909. * @param {*} placeholder The placeholder to replace.
  16910. * @returns {Array} Returns the new array of placeholder indexes.
  16911. */
  16912. function replaceHolders(array, placeholder) {
  16913. var index = -1,
  16914. length = array.length,
  16915. resIndex = 0,
  16916. result = [];
  16917. while (++index < length) {
  16918. var value = array[index];
  16919. if (value === placeholder || value === PLACEHOLDER) {
  16920. array[index] = PLACEHOLDER;
  16921. result[resIndex++] = index;
  16922. }
  16923. }
  16924. return result;
  16925. }
  16926. /**
  16927. * Converts `set` to an array of its values.
  16928. *
  16929. * @private
  16930. * @param {Object} set The set to convert.
  16931. * @returns {Array} Returns the values.
  16932. */
  16933. function setToArray(set) {
  16934. var index = -1,
  16935. result = Array(set.size);
  16936. set.forEach(function(value) {
  16937. result[++index] = value;
  16938. });
  16939. return result;
  16940. }
  16941. /**
  16942. * Converts `set` to its value-value pairs.
  16943. *
  16944. * @private
  16945. * @param {Object} set The set to convert.
  16946. * @returns {Array} Returns the value-value pairs.
  16947. */
  16948. function setToPairs(set) {
  16949. var index = -1,
  16950. result = Array(set.size);
  16951. set.forEach(function(value) {
  16952. result[++index] = [value, value];
  16953. });
  16954. return result;
  16955. }
  16956. /**
  16957. * A specialized version of `_.indexOf` which performs strict equality
  16958. * comparisons of values, i.e. `===`.
  16959. *
  16960. * @private
  16961. * @param {Array} array The array to inspect.
  16962. * @param {*} value The value to search for.
  16963. * @param {number} fromIndex The index to search from.
  16964. * @returns {number} Returns the index of the matched value, else `-1`.
  16965. */
  16966. function strictIndexOf(array, value, fromIndex) {
  16967. var index = fromIndex - 1,
  16968. length = array.length;
  16969. while (++index < length) {
  16970. if (array[index] === value) {
  16971. return index;
  16972. }
  16973. }
  16974. return -1;
  16975. }
  16976. /**
  16977. * A specialized version of `_.lastIndexOf` which performs strict equality
  16978. * comparisons of values, i.e. `===`.
  16979. *
  16980. * @private
  16981. * @param {Array} array The array to inspect.
  16982. * @param {*} value The value to search for.
  16983. * @param {number} fromIndex The index to search from.
  16984. * @returns {number} Returns the index of the matched value, else `-1`.
  16985. */
  16986. function strictLastIndexOf(array, value, fromIndex) {
  16987. var index = fromIndex + 1;
  16988. while (index--) {
  16989. if (array[index] === value) {
  16990. return index;
  16991. }
  16992. }
  16993. return index;
  16994. }
  16995. /**
  16996. * Gets the number of symbols in `string`.
  16997. *
  16998. * @private
  16999. * @param {string} string The string to inspect.
  17000. * @returns {number} Returns the string size.
  17001. */
  17002. function stringSize(string) {
  17003. return hasUnicode(string)
  17004. ? unicodeSize(string)
  17005. : asciiSize(string);
  17006. }
  17007. /**
  17008. * Converts `string` to an array.
  17009. *
  17010. * @private
  17011. * @param {string} string The string to convert.
  17012. * @returns {Array} Returns the converted array.
  17013. */
  17014. function stringToArray(string) {
  17015. return hasUnicode(string)
  17016. ? unicodeToArray(string)
  17017. : asciiToArray(string);
  17018. }
  17019. /**
  17020. * Used by `_.unescape` to convert HTML entities to characters.
  17021. *
  17022. * @private
  17023. * @param {string} chr The matched character to unescape.
  17024. * @returns {string} Returns the unescaped character.
  17025. */
  17026. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  17027. /**
  17028. * Gets the size of a Unicode `string`.
  17029. *
  17030. * @private
  17031. * @param {string} string The string inspect.
  17032. * @returns {number} Returns the string size.
  17033. */
  17034. function unicodeSize(string) {
  17035. var result = reUnicode.lastIndex = 0;
  17036. while (reUnicode.test(string)) {
  17037. ++result;
  17038. }
  17039. return result;
  17040. }
  17041. /**
  17042. * Converts a Unicode `string` to an array.
  17043. *
  17044. * @private
  17045. * @param {string} string The string to convert.
  17046. * @returns {Array} Returns the converted array.
  17047. */
  17048. function unicodeToArray(string) {
  17049. return string.match(reUnicode) || [];
  17050. }
  17051. /**
  17052. * Splits a Unicode `string` into an array of its words.
  17053. *
  17054. * @private
  17055. * @param {string} The string to inspect.
  17056. * @returns {Array} Returns the words of `string`.
  17057. */
  17058. function unicodeWords(string) {
  17059. return string.match(reUnicodeWord) || [];
  17060. }
  17061. /*--------------------------------------------------------------------------*/
  17062. /**
  17063. * Create a new pristine `lodash` function using the `context` object.
  17064. *
  17065. * @static
  17066. * @memberOf _
  17067. * @since 1.1.0
  17068. * @category Util
  17069. * @param {Object} [context=root] The context object.
  17070. * @returns {Function} Returns a new `lodash` function.
  17071. * @example
  17072. *
  17073. * _.mixin({ 'foo': _.constant('foo') });
  17074. *
  17075. * var lodash = _.runInContext();
  17076. * lodash.mixin({ 'bar': lodash.constant('bar') });
  17077. *
  17078. * _.isFunction(_.foo);
  17079. * // => true
  17080. * _.isFunction(_.bar);
  17081. * // => false
  17082. *
  17083. * lodash.isFunction(lodash.foo);
  17084. * // => false
  17085. * lodash.isFunction(lodash.bar);
  17086. * // => true
  17087. *
  17088. * // Create a suped-up `defer` in Node.js.
  17089. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  17090. */
  17091. var runInContext = (function runInContext(context) {
  17092. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  17093. /** Built-in constructor references. */
  17094. var Array = context.Array,
  17095. Date = context.Date,
  17096. Error = context.Error,
  17097. Function = context.Function,
  17098. Math = context.Math,
  17099. Object = context.Object,
  17100. RegExp = context.RegExp,
  17101. String = context.String,
  17102. TypeError = context.TypeError;
  17103. /** Used for built-in method references. */
  17104. var arrayProto = Array.prototype,
  17105. funcProto = Function.prototype,
  17106. objectProto = Object.prototype;
  17107. /** Used to detect overreaching core-js shims. */
  17108. var coreJsData = context['__core-js_shared__'];
  17109. /** Used to resolve the decompiled source of functions. */
  17110. var funcToString = funcProto.toString;
  17111. /** Used to check objects for own properties. */
  17112. var hasOwnProperty = objectProto.hasOwnProperty;
  17113. /** Used to generate unique IDs. */
  17114. var idCounter = 0;
  17115. /** Used to detect methods masquerading as native. */
  17116. var maskSrcKey = (function() {
  17117. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  17118. return uid ? ('Symbol(src)_1.' + uid) : '';
  17119. }());
  17120. /**
  17121. * Used to resolve the
  17122. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17123. * of values.
  17124. */
  17125. var nativeObjectToString = objectProto.toString;
  17126. /** Used to infer the `Object` constructor. */
  17127. var objectCtorString = funcToString.call(Object);
  17128. /** Used to restore the original `_` reference in `_.noConflict`. */
  17129. var oldDash = root._;
  17130. /** Used to detect if a method is native. */
  17131. var reIsNative = RegExp('^' +
  17132. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  17133. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  17134. );
  17135. /** Built-in value references. */
  17136. var Buffer = moduleExports ? context.Buffer : undefined,
  17137. Symbol = context.Symbol,
  17138. Uint8Array = context.Uint8Array,
  17139. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  17140. getPrototype = overArg(Object.getPrototypeOf, Object),
  17141. objectCreate = Object.create,
  17142. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  17143. splice = arrayProto.splice,
  17144. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  17145. symIterator = Symbol ? Symbol.iterator : undefined,
  17146. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17147. var defineProperty = (function() {
  17148. try {
  17149. var func = getNative(Object, 'defineProperty');
  17150. func({}, '', {});
  17151. return func;
  17152. } catch (e) {}
  17153. }());
  17154. /** Mocked built-ins. */
  17155. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  17156. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  17157. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  17158. /* Built-in method references for those with the same name as other `lodash` methods. */
  17159. var nativeCeil = Math.ceil,
  17160. nativeFloor = Math.floor,
  17161. nativeGetSymbols = Object.getOwnPropertySymbols,
  17162. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  17163. nativeIsFinite = context.isFinite,
  17164. nativeJoin = arrayProto.join,
  17165. nativeKeys = overArg(Object.keys, Object),
  17166. nativeMax = Math.max,
  17167. nativeMin = Math.min,
  17168. nativeNow = Date.now,
  17169. nativeParseInt = context.parseInt,
  17170. nativeRandom = Math.random,
  17171. nativeReverse = arrayProto.reverse;
  17172. /* Built-in method references that are verified to be native. */
  17173. var DataView = getNative(context, 'DataView'),
  17174. Map = getNative(context, 'Map'),
  17175. Promise = getNative(context, 'Promise'),
  17176. Set = getNative(context, 'Set'),
  17177. WeakMap = getNative(context, 'WeakMap'),
  17178. nativeCreate = getNative(Object, 'create');
  17179. /** Used to store function metadata. */
  17180. var metaMap = WeakMap && new WeakMap;
  17181. /** Used to lookup unminified function names. */
  17182. var realNames = {};
  17183. /** Used to detect maps, sets, and weakmaps. */
  17184. var dataViewCtorString = toSource(DataView),
  17185. mapCtorString = toSource(Map),
  17186. promiseCtorString = toSource(Promise),
  17187. setCtorString = toSource(Set),
  17188. weakMapCtorString = toSource(WeakMap);
  17189. /** Used to convert symbols to primitives and strings. */
  17190. var symbolProto = Symbol ? Symbol.prototype : undefined,
  17191. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  17192. symbolToString = symbolProto ? symbolProto.toString : undefined;
  17193. /*------------------------------------------------------------------------*/
  17194. /**
  17195. * Creates a `lodash` object which wraps `value` to enable implicit method
  17196. * chain sequences. Methods that operate on and return arrays, collections,
  17197. * and functions can be chained together. Methods that retrieve a single value
  17198. * or may return a primitive value will automatically end the chain sequence
  17199. * and return the unwrapped value. Otherwise, the value must be unwrapped
  17200. * with `_#value`.
  17201. *
  17202. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  17203. * enabled using `_.chain`.
  17204. *
  17205. * The execution of chained methods is lazy, that is, it's deferred until
  17206. * `_#value` is implicitly or explicitly called.
  17207. *
  17208. * Lazy evaluation allows several methods to support shortcut fusion.
  17209. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  17210. * the creation of intermediate arrays and can greatly reduce the number of
  17211. * iteratee executions. Sections of a chain sequence qualify for shortcut
  17212. * fusion if the section is applied to an array and iteratees accept only
  17213. * one argument. The heuristic for whether a section qualifies for shortcut
  17214. * fusion is subject to change.
  17215. *
  17216. * Chaining is supported in custom builds as long as the `_#value` method is
  17217. * directly or indirectly included in the build.
  17218. *
  17219. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  17220. *
  17221. * The wrapper `Array` methods are:
  17222. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  17223. *
  17224. * The wrapper `String` methods are:
  17225. * `replace` and `split`
  17226. *
  17227. * The wrapper methods that support shortcut fusion are:
  17228. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  17229. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  17230. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  17231. *
  17232. * The chainable wrapper methods are:
  17233. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  17234. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  17235. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  17236. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  17237. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  17238. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  17239. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  17240. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  17241. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  17242. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  17243. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  17244. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  17245. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  17246. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  17247. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  17248. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  17249. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  17250. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  17251. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  17252. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  17253. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  17254. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  17255. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  17256. * `zipObject`, `zipObjectDeep`, and `zipWith`
  17257. *
  17258. * The wrapper methods that are **not** chainable by default are:
  17259. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  17260. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  17261. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  17262. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  17263. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  17264. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  17265. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  17266. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  17267. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  17268. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  17269. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  17270. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  17271. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  17272. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  17273. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  17274. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  17275. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  17276. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  17277. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  17278. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  17279. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  17280. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  17281. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  17282. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  17283. * `upperFirst`, `value`, and `words`
  17284. *
  17285. * @name _
  17286. * @constructor
  17287. * @category Seq
  17288. * @param {*} value The value to wrap in a `lodash` instance.
  17289. * @returns {Object} Returns the new `lodash` wrapper instance.
  17290. * @example
  17291. *
  17292. * function square(n) {
  17293. * return n * n;
  17294. * }
  17295. *
  17296. * var wrapped = _([1, 2, 3]);
  17297. *
  17298. * // Returns an unwrapped value.
  17299. * wrapped.reduce(_.add);
  17300. * // => 6
  17301. *
  17302. * // Returns a wrapped value.
  17303. * var squares = wrapped.map(square);
  17304. *
  17305. * _.isArray(squares);
  17306. * // => false
  17307. *
  17308. * _.isArray(squares.value());
  17309. * // => true
  17310. */
  17311. function lodash(value) {
  17312. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  17313. if (value instanceof LodashWrapper) {
  17314. return value;
  17315. }
  17316. if (hasOwnProperty.call(value, '__wrapped__')) {
  17317. return wrapperClone(value);
  17318. }
  17319. }
  17320. return new LodashWrapper(value);
  17321. }
  17322. /**
  17323. * The base implementation of `_.create` without support for assigning
  17324. * properties to the created object.
  17325. *
  17326. * @private
  17327. * @param {Object} proto The object to inherit from.
  17328. * @returns {Object} Returns the new object.
  17329. */
  17330. var baseCreate = (function() {
  17331. function object() {}
  17332. return function(proto) {
  17333. if (!isObject(proto)) {
  17334. return {};
  17335. }
  17336. if (objectCreate) {
  17337. return objectCreate(proto);
  17338. }
  17339. object.prototype = proto;
  17340. var result = new object;
  17341. object.prototype = undefined;
  17342. return result;
  17343. };
  17344. }());
  17345. /**
  17346. * The function whose prototype chain sequence wrappers inherit from.
  17347. *
  17348. * @private
  17349. */
  17350. function baseLodash() {
  17351. // No operation performed.
  17352. }
  17353. /**
  17354. * The base constructor for creating `lodash` wrapper objects.
  17355. *
  17356. * @private
  17357. * @param {*} value The value to wrap.
  17358. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  17359. */
  17360. function LodashWrapper(value, chainAll) {
  17361. this.__wrapped__ = value;
  17362. this.__actions__ = [];
  17363. this.__chain__ = !!chainAll;
  17364. this.__index__ = 0;
  17365. this.__values__ = undefined;
  17366. }
  17367. /**
  17368. * By default, the template delimiters used by lodash are like those in
  17369. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  17370. * following template settings to use alternative delimiters.
  17371. *
  17372. * @static
  17373. * @memberOf _
  17374. * @type {Object}
  17375. */
  17376. lodash.templateSettings = {
  17377. /**
  17378. * Used to detect `data` property values to be HTML-escaped.
  17379. *
  17380. * @memberOf _.templateSettings
  17381. * @type {RegExp}
  17382. */
  17383. 'escape': reEscape,
  17384. /**
  17385. * Used to detect code to be evaluated.
  17386. *
  17387. * @memberOf _.templateSettings
  17388. * @type {RegExp}
  17389. */
  17390. 'evaluate': reEvaluate,
  17391. /**
  17392. * Used to detect `data` property values to inject.
  17393. *
  17394. * @memberOf _.templateSettings
  17395. * @type {RegExp}
  17396. */
  17397. 'interpolate': reInterpolate,
  17398. /**
  17399. * Used to reference the data object in the template text.
  17400. *
  17401. * @memberOf _.templateSettings
  17402. * @type {string}
  17403. */
  17404. 'variable': '',
  17405. /**
  17406. * Used to import variables into the compiled template.
  17407. *
  17408. * @memberOf _.templateSettings
  17409. * @type {Object}
  17410. */
  17411. 'imports': {
  17412. /**
  17413. * A reference to the `lodash` function.
  17414. *
  17415. * @memberOf _.templateSettings.imports
  17416. * @type {Function}
  17417. */
  17418. '_': lodash
  17419. }
  17420. };
  17421. // Ensure wrappers are instances of `baseLodash`.
  17422. lodash.prototype = baseLodash.prototype;
  17423. lodash.prototype.constructor = lodash;
  17424. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  17425. LodashWrapper.prototype.constructor = LodashWrapper;
  17426. /*------------------------------------------------------------------------*/
  17427. /**
  17428. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  17429. *
  17430. * @private
  17431. * @constructor
  17432. * @param {*} value The value to wrap.
  17433. */
  17434. function LazyWrapper(value) {
  17435. this.__wrapped__ = value;
  17436. this.__actions__ = [];
  17437. this.__dir__ = 1;
  17438. this.__filtered__ = false;
  17439. this.__iteratees__ = [];
  17440. this.__takeCount__ = MAX_ARRAY_LENGTH;
  17441. this.__views__ = [];
  17442. }
  17443. /**
  17444. * Creates a clone of the lazy wrapper object.
  17445. *
  17446. * @private
  17447. * @name clone
  17448. * @memberOf LazyWrapper
  17449. * @returns {Object} Returns the cloned `LazyWrapper` object.
  17450. */
  17451. function lazyClone() {
  17452. var result = new LazyWrapper(this.__wrapped__);
  17453. result.__actions__ = copyArray(this.__actions__);
  17454. result.__dir__ = this.__dir__;
  17455. result.__filtered__ = this.__filtered__;
  17456. result.__iteratees__ = copyArray(this.__iteratees__);
  17457. result.__takeCount__ = this.__takeCount__;
  17458. result.__views__ = copyArray(this.__views__);
  17459. return result;
  17460. }
  17461. /**
  17462. * Reverses the direction of lazy iteration.
  17463. *
  17464. * @private
  17465. * @name reverse
  17466. * @memberOf LazyWrapper
  17467. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  17468. */
  17469. function lazyReverse() {
  17470. if (this.__filtered__) {
  17471. var result = new LazyWrapper(this);
  17472. result.__dir__ = -1;
  17473. result.__filtered__ = true;
  17474. } else {
  17475. result = this.clone();
  17476. result.__dir__ *= -1;
  17477. }
  17478. return result;
  17479. }
  17480. /**
  17481. * Extracts the unwrapped value from its lazy wrapper.
  17482. *
  17483. * @private
  17484. * @name value
  17485. * @memberOf LazyWrapper
  17486. * @returns {*} Returns the unwrapped value.
  17487. */
  17488. function lazyValue() {
  17489. var array = this.__wrapped__.value(),
  17490. dir = this.__dir__,
  17491. isArr = isArray(array),
  17492. isRight = dir < 0,
  17493. arrLength = isArr ? array.length : 0,
  17494. view = getView(0, arrLength, this.__views__),
  17495. start = view.start,
  17496. end = view.end,
  17497. length = end - start,
  17498. index = isRight ? end : (start - 1),
  17499. iteratees = this.__iteratees__,
  17500. iterLength = iteratees.length,
  17501. resIndex = 0,
  17502. takeCount = nativeMin(length, this.__takeCount__);
  17503. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  17504. return baseWrapperValue(array, this.__actions__);
  17505. }
  17506. var result = [];
  17507. outer:
  17508. while (length-- && resIndex < takeCount) {
  17509. index += dir;
  17510. var iterIndex = -1,
  17511. value = array[index];
  17512. while (++iterIndex < iterLength) {
  17513. var data = iteratees[iterIndex],
  17514. iteratee = data.iteratee,
  17515. type = data.type,
  17516. computed = iteratee(value);
  17517. if (type == LAZY_MAP_FLAG) {
  17518. value = computed;
  17519. } else if (!computed) {
  17520. if (type == LAZY_FILTER_FLAG) {
  17521. continue outer;
  17522. } else {
  17523. break outer;
  17524. }
  17525. }
  17526. }
  17527. result[resIndex++] = value;
  17528. }
  17529. return result;
  17530. }
  17531. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  17532. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  17533. LazyWrapper.prototype.constructor = LazyWrapper;
  17534. /*------------------------------------------------------------------------*/
  17535. /**
  17536. * Creates a hash object.
  17537. *
  17538. * @private
  17539. * @constructor
  17540. * @param {Array} [entries] The key-value pairs to cache.
  17541. */
  17542. function Hash(entries) {
  17543. var index = -1,
  17544. length = entries == null ? 0 : entries.length;
  17545. this.clear();
  17546. while (++index < length) {
  17547. var entry = entries[index];
  17548. this.set(entry[0], entry[1]);
  17549. }
  17550. }
  17551. /**
  17552. * Removes all key-value entries from the hash.
  17553. *
  17554. * @private
  17555. * @name clear
  17556. * @memberOf Hash
  17557. */
  17558. function hashClear() {
  17559. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17560. this.size = 0;
  17561. }
  17562. /**
  17563. * Removes `key` and its value from the hash.
  17564. *
  17565. * @private
  17566. * @name delete
  17567. * @memberOf Hash
  17568. * @param {Object} hash The hash to modify.
  17569. * @param {string} key The key of the value to remove.
  17570. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17571. */
  17572. function hashDelete(key) {
  17573. var result = this.has(key) && delete this.__data__[key];
  17574. this.size -= result ? 1 : 0;
  17575. return result;
  17576. }
  17577. /**
  17578. * Gets the hash value for `key`.
  17579. *
  17580. * @private
  17581. * @name get
  17582. * @memberOf Hash
  17583. * @param {string} key The key of the value to get.
  17584. * @returns {*} Returns the entry value.
  17585. */
  17586. function hashGet(key) {
  17587. var data = this.__data__;
  17588. if (nativeCreate) {
  17589. var result = data[key];
  17590. return result === HASH_UNDEFINED ? undefined : result;
  17591. }
  17592. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17593. }
  17594. /**
  17595. * Checks if a hash value for `key` exists.
  17596. *
  17597. * @private
  17598. * @name has
  17599. * @memberOf Hash
  17600. * @param {string} key The key of the entry to check.
  17601. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17602. */
  17603. function hashHas(key) {
  17604. var data = this.__data__;
  17605. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17606. }
  17607. /**
  17608. * Sets the hash `key` to `value`.
  17609. *
  17610. * @private
  17611. * @name set
  17612. * @memberOf Hash
  17613. * @param {string} key The key of the value to set.
  17614. * @param {*} value The value to set.
  17615. * @returns {Object} Returns the hash instance.
  17616. */
  17617. function hashSet(key, value) {
  17618. var data = this.__data__;
  17619. this.size += this.has(key) ? 0 : 1;
  17620. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17621. return this;
  17622. }
  17623. // Add methods to `Hash`.
  17624. Hash.prototype.clear = hashClear;
  17625. Hash.prototype['delete'] = hashDelete;
  17626. Hash.prototype.get = hashGet;
  17627. Hash.prototype.has = hashHas;
  17628. Hash.prototype.set = hashSet;
  17629. /*------------------------------------------------------------------------*/
  17630. /**
  17631. * Creates an list cache object.
  17632. *
  17633. * @private
  17634. * @constructor
  17635. * @param {Array} [entries] The key-value pairs to cache.
  17636. */
  17637. function ListCache(entries) {
  17638. var index = -1,
  17639. length = entries == null ? 0 : entries.length;
  17640. this.clear();
  17641. while (++index < length) {
  17642. var entry = entries[index];
  17643. this.set(entry[0], entry[1]);
  17644. }
  17645. }
  17646. /**
  17647. * Removes all key-value entries from the list cache.
  17648. *
  17649. * @private
  17650. * @name clear
  17651. * @memberOf ListCache
  17652. */
  17653. function listCacheClear() {
  17654. this.__data__ = [];
  17655. this.size = 0;
  17656. }
  17657. /**
  17658. * Removes `key` and its value from the list cache.
  17659. *
  17660. * @private
  17661. * @name delete
  17662. * @memberOf ListCache
  17663. * @param {string} key The key of the value to remove.
  17664. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17665. */
  17666. function listCacheDelete(key) {
  17667. var data = this.__data__,
  17668. index = assocIndexOf(data, key);
  17669. if (index < 0) {
  17670. return false;
  17671. }
  17672. var lastIndex = data.length - 1;
  17673. if (index == lastIndex) {
  17674. data.pop();
  17675. } else {
  17676. splice.call(data, index, 1);
  17677. }
  17678. --this.size;
  17679. return true;
  17680. }
  17681. /**
  17682. * Gets the list cache value for `key`.
  17683. *
  17684. * @private
  17685. * @name get
  17686. * @memberOf ListCache
  17687. * @param {string} key The key of the value to get.
  17688. * @returns {*} Returns the entry value.
  17689. */
  17690. function listCacheGet(key) {
  17691. var data = this.__data__,
  17692. index = assocIndexOf(data, key);
  17693. return index < 0 ? undefined : data[index][1];
  17694. }
  17695. /**
  17696. * Checks if a list cache value for `key` exists.
  17697. *
  17698. * @private
  17699. * @name has
  17700. * @memberOf ListCache
  17701. * @param {string} key The key of the entry to check.
  17702. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17703. */
  17704. function listCacheHas(key) {
  17705. return assocIndexOf(this.__data__, key) > -1;
  17706. }
  17707. /**
  17708. * Sets the list cache `key` to `value`.
  17709. *
  17710. * @private
  17711. * @name set
  17712. * @memberOf ListCache
  17713. * @param {string} key The key of the value to set.
  17714. * @param {*} value The value to set.
  17715. * @returns {Object} Returns the list cache instance.
  17716. */
  17717. function listCacheSet(key, value) {
  17718. var data = this.__data__,
  17719. index = assocIndexOf(data, key);
  17720. if (index < 0) {
  17721. ++this.size;
  17722. data.push([key, value]);
  17723. } else {
  17724. data[index][1] = value;
  17725. }
  17726. return this;
  17727. }
  17728. // Add methods to `ListCache`.
  17729. ListCache.prototype.clear = listCacheClear;
  17730. ListCache.prototype['delete'] = listCacheDelete;
  17731. ListCache.prototype.get = listCacheGet;
  17732. ListCache.prototype.has = listCacheHas;
  17733. ListCache.prototype.set = listCacheSet;
  17734. /*------------------------------------------------------------------------*/
  17735. /**
  17736. * Creates a map cache object to store key-value pairs.
  17737. *
  17738. * @private
  17739. * @constructor
  17740. * @param {Array} [entries] The key-value pairs to cache.
  17741. */
  17742. function MapCache(entries) {
  17743. var index = -1,
  17744. length = entries == null ? 0 : entries.length;
  17745. this.clear();
  17746. while (++index < length) {
  17747. var entry = entries[index];
  17748. this.set(entry[0], entry[1]);
  17749. }
  17750. }
  17751. /**
  17752. * Removes all key-value entries from the map.
  17753. *
  17754. * @private
  17755. * @name clear
  17756. * @memberOf MapCache
  17757. */
  17758. function mapCacheClear() {
  17759. this.size = 0;
  17760. this.__data__ = {
  17761. 'hash': new Hash,
  17762. 'map': new (Map || ListCache),
  17763. 'string': new Hash
  17764. };
  17765. }
  17766. /**
  17767. * Removes `key` and its value from the map.
  17768. *
  17769. * @private
  17770. * @name delete
  17771. * @memberOf MapCache
  17772. * @param {string} key The key of the value to remove.
  17773. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17774. */
  17775. function mapCacheDelete(key) {
  17776. var result = getMapData(this, key)['delete'](key);
  17777. this.size -= result ? 1 : 0;
  17778. return result;
  17779. }
  17780. /**
  17781. * Gets the map value for `key`.
  17782. *
  17783. * @private
  17784. * @name get
  17785. * @memberOf MapCache
  17786. * @param {string} key The key of the value to get.
  17787. * @returns {*} Returns the entry value.
  17788. */
  17789. function mapCacheGet(key) {
  17790. return getMapData(this, key).get(key);
  17791. }
  17792. /**
  17793. * Checks if a map value for `key` exists.
  17794. *
  17795. * @private
  17796. * @name has
  17797. * @memberOf MapCache
  17798. * @param {string} key The key of the entry to check.
  17799. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17800. */
  17801. function mapCacheHas(key) {
  17802. return getMapData(this, key).has(key);
  17803. }
  17804. /**
  17805. * Sets the map `key` to `value`.
  17806. *
  17807. * @private
  17808. * @name set
  17809. * @memberOf MapCache
  17810. * @param {string} key The key of the value to set.
  17811. * @param {*} value The value to set.
  17812. * @returns {Object} Returns the map cache instance.
  17813. */
  17814. function mapCacheSet(key, value) {
  17815. var data = getMapData(this, key),
  17816. size = data.size;
  17817. data.set(key, value);
  17818. this.size += data.size == size ? 0 : 1;
  17819. return this;
  17820. }
  17821. // Add methods to `MapCache`.
  17822. MapCache.prototype.clear = mapCacheClear;
  17823. MapCache.prototype['delete'] = mapCacheDelete;
  17824. MapCache.prototype.get = mapCacheGet;
  17825. MapCache.prototype.has = mapCacheHas;
  17826. MapCache.prototype.set = mapCacheSet;
  17827. /*------------------------------------------------------------------------*/
  17828. /**
  17829. *
  17830. * Creates an array cache object to store unique values.
  17831. *
  17832. * @private
  17833. * @constructor
  17834. * @param {Array} [values] The values to cache.
  17835. */
  17836. function SetCache(values) {
  17837. var index = -1,
  17838. length = values == null ? 0 : values.length;
  17839. this.__data__ = new MapCache;
  17840. while (++index < length) {
  17841. this.add(values[index]);
  17842. }
  17843. }
  17844. /**
  17845. * Adds `value` to the array cache.
  17846. *
  17847. * @private
  17848. * @name add
  17849. * @memberOf SetCache
  17850. * @alias push
  17851. * @param {*} value The value to cache.
  17852. * @returns {Object} Returns the cache instance.
  17853. */
  17854. function setCacheAdd(value) {
  17855. this.__data__.set(value, HASH_UNDEFINED);
  17856. return this;
  17857. }
  17858. /**
  17859. * Checks if `value` is in the array cache.
  17860. *
  17861. * @private
  17862. * @name has
  17863. * @memberOf SetCache
  17864. * @param {*} value The value to search for.
  17865. * @returns {number} Returns `true` if `value` is found, else `false`.
  17866. */
  17867. function setCacheHas(value) {
  17868. return this.__data__.has(value);
  17869. }
  17870. // Add methods to `SetCache`.
  17871. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  17872. SetCache.prototype.has = setCacheHas;
  17873. /*------------------------------------------------------------------------*/
  17874. /**
  17875. * Creates a stack cache object to store key-value pairs.
  17876. *
  17877. * @private
  17878. * @constructor
  17879. * @param {Array} [entries] The key-value pairs to cache.
  17880. */
  17881. function Stack(entries) {
  17882. var data = this.__data__ = new ListCache(entries);
  17883. this.size = data.size;
  17884. }
  17885. /**
  17886. * Removes all key-value entries from the stack.
  17887. *
  17888. * @private
  17889. * @name clear
  17890. * @memberOf Stack
  17891. */
  17892. function stackClear() {
  17893. this.__data__ = new ListCache;
  17894. this.size = 0;
  17895. }
  17896. /**
  17897. * Removes `key` and its value from the stack.
  17898. *
  17899. * @private
  17900. * @name delete
  17901. * @memberOf Stack
  17902. * @param {string} key The key of the value to remove.
  17903. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17904. */
  17905. function stackDelete(key) {
  17906. var data = this.__data__,
  17907. result = data['delete'](key);
  17908. this.size = data.size;
  17909. return result;
  17910. }
  17911. /**
  17912. * Gets the stack value for `key`.
  17913. *
  17914. * @private
  17915. * @name get
  17916. * @memberOf Stack
  17917. * @param {string} key The key of the value to get.
  17918. * @returns {*} Returns the entry value.
  17919. */
  17920. function stackGet(key) {
  17921. return this.__data__.get(key);
  17922. }
  17923. /**
  17924. * Checks if a stack value for `key` exists.
  17925. *
  17926. * @private
  17927. * @name has
  17928. * @memberOf Stack
  17929. * @param {string} key The key of the entry to check.
  17930. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17931. */
  17932. function stackHas(key) {
  17933. return this.__data__.has(key);
  17934. }
  17935. /**
  17936. * Sets the stack `key` to `value`.
  17937. *
  17938. * @private
  17939. * @name set
  17940. * @memberOf Stack
  17941. * @param {string} key The key of the value to set.
  17942. * @param {*} value The value to set.
  17943. * @returns {Object} Returns the stack cache instance.
  17944. */
  17945. function stackSet(key, value) {
  17946. var data = this.__data__;
  17947. if (data instanceof ListCache) {
  17948. var pairs = data.__data__;
  17949. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  17950. pairs.push([key, value]);
  17951. this.size = ++data.size;
  17952. return this;
  17953. }
  17954. data = this.__data__ = new MapCache(pairs);
  17955. }
  17956. data.set(key, value);
  17957. this.size = data.size;
  17958. return this;
  17959. }
  17960. // Add methods to `Stack`.
  17961. Stack.prototype.clear = stackClear;
  17962. Stack.prototype['delete'] = stackDelete;
  17963. Stack.prototype.get = stackGet;
  17964. Stack.prototype.has = stackHas;
  17965. Stack.prototype.set = stackSet;
  17966. /*------------------------------------------------------------------------*/
  17967. /**
  17968. * Creates an array of the enumerable property names of the array-like `value`.
  17969. *
  17970. * @private
  17971. * @param {*} value The value to query.
  17972. * @param {boolean} inherited Specify returning inherited property names.
  17973. * @returns {Array} Returns the array of property names.
  17974. */
  17975. function arrayLikeKeys(value, inherited) {
  17976. var isArr = isArray(value),
  17977. isArg = !isArr && isArguments(value),
  17978. isBuff = !isArr && !isArg && isBuffer(value),
  17979. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  17980. skipIndexes = isArr || isArg || isBuff || isType,
  17981. result = skipIndexes ? baseTimes(value.length, String) : [],
  17982. length = result.length;
  17983. for (var key in value) {
  17984. if ((inherited || hasOwnProperty.call(value, key)) &&
  17985. !(skipIndexes && (
  17986. // Safari 9 has enumerable `arguments.length` in strict mode.
  17987. key == 'length' ||
  17988. // Node.js 0.10 has enumerable non-index properties on buffers.
  17989. (isBuff && (key == 'offset' || key == 'parent')) ||
  17990. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  17991. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  17992. // Skip index properties.
  17993. isIndex(key, length)
  17994. ))) {
  17995. result.push(key);
  17996. }
  17997. }
  17998. return result;
  17999. }
  18000. /**
  18001. * A specialized version of `_.sample` for arrays.
  18002. *
  18003. * @private
  18004. * @param {Array} array The array to sample.
  18005. * @returns {*} Returns the random element.
  18006. */
  18007. function arraySample(array) {
  18008. var length = array.length;
  18009. return length ? array[baseRandom(0, length - 1)] : undefined;
  18010. }
  18011. /**
  18012. * A specialized version of `_.sampleSize` for arrays.
  18013. *
  18014. * @private
  18015. * @param {Array} array The array to sample.
  18016. * @param {number} n The number of elements to sample.
  18017. * @returns {Array} Returns the random elements.
  18018. */
  18019. function arraySampleSize(array, n) {
  18020. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  18021. }
  18022. /**
  18023. * A specialized version of `_.shuffle` for arrays.
  18024. *
  18025. * @private
  18026. * @param {Array} array The array to shuffle.
  18027. * @returns {Array} Returns the new shuffled array.
  18028. */
  18029. function arrayShuffle(array) {
  18030. return shuffleSelf(copyArray(array));
  18031. }
  18032. /**
  18033. * This function is like `assignValue` except that it doesn't assign
  18034. * `undefined` values.
  18035. *
  18036. * @private
  18037. * @param {Object} object The object to modify.
  18038. * @param {string} key The key of the property to assign.
  18039. * @param {*} value The value to assign.
  18040. */
  18041. function assignMergeValue(object, key, value) {
  18042. if ((value !== undefined && !eq(object[key], value)) ||
  18043. (value === undefined && !(key in object))) {
  18044. baseAssignValue(object, key, value);
  18045. }
  18046. }
  18047. /**
  18048. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  18049. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  18050. * for equality comparisons.
  18051. *
  18052. * @private
  18053. * @param {Object} object The object to modify.
  18054. * @param {string} key The key of the property to assign.
  18055. * @param {*} value The value to assign.
  18056. */
  18057. function assignValue(object, key, value) {
  18058. var objValue = object[key];
  18059. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  18060. (value === undefined && !(key in object))) {
  18061. baseAssignValue(object, key, value);
  18062. }
  18063. }
  18064. /**
  18065. * Gets the index at which the `key` is found in `array` of key-value pairs.
  18066. *
  18067. * @private
  18068. * @param {Array} array The array to inspect.
  18069. * @param {*} key The key to search for.
  18070. * @returns {number} Returns the index of the matched value, else `-1`.
  18071. */
  18072. function assocIndexOf(array, key) {
  18073. var length = array.length;
  18074. while (length--) {
  18075. if (eq(array[length][0], key)) {
  18076. return length;
  18077. }
  18078. }
  18079. return -1;
  18080. }
  18081. /**
  18082. * Aggregates elements of `collection` on `accumulator` with keys transformed
  18083. * by `iteratee` and values set by `setter`.
  18084. *
  18085. * @private
  18086. * @param {Array|Object} collection The collection to iterate over.
  18087. * @param {Function} setter The function to set `accumulator` values.
  18088. * @param {Function} iteratee The iteratee to transform keys.
  18089. * @param {Object} accumulator The initial aggregated object.
  18090. * @returns {Function} Returns `accumulator`.
  18091. */
  18092. function baseAggregator(collection, setter, iteratee, accumulator) {
  18093. baseEach(collection, function(value, key, collection) {
  18094. setter(accumulator, value, iteratee(value), collection);
  18095. });
  18096. return accumulator;
  18097. }
  18098. /**
  18099. * The base implementation of `_.assign` without support for multiple sources
  18100. * or `customizer` functions.
  18101. *
  18102. * @private
  18103. * @param {Object} object The destination object.
  18104. * @param {Object} source The source object.
  18105. * @returns {Object} Returns `object`.
  18106. */
  18107. function baseAssign(object, source) {
  18108. return object && copyObject(source, keys(source), object);
  18109. }
  18110. /**
  18111. * The base implementation of `_.assignIn` without support for multiple sources
  18112. * or `customizer` functions.
  18113. *
  18114. * @private
  18115. * @param {Object} object The destination object.
  18116. * @param {Object} source The source object.
  18117. * @returns {Object} Returns `object`.
  18118. */
  18119. function baseAssignIn(object, source) {
  18120. return object && copyObject(source, keysIn(source), object);
  18121. }
  18122. /**
  18123. * The base implementation of `assignValue` and `assignMergeValue` without
  18124. * value checks.
  18125. *
  18126. * @private
  18127. * @param {Object} object The object to modify.
  18128. * @param {string} key The key of the property to assign.
  18129. * @param {*} value The value to assign.
  18130. */
  18131. function baseAssignValue(object, key, value) {
  18132. if (key == '__proto__' && defineProperty) {
  18133. defineProperty(object, key, {
  18134. 'configurable': true,
  18135. 'enumerable': true,
  18136. 'value': value,
  18137. 'writable': true
  18138. });
  18139. } else {
  18140. object[key] = value;
  18141. }
  18142. }
  18143. /**
  18144. * The base implementation of `_.at` without support for individual paths.
  18145. *
  18146. * @private
  18147. * @param {Object} object The object to iterate over.
  18148. * @param {string[]} paths The property paths to pick.
  18149. * @returns {Array} Returns the picked elements.
  18150. */
  18151. function baseAt(object, paths) {
  18152. var index = -1,
  18153. length = paths.length,
  18154. result = Array(length),
  18155. skip = object == null;
  18156. while (++index < length) {
  18157. result[index] = skip ? undefined : get(object, paths[index]);
  18158. }
  18159. return result;
  18160. }
  18161. /**
  18162. * The base implementation of `_.clamp` which doesn't coerce arguments.
  18163. *
  18164. * @private
  18165. * @param {number} number The number to clamp.
  18166. * @param {number} [lower] The lower bound.
  18167. * @param {number} upper The upper bound.
  18168. * @returns {number} Returns the clamped number.
  18169. */
  18170. function baseClamp(number, lower, upper) {
  18171. if (number === number) {
  18172. if (upper !== undefined) {
  18173. number = number <= upper ? number : upper;
  18174. }
  18175. if (lower !== undefined) {
  18176. number = number >= lower ? number : lower;
  18177. }
  18178. }
  18179. return number;
  18180. }
  18181. /**
  18182. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  18183. * traversed objects.
  18184. *
  18185. * @private
  18186. * @param {*} value The value to clone.
  18187. * @param {boolean} bitmask The bitmask flags.
  18188. * 1 - Deep clone
  18189. * 2 - Flatten inherited properties
  18190. * 4 - Clone symbols
  18191. * @param {Function} [customizer] The function to customize cloning.
  18192. * @param {string} [key] The key of `value`.
  18193. * @param {Object} [object] The parent object of `value`.
  18194. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  18195. * @returns {*} Returns the cloned value.
  18196. */
  18197. function baseClone(value, bitmask, customizer, key, object, stack) {
  18198. var result,
  18199. isDeep = bitmask & CLONE_DEEP_FLAG,
  18200. isFlat = bitmask & CLONE_FLAT_FLAG,
  18201. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  18202. if (customizer) {
  18203. result = object ? customizer(value, key, object, stack) : customizer(value);
  18204. }
  18205. if (result !== undefined) {
  18206. return result;
  18207. }
  18208. if (!isObject(value)) {
  18209. return value;
  18210. }
  18211. var isArr = isArray(value);
  18212. if (isArr) {
  18213. result = initCloneArray(value);
  18214. if (!isDeep) {
  18215. return copyArray(value, result);
  18216. }
  18217. } else {
  18218. var tag = getTag(value),
  18219. isFunc = tag == funcTag || tag == genTag;
  18220. if (isBuffer(value)) {
  18221. return cloneBuffer(value, isDeep);
  18222. }
  18223. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  18224. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  18225. if (!isDeep) {
  18226. return isFlat
  18227. ? copySymbolsIn(value, baseAssignIn(result, value))
  18228. : copySymbols(value, baseAssign(result, value));
  18229. }
  18230. } else {
  18231. if (!cloneableTags[tag]) {
  18232. return object ? value : {};
  18233. }
  18234. result = initCloneByTag(value, tag, isDeep);
  18235. }
  18236. }
  18237. // Check for circular references and return its corresponding clone.
  18238. stack || (stack = new Stack);
  18239. var stacked = stack.get(value);
  18240. if (stacked) {
  18241. return stacked;
  18242. }
  18243. stack.set(value, result);
  18244. if (isSet(value)) {
  18245. value.forEach(function(subValue) {
  18246. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  18247. });
  18248. } else if (isMap(value)) {
  18249. value.forEach(function(subValue, key) {
  18250. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18251. });
  18252. }
  18253. var keysFunc = isFull
  18254. ? (isFlat ? getAllKeysIn : getAllKeys)
  18255. : (isFlat ? keysIn : keys);
  18256. var props = isArr ? undefined : keysFunc(value);
  18257. arrayEach(props || value, function(subValue, key) {
  18258. if (props) {
  18259. key = subValue;
  18260. subValue = value[key];
  18261. }
  18262. // Recursively populate clone (susceptible to call stack limits).
  18263. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18264. });
  18265. return result;
  18266. }
  18267. /**
  18268. * The base implementation of `_.conforms` which doesn't clone `source`.
  18269. *
  18270. * @private
  18271. * @param {Object} source The object of property predicates to conform to.
  18272. * @returns {Function} Returns the new spec function.
  18273. */
  18274. function baseConforms(source) {
  18275. var props = keys(source);
  18276. return function(object) {
  18277. return baseConformsTo(object, source, props);
  18278. };
  18279. }
  18280. /**
  18281. * The base implementation of `_.conformsTo` which accepts `props` to check.
  18282. *
  18283. * @private
  18284. * @param {Object} object The object to inspect.
  18285. * @param {Object} source The object of property predicates to conform to.
  18286. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  18287. */
  18288. function baseConformsTo(object, source, props) {
  18289. var length = props.length;
  18290. if (object == null) {
  18291. return !length;
  18292. }
  18293. object = Object(object);
  18294. while (length--) {
  18295. var key = props[length],
  18296. predicate = source[key],
  18297. value = object[key];
  18298. if ((value === undefined && !(key in object)) || !predicate(value)) {
  18299. return false;
  18300. }
  18301. }
  18302. return true;
  18303. }
  18304. /**
  18305. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  18306. * to provide to `func`.
  18307. *
  18308. * @private
  18309. * @param {Function} func The function to delay.
  18310. * @param {number} wait The number of milliseconds to delay invocation.
  18311. * @param {Array} args The arguments to provide to `func`.
  18312. * @returns {number|Object} Returns the timer id or timeout object.
  18313. */
  18314. function baseDelay(func, wait, args) {
  18315. if (typeof func != 'function') {
  18316. throw new TypeError(FUNC_ERROR_TEXT);
  18317. }
  18318. return setTimeout(function() { func.apply(undefined, args); }, wait);
  18319. }
  18320. /**
  18321. * The base implementation of methods like `_.difference` without support
  18322. * for excluding multiple arrays or iteratee shorthands.
  18323. *
  18324. * @private
  18325. * @param {Array} array The array to inspect.
  18326. * @param {Array} values The values to exclude.
  18327. * @param {Function} [iteratee] The iteratee invoked per element.
  18328. * @param {Function} [comparator] The comparator invoked per element.
  18329. * @returns {Array} Returns the new array of filtered values.
  18330. */
  18331. function baseDifference(array, values, iteratee, comparator) {
  18332. var index = -1,
  18333. includes = arrayIncludes,
  18334. isCommon = true,
  18335. length = array.length,
  18336. result = [],
  18337. valuesLength = values.length;
  18338. if (!length) {
  18339. return result;
  18340. }
  18341. if (iteratee) {
  18342. values = arrayMap(values, baseUnary(iteratee));
  18343. }
  18344. if (comparator) {
  18345. includes = arrayIncludesWith;
  18346. isCommon = false;
  18347. }
  18348. else if (values.length >= LARGE_ARRAY_SIZE) {
  18349. includes = cacheHas;
  18350. isCommon = false;
  18351. values = new SetCache(values);
  18352. }
  18353. outer:
  18354. while (++index < length) {
  18355. var value = array[index],
  18356. computed = iteratee == null ? value : iteratee(value);
  18357. value = (comparator || value !== 0) ? value : 0;
  18358. if (isCommon && computed === computed) {
  18359. var valuesIndex = valuesLength;
  18360. while (valuesIndex--) {
  18361. if (values[valuesIndex] === computed) {
  18362. continue outer;
  18363. }
  18364. }
  18365. result.push(value);
  18366. }
  18367. else if (!includes(values, computed, comparator)) {
  18368. result.push(value);
  18369. }
  18370. }
  18371. return result;
  18372. }
  18373. /**
  18374. * The base implementation of `_.forEach` without support for iteratee shorthands.
  18375. *
  18376. * @private
  18377. * @param {Array|Object} collection The collection to iterate over.
  18378. * @param {Function} iteratee The function invoked per iteration.
  18379. * @returns {Array|Object} Returns `collection`.
  18380. */
  18381. var baseEach = createBaseEach(baseForOwn);
  18382. /**
  18383. * The base implementation of `_.forEachRight` without support for iteratee shorthands.
  18384. *
  18385. * @private
  18386. * @param {Array|Object} collection The collection to iterate over.
  18387. * @param {Function} iteratee The function invoked per iteration.
  18388. * @returns {Array|Object} Returns `collection`.
  18389. */
  18390. var baseEachRight = createBaseEach(baseForOwnRight, true);
  18391. /**
  18392. * The base implementation of `_.every` without support for iteratee shorthands.
  18393. *
  18394. * @private
  18395. * @param {Array|Object} collection The collection to iterate over.
  18396. * @param {Function} predicate The function invoked per iteration.
  18397. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  18398. * else `false`
  18399. */
  18400. function baseEvery(collection, predicate) {
  18401. var result = true;
  18402. baseEach(collection, function(value, index, collection) {
  18403. result = !!predicate(value, index, collection);
  18404. return result;
  18405. });
  18406. return result;
  18407. }
  18408. /**
  18409. * The base implementation of methods like `_.max` and `_.min` which accepts a
  18410. * `comparator` to determine the extremum value.
  18411. *
  18412. * @private
  18413. * @param {Array} array The array to iterate over.
  18414. * @param {Function} iteratee The iteratee invoked per iteration.
  18415. * @param {Function} comparator The comparator used to compare values.
  18416. * @returns {*} Returns the extremum value.
  18417. */
  18418. function baseExtremum(array, iteratee, comparator) {
  18419. var index = -1,
  18420. length = array.length;
  18421. while (++index < length) {
  18422. var value = array[index],
  18423. current = iteratee(value);
  18424. if (current != null && (computed === undefined
  18425. ? (current === current && !isSymbol(current))
  18426. : comparator(current, computed)
  18427. )) {
  18428. var computed = current,
  18429. result = value;
  18430. }
  18431. }
  18432. return result;
  18433. }
  18434. /**
  18435. * The base implementation of `_.fill` without an iteratee call guard.
  18436. *
  18437. * @private
  18438. * @param {Array} array The array to fill.
  18439. * @param {*} value The value to fill `array` with.
  18440. * @param {number} [start=0] The start position.
  18441. * @param {number} [end=array.length] The end position.
  18442. * @returns {Array} Returns `array`.
  18443. */
  18444. function baseFill(array, value, start, end) {
  18445. var length = array.length;
  18446. start = toInteger(start);
  18447. if (start < 0) {
  18448. start = -start > length ? 0 : (length + start);
  18449. }
  18450. end = (end === undefined || end > length) ? length : toInteger(end);
  18451. if (end < 0) {
  18452. end += length;
  18453. }
  18454. end = start > end ? 0 : toLength(end);
  18455. while (start < end) {
  18456. array[start++] = value;
  18457. }
  18458. return array;
  18459. }
  18460. /**
  18461. * The base implementation of `_.filter` without support for iteratee shorthands.
  18462. *
  18463. * @private
  18464. * @param {Array|Object} collection The collection to iterate over.
  18465. * @param {Function} predicate The function invoked per iteration.
  18466. * @returns {Array} Returns the new filtered array.
  18467. */
  18468. function baseFilter(collection, predicate) {
  18469. var result = [];
  18470. baseEach(collection, function(value, index, collection) {
  18471. if (predicate(value, index, collection)) {
  18472. result.push(value);
  18473. }
  18474. });
  18475. return result;
  18476. }
  18477. /**
  18478. * The base implementation of `_.flatten` with support for restricting flattening.
  18479. *
  18480. * @private
  18481. * @param {Array} array The array to flatten.
  18482. * @param {number} depth The maximum recursion depth.
  18483. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  18484. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  18485. * @param {Array} [result=[]] The initial result value.
  18486. * @returns {Array} Returns the new flattened array.
  18487. */
  18488. function baseFlatten(array, depth, predicate, isStrict, result) {
  18489. var index = -1,
  18490. length = array.length;
  18491. predicate || (predicate = isFlattenable);
  18492. result || (result = []);
  18493. while (++index < length) {
  18494. var value = array[index];
  18495. if (depth > 0 && predicate(value)) {
  18496. if (depth > 1) {
  18497. // Recursively flatten arrays (susceptible to call stack limits).
  18498. baseFlatten(value, depth - 1, predicate, isStrict, result);
  18499. } else {
  18500. arrayPush(result, value);
  18501. }
  18502. } else if (!isStrict) {
  18503. result[result.length] = value;
  18504. }
  18505. }
  18506. return result;
  18507. }
  18508. /**
  18509. * The base implementation of `baseForOwn` which iterates over `object`
  18510. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  18511. * Iteratee functions may exit iteration early by explicitly returning `false`.
  18512. *
  18513. * @private
  18514. * @param {Object} object The object to iterate over.
  18515. * @param {Function} iteratee The function invoked per iteration.
  18516. * @param {Function} keysFunc The function to get the keys of `object`.
  18517. * @returns {Object} Returns `object`.
  18518. */
  18519. var baseFor = createBaseFor();
  18520. /**
  18521. * This function is like `baseFor` except that it iterates over properties
  18522. * in the opposite order.
  18523. *
  18524. * @private
  18525. * @param {Object} object The object to iterate over.
  18526. * @param {Function} iteratee The function invoked per iteration.
  18527. * @param {Function} keysFunc The function to get the keys of `object`.
  18528. * @returns {Object} Returns `object`.
  18529. */
  18530. var baseForRight = createBaseFor(true);
  18531. /**
  18532. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  18533. *
  18534. * @private
  18535. * @param {Object} object The object to iterate over.
  18536. * @param {Function} iteratee The function invoked per iteration.
  18537. * @returns {Object} Returns `object`.
  18538. */
  18539. function baseForOwn(object, iteratee) {
  18540. return object && baseFor(object, iteratee, keys);
  18541. }
  18542. /**
  18543. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  18544. *
  18545. * @private
  18546. * @param {Object} object The object to iterate over.
  18547. * @param {Function} iteratee The function invoked per iteration.
  18548. * @returns {Object} Returns `object`.
  18549. */
  18550. function baseForOwnRight(object, iteratee) {
  18551. return object && baseForRight(object, iteratee, keys);
  18552. }
  18553. /**
  18554. * The base implementation of `_.functions` which creates an array of
  18555. * `object` function property names filtered from `props`.
  18556. *
  18557. * @private
  18558. * @param {Object} object The object to inspect.
  18559. * @param {Array} props The property names to filter.
  18560. * @returns {Array} Returns the function names.
  18561. */
  18562. function baseFunctions(object, props) {
  18563. return arrayFilter(props, function(key) {
  18564. return isFunction(object[key]);
  18565. });
  18566. }
  18567. /**
  18568. * The base implementation of `_.get` without support for default values.
  18569. *
  18570. * @private
  18571. * @param {Object} object The object to query.
  18572. * @param {Array|string} path The path of the property to get.
  18573. * @returns {*} Returns the resolved value.
  18574. */
  18575. function baseGet(object, path) {
  18576. path = castPath(path, object);
  18577. var index = 0,
  18578. length = path.length;
  18579. while (object != null && index < length) {
  18580. object = object[toKey(path[index++])];
  18581. }
  18582. return (index && index == length) ? object : undefined;
  18583. }
  18584. /**
  18585. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  18586. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  18587. * symbols of `object`.
  18588. *
  18589. * @private
  18590. * @param {Object} object The object to query.
  18591. * @param {Function} keysFunc The function to get the keys of `object`.
  18592. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  18593. * @returns {Array} Returns the array of property names and symbols.
  18594. */
  18595. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  18596. var result = keysFunc(object);
  18597. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  18598. }
  18599. /**
  18600. * The base implementation of `getTag` without fallbacks for buggy environments.
  18601. *
  18602. * @private
  18603. * @param {*} value The value to query.
  18604. * @returns {string} Returns the `toStringTag`.
  18605. */
  18606. function baseGetTag(value) {
  18607. if (value == null) {
  18608. return value === undefined ? undefinedTag : nullTag;
  18609. }
  18610. return (symToStringTag && symToStringTag in Object(value))
  18611. ? getRawTag(value)
  18612. : objectToString(value);
  18613. }
  18614. /**
  18615. * The base implementation of `_.gt` which doesn't coerce arguments.
  18616. *
  18617. * @private
  18618. * @param {*} value The value to compare.
  18619. * @param {*} other The other value to compare.
  18620. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  18621. * else `false`.
  18622. */
  18623. function baseGt(value, other) {
  18624. return value > other;
  18625. }
  18626. /**
  18627. * The base implementation of `_.has` without support for deep paths.
  18628. *
  18629. * @private
  18630. * @param {Object} [object] The object to query.
  18631. * @param {Array|string} key The key to check.
  18632. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18633. */
  18634. function baseHas(object, key) {
  18635. return object != null && hasOwnProperty.call(object, key);
  18636. }
  18637. /**
  18638. * The base implementation of `_.hasIn` without support for deep paths.
  18639. *
  18640. * @private
  18641. * @param {Object} [object] The object to query.
  18642. * @param {Array|string} key The key to check.
  18643. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18644. */
  18645. function baseHasIn(object, key) {
  18646. return object != null && key in Object(object);
  18647. }
  18648. /**
  18649. * The base implementation of `_.inRange` which doesn't coerce arguments.
  18650. *
  18651. * @private
  18652. * @param {number} number The number to check.
  18653. * @param {number} start The start of the range.
  18654. * @param {number} end The end of the range.
  18655. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18656. */
  18657. function baseInRange(number, start, end) {
  18658. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  18659. }
  18660. /**
  18661. * The base implementation of methods like `_.intersection`, without support
  18662. * for iteratee shorthands, that accepts an array of arrays to inspect.
  18663. *
  18664. * @private
  18665. * @param {Array} arrays The arrays to inspect.
  18666. * @param {Function} [iteratee] The iteratee invoked per element.
  18667. * @param {Function} [comparator] The comparator invoked per element.
  18668. * @returns {Array} Returns the new array of shared values.
  18669. */
  18670. function baseIntersection(arrays, iteratee, comparator) {
  18671. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  18672. length = arrays[0].length,
  18673. othLength = arrays.length,
  18674. othIndex = othLength,
  18675. caches = Array(othLength),
  18676. maxLength = Infinity,
  18677. result = [];
  18678. while (othIndex--) {
  18679. var array = arrays[othIndex];
  18680. if (othIndex && iteratee) {
  18681. array = arrayMap(array, baseUnary(iteratee));
  18682. }
  18683. maxLength = nativeMin(array.length, maxLength);
  18684. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  18685. ? new SetCache(othIndex && array)
  18686. : undefined;
  18687. }
  18688. array = arrays[0];
  18689. var index = -1,
  18690. seen = caches[0];
  18691. outer:
  18692. while (++index < length && result.length < maxLength) {
  18693. var value = array[index],
  18694. computed = iteratee ? iteratee(value) : value;
  18695. value = (comparator || value !== 0) ? value : 0;
  18696. if (!(seen
  18697. ? cacheHas(seen, computed)
  18698. : includes(result, computed, comparator)
  18699. )) {
  18700. othIndex = othLength;
  18701. while (--othIndex) {
  18702. var cache = caches[othIndex];
  18703. if (!(cache
  18704. ? cacheHas(cache, computed)
  18705. : includes(arrays[othIndex], computed, comparator))
  18706. ) {
  18707. continue outer;
  18708. }
  18709. }
  18710. if (seen) {
  18711. seen.push(computed);
  18712. }
  18713. result.push(value);
  18714. }
  18715. }
  18716. return result;
  18717. }
  18718. /**
  18719. * The base implementation of `_.invert` and `_.invertBy` which inverts
  18720. * `object` with values transformed by `iteratee` and set by `setter`.
  18721. *
  18722. * @private
  18723. * @param {Object} object The object to iterate over.
  18724. * @param {Function} setter The function to set `accumulator` values.
  18725. * @param {Function} iteratee The iteratee to transform values.
  18726. * @param {Object} accumulator The initial inverted object.
  18727. * @returns {Function} Returns `accumulator`.
  18728. */
  18729. function baseInverter(object, setter, iteratee, accumulator) {
  18730. baseForOwn(object, function(value, key, object) {
  18731. setter(accumulator, iteratee(value), key, object);
  18732. });
  18733. return accumulator;
  18734. }
  18735. /**
  18736. * The base implementation of `_.invoke` without support for individual
  18737. * method arguments.
  18738. *
  18739. * @private
  18740. * @param {Object} object The object to query.
  18741. * @param {Array|string} path The path of the method to invoke.
  18742. * @param {Array} args The arguments to invoke the method with.
  18743. * @returns {*} Returns the result of the invoked method.
  18744. */
  18745. function baseInvoke(object, path, args) {
  18746. path = castPath(path, object);
  18747. object = parent(object, path);
  18748. var func = object == null ? object : object[toKey(last(path))];
  18749. return func == null ? undefined : apply(func, object, args);
  18750. }
  18751. /**
  18752. * The base implementation of `_.isArguments`.
  18753. *
  18754. * @private
  18755. * @param {*} value The value to check.
  18756. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  18757. */
  18758. function baseIsArguments(value) {
  18759. return isObjectLike(value) && baseGetTag(value) == argsTag;
  18760. }
  18761. /**
  18762. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  18763. *
  18764. * @private
  18765. * @param {*} value The value to check.
  18766. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  18767. */
  18768. function baseIsArrayBuffer(value) {
  18769. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  18770. }
  18771. /**
  18772. * The base implementation of `_.isDate` without Node.js optimizations.
  18773. *
  18774. * @private
  18775. * @param {*} value The value to check.
  18776. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  18777. */
  18778. function baseIsDate(value) {
  18779. return isObjectLike(value) && baseGetTag(value) == dateTag;
  18780. }
  18781. /**
  18782. * The base implementation of `_.isEqual` which supports partial comparisons
  18783. * and tracks traversed objects.
  18784. *
  18785. * @private
  18786. * @param {*} value The value to compare.
  18787. * @param {*} other The other value to compare.
  18788. * @param {boolean} bitmask The bitmask flags.
  18789. * 1 - Unordered comparison
  18790. * 2 - Partial comparison
  18791. * @param {Function} [customizer] The function to customize comparisons.
  18792. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  18793. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  18794. */
  18795. function baseIsEqual(value, other, bitmask, customizer, stack) {
  18796. if (value === other) {
  18797. return true;
  18798. }
  18799. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  18800. return value !== value && other !== other;
  18801. }
  18802. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  18803. }
  18804. /**
  18805. * A specialized version of `baseIsEqual` for arrays and objects which performs
  18806. * deep comparisons and tracks traversed objects enabling objects with circular
  18807. * references to be compared.
  18808. *
  18809. * @private
  18810. * @param {Object} object The object to compare.
  18811. * @param {Object} other The other object to compare.
  18812. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  18813. * @param {Function} customizer The function to customize comparisons.
  18814. * @param {Function} equalFunc The function to determine equivalents of values.
  18815. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  18816. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  18817. */
  18818. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  18819. var objIsArr = isArray(object),
  18820. othIsArr = isArray(other),
  18821. objTag = objIsArr ? arrayTag : getTag(object),
  18822. othTag = othIsArr ? arrayTag : getTag(other);
  18823. objTag = objTag == argsTag ? objectTag : objTag;
  18824. othTag = othTag == argsTag ? objectTag : othTag;
  18825. var objIsObj = objTag == objectTag,
  18826. othIsObj = othTag == objectTag,
  18827. isSameTag = objTag == othTag;
  18828. if (isSameTag && isBuffer(object)) {
  18829. if (!isBuffer(other)) {
  18830. return false;
  18831. }
  18832. objIsArr = true;
  18833. objIsObj = false;
  18834. }
  18835. if (isSameTag && !objIsObj) {
  18836. stack || (stack = new Stack);
  18837. return (objIsArr || isTypedArray(object))
  18838. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  18839. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  18840. }
  18841. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  18842. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  18843. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  18844. if (objIsWrapped || othIsWrapped) {
  18845. var objUnwrapped = objIsWrapped ? object.value() : object,
  18846. othUnwrapped = othIsWrapped ? other.value() : other;
  18847. stack || (stack = new Stack);
  18848. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  18849. }
  18850. }
  18851. if (!isSameTag) {
  18852. return false;
  18853. }
  18854. stack || (stack = new Stack);
  18855. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  18856. }
  18857. /**
  18858. * The base implementation of `_.isMap` without Node.js optimizations.
  18859. *
  18860. * @private
  18861. * @param {*} value The value to check.
  18862. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  18863. */
  18864. function baseIsMap(value) {
  18865. return isObjectLike(value) && getTag(value) == mapTag;
  18866. }
  18867. /**
  18868. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  18869. *
  18870. * @private
  18871. * @param {Object} object The object to inspect.
  18872. * @param {Object} source The object of property values to match.
  18873. * @param {Array} matchData The property names, values, and compare flags to match.
  18874. * @param {Function} [customizer] The function to customize comparisons.
  18875. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  18876. */
  18877. function baseIsMatch(object, source, matchData, customizer) {
  18878. var index = matchData.length,
  18879. length = index,
  18880. noCustomizer = !customizer;
  18881. if (object == null) {
  18882. return !length;
  18883. }
  18884. object = Object(object);
  18885. while (index--) {
  18886. var data = matchData[index];
  18887. if ((noCustomizer && data[2])
  18888. ? data[1] !== object[data[0]]
  18889. : !(data[0] in object)
  18890. ) {
  18891. return false;
  18892. }
  18893. }
  18894. while (++index < length) {
  18895. data = matchData[index];
  18896. var key = data[0],
  18897. objValue = object[key],
  18898. srcValue = data[1];
  18899. if (noCustomizer && data[2]) {
  18900. if (objValue === undefined && !(key in object)) {
  18901. return false;
  18902. }
  18903. } else {
  18904. var stack = new Stack;
  18905. if (customizer) {
  18906. var result = customizer(objValue, srcValue, key, object, source, stack);
  18907. }
  18908. if (!(result === undefined
  18909. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  18910. : result
  18911. )) {
  18912. return false;
  18913. }
  18914. }
  18915. }
  18916. return true;
  18917. }
  18918. /**
  18919. * The base implementation of `_.isNative` without bad shim checks.
  18920. *
  18921. * @private
  18922. * @param {*} value The value to check.
  18923. * @returns {boolean} Returns `true` if `value` is a native function,
  18924. * else `false`.
  18925. */
  18926. function baseIsNative(value) {
  18927. if (!isObject(value) || isMasked(value)) {
  18928. return false;
  18929. }
  18930. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  18931. return pattern.test(toSource(value));
  18932. }
  18933. /**
  18934. * The base implementation of `_.isRegExp` without Node.js optimizations.
  18935. *
  18936. * @private
  18937. * @param {*} value The value to check.
  18938. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  18939. */
  18940. function baseIsRegExp(value) {
  18941. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  18942. }
  18943. /**
  18944. * The base implementation of `_.isSet` without Node.js optimizations.
  18945. *
  18946. * @private
  18947. * @param {*} value The value to check.
  18948. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  18949. */
  18950. function baseIsSet(value) {
  18951. return isObjectLike(value) && getTag(value) == setTag;
  18952. }
  18953. /**
  18954. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  18955. *
  18956. * @private
  18957. * @param {*} value The value to check.
  18958. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  18959. */
  18960. function baseIsTypedArray(value) {
  18961. return isObjectLike(value) &&
  18962. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  18963. }
  18964. /**
  18965. * The base implementation of `_.iteratee`.
  18966. *
  18967. * @private
  18968. * @param {*} [value=_.identity] The value to convert to an iteratee.
  18969. * @returns {Function} Returns the iteratee.
  18970. */
  18971. function baseIteratee(value) {
  18972. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  18973. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  18974. if (typeof value == 'function') {
  18975. return value;
  18976. }
  18977. if (value == null) {
  18978. return identity;
  18979. }
  18980. if (typeof value == 'object') {
  18981. return isArray(value)
  18982. ? baseMatchesProperty(value[0], value[1])
  18983. : baseMatches(value);
  18984. }
  18985. return property(value);
  18986. }
  18987. /**
  18988. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  18989. *
  18990. * @private
  18991. * @param {Object} object The object to query.
  18992. * @returns {Array} Returns the array of property names.
  18993. */
  18994. function baseKeys(object) {
  18995. if (!isPrototype(object)) {
  18996. return nativeKeys(object);
  18997. }
  18998. var result = [];
  18999. for (var key in Object(object)) {
  19000. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  19001. result.push(key);
  19002. }
  19003. }
  19004. return result;
  19005. }
  19006. /**
  19007. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  19008. *
  19009. * @private
  19010. * @param {Object} object The object to query.
  19011. * @returns {Array} Returns the array of property names.
  19012. */
  19013. function baseKeysIn(object) {
  19014. if (!isObject(object)) {
  19015. return nativeKeysIn(object);
  19016. }
  19017. var isProto = isPrototype(object),
  19018. result = [];
  19019. for (var key in object) {
  19020. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  19021. result.push(key);
  19022. }
  19023. }
  19024. return result;
  19025. }
  19026. /**
  19027. * The base implementation of `_.lt` which doesn't coerce arguments.
  19028. *
  19029. * @private
  19030. * @param {*} value The value to compare.
  19031. * @param {*} other The other value to compare.
  19032. * @returns {boolean} Returns `true` if `value` is less than `other`,
  19033. * else `false`.
  19034. */
  19035. function baseLt(value, other) {
  19036. return value < other;
  19037. }
  19038. /**
  19039. * The base implementation of `_.map` without support for iteratee shorthands.
  19040. *
  19041. * @private
  19042. * @param {Array|Object} collection The collection to iterate over.
  19043. * @param {Function} iteratee The function invoked per iteration.
  19044. * @returns {Array} Returns the new mapped array.
  19045. */
  19046. function baseMap(collection, iteratee) {
  19047. var index = -1,
  19048. result = isArrayLike(collection) ? Array(collection.length) : [];
  19049. baseEach(collection, function(value, key, collection) {
  19050. result[++index] = iteratee(value, key, collection);
  19051. });
  19052. return result;
  19053. }
  19054. /**
  19055. * The base implementation of `_.matches` which doesn't clone `source`.
  19056. *
  19057. * @private
  19058. * @param {Object} source The object of property values to match.
  19059. * @returns {Function} Returns the new spec function.
  19060. */
  19061. function baseMatches(source) {
  19062. var matchData = getMatchData(source);
  19063. if (matchData.length == 1 && matchData[0][2]) {
  19064. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  19065. }
  19066. return function(object) {
  19067. return object === source || baseIsMatch(object, source, matchData);
  19068. };
  19069. }
  19070. /**
  19071. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  19072. *
  19073. * @private
  19074. * @param {string} path The path of the property to get.
  19075. * @param {*} srcValue The value to match.
  19076. * @returns {Function} Returns the new spec function.
  19077. */
  19078. function baseMatchesProperty(path, srcValue) {
  19079. if (isKey(path) && isStrictComparable(srcValue)) {
  19080. return matchesStrictComparable(toKey(path), srcValue);
  19081. }
  19082. return function(object) {
  19083. var objValue = get(object, path);
  19084. return (objValue === undefined && objValue === srcValue)
  19085. ? hasIn(object, path)
  19086. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  19087. };
  19088. }
  19089. /**
  19090. * The base implementation of `_.merge` without support for multiple sources.
  19091. *
  19092. * @private
  19093. * @param {Object} object The destination object.
  19094. * @param {Object} source The source object.
  19095. * @param {number} srcIndex The index of `source`.
  19096. * @param {Function} [customizer] The function to customize merged values.
  19097. * @param {Object} [stack] Tracks traversed source values and their merged
  19098. * counterparts.
  19099. */
  19100. function baseMerge(object, source, srcIndex, customizer, stack) {
  19101. if (object === source) {
  19102. return;
  19103. }
  19104. baseFor(source, function(srcValue, key) {
  19105. stack || (stack = new Stack);
  19106. if (isObject(srcValue)) {
  19107. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  19108. }
  19109. else {
  19110. var newValue = customizer
  19111. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  19112. : undefined;
  19113. if (newValue === undefined) {
  19114. newValue = srcValue;
  19115. }
  19116. assignMergeValue(object, key, newValue);
  19117. }
  19118. }, keysIn);
  19119. }
  19120. /**
  19121. * A specialized version of `baseMerge` for arrays and objects which performs
  19122. * deep merges and tracks traversed objects enabling objects with circular
  19123. * references to be merged.
  19124. *
  19125. * @private
  19126. * @param {Object} object The destination object.
  19127. * @param {Object} source The source object.
  19128. * @param {string} key The key of the value to merge.
  19129. * @param {number} srcIndex The index of `source`.
  19130. * @param {Function} mergeFunc The function to merge values.
  19131. * @param {Function} [customizer] The function to customize assigned values.
  19132. * @param {Object} [stack] Tracks traversed source values and their merged
  19133. * counterparts.
  19134. */
  19135. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  19136. var objValue = safeGet(object, key),
  19137. srcValue = safeGet(source, key),
  19138. stacked = stack.get(srcValue);
  19139. if (stacked) {
  19140. assignMergeValue(object, key, stacked);
  19141. return;
  19142. }
  19143. var newValue = customizer
  19144. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  19145. : undefined;
  19146. var isCommon = newValue === undefined;
  19147. if (isCommon) {
  19148. var isArr = isArray(srcValue),
  19149. isBuff = !isArr && isBuffer(srcValue),
  19150. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  19151. newValue = srcValue;
  19152. if (isArr || isBuff || isTyped) {
  19153. if (isArray(objValue)) {
  19154. newValue = objValue;
  19155. }
  19156. else if (isArrayLikeObject(objValue)) {
  19157. newValue = copyArray(objValue);
  19158. }
  19159. else if (isBuff) {
  19160. isCommon = false;
  19161. newValue = cloneBuffer(srcValue, true);
  19162. }
  19163. else if (isTyped) {
  19164. isCommon = false;
  19165. newValue = cloneTypedArray(srcValue, true);
  19166. }
  19167. else {
  19168. newValue = [];
  19169. }
  19170. }
  19171. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  19172. newValue = objValue;
  19173. if (isArguments(objValue)) {
  19174. newValue = toPlainObject(objValue);
  19175. }
  19176. else if (!isObject(objValue) || isFunction(objValue)) {
  19177. newValue = initCloneObject(srcValue);
  19178. }
  19179. }
  19180. else {
  19181. isCommon = false;
  19182. }
  19183. }
  19184. if (isCommon) {
  19185. // Recursively merge objects and arrays (susceptible to call stack limits).
  19186. stack.set(srcValue, newValue);
  19187. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  19188. stack['delete'](srcValue);
  19189. }
  19190. assignMergeValue(object, key, newValue);
  19191. }
  19192. /**
  19193. * The base implementation of `_.nth` which doesn't coerce arguments.
  19194. *
  19195. * @private
  19196. * @param {Array} array The array to query.
  19197. * @param {number} n The index of the element to return.
  19198. * @returns {*} Returns the nth element of `array`.
  19199. */
  19200. function baseNth(array, n) {
  19201. var length = array.length;
  19202. if (!length) {
  19203. return;
  19204. }
  19205. n += n < 0 ? length : 0;
  19206. return isIndex(n, length) ? array[n] : undefined;
  19207. }
  19208. /**
  19209. * The base implementation of `_.orderBy` without param guards.
  19210. *
  19211. * @private
  19212. * @param {Array|Object} collection The collection to iterate over.
  19213. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  19214. * @param {string[]} orders The sort orders of `iteratees`.
  19215. * @returns {Array} Returns the new sorted array.
  19216. */
  19217. function baseOrderBy(collection, iteratees, orders) {
  19218. var index = -1;
  19219. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  19220. var result = baseMap(collection, function(value, key, collection) {
  19221. var criteria = arrayMap(iteratees, function(iteratee) {
  19222. return iteratee(value);
  19223. });
  19224. return { 'criteria': criteria, 'index': ++index, 'value': value };
  19225. });
  19226. return baseSortBy(result, function(object, other) {
  19227. return compareMultiple(object, other, orders);
  19228. });
  19229. }
  19230. /**
  19231. * The base implementation of `_.pick` without support for individual
  19232. * property identifiers.
  19233. *
  19234. * @private
  19235. * @param {Object} object The source object.
  19236. * @param {string[]} paths The property paths to pick.
  19237. * @returns {Object} Returns the new object.
  19238. */
  19239. function basePick(object, paths) {
  19240. return basePickBy(object, paths, function(value, path) {
  19241. return hasIn(object, path);
  19242. });
  19243. }
  19244. /**
  19245. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  19246. *
  19247. * @private
  19248. * @param {Object} object The source object.
  19249. * @param {string[]} paths The property paths to pick.
  19250. * @param {Function} predicate The function invoked per property.
  19251. * @returns {Object} Returns the new object.
  19252. */
  19253. function basePickBy(object, paths, predicate) {
  19254. var index = -1,
  19255. length = paths.length,
  19256. result = {};
  19257. while (++index < length) {
  19258. var path = paths[index],
  19259. value = baseGet(object, path);
  19260. if (predicate(value, path)) {
  19261. baseSet(result, castPath(path, object), value);
  19262. }
  19263. }
  19264. return result;
  19265. }
  19266. /**
  19267. * A specialized version of `baseProperty` which supports deep paths.
  19268. *
  19269. * @private
  19270. * @param {Array|string} path The path of the property to get.
  19271. * @returns {Function} Returns the new accessor function.
  19272. */
  19273. function basePropertyDeep(path) {
  19274. return function(object) {
  19275. return baseGet(object, path);
  19276. };
  19277. }
  19278. /**
  19279. * The base implementation of `_.pullAllBy` without support for iteratee
  19280. * shorthands.
  19281. *
  19282. * @private
  19283. * @param {Array} array The array to modify.
  19284. * @param {Array} values The values to remove.
  19285. * @param {Function} [iteratee] The iteratee invoked per element.
  19286. * @param {Function} [comparator] The comparator invoked per element.
  19287. * @returns {Array} Returns `array`.
  19288. */
  19289. function basePullAll(array, values, iteratee, comparator) {
  19290. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  19291. index = -1,
  19292. length = values.length,
  19293. seen = array;
  19294. if (array === values) {
  19295. values = copyArray(values);
  19296. }
  19297. if (iteratee) {
  19298. seen = arrayMap(array, baseUnary(iteratee));
  19299. }
  19300. while (++index < length) {
  19301. var fromIndex = 0,
  19302. value = values[index],
  19303. computed = iteratee ? iteratee(value) : value;
  19304. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  19305. if (seen !== array) {
  19306. splice.call(seen, fromIndex, 1);
  19307. }
  19308. splice.call(array, fromIndex, 1);
  19309. }
  19310. }
  19311. return array;
  19312. }
  19313. /**
  19314. * The base implementation of `_.pullAt` without support for individual
  19315. * indexes or capturing the removed elements.
  19316. *
  19317. * @private
  19318. * @param {Array} array The array to modify.
  19319. * @param {number[]} indexes The indexes of elements to remove.
  19320. * @returns {Array} Returns `array`.
  19321. */
  19322. function basePullAt(array, indexes) {
  19323. var length = array ? indexes.length : 0,
  19324. lastIndex = length - 1;
  19325. while (length--) {
  19326. var index = indexes[length];
  19327. if (length == lastIndex || index !== previous) {
  19328. var previous = index;
  19329. if (isIndex(index)) {
  19330. splice.call(array, index, 1);
  19331. } else {
  19332. baseUnset(array, index);
  19333. }
  19334. }
  19335. }
  19336. return array;
  19337. }
  19338. /**
  19339. * The base implementation of `_.random` without support for returning
  19340. * floating-point numbers.
  19341. *
  19342. * @private
  19343. * @param {number} lower The lower bound.
  19344. * @param {number} upper The upper bound.
  19345. * @returns {number} Returns the random number.
  19346. */
  19347. function baseRandom(lower, upper) {
  19348. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  19349. }
  19350. /**
  19351. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  19352. * coerce arguments.
  19353. *
  19354. * @private
  19355. * @param {number} start The start of the range.
  19356. * @param {number} end The end of the range.
  19357. * @param {number} step The value to increment or decrement by.
  19358. * @param {boolean} [fromRight] Specify iterating from right to left.
  19359. * @returns {Array} Returns the range of numbers.
  19360. */
  19361. function baseRange(start, end, step, fromRight) {
  19362. var index = -1,
  19363. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  19364. result = Array(length);
  19365. while (length--) {
  19366. result[fromRight ? length : ++index] = start;
  19367. start += step;
  19368. }
  19369. return result;
  19370. }
  19371. /**
  19372. * The base implementation of `_.repeat` which doesn't coerce arguments.
  19373. *
  19374. * @private
  19375. * @param {string} string The string to repeat.
  19376. * @param {number} n The number of times to repeat the string.
  19377. * @returns {string} Returns the repeated string.
  19378. */
  19379. function baseRepeat(string, n) {
  19380. var result = '';
  19381. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  19382. return result;
  19383. }
  19384. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  19385. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  19386. do {
  19387. if (n % 2) {
  19388. result += string;
  19389. }
  19390. n = nativeFloor(n / 2);
  19391. if (n) {
  19392. string += string;
  19393. }
  19394. } while (n);
  19395. return result;
  19396. }
  19397. /**
  19398. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  19399. *
  19400. * @private
  19401. * @param {Function} func The function to apply a rest parameter to.
  19402. * @param {number} [start=func.length-1] The start position of the rest parameter.
  19403. * @returns {Function} Returns the new function.
  19404. */
  19405. function baseRest(func, start) {
  19406. return setToString(overRest(func, start, identity), func + '');
  19407. }
  19408. /**
  19409. * The base implementation of `_.sample`.
  19410. *
  19411. * @private
  19412. * @param {Array|Object} collection The collection to sample.
  19413. * @returns {*} Returns the random element.
  19414. */
  19415. function baseSample(collection) {
  19416. return arraySample(values(collection));
  19417. }
  19418. /**
  19419. * The base implementation of `_.sampleSize` without param guards.
  19420. *
  19421. * @private
  19422. * @param {Array|Object} collection The collection to sample.
  19423. * @param {number} n The number of elements to sample.
  19424. * @returns {Array} Returns the random elements.
  19425. */
  19426. function baseSampleSize(collection, n) {
  19427. var array = values(collection);
  19428. return shuffleSelf(array, baseClamp(n, 0, array.length));
  19429. }
  19430. /**
  19431. * The base implementation of `_.set`.
  19432. *
  19433. * @private
  19434. * @param {Object} object The object to modify.
  19435. * @param {Array|string} path The path of the property to set.
  19436. * @param {*} value The value to set.
  19437. * @param {Function} [customizer] The function to customize path creation.
  19438. * @returns {Object} Returns `object`.
  19439. */
  19440. function baseSet(object, path, value, customizer) {
  19441. if (!isObject(object)) {
  19442. return object;
  19443. }
  19444. path = castPath(path, object);
  19445. var index = -1,
  19446. length = path.length,
  19447. lastIndex = length - 1,
  19448. nested = object;
  19449. while (nested != null && ++index < length) {
  19450. var key = toKey(path[index]),
  19451. newValue = value;
  19452. if (index != lastIndex) {
  19453. var objValue = nested[key];
  19454. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  19455. if (newValue === undefined) {
  19456. newValue = isObject(objValue)
  19457. ? objValue
  19458. : (isIndex(path[index + 1]) ? [] : {});
  19459. }
  19460. }
  19461. assignValue(nested, key, newValue);
  19462. nested = nested[key];
  19463. }
  19464. return object;
  19465. }
  19466. /**
  19467. * The base implementation of `setData` without support for hot loop shorting.
  19468. *
  19469. * @private
  19470. * @param {Function} func The function to associate metadata with.
  19471. * @param {*} data The metadata.
  19472. * @returns {Function} Returns `func`.
  19473. */
  19474. var baseSetData = !metaMap ? identity : function(func, data) {
  19475. metaMap.set(func, data);
  19476. return func;
  19477. };
  19478. /**
  19479. * The base implementation of `setToString` without support for hot loop shorting.
  19480. *
  19481. * @private
  19482. * @param {Function} func The function to modify.
  19483. * @param {Function} string The `toString` result.
  19484. * @returns {Function} Returns `func`.
  19485. */
  19486. var baseSetToString = !defineProperty ? identity : function(func, string) {
  19487. return defineProperty(func, 'toString', {
  19488. 'configurable': true,
  19489. 'enumerable': false,
  19490. 'value': constant(string),
  19491. 'writable': true
  19492. });
  19493. };
  19494. /**
  19495. * The base implementation of `_.shuffle`.
  19496. *
  19497. * @private
  19498. * @param {Array|Object} collection The collection to shuffle.
  19499. * @returns {Array} Returns the new shuffled array.
  19500. */
  19501. function baseShuffle(collection) {
  19502. return shuffleSelf(values(collection));
  19503. }
  19504. /**
  19505. * The base implementation of `_.slice` without an iteratee call guard.
  19506. *
  19507. * @private
  19508. * @param {Array} array The array to slice.
  19509. * @param {number} [start=0] The start position.
  19510. * @param {number} [end=array.length] The end position.
  19511. * @returns {Array} Returns the slice of `array`.
  19512. */
  19513. function baseSlice(array, start, end) {
  19514. var index = -1,
  19515. length = array.length;
  19516. if (start < 0) {
  19517. start = -start > length ? 0 : (length + start);
  19518. }
  19519. end = end > length ? length : end;
  19520. if (end < 0) {
  19521. end += length;
  19522. }
  19523. length = start > end ? 0 : ((end - start) >>> 0);
  19524. start >>>= 0;
  19525. var result = Array(length);
  19526. while (++index < length) {
  19527. result[index] = array[index + start];
  19528. }
  19529. return result;
  19530. }
  19531. /**
  19532. * The base implementation of `_.some` without support for iteratee shorthands.
  19533. *
  19534. * @private
  19535. * @param {Array|Object} collection The collection to iterate over.
  19536. * @param {Function} predicate The function invoked per iteration.
  19537. * @returns {boolean} Returns `true` if any element passes the predicate check,
  19538. * else `false`.
  19539. */
  19540. function baseSome(collection, predicate) {
  19541. var result;
  19542. baseEach(collection, function(value, index, collection) {
  19543. result = predicate(value, index, collection);
  19544. return !result;
  19545. });
  19546. return !!result;
  19547. }
  19548. /**
  19549. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  19550. * performs a binary search of `array` to determine the index at which `value`
  19551. * should be inserted into `array` in order to maintain its sort order.
  19552. *
  19553. * @private
  19554. * @param {Array} array The sorted array to inspect.
  19555. * @param {*} value The value to evaluate.
  19556. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19557. * @returns {number} Returns the index at which `value` should be inserted
  19558. * into `array`.
  19559. */
  19560. function baseSortedIndex(array, value, retHighest) {
  19561. var low = 0,
  19562. high = array == null ? low : array.length;
  19563. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  19564. while (low < high) {
  19565. var mid = (low + high) >>> 1,
  19566. computed = array[mid];
  19567. if (computed !== null && !isSymbol(computed) &&
  19568. (retHighest ? (computed <= value) : (computed < value))) {
  19569. low = mid + 1;
  19570. } else {
  19571. high = mid;
  19572. }
  19573. }
  19574. return high;
  19575. }
  19576. return baseSortedIndexBy(array, value, identity, retHighest);
  19577. }
  19578. /**
  19579. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  19580. * which invokes `iteratee` for `value` and each element of `array` to compute
  19581. * their sort ranking. The iteratee is invoked with one argument; (value).
  19582. *
  19583. * @private
  19584. * @param {Array} array The sorted array to inspect.
  19585. * @param {*} value The value to evaluate.
  19586. * @param {Function} iteratee The iteratee invoked per element.
  19587. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19588. * @returns {number} Returns the index at which `value` should be inserted
  19589. * into `array`.
  19590. */
  19591. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  19592. value = iteratee(value);
  19593. var low = 0,
  19594. high = array == null ? 0 : array.length,
  19595. valIsNaN = value !== value,
  19596. valIsNull = value === null,
  19597. valIsSymbol = isSymbol(value),
  19598. valIsUndefined = value === undefined;
  19599. while (low < high) {
  19600. var mid = nativeFloor((low + high) / 2),
  19601. computed = iteratee(array[mid]),
  19602. othIsDefined = computed !== undefined,
  19603. othIsNull = computed === null,
  19604. othIsReflexive = computed === computed,
  19605. othIsSymbol = isSymbol(computed);
  19606. if (valIsNaN) {
  19607. var setLow = retHighest || othIsReflexive;
  19608. } else if (valIsUndefined) {
  19609. setLow = othIsReflexive && (retHighest || othIsDefined);
  19610. } else if (valIsNull) {
  19611. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  19612. } else if (valIsSymbol) {
  19613. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  19614. } else if (othIsNull || othIsSymbol) {
  19615. setLow = false;
  19616. } else {
  19617. setLow = retHighest ? (computed <= value) : (computed < value);
  19618. }
  19619. if (setLow) {
  19620. low = mid + 1;
  19621. } else {
  19622. high = mid;
  19623. }
  19624. }
  19625. return nativeMin(high, MAX_ARRAY_INDEX);
  19626. }
  19627. /**
  19628. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  19629. * support for iteratee shorthands.
  19630. *
  19631. * @private
  19632. * @param {Array} array The array to inspect.
  19633. * @param {Function} [iteratee] The iteratee invoked per element.
  19634. * @returns {Array} Returns the new duplicate free array.
  19635. */
  19636. function baseSortedUniq(array, iteratee) {
  19637. var index = -1,
  19638. length = array.length,
  19639. resIndex = 0,
  19640. result = [];
  19641. while (++index < length) {
  19642. var value = array[index],
  19643. computed = iteratee ? iteratee(value) : value;
  19644. if (!index || !eq(computed, seen)) {
  19645. var seen = computed;
  19646. result[resIndex++] = value === 0 ? 0 : value;
  19647. }
  19648. }
  19649. return result;
  19650. }
  19651. /**
  19652. * The base implementation of `_.toNumber` which doesn't ensure correct
  19653. * conversions of binary, hexadecimal, or octal string values.
  19654. *
  19655. * @private
  19656. * @param {*} value The value to process.
  19657. * @returns {number} Returns the number.
  19658. */
  19659. function baseToNumber(value) {
  19660. if (typeof value == 'number') {
  19661. return value;
  19662. }
  19663. if (isSymbol(value)) {
  19664. return NAN;
  19665. }
  19666. return +value;
  19667. }
  19668. /**
  19669. * The base implementation of `_.toString` which doesn't convert nullish
  19670. * values to empty strings.
  19671. *
  19672. * @private
  19673. * @param {*} value The value to process.
  19674. * @returns {string} Returns the string.
  19675. */
  19676. function baseToString(value) {
  19677. // Exit early for strings to avoid a performance hit in some environments.
  19678. if (typeof value == 'string') {
  19679. return value;
  19680. }
  19681. if (isArray(value)) {
  19682. // Recursively convert values (susceptible to call stack limits).
  19683. return arrayMap(value, baseToString) + '';
  19684. }
  19685. if (isSymbol(value)) {
  19686. return symbolToString ? symbolToString.call(value) : '';
  19687. }
  19688. var result = (value + '');
  19689. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  19690. }
  19691. /**
  19692. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  19693. *
  19694. * @private
  19695. * @param {Array} array The array to inspect.
  19696. * @param {Function} [iteratee] The iteratee invoked per element.
  19697. * @param {Function} [comparator] The comparator invoked per element.
  19698. * @returns {Array} Returns the new duplicate free array.
  19699. */
  19700. function baseUniq(array, iteratee, comparator) {
  19701. var index = -1,
  19702. includes = arrayIncludes,
  19703. length = array.length,
  19704. isCommon = true,
  19705. result = [],
  19706. seen = result;
  19707. if (comparator) {
  19708. isCommon = false;
  19709. includes = arrayIncludesWith;
  19710. }
  19711. else if (length >= LARGE_ARRAY_SIZE) {
  19712. var set = iteratee ? null : createSet(array);
  19713. if (set) {
  19714. return setToArray(set);
  19715. }
  19716. isCommon = false;
  19717. includes = cacheHas;
  19718. seen = new SetCache;
  19719. }
  19720. else {
  19721. seen = iteratee ? [] : result;
  19722. }
  19723. outer:
  19724. while (++index < length) {
  19725. var value = array[index],
  19726. computed = iteratee ? iteratee(value) : value;
  19727. value = (comparator || value !== 0) ? value : 0;
  19728. if (isCommon && computed === computed) {
  19729. var seenIndex = seen.length;
  19730. while (seenIndex--) {
  19731. if (seen[seenIndex] === computed) {
  19732. continue outer;
  19733. }
  19734. }
  19735. if (iteratee) {
  19736. seen.push(computed);
  19737. }
  19738. result.push(value);
  19739. }
  19740. else if (!includes(seen, computed, comparator)) {
  19741. if (seen !== result) {
  19742. seen.push(computed);
  19743. }
  19744. result.push(value);
  19745. }
  19746. }
  19747. return result;
  19748. }
  19749. /**
  19750. * The base implementation of `_.unset`.
  19751. *
  19752. * @private
  19753. * @param {Object} object The object to modify.
  19754. * @param {Array|string} path The property path to unset.
  19755. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  19756. */
  19757. function baseUnset(object, path) {
  19758. path = castPath(path, object);
  19759. object = parent(object, path);
  19760. return object == null || delete object[toKey(last(path))];
  19761. }
  19762. /**
  19763. * The base implementation of `_.update`.
  19764. *
  19765. * @private
  19766. * @param {Object} object The object to modify.
  19767. * @param {Array|string} path The path of the property to update.
  19768. * @param {Function} updater The function to produce the updated value.
  19769. * @param {Function} [customizer] The function to customize path creation.
  19770. * @returns {Object} Returns `object`.
  19771. */
  19772. function baseUpdate(object, path, updater, customizer) {
  19773. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  19774. }
  19775. /**
  19776. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  19777. * without support for iteratee shorthands.
  19778. *
  19779. * @private
  19780. * @param {Array} array The array to query.
  19781. * @param {Function} predicate The function invoked per iteration.
  19782. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  19783. * @param {boolean} [fromRight] Specify iterating from right to left.
  19784. * @returns {Array} Returns the slice of `array`.
  19785. */
  19786. function baseWhile(array, predicate, isDrop, fromRight) {
  19787. var length = array.length,
  19788. index = fromRight ? length : -1;
  19789. while ((fromRight ? index-- : ++index < length) &&
  19790. predicate(array[index], index, array)) {}
  19791. return isDrop
  19792. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  19793. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  19794. }
  19795. /**
  19796. * The base implementation of `wrapperValue` which returns the result of
  19797. * performing a sequence of actions on the unwrapped `value`, where each
  19798. * successive action is supplied the return value of the previous.
  19799. *
  19800. * @private
  19801. * @param {*} value The unwrapped value.
  19802. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  19803. * @returns {*} Returns the resolved value.
  19804. */
  19805. function baseWrapperValue(value, actions) {
  19806. var result = value;
  19807. if (result instanceof LazyWrapper) {
  19808. result = result.value();
  19809. }
  19810. return arrayReduce(actions, function(result, action) {
  19811. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  19812. }, result);
  19813. }
  19814. /**
  19815. * The base implementation of methods like `_.xor`, without support for
  19816. * iteratee shorthands, that accepts an array of arrays to inspect.
  19817. *
  19818. * @private
  19819. * @param {Array} arrays The arrays to inspect.
  19820. * @param {Function} [iteratee] The iteratee invoked per element.
  19821. * @param {Function} [comparator] The comparator invoked per element.
  19822. * @returns {Array} Returns the new array of values.
  19823. */
  19824. function baseXor(arrays, iteratee, comparator) {
  19825. var length = arrays.length;
  19826. if (length < 2) {
  19827. return length ? baseUniq(arrays[0]) : [];
  19828. }
  19829. var index = -1,
  19830. result = Array(length);
  19831. while (++index < length) {
  19832. var array = arrays[index],
  19833. othIndex = -1;
  19834. while (++othIndex < length) {
  19835. if (othIndex != index) {
  19836. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  19837. }
  19838. }
  19839. }
  19840. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  19841. }
  19842. /**
  19843. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  19844. *
  19845. * @private
  19846. * @param {Array} props The property identifiers.
  19847. * @param {Array} values The property values.
  19848. * @param {Function} assignFunc The function to assign values.
  19849. * @returns {Object} Returns the new object.
  19850. */
  19851. function baseZipObject(props, values, assignFunc) {
  19852. var index = -1,
  19853. length = props.length,
  19854. valsLength = values.length,
  19855. result = {};
  19856. while (++index < length) {
  19857. var value = index < valsLength ? values[index] : undefined;
  19858. assignFunc(result, props[index], value);
  19859. }
  19860. return result;
  19861. }
  19862. /**
  19863. * Casts `value` to an empty array if it's not an array like object.
  19864. *
  19865. * @private
  19866. * @param {*} value The value to inspect.
  19867. * @returns {Array|Object} Returns the cast array-like object.
  19868. */
  19869. function castArrayLikeObject(value) {
  19870. return isArrayLikeObject(value) ? value : [];
  19871. }
  19872. /**
  19873. * Casts `value` to `identity` if it's not a function.
  19874. *
  19875. * @private
  19876. * @param {*} value The value to inspect.
  19877. * @returns {Function} Returns cast function.
  19878. */
  19879. function castFunction(value) {
  19880. return typeof value == 'function' ? value : identity;
  19881. }
  19882. /**
  19883. * Casts `value` to a path array if it's not one.
  19884. *
  19885. * @private
  19886. * @param {*} value The value to inspect.
  19887. * @param {Object} [object] The object to query keys on.
  19888. * @returns {Array} Returns the cast property path array.
  19889. */
  19890. function castPath(value, object) {
  19891. if (isArray(value)) {
  19892. return value;
  19893. }
  19894. return isKey(value, object) ? [value] : stringToPath(toString(value));
  19895. }
  19896. /**
  19897. * A `baseRest` alias which can be replaced with `identity` by module
  19898. * replacement plugins.
  19899. *
  19900. * @private
  19901. * @type {Function}
  19902. * @param {Function} func The function to apply a rest parameter to.
  19903. * @returns {Function} Returns the new function.
  19904. */
  19905. var castRest = baseRest;
  19906. /**
  19907. * Casts `array` to a slice if it's needed.
  19908. *
  19909. * @private
  19910. * @param {Array} array The array to inspect.
  19911. * @param {number} start The start position.
  19912. * @param {number} [end=array.length] The end position.
  19913. * @returns {Array} Returns the cast slice.
  19914. */
  19915. function castSlice(array, start, end) {
  19916. var length = array.length;
  19917. end = end === undefined ? length : end;
  19918. return (!start && end >= length) ? array : baseSlice(array, start, end);
  19919. }
  19920. /**
  19921. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  19922. *
  19923. * @private
  19924. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  19925. */
  19926. var clearTimeout = ctxClearTimeout || function(id) {
  19927. return root.clearTimeout(id);
  19928. };
  19929. /**
  19930. * Creates a clone of `buffer`.
  19931. *
  19932. * @private
  19933. * @param {Buffer} buffer The buffer to clone.
  19934. * @param {boolean} [isDeep] Specify a deep clone.
  19935. * @returns {Buffer} Returns the cloned buffer.
  19936. */
  19937. function cloneBuffer(buffer, isDeep) {
  19938. if (isDeep) {
  19939. return buffer.slice();
  19940. }
  19941. var length = buffer.length,
  19942. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  19943. buffer.copy(result);
  19944. return result;
  19945. }
  19946. /**
  19947. * Creates a clone of `arrayBuffer`.
  19948. *
  19949. * @private
  19950. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  19951. * @returns {ArrayBuffer} Returns the cloned array buffer.
  19952. */
  19953. function cloneArrayBuffer(arrayBuffer) {
  19954. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  19955. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  19956. return result;
  19957. }
  19958. /**
  19959. * Creates a clone of `dataView`.
  19960. *
  19961. * @private
  19962. * @param {Object} dataView The data view to clone.
  19963. * @param {boolean} [isDeep] Specify a deep clone.
  19964. * @returns {Object} Returns the cloned data view.
  19965. */
  19966. function cloneDataView(dataView, isDeep) {
  19967. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  19968. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  19969. }
  19970. /**
  19971. * Creates a clone of `regexp`.
  19972. *
  19973. * @private
  19974. * @param {Object} regexp The regexp to clone.
  19975. * @returns {Object} Returns the cloned regexp.
  19976. */
  19977. function cloneRegExp(regexp) {
  19978. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  19979. result.lastIndex = regexp.lastIndex;
  19980. return result;
  19981. }
  19982. /**
  19983. * Creates a clone of the `symbol` object.
  19984. *
  19985. * @private
  19986. * @param {Object} symbol The symbol object to clone.
  19987. * @returns {Object} Returns the cloned symbol object.
  19988. */
  19989. function cloneSymbol(symbol) {
  19990. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  19991. }
  19992. /**
  19993. * Creates a clone of `typedArray`.
  19994. *
  19995. * @private
  19996. * @param {Object} typedArray The typed array to clone.
  19997. * @param {boolean} [isDeep] Specify a deep clone.
  19998. * @returns {Object} Returns the cloned typed array.
  19999. */
  20000. function cloneTypedArray(typedArray, isDeep) {
  20001. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  20002. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  20003. }
  20004. /**
  20005. * Compares values to sort them in ascending order.
  20006. *
  20007. * @private
  20008. * @param {*} value The value to compare.
  20009. * @param {*} other The other value to compare.
  20010. * @returns {number} Returns the sort order indicator for `value`.
  20011. */
  20012. function compareAscending(value, other) {
  20013. if (value !== other) {
  20014. var valIsDefined = value !== undefined,
  20015. valIsNull = value === null,
  20016. valIsReflexive = value === value,
  20017. valIsSymbol = isSymbol(value);
  20018. var othIsDefined = other !== undefined,
  20019. othIsNull = other === null,
  20020. othIsReflexive = other === other,
  20021. othIsSymbol = isSymbol(other);
  20022. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  20023. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  20024. (valIsNull && othIsDefined && othIsReflexive) ||
  20025. (!valIsDefined && othIsReflexive) ||
  20026. !valIsReflexive) {
  20027. return 1;
  20028. }
  20029. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  20030. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  20031. (othIsNull && valIsDefined && valIsReflexive) ||
  20032. (!othIsDefined && valIsReflexive) ||
  20033. !othIsReflexive) {
  20034. return -1;
  20035. }
  20036. }
  20037. return 0;
  20038. }
  20039. /**
  20040. * Used by `_.orderBy` to compare multiple properties of a value to another
  20041. * and stable sort them.
  20042. *
  20043. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  20044. * specify an order of "desc" for descending or "asc" for ascending sort order
  20045. * of corresponding values.
  20046. *
  20047. * @private
  20048. * @param {Object} object The object to compare.
  20049. * @param {Object} other The other object to compare.
  20050. * @param {boolean[]|string[]} orders The order to sort by for each property.
  20051. * @returns {number} Returns the sort order indicator for `object`.
  20052. */
  20053. function compareMultiple(object, other, orders) {
  20054. var index = -1,
  20055. objCriteria = object.criteria,
  20056. othCriteria = other.criteria,
  20057. length = objCriteria.length,
  20058. ordersLength = orders.length;
  20059. while (++index < length) {
  20060. var result = compareAscending(objCriteria[index], othCriteria[index]);
  20061. if (result) {
  20062. if (index >= ordersLength) {
  20063. return result;
  20064. }
  20065. var order = orders[index];
  20066. return result * (order == 'desc' ? -1 : 1);
  20067. }
  20068. }
  20069. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  20070. // that causes it, under certain circumstances, to provide the same value for
  20071. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  20072. // for more details.
  20073. //
  20074. // This also ensures a stable sort in V8 and other engines.
  20075. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  20076. return object.index - other.index;
  20077. }
  20078. /**
  20079. * Creates an array that is the composition of partially applied arguments,
  20080. * placeholders, and provided arguments into a single array of arguments.
  20081. *
  20082. * @private
  20083. * @param {Array} args The provided arguments.
  20084. * @param {Array} partials The arguments to prepend to those provided.
  20085. * @param {Array} holders The `partials` placeholder indexes.
  20086. * @params {boolean} [isCurried] Specify composing for a curried function.
  20087. * @returns {Array} Returns the new array of composed arguments.
  20088. */
  20089. function composeArgs(args, partials, holders, isCurried) {
  20090. var argsIndex = -1,
  20091. argsLength = args.length,
  20092. holdersLength = holders.length,
  20093. leftIndex = -1,
  20094. leftLength = partials.length,
  20095. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20096. result = Array(leftLength + rangeLength),
  20097. isUncurried = !isCurried;
  20098. while (++leftIndex < leftLength) {
  20099. result[leftIndex] = partials[leftIndex];
  20100. }
  20101. while (++argsIndex < holdersLength) {
  20102. if (isUncurried || argsIndex < argsLength) {
  20103. result[holders[argsIndex]] = args[argsIndex];
  20104. }
  20105. }
  20106. while (rangeLength--) {
  20107. result[leftIndex++] = args[argsIndex++];
  20108. }
  20109. return result;
  20110. }
  20111. /**
  20112. * This function is like `composeArgs` except that the arguments composition
  20113. * is tailored for `_.partialRight`.
  20114. *
  20115. * @private
  20116. * @param {Array} args The provided arguments.
  20117. * @param {Array} partials The arguments to append to those provided.
  20118. * @param {Array} holders The `partials` placeholder indexes.
  20119. * @params {boolean} [isCurried] Specify composing for a curried function.
  20120. * @returns {Array} Returns the new array of composed arguments.
  20121. */
  20122. function composeArgsRight(args, partials, holders, isCurried) {
  20123. var argsIndex = -1,
  20124. argsLength = args.length,
  20125. holdersIndex = -1,
  20126. holdersLength = holders.length,
  20127. rightIndex = -1,
  20128. rightLength = partials.length,
  20129. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20130. result = Array(rangeLength + rightLength),
  20131. isUncurried = !isCurried;
  20132. while (++argsIndex < rangeLength) {
  20133. result[argsIndex] = args[argsIndex];
  20134. }
  20135. var offset = argsIndex;
  20136. while (++rightIndex < rightLength) {
  20137. result[offset + rightIndex] = partials[rightIndex];
  20138. }
  20139. while (++holdersIndex < holdersLength) {
  20140. if (isUncurried || argsIndex < argsLength) {
  20141. result[offset + holders[holdersIndex]] = args[argsIndex++];
  20142. }
  20143. }
  20144. return result;
  20145. }
  20146. /**
  20147. * Copies the values of `source` to `array`.
  20148. *
  20149. * @private
  20150. * @param {Array} source The array to copy values from.
  20151. * @param {Array} [array=[]] The array to copy values to.
  20152. * @returns {Array} Returns `array`.
  20153. */
  20154. function copyArray(source, array) {
  20155. var index = -1,
  20156. length = source.length;
  20157. array || (array = Array(length));
  20158. while (++index < length) {
  20159. array[index] = source[index];
  20160. }
  20161. return array;
  20162. }
  20163. /**
  20164. * Copies properties of `source` to `object`.
  20165. *
  20166. * @private
  20167. * @param {Object} source The object to copy properties from.
  20168. * @param {Array} props The property identifiers to copy.
  20169. * @param {Object} [object={}] The object to copy properties to.
  20170. * @param {Function} [customizer] The function to customize copied values.
  20171. * @returns {Object} Returns `object`.
  20172. */
  20173. function copyObject(source, props, object, customizer) {
  20174. var isNew = !object;
  20175. object || (object = {});
  20176. var index = -1,
  20177. length = props.length;
  20178. while (++index < length) {
  20179. var key = props[index];
  20180. var newValue = customizer
  20181. ? customizer(object[key], source[key], key, object, source)
  20182. : undefined;
  20183. if (newValue === undefined) {
  20184. newValue = source[key];
  20185. }
  20186. if (isNew) {
  20187. baseAssignValue(object, key, newValue);
  20188. } else {
  20189. assignValue(object, key, newValue);
  20190. }
  20191. }
  20192. return object;
  20193. }
  20194. /**
  20195. * Copies own symbols of `source` to `object`.
  20196. *
  20197. * @private
  20198. * @param {Object} source The object to copy symbols from.
  20199. * @param {Object} [object={}] The object to copy symbols to.
  20200. * @returns {Object} Returns `object`.
  20201. */
  20202. function copySymbols(source, object) {
  20203. return copyObject(source, getSymbols(source), object);
  20204. }
  20205. /**
  20206. * Copies own and inherited symbols of `source` to `object`.
  20207. *
  20208. * @private
  20209. * @param {Object} source The object to copy symbols from.
  20210. * @param {Object} [object={}] The object to copy symbols to.
  20211. * @returns {Object} Returns `object`.
  20212. */
  20213. function copySymbolsIn(source, object) {
  20214. return copyObject(source, getSymbolsIn(source), object);
  20215. }
  20216. /**
  20217. * Creates a function like `_.groupBy`.
  20218. *
  20219. * @private
  20220. * @param {Function} setter The function to set accumulator values.
  20221. * @param {Function} [initializer] The accumulator object initializer.
  20222. * @returns {Function} Returns the new aggregator function.
  20223. */
  20224. function createAggregator(setter, initializer) {
  20225. return function(collection, iteratee) {
  20226. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  20227. accumulator = initializer ? initializer() : {};
  20228. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  20229. };
  20230. }
  20231. /**
  20232. * Creates a function like `_.assign`.
  20233. *
  20234. * @private
  20235. * @param {Function} assigner The function to assign values.
  20236. * @returns {Function} Returns the new assigner function.
  20237. */
  20238. function createAssigner(assigner) {
  20239. return baseRest(function(object, sources) {
  20240. var index = -1,
  20241. length = sources.length,
  20242. customizer = length > 1 ? sources[length - 1] : undefined,
  20243. guard = length > 2 ? sources[2] : undefined;
  20244. customizer = (assigner.length > 3 && typeof customizer == 'function')
  20245. ? (length--, customizer)
  20246. : undefined;
  20247. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  20248. customizer = length < 3 ? undefined : customizer;
  20249. length = 1;
  20250. }
  20251. object = Object(object);
  20252. while (++index < length) {
  20253. var source = sources[index];
  20254. if (source) {
  20255. assigner(object, source, index, customizer);
  20256. }
  20257. }
  20258. return object;
  20259. });
  20260. }
  20261. /**
  20262. * Creates a `baseEach` or `baseEachRight` function.
  20263. *
  20264. * @private
  20265. * @param {Function} eachFunc The function to iterate over a collection.
  20266. * @param {boolean} [fromRight] Specify iterating from right to left.
  20267. * @returns {Function} Returns the new base function.
  20268. */
  20269. function createBaseEach(eachFunc, fromRight) {
  20270. return function(collection, iteratee) {
  20271. if (collection == null) {
  20272. return collection;
  20273. }
  20274. if (!isArrayLike(collection)) {
  20275. return eachFunc(collection, iteratee);
  20276. }
  20277. var length = collection.length,
  20278. index = fromRight ? length : -1,
  20279. iterable = Object(collection);
  20280. while ((fromRight ? index-- : ++index < length)) {
  20281. if (iteratee(iterable[index], index, iterable) === false) {
  20282. break;
  20283. }
  20284. }
  20285. return collection;
  20286. };
  20287. }
  20288. /**
  20289. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  20290. *
  20291. * @private
  20292. * @param {boolean} [fromRight] Specify iterating from right to left.
  20293. * @returns {Function} Returns the new base function.
  20294. */
  20295. function createBaseFor(fromRight) {
  20296. return function(object, iteratee, keysFunc) {
  20297. var index = -1,
  20298. iterable = Object(object),
  20299. props = keysFunc(object),
  20300. length = props.length;
  20301. while (length--) {
  20302. var key = props[fromRight ? length : ++index];
  20303. if (iteratee(iterable[key], key, iterable) === false) {
  20304. break;
  20305. }
  20306. }
  20307. return object;
  20308. };
  20309. }
  20310. /**
  20311. * Creates a function that wraps `func` to invoke it with the optional `this`
  20312. * binding of `thisArg`.
  20313. *
  20314. * @private
  20315. * @param {Function} func The function to wrap.
  20316. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20317. * @param {*} [thisArg] The `this` binding of `func`.
  20318. * @returns {Function} Returns the new wrapped function.
  20319. */
  20320. function createBind(func, bitmask, thisArg) {
  20321. var isBind = bitmask & WRAP_BIND_FLAG,
  20322. Ctor = createCtor(func);
  20323. function wrapper() {
  20324. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20325. return fn.apply(isBind ? thisArg : this, arguments);
  20326. }
  20327. return wrapper;
  20328. }
  20329. /**
  20330. * Creates a function like `_.lowerFirst`.
  20331. *
  20332. * @private
  20333. * @param {string} methodName The name of the `String` case method to use.
  20334. * @returns {Function} Returns the new case function.
  20335. */
  20336. function createCaseFirst(methodName) {
  20337. return function(string) {
  20338. string = toString(string);
  20339. var strSymbols = hasUnicode(string)
  20340. ? stringToArray(string)
  20341. : undefined;
  20342. var chr = strSymbols
  20343. ? strSymbols[0]
  20344. : string.charAt(0);
  20345. var trailing = strSymbols
  20346. ? castSlice(strSymbols, 1).join('')
  20347. : string.slice(1);
  20348. return chr[methodName]() + trailing;
  20349. };
  20350. }
  20351. /**
  20352. * Creates a function like `_.camelCase`.
  20353. *
  20354. * @private
  20355. * @param {Function} callback The function to combine each word.
  20356. * @returns {Function} Returns the new compounder function.
  20357. */
  20358. function createCompounder(callback) {
  20359. return function(string) {
  20360. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  20361. };
  20362. }
  20363. /**
  20364. * Creates a function that produces an instance of `Ctor` regardless of
  20365. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  20366. *
  20367. * @private
  20368. * @param {Function} Ctor The constructor to wrap.
  20369. * @returns {Function} Returns the new wrapped function.
  20370. */
  20371. function createCtor(Ctor) {
  20372. return function() {
  20373. // Use a `switch` statement to work with class constructors. See
  20374. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  20375. // for more details.
  20376. var args = arguments;
  20377. switch (args.length) {
  20378. case 0: return new Ctor;
  20379. case 1: return new Ctor(args[0]);
  20380. case 2: return new Ctor(args[0], args[1]);
  20381. case 3: return new Ctor(args[0], args[1], args[2]);
  20382. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  20383. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  20384. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  20385. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  20386. }
  20387. var thisBinding = baseCreate(Ctor.prototype),
  20388. result = Ctor.apply(thisBinding, args);
  20389. // Mimic the constructor's `return` behavior.
  20390. // See https://es5.github.io/#x13.2.2 for more details.
  20391. return isObject(result) ? result : thisBinding;
  20392. };
  20393. }
  20394. /**
  20395. * Creates a function that wraps `func` to enable currying.
  20396. *
  20397. * @private
  20398. * @param {Function} func The function to wrap.
  20399. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20400. * @param {number} arity The arity of `func`.
  20401. * @returns {Function} Returns the new wrapped function.
  20402. */
  20403. function createCurry(func, bitmask, arity) {
  20404. var Ctor = createCtor(func);
  20405. function wrapper() {
  20406. var length = arguments.length,
  20407. args = Array(length),
  20408. index = length,
  20409. placeholder = getHolder(wrapper);
  20410. while (index--) {
  20411. args[index] = arguments[index];
  20412. }
  20413. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  20414. ? []
  20415. : replaceHolders(args, placeholder);
  20416. length -= holders.length;
  20417. if (length < arity) {
  20418. return createRecurry(
  20419. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  20420. args, holders, undefined, undefined, arity - length);
  20421. }
  20422. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20423. return apply(fn, this, args);
  20424. }
  20425. return wrapper;
  20426. }
  20427. /**
  20428. * Creates a `_.find` or `_.findLast` function.
  20429. *
  20430. * @private
  20431. * @param {Function} findIndexFunc The function to find the collection index.
  20432. * @returns {Function} Returns the new find function.
  20433. */
  20434. function createFind(findIndexFunc) {
  20435. return function(collection, predicate, fromIndex) {
  20436. var iterable = Object(collection);
  20437. if (!isArrayLike(collection)) {
  20438. var iteratee = getIteratee(predicate, 3);
  20439. collection = keys(collection);
  20440. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  20441. }
  20442. var index = findIndexFunc(collection, predicate, fromIndex);
  20443. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  20444. };
  20445. }
  20446. /**
  20447. * Creates a `_.flow` or `_.flowRight` function.
  20448. *
  20449. * @private
  20450. * @param {boolean} [fromRight] Specify iterating from right to left.
  20451. * @returns {Function} Returns the new flow function.
  20452. */
  20453. function createFlow(fromRight) {
  20454. return flatRest(function(funcs) {
  20455. var length = funcs.length,
  20456. index = length,
  20457. prereq = LodashWrapper.prototype.thru;
  20458. if (fromRight) {
  20459. funcs.reverse();
  20460. }
  20461. while (index--) {
  20462. var func = funcs[index];
  20463. if (typeof func != 'function') {
  20464. throw new TypeError(FUNC_ERROR_TEXT);
  20465. }
  20466. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  20467. var wrapper = new LodashWrapper([], true);
  20468. }
  20469. }
  20470. index = wrapper ? index : length;
  20471. while (++index < length) {
  20472. func = funcs[index];
  20473. var funcName = getFuncName(func),
  20474. data = funcName == 'wrapper' ? getData(func) : undefined;
  20475. if (data && isLaziable(data[0]) &&
  20476. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  20477. !data[4].length && data[9] == 1
  20478. ) {
  20479. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  20480. } else {
  20481. wrapper = (func.length == 1 && isLaziable(func))
  20482. ? wrapper[funcName]()
  20483. : wrapper.thru(func);
  20484. }
  20485. }
  20486. return function() {
  20487. var args = arguments,
  20488. value = args[0];
  20489. if (wrapper && args.length == 1 && isArray(value)) {
  20490. return wrapper.plant(value).value();
  20491. }
  20492. var index = 0,
  20493. result = length ? funcs[index].apply(this, args) : value;
  20494. while (++index < length) {
  20495. result = funcs[index].call(this, result);
  20496. }
  20497. return result;
  20498. };
  20499. });
  20500. }
  20501. /**
  20502. * Creates a function that wraps `func` to invoke it with optional `this`
  20503. * binding of `thisArg`, partial application, and currying.
  20504. *
  20505. * @private
  20506. * @param {Function|string} func The function or method name to wrap.
  20507. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20508. * @param {*} [thisArg] The `this` binding of `func`.
  20509. * @param {Array} [partials] The arguments to prepend to those provided to
  20510. * the new function.
  20511. * @param {Array} [holders] The `partials` placeholder indexes.
  20512. * @param {Array} [partialsRight] The arguments to append to those provided
  20513. * to the new function.
  20514. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  20515. * @param {Array} [argPos] The argument positions of the new function.
  20516. * @param {number} [ary] The arity cap of `func`.
  20517. * @param {number} [arity] The arity of `func`.
  20518. * @returns {Function} Returns the new wrapped function.
  20519. */
  20520. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  20521. var isAry = bitmask & WRAP_ARY_FLAG,
  20522. isBind = bitmask & WRAP_BIND_FLAG,
  20523. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  20524. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  20525. isFlip = bitmask & WRAP_FLIP_FLAG,
  20526. Ctor = isBindKey ? undefined : createCtor(func);
  20527. function wrapper() {
  20528. var length = arguments.length,
  20529. args = Array(length),
  20530. index = length;
  20531. while (index--) {
  20532. args[index] = arguments[index];
  20533. }
  20534. if (isCurried) {
  20535. var placeholder = getHolder(wrapper),
  20536. holdersCount = countHolders(args, placeholder);
  20537. }
  20538. if (partials) {
  20539. args = composeArgs(args, partials, holders, isCurried);
  20540. }
  20541. if (partialsRight) {
  20542. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  20543. }
  20544. length -= holdersCount;
  20545. if (isCurried && length < arity) {
  20546. var newHolders = replaceHolders(args, placeholder);
  20547. return createRecurry(
  20548. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  20549. args, newHolders, argPos, ary, arity - length
  20550. );
  20551. }
  20552. var thisBinding = isBind ? thisArg : this,
  20553. fn = isBindKey ? thisBinding[func] : func;
  20554. length = args.length;
  20555. if (argPos) {
  20556. args = reorder(args, argPos);
  20557. } else if (isFlip && length > 1) {
  20558. args.reverse();
  20559. }
  20560. if (isAry && ary < length) {
  20561. args.length = ary;
  20562. }
  20563. if (this && this !== root && this instanceof wrapper) {
  20564. fn = Ctor || createCtor(fn);
  20565. }
  20566. return fn.apply(thisBinding, args);
  20567. }
  20568. return wrapper;
  20569. }
  20570. /**
  20571. * Creates a function like `_.invertBy`.
  20572. *
  20573. * @private
  20574. * @param {Function} setter The function to set accumulator values.
  20575. * @param {Function} toIteratee The function to resolve iteratees.
  20576. * @returns {Function} Returns the new inverter function.
  20577. */
  20578. function createInverter(setter, toIteratee) {
  20579. return function(object, iteratee) {
  20580. return baseInverter(object, setter, toIteratee(iteratee), {});
  20581. };
  20582. }
  20583. /**
  20584. * Creates a function that performs a mathematical operation on two values.
  20585. *
  20586. * @private
  20587. * @param {Function} operator The function to perform the operation.
  20588. * @param {number} [defaultValue] The value used for `undefined` arguments.
  20589. * @returns {Function} Returns the new mathematical operation function.
  20590. */
  20591. function createMathOperation(operator, defaultValue) {
  20592. return function(value, other) {
  20593. var result;
  20594. if (value === undefined && other === undefined) {
  20595. return defaultValue;
  20596. }
  20597. if (value !== undefined) {
  20598. result = value;
  20599. }
  20600. if (other !== undefined) {
  20601. if (result === undefined) {
  20602. return other;
  20603. }
  20604. if (typeof value == 'string' || typeof other == 'string') {
  20605. value = baseToString(value);
  20606. other = baseToString(other);
  20607. } else {
  20608. value = baseToNumber(value);
  20609. other = baseToNumber(other);
  20610. }
  20611. result = operator(value, other);
  20612. }
  20613. return result;
  20614. };
  20615. }
  20616. /**
  20617. * Creates a function like `_.over`.
  20618. *
  20619. * @private
  20620. * @param {Function} arrayFunc The function to iterate over iteratees.
  20621. * @returns {Function} Returns the new over function.
  20622. */
  20623. function createOver(arrayFunc) {
  20624. return flatRest(function(iteratees) {
  20625. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  20626. return baseRest(function(args) {
  20627. var thisArg = this;
  20628. return arrayFunc(iteratees, function(iteratee) {
  20629. return apply(iteratee, thisArg, args);
  20630. });
  20631. });
  20632. });
  20633. }
  20634. /**
  20635. * Creates the padding for `string` based on `length`. The `chars` string
  20636. * is truncated if the number of characters exceeds `length`.
  20637. *
  20638. * @private
  20639. * @param {number} length The padding length.
  20640. * @param {string} [chars=' '] The string used as padding.
  20641. * @returns {string} Returns the padding for `string`.
  20642. */
  20643. function createPadding(length, chars) {
  20644. chars = chars === undefined ? ' ' : baseToString(chars);
  20645. var charsLength = chars.length;
  20646. if (charsLength < 2) {
  20647. return charsLength ? baseRepeat(chars, length) : chars;
  20648. }
  20649. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  20650. return hasUnicode(chars)
  20651. ? castSlice(stringToArray(result), 0, length).join('')
  20652. : result.slice(0, length);
  20653. }
  20654. /**
  20655. * Creates a function that wraps `func` to invoke it with the `this` binding
  20656. * of `thisArg` and `partials` prepended to the arguments it receives.
  20657. *
  20658. * @private
  20659. * @param {Function} func The function to wrap.
  20660. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20661. * @param {*} thisArg The `this` binding of `func`.
  20662. * @param {Array} partials The arguments to prepend to those provided to
  20663. * the new function.
  20664. * @returns {Function} Returns the new wrapped function.
  20665. */
  20666. function createPartial(func, bitmask, thisArg, partials) {
  20667. var isBind = bitmask & WRAP_BIND_FLAG,
  20668. Ctor = createCtor(func);
  20669. function wrapper() {
  20670. var argsIndex = -1,
  20671. argsLength = arguments.length,
  20672. leftIndex = -1,
  20673. leftLength = partials.length,
  20674. args = Array(leftLength + argsLength),
  20675. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20676. while (++leftIndex < leftLength) {
  20677. args[leftIndex] = partials[leftIndex];
  20678. }
  20679. while (argsLength--) {
  20680. args[leftIndex++] = arguments[++argsIndex];
  20681. }
  20682. return apply(fn, isBind ? thisArg : this, args);
  20683. }
  20684. return wrapper;
  20685. }
  20686. /**
  20687. * Creates a `_.range` or `_.rangeRight` function.
  20688. *
  20689. * @private
  20690. * @param {boolean} [fromRight] Specify iterating from right to left.
  20691. * @returns {Function} Returns the new range function.
  20692. */
  20693. function createRange(fromRight) {
  20694. return function(start, end, step) {
  20695. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  20696. end = step = undefined;
  20697. }
  20698. // Ensure the sign of `-0` is preserved.
  20699. start = toFinite(start);
  20700. if (end === undefined) {
  20701. end = start;
  20702. start = 0;
  20703. } else {
  20704. end = toFinite(end);
  20705. }
  20706. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  20707. return baseRange(start, end, step, fromRight);
  20708. };
  20709. }
  20710. /**
  20711. * Creates a function that performs a relational operation on two values.
  20712. *
  20713. * @private
  20714. * @param {Function} operator The function to perform the operation.
  20715. * @returns {Function} Returns the new relational operation function.
  20716. */
  20717. function createRelationalOperation(operator) {
  20718. return function(value, other) {
  20719. if (!(typeof value == 'string' && typeof other == 'string')) {
  20720. value = toNumber(value);
  20721. other = toNumber(other);
  20722. }
  20723. return operator(value, other);
  20724. };
  20725. }
  20726. /**
  20727. * Creates a function that wraps `func` to continue currying.
  20728. *
  20729. * @private
  20730. * @param {Function} func The function to wrap.
  20731. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20732. * @param {Function} wrapFunc The function to create the `func` wrapper.
  20733. * @param {*} placeholder The placeholder value.
  20734. * @param {*} [thisArg] The `this` binding of `func`.
  20735. * @param {Array} [partials] The arguments to prepend to those provided to
  20736. * the new function.
  20737. * @param {Array} [holders] The `partials` placeholder indexes.
  20738. * @param {Array} [argPos] The argument positions of the new function.
  20739. * @param {number} [ary] The arity cap of `func`.
  20740. * @param {number} [arity] The arity of `func`.
  20741. * @returns {Function} Returns the new wrapped function.
  20742. */
  20743. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  20744. var isCurry = bitmask & WRAP_CURRY_FLAG,
  20745. newHolders = isCurry ? holders : undefined,
  20746. newHoldersRight = isCurry ? undefined : holders,
  20747. newPartials = isCurry ? partials : undefined,
  20748. newPartialsRight = isCurry ? undefined : partials;
  20749. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  20750. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  20751. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  20752. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  20753. }
  20754. var newData = [
  20755. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  20756. newHoldersRight, argPos, ary, arity
  20757. ];
  20758. var result = wrapFunc.apply(undefined, newData);
  20759. if (isLaziable(func)) {
  20760. setData(result, newData);
  20761. }
  20762. result.placeholder = placeholder;
  20763. return setWrapToString(result, func, bitmask);
  20764. }
  20765. /**
  20766. * Creates a function like `_.round`.
  20767. *
  20768. * @private
  20769. * @param {string} methodName The name of the `Math` method to use when rounding.
  20770. * @returns {Function} Returns the new round function.
  20771. */
  20772. function createRound(methodName) {
  20773. var func = Math[methodName];
  20774. return function(number, precision) {
  20775. number = toNumber(number);
  20776. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  20777. if (precision && nativeIsFinite(number)) {
  20778. // Shift with exponential notation to avoid floating-point issues.
  20779. // See [MDN](https://mdn.io/round#Examples) for more details.
  20780. var pair = (toString(number) + 'e').split('e'),
  20781. value = func(pair[0] + 'e' + (+pair[1] + precision));
  20782. pair = (toString(value) + 'e').split('e');
  20783. return +(pair[0] + 'e' + (+pair[1] - precision));
  20784. }
  20785. return func(number);
  20786. };
  20787. }
  20788. /**
  20789. * Creates a set object of `values`.
  20790. *
  20791. * @private
  20792. * @param {Array} values The values to add to the set.
  20793. * @returns {Object} Returns the new set.
  20794. */
  20795. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  20796. return new Set(values);
  20797. };
  20798. /**
  20799. * Creates a `_.toPairs` or `_.toPairsIn` function.
  20800. *
  20801. * @private
  20802. * @param {Function} keysFunc The function to get the keys of a given object.
  20803. * @returns {Function} Returns the new pairs function.
  20804. */
  20805. function createToPairs(keysFunc) {
  20806. return function(object) {
  20807. var tag = getTag(object);
  20808. if (tag == mapTag) {
  20809. return mapToArray(object);
  20810. }
  20811. if (tag == setTag) {
  20812. return setToPairs(object);
  20813. }
  20814. return baseToPairs(object, keysFunc(object));
  20815. };
  20816. }
  20817. /**
  20818. * Creates a function that either curries or invokes `func` with optional
  20819. * `this` binding and partially applied arguments.
  20820. *
  20821. * @private
  20822. * @param {Function|string} func The function or method name to wrap.
  20823. * @param {number} bitmask The bitmask flags.
  20824. * 1 - `_.bind`
  20825. * 2 - `_.bindKey`
  20826. * 4 - `_.curry` or `_.curryRight` of a bound function
  20827. * 8 - `_.curry`
  20828. * 16 - `_.curryRight`
  20829. * 32 - `_.partial`
  20830. * 64 - `_.partialRight`
  20831. * 128 - `_.rearg`
  20832. * 256 - `_.ary`
  20833. * 512 - `_.flip`
  20834. * @param {*} [thisArg] The `this` binding of `func`.
  20835. * @param {Array} [partials] The arguments to be partially applied.
  20836. * @param {Array} [holders] The `partials` placeholder indexes.
  20837. * @param {Array} [argPos] The argument positions of the new function.
  20838. * @param {number} [ary] The arity cap of `func`.
  20839. * @param {number} [arity] The arity of `func`.
  20840. * @returns {Function} Returns the new wrapped function.
  20841. */
  20842. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  20843. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  20844. if (!isBindKey && typeof func != 'function') {
  20845. throw new TypeError(FUNC_ERROR_TEXT);
  20846. }
  20847. var length = partials ? partials.length : 0;
  20848. if (!length) {
  20849. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  20850. partials = holders = undefined;
  20851. }
  20852. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  20853. arity = arity === undefined ? arity : toInteger(arity);
  20854. length -= holders ? holders.length : 0;
  20855. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  20856. var partialsRight = partials,
  20857. holdersRight = holders;
  20858. partials = holders = undefined;
  20859. }
  20860. var data = isBindKey ? undefined : getData(func);
  20861. var newData = [
  20862. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  20863. argPos, ary, arity
  20864. ];
  20865. if (data) {
  20866. mergeData(newData, data);
  20867. }
  20868. func = newData[0];
  20869. bitmask = newData[1];
  20870. thisArg = newData[2];
  20871. partials = newData[3];
  20872. holders = newData[4];
  20873. arity = newData[9] = newData[9] === undefined
  20874. ? (isBindKey ? 0 : func.length)
  20875. : nativeMax(newData[9] - length, 0);
  20876. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  20877. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  20878. }
  20879. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  20880. var result = createBind(func, bitmask, thisArg);
  20881. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  20882. result = createCurry(func, bitmask, arity);
  20883. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  20884. result = createPartial(func, bitmask, thisArg, partials);
  20885. } else {
  20886. result = createHybrid.apply(undefined, newData);
  20887. }
  20888. var setter = data ? baseSetData : setData;
  20889. return setWrapToString(setter(result, newData), func, bitmask);
  20890. }
  20891. /**
  20892. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  20893. * of source objects to the destination object for all destination properties
  20894. * that resolve to `undefined`.
  20895. *
  20896. * @private
  20897. * @param {*} objValue The destination value.
  20898. * @param {*} srcValue The source value.
  20899. * @param {string} key The key of the property to assign.
  20900. * @param {Object} object The parent object of `objValue`.
  20901. * @returns {*} Returns the value to assign.
  20902. */
  20903. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  20904. if (objValue === undefined ||
  20905. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  20906. return srcValue;
  20907. }
  20908. return objValue;
  20909. }
  20910. /**
  20911. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  20912. * objects into destination objects that are passed thru.
  20913. *
  20914. * @private
  20915. * @param {*} objValue The destination value.
  20916. * @param {*} srcValue The source value.
  20917. * @param {string} key The key of the property to merge.
  20918. * @param {Object} object The parent object of `objValue`.
  20919. * @param {Object} source The parent object of `srcValue`.
  20920. * @param {Object} [stack] Tracks traversed source values and their merged
  20921. * counterparts.
  20922. * @returns {*} Returns the value to assign.
  20923. */
  20924. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  20925. if (isObject(objValue) && isObject(srcValue)) {
  20926. // Recursively merge objects and arrays (susceptible to call stack limits).
  20927. stack.set(srcValue, objValue);
  20928. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  20929. stack['delete'](srcValue);
  20930. }
  20931. return objValue;
  20932. }
  20933. /**
  20934. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  20935. * objects.
  20936. *
  20937. * @private
  20938. * @param {*} value The value to inspect.
  20939. * @param {string} key The key of the property to inspect.
  20940. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  20941. */
  20942. function customOmitClone(value) {
  20943. return isPlainObject(value) ? undefined : value;
  20944. }
  20945. /**
  20946. * A specialized version of `baseIsEqualDeep` for arrays with support for
  20947. * partial deep comparisons.
  20948. *
  20949. * @private
  20950. * @param {Array} array The array to compare.
  20951. * @param {Array} other The other array to compare.
  20952. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  20953. * @param {Function} customizer The function to customize comparisons.
  20954. * @param {Function} equalFunc The function to determine equivalents of values.
  20955. * @param {Object} stack Tracks traversed `array` and `other` objects.
  20956. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  20957. */
  20958. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  20959. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  20960. arrLength = array.length,
  20961. othLength = other.length;
  20962. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  20963. return false;
  20964. }
  20965. // Assume cyclic values are equal.
  20966. var stacked = stack.get(array);
  20967. if (stacked && stack.get(other)) {
  20968. return stacked == other;
  20969. }
  20970. var index = -1,
  20971. result = true,
  20972. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  20973. stack.set(array, other);
  20974. stack.set(other, array);
  20975. // Ignore non-index properties.
  20976. while (++index < arrLength) {
  20977. var arrValue = array[index],
  20978. othValue = other[index];
  20979. if (customizer) {
  20980. var compared = isPartial
  20981. ? customizer(othValue, arrValue, index, other, array, stack)
  20982. : customizer(arrValue, othValue, index, array, other, stack);
  20983. }
  20984. if (compared !== undefined) {
  20985. if (compared) {
  20986. continue;
  20987. }
  20988. result = false;
  20989. break;
  20990. }
  20991. // Recursively compare arrays (susceptible to call stack limits).
  20992. if (seen) {
  20993. if (!arraySome(other, function(othValue, othIndex) {
  20994. if (!cacheHas(seen, othIndex) &&
  20995. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  20996. return seen.push(othIndex);
  20997. }
  20998. })) {
  20999. result = false;
  21000. break;
  21001. }
  21002. } else if (!(
  21003. arrValue === othValue ||
  21004. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  21005. )) {
  21006. result = false;
  21007. break;
  21008. }
  21009. }
  21010. stack['delete'](array);
  21011. stack['delete'](other);
  21012. return result;
  21013. }
  21014. /**
  21015. * A specialized version of `baseIsEqualDeep` for comparing objects of
  21016. * the same `toStringTag`.
  21017. *
  21018. * **Note:** This function only supports comparing values with tags of
  21019. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  21020. *
  21021. * @private
  21022. * @param {Object} object The object to compare.
  21023. * @param {Object} other The other object to compare.
  21024. * @param {string} tag The `toStringTag` of the objects to compare.
  21025. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21026. * @param {Function} customizer The function to customize comparisons.
  21027. * @param {Function} equalFunc The function to determine equivalents of values.
  21028. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21029. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21030. */
  21031. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  21032. switch (tag) {
  21033. case dataViewTag:
  21034. if ((object.byteLength != other.byteLength) ||
  21035. (object.byteOffset != other.byteOffset)) {
  21036. return false;
  21037. }
  21038. object = object.buffer;
  21039. other = other.buffer;
  21040. case arrayBufferTag:
  21041. if ((object.byteLength != other.byteLength) ||
  21042. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  21043. return false;
  21044. }
  21045. return true;
  21046. case boolTag:
  21047. case dateTag:
  21048. case numberTag:
  21049. // Coerce booleans to `1` or `0` and dates to milliseconds.
  21050. // Invalid dates are coerced to `NaN`.
  21051. return eq(+object, +other);
  21052. case errorTag:
  21053. return object.name == other.name && object.message == other.message;
  21054. case regexpTag:
  21055. case stringTag:
  21056. // Coerce regexes to strings and treat strings, primitives and objects,
  21057. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  21058. // for more details.
  21059. return object == (other + '');
  21060. case mapTag:
  21061. var convert = mapToArray;
  21062. case setTag:
  21063. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  21064. convert || (convert = setToArray);
  21065. if (object.size != other.size && !isPartial) {
  21066. return false;
  21067. }
  21068. // Assume cyclic values are equal.
  21069. var stacked = stack.get(object);
  21070. if (stacked) {
  21071. return stacked == other;
  21072. }
  21073. bitmask |= COMPARE_UNORDERED_FLAG;
  21074. // Recursively compare objects (susceptible to call stack limits).
  21075. stack.set(object, other);
  21076. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  21077. stack['delete'](object);
  21078. return result;
  21079. case symbolTag:
  21080. if (symbolValueOf) {
  21081. return symbolValueOf.call(object) == symbolValueOf.call(other);
  21082. }
  21083. }
  21084. return false;
  21085. }
  21086. /**
  21087. * A specialized version of `baseIsEqualDeep` for objects with support for
  21088. * partial deep comparisons.
  21089. *
  21090. * @private
  21091. * @param {Object} object The object to compare.
  21092. * @param {Object} other The other object to compare.
  21093. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21094. * @param {Function} customizer The function to customize comparisons.
  21095. * @param {Function} equalFunc The function to determine equivalents of values.
  21096. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21097. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21098. */
  21099. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  21100. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  21101. objProps = getAllKeys(object),
  21102. objLength = objProps.length,
  21103. othProps = getAllKeys(other),
  21104. othLength = othProps.length;
  21105. if (objLength != othLength && !isPartial) {
  21106. return false;
  21107. }
  21108. var index = objLength;
  21109. while (index--) {
  21110. var key = objProps[index];
  21111. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  21112. return false;
  21113. }
  21114. }
  21115. // Assume cyclic values are equal.
  21116. var stacked = stack.get(object);
  21117. if (stacked && stack.get(other)) {
  21118. return stacked == other;
  21119. }
  21120. var result = true;
  21121. stack.set(object, other);
  21122. stack.set(other, object);
  21123. var skipCtor = isPartial;
  21124. while (++index < objLength) {
  21125. key = objProps[index];
  21126. var objValue = object[key],
  21127. othValue = other[key];
  21128. if (customizer) {
  21129. var compared = isPartial
  21130. ? customizer(othValue, objValue, key, other, object, stack)
  21131. : customizer(objValue, othValue, key, object, other, stack);
  21132. }
  21133. // Recursively compare objects (susceptible to call stack limits).
  21134. if (!(compared === undefined
  21135. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  21136. : compared
  21137. )) {
  21138. result = false;
  21139. break;
  21140. }
  21141. skipCtor || (skipCtor = key == 'constructor');
  21142. }
  21143. if (result && !skipCtor) {
  21144. var objCtor = object.constructor,
  21145. othCtor = other.constructor;
  21146. // Non `Object` object instances with different constructors are not equal.
  21147. if (objCtor != othCtor &&
  21148. ('constructor' in object && 'constructor' in other) &&
  21149. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  21150. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  21151. result = false;
  21152. }
  21153. }
  21154. stack['delete'](object);
  21155. stack['delete'](other);
  21156. return result;
  21157. }
  21158. /**
  21159. * A specialized version of `baseRest` which flattens the rest array.
  21160. *
  21161. * @private
  21162. * @param {Function} func The function to apply a rest parameter to.
  21163. * @returns {Function} Returns the new function.
  21164. */
  21165. function flatRest(func) {
  21166. return setToString(overRest(func, undefined, flatten), func + '');
  21167. }
  21168. /**
  21169. * Creates an array of own enumerable property names and symbols of `object`.
  21170. *
  21171. * @private
  21172. * @param {Object} object The object to query.
  21173. * @returns {Array} Returns the array of property names and symbols.
  21174. */
  21175. function getAllKeys(object) {
  21176. return baseGetAllKeys(object, keys, getSymbols);
  21177. }
  21178. /**
  21179. * Creates an array of own and inherited enumerable property names and
  21180. * symbols of `object`.
  21181. *
  21182. * @private
  21183. * @param {Object} object The object to query.
  21184. * @returns {Array} Returns the array of property names and symbols.
  21185. */
  21186. function getAllKeysIn(object) {
  21187. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  21188. }
  21189. /**
  21190. * Gets metadata for `func`.
  21191. *
  21192. * @private
  21193. * @param {Function} func The function to query.
  21194. * @returns {*} Returns the metadata for `func`.
  21195. */
  21196. var getData = !metaMap ? noop : function(func) {
  21197. return metaMap.get(func);
  21198. };
  21199. /**
  21200. * Gets the name of `func`.
  21201. *
  21202. * @private
  21203. * @param {Function} func The function to query.
  21204. * @returns {string} Returns the function name.
  21205. */
  21206. function getFuncName(func) {
  21207. var result = (func.name + ''),
  21208. array = realNames[result],
  21209. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  21210. while (length--) {
  21211. var data = array[length],
  21212. otherFunc = data.func;
  21213. if (otherFunc == null || otherFunc == func) {
  21214. return data.name;
  21215. }
  21216. }
  21217. return result;
  21218. }
  21219. /**
  21220. * Gets the argument placeholder value for `func`.
  21221. *
  21222. * @private
  21223. * @param {Function} func The function to inspect.
  21224. * @returns {*} Returns the placeholder value.
  21225. */
  21226. function getHolder(func) {
  21227. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  21228. return object.placeholder;
  21229. }
  21230. /**
  21231. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  21232. * this function returns the custom method, otherwise it returns `baseIteratee`.
  21233. * If arguments are provided, the chosen function is invoked with them and
  21234. * its result is returned.
  21235. *
  21236. * @private
  21237. * @param {*} [value] The value to convert to an iteratee.
  21238. * @param {number} [arity] The arity of the created iteratee.
  21239. * @returns {Function} Returns the chosen function or its result.
  21240. */
  21241. function getIteratee() {
  21242. var result = lodash.iteratee || iteratee;
  21243. result = result === iteratee ? baseIteratee : result;
  21244. return arguments.length ? result(arguments[0], arguments[1]) : result;
  21245. }
  21246. /**
  21247. * Gets the data for `map`.
  21248. *
  21249. * @private
  21250. * @param {Object} map The map to query.
  21251. * @param {string} key The reference key.
  21252. * @returns {*} Returns the map data.
  21253. */
  21254. function getMapData(map, key) {
  21255. var data = map.__data__;
  21256. return isKeyable(key)
  21257. ? data[typeof key == 'string' ? 'string' : 'hash']
  21258. : data.map;
  21259. }
  21260. /**
  21261. * Gets the property names, values, and compare flags of `object`.
  21262. *
  21263. * @private
  21264. * @param {Object} object The object to query.
  21265. * @returns {Array} Returns the match data of `object`.
  21266. */
  21267. function getMatchData(object) {
  21268. var result = keys(object),
  21269. length = result.length;
  21270. while (length--) {
  21271. var key = result[length],
  21272. value = object[key];
  21273. result[length] = [key, value, isStrictComparable(value)];
  21274. }
  21275. return result;
  21276. }
  21277. /**
  21278. * Gets the native function at `key` of `object`.
  21279. *
  21280. * @private
  21281. * @param {Object} object The object to query.
  21282. * @param {string} key The key of the method to get.
  21283. * @returns {*} Returns the function if it's native, else `undefined`.
  21284. */
  21285. function getNative(object, key) {
  21286. var value = getValue(object, key);
  21287. return baseIsNative(value) ? value : undefined;
  21288. }
  21289. /**
  21290. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  21291. *
  21292. * @private
  21293. * @param {*} value The value to query.
  21294. * @returns {string} Returns the raw `toStringTag`.
  21295. */
  21296. function getRawTag(value) {
  21297. var isOwn = hasOwnProperty.call(value, symToStringTag),
  21298. tag = value[symToStringTag];
  21299. try {
  21300. value[symToStringTag] = undefined;
  21301. var unmasked = true;
  21302. } catch (e) {}
  21303. var result = nativeObjectToString.call(value);
  21304. if (unmasked) {
  21305. if (isOwn) {
  21306. value[symToStringTag] = tag;
  21307. } else {
  21308. delete value[symToStringTag];
  21309. }
  21310. }
  21311. return result;
  21312. }
  21313. /**
  21314. * Creates an array of the own enumerable symbols of `object`.
  21315. *
  21316. * @private
  21317. * @param {Object} object The object to query.
  21318. * @returns {Array} Returns the array of symbols.
  21319. */
  21320. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  21321. if (object == null) {
  21322. return [];
  21323. }
  21324. object = Object(object);
  21325. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  21326. return propertyIsEnumerable.call(object, symbol);
  21327. });
  21328. };
  21329. /**
  21330. * Creates an array of the own and inherited enumerable symbols of `object`.
  21331. *
  21332. * @private
  21333. * @param {Object} object The object to query.
  21334. * @returns {Array} Returns the array of symbols.
  21335. */
  21336. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  21337. var result = [];
  21338. while (object) {
  21339. arrayPush(result, getSymbols(object));
  21340. object = getPrototype(object);
  21341. }
  21342. return result;
  21343. };
  21344. /**
  21345. * Gets the `toStringTag` of `value`.
  21346. *
  21347. * @private
  21348. * @param {*} value The value to query.
  21349. * @returns {string} Returns the `toStringTag`.
  21350. */
  21351. var getTag = baseGetTag;
  21352. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  21353. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  21354. (Map && getTag(new Map) != mapTag) ||
  21355. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  21356. (Set && getTag(new Set) != setTag) ||
  21357. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  21358. getTag = function(value) {
  21359. var result = baseGetTag(value),
  21360. Ctor = result == objectTag ? value.constructor : undefined,
  21361. ctorString = Ctor ? toSource(Ctor) : '';
  21362. if (ctorString) {
  21363. switch (ctorString) {
  21364. case dataViewCtorString: return dataViewTag;
  21365. case mapCtorString: return mapTag;
  21366. case promiseCtorString: return promiseTag;
  21367. case setCtorString: return setTag;
  21368. case weakMapCtorString: return weakMapTag;
  21369. }
  21370. }
  21371. return result;
  21372. };
  21373. }
  21374. /**
  21375. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  21376. *
  21377. * @private
  21378. * @param {number} start The start of the view.
  21379. * @param {number} end The end of the view.
  21380. * @param {Array} transforms The transformations to apply to the view.
  21381. * @returns {Object} Returns an object containing the `start` and `end`
  21382. * positions of the view.
  21383. */
  21384. function getView(start, end, transforms) {
  21385. var index = -1,
  21386. length = transforms.length;
  21387. while (++index < length) {
  21388. var data = transforms[index],
  21389. size = data.size;
  21390. switch (data.type) {
  21391. case 'drop': start += size; break;
  21392. case 'dropRight': end -= size; break;
  21393. case 'take': end = nativeMin(end, start + size); break;
  21394. case 'takeRight': start = nativeMax(start, end - size); break;
  21395. }
  21396. }
  21397. return { 'start': start, 'end': end };
  21398. }
  21399. /**
  21400. * Extracts wrapper details from the `source` body comment.
  21401. *
  21402. * @private
  21403. * @param {string} source The source to inspect.
  21404. * @returns {Array} Returns the wrapper details.
  21405. */
  21406. function getWrapDetails(source) {
  21407. var match = source.match(reWrapDetails);
  21408. return match ? match[1].split(reSplitDetails) : [];
  21409. }
  21410. /**
  21411. * Checks if `path` exists on `object`.
  21412. *
  21413. * @private
  21414. * @param {Object} object The object to query.
  21415. * @param {Array|string} path The path to check.
  21416. * @param {Function} hasFunc The function to check properties.
  21417. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  21418. */
  21419. function hasPath(object, path, hasFunc) {
  21420. path = castPath(path, object);
  21421. var index = -1,
  21422. length = path.length,
  21423. result = false;
  21424. while (++index < length) {
  21425. var key = toKey(path[index]);
  21426. if (!(result = object != null && hasFunc(object, key))) {
  21427. break;
  21428. }
  21429. object = object[key];
  21430. }
  21431. if (result || ++index != length) {
  21432. return result;
  21433. }
  21434. length = object == null ? 0 : object.length;
  21435. return !!length && isLength(length) && isIndex(key, length) &&
  21436. (isArray(object) || isArguments(object));
  21437. }
  21438. /**
  21439. * Initializes an array clone.
  21440. *
  21441. * @private
  21442. * @param {Array} array The array to clone.
  21443. * @returns {Array} Returns the initialized clone.
  21444. */
  21445. function initCloneArray(array) {
  21446. var length = array.length,
  21447. result = new array.constructor(length);
  21448. // Add properties assigned by `RegExp#exec`.
  21449. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  21450. result.index = array.index;
  21451. result.input = array.input;
  21452. }
  21453. return result;
  21454. }
  21455. /**
  21456. * Initializes an object clone.
  21457. *
  21458. * @private
  21459. * @param {Object} object The object to clone.
  21460. * @returns {Object} Returns the initialized clone.
  21461. */
  21462. function initCloneObject(object) {
  21463. return (typeof object.constructor == 'function' && !isPrototype(object))
  21464. ? baseCreate(getPrototype(object))
  21465. : {};
  21466. }
  21467. /**
  21468. * Initializes an object clone based on its `toStringTag`.
  21469. *
  21470. * **Note:** This function only supports cloning values with tags of
  21471. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  21472. *
  21473. * @private
  21474. * @param {Object} object The object to clone.
  21475. * @param {string} tag The `toStringTag` of the object to clone.
  21476. * @param {boolean} [isDeep] Specify a deep clone.
  21477. * @returns {Object} Returns the initialized clone.
  21478. */
  21479. function initCloneByTag(object, tag, isDeep) {
  21480. var Ctor = object.constructor;
  21481. switch (tag) {
  21482. case arrayBufferTag:
  21483. return cloneArrayBuffer(object);
  21484. case boolTag:
  21485. case dateTag:
  21486. return new Ctor(+object);
  21487. case dataViewTag:
  21488. return cloneDataView(object, isDeep);
  21489. case float32Tag: case float64Tag:
  21490. case int8Tag: case int16Tag: case int32Tag:
  21491. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  21492. return cloneTypedArray(object, isDeep);
  21493. case mapTag:
  21494. return new Ctor;
  21495. case numberTag:
  21496. case stringTag:
  21497. return new Ctor(object);
  21498. case regexpTag:
  21499. return cloneRegExp(object);
  21500. case setTag:
  21501. return new Ctor;
  21502. case symbolTag:
  21503. return cloneSymbol(object);
  21504. }
  21505. }
  21506. /**
  21507. * Inserts wrapper `details` in a comment at the top of the `source` body.
  21508. *
  21509. * @private
  21510. * @param {string} source The source to modify.
  21511. * @returns {Array} details The details to insert.
  21512. * @returns {string} Returns the modified source.
  21513. */
  21514. function insertWrapDetails(source, details) {
  21515. var length = details.length;
  21516. if (!length) {
  21517. return source;
  21518. }
  21519. var lastIndex = length - 1;
  21520. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  21521. details = details.join(length > 2 ? ', ' : ' ');
  21522. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  21523. }
  21524. /**
  21525. * Checks if `value` is a flattenable `arguments` object or array.
  21526. *
  21527. * @private
  21528. * @param {*} value The value to check.
  21529. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  21530. */
  21531. function isFlattenable(value) {
  21532. return isArray(value) || isArguments(value) ||
  21533. !!(spreadableSymbol && value && value[spreadableSymbol]);
  21534. }
  21535. /**
  21536. * Checks if `value` is a valid array-like index.
  21537. *
  21538. * @private
  21539. * @param {*} value The value to check.
  21540. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  21541. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  21542. */
  21543. function isIndex(value, length) {
  21544. var type = typeof value;
  21545. length = length == null ? MAX_SAFE_INTEGER : length;
  21546. return !!length &&
  21547. (type == 'number' ||
  21548. (type != 'symbol' && reIsUint.test(value))) &&
  21549. (value > -1 && value % 1 == 0 && value < length);
  21550. }
  21551. /**
  21552. * Checks if the given arguments are from an iteratee call.
  21553. *
  21554. * @private
  21555. * @param {*} value The potential iteratee value argument.
  21556. * @param {*} index The potential iteratee index or key argument.
  21557. * @param {*} object The potential iteratee object argument.
  21558. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  21559. * else `false`.
  21560. */
  21561. function isIterateeCall(value, index, object) {
  21562. if (!isObject(object)) {
  21563. return false;
  21564. }
  21565. var type = typeof index;
  21566. if (type == 'number'
  21567. ? (isArrayLike(object) && isIndex(index, object.length))
  21568. : (type == 'string' && index in object)
  21569. ) {
  21570. return eq(object[index], value);
  21571. }
  21572. return false;
  21573. }
  21574. /**
  21575. * Checks if `value` is a property name and not a property path.
  21576. *
  21577. * @private
  21578. * @param {*} value The value to check.
  21579. * @param {Object} [object] The object to query keys on.
  21580. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  21581. */
  21582. function isKey(value, object) {
  21583. if (isArray(value)) {
  21584. return false;
  21585. }
  21586. var type = typeof value;
  21587. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  21588. value == null || isSymbol(value)) {
  21589. return true;
  21590. }
  21591. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  21592. (object != null && value in Object(object));
  21593. }
  21594. /**
  21595. * Checks if `value` is suitable for use as unique object key.
  21596. *
  21597. * @private
  21598. * @param {*} value The value to check.
  21599. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  21600. */
  21601. function isKeyable(value) {
  21602. var type = typeof value;
  21603. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  21604. ? (value !== '__proto__')
  21605. : (value === null);
  21606. }
  21607. /**
  21608. * Checks if `func` has a lazy counterpart.
  21609. *
  21610. * @private
  21611. * @param {Function} func The function to check.
  21612. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  21613. * else `false`.
  21614. */
  21615. function isLaziable(func) {
  21616. var funcName = getFuncName(func),
  21617. other = lodash[funcName];
  21618. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  21619. return false;
  21620. }
  21621. if (func === other) {
  21622. return true;
  21623. }
  21624. var data = getData(other);
  21625. return !!data && func === data[0];
  21626. }
  21627. /**
  21628. * Checks if `func` has its source masked.
  21629. *
  21630. * @private
  21631. * @param {Function} func The function to check.
  21632. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  21633. */
  21634. function isMasked(func) {
  21635. return !!maskSrcKey && (maskSrcKey in func);
  21636. }
  21637. /**
  21638. * Checks if `func` is capable of being masked.
  21639. *
  21640. * @private
  21641. * @param {*} value The value to check.
  21642. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  21643. */
  21644. var isMaskable = coreJsData ? isFunction : stubFalse;
  21645. /**
  21646. * Checks if `value` is likely a prototype object.
  21647. *
  21648. * @private
  21649. * @param {*} value The value to check.
  21650. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  21651. */
  21652. function isPrototype(value) {
  21653. var Ctor = value && value.constructor,
  21654. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  21655. return value === proto;
  21656. }
  21657. /**
  21658. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  21659. *
  21660. * @private
  21661. * @param {*} value The value to check.
  21662. * @returns {boolean} Returns `true` if `value` if suitable for strict
  21663. * equality comparisons, else `false`.
  21664. */
  21665. function isStrictComparable(value) {
  21666. return value === value && !isObject(value);
  21667. }
  21668. /**
  21669. * A specialized version of `matchesProperty` for source values suitable
  21670. * for strict equality comparisons, i.e. `===`.
  21671. *
  21672. * @private
  21673. * @param {string} key The key of the property to get.
  21674. * @param {*} srcValue The value to match.
  21675. * @returns {Function} Returns the new spec function.
  21676. */
  21677. function matchesStrictComparable(key, srcValue) {
  21678. return function(object) {
  21679. if (object == null) {
  21680. return false;
  21681. }
  21682. return object[key] === srcValue &&
  21683. (srcValue !== undefined || (key in Object(object)));
  21684. };
  21685. }
  21686. /**
  21687. * A specialized version of `_.memoize` which clears the memoized function's
  21688. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  21689. *
  21690. * @private
  21691. * @param {Function} func The function to have its output memoized.
  21692. * @returns {Function} Returns the new memoized function.
  21693. */
  21694. function memoizeCapped(func) {
  21695. var result = memoize(func, function(key) {
  21696. if (cache.size === MAX_MEMOIZE_SIZE) {
  21697. cache.clear();
  21698. }
  21699. return key;
  21700. });
  21701. var cache = result.cache;
  21702. return result;
  21703. }
  21704. /**
  21705. * Merges the function metadata of `source` into `data`.
  21706. *
  21707. * Merging metadata reduces the number of wrappers used to invoke a function.
  21708. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  21709. * may be applied regardless of execution order. Methods like `_.ary` and
  21710. * `_.rearg` modify function arguments, making the order in which they are
  21711. * executed important, preventing the merging of metadata. However, we make
  21712. * an exception for a safe combined case where curried functions have `_.ary`
  21713. * and or `_.rearg` applied.
  21714. *
  21715. * @private
  21716. * @param {Array} data The destination metadata.
  21717. * @param {Array} source The source metadata.
  21718. * @returns {Array} Returns `data`.
  21719. */
  21720. function mergeData(data, source) {
  21721. var bitmask = data[1],
  21722. srcBitmask = source[1],
  21723. newBitmask = bitmask | srcBitmask,
  21724. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  21725. var isCombo =
  21726. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  21727. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  21728. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  21729. // Exit early if metadata can't be merged.
  21730. if (!(isCommon || isCombo)) {
  21731. return data;
  21732. }
  21733. // Use source `thisArg` if available.
  21734. if (srcBitmask & WRAP_BIND_FLAG) {
  21735. data[2] = source[2];
  21736. // Set when currying a bound function.
  21737. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  21738. }
  21739. // Compose partial arguments.
  21740. var value = source[3];
  21741. if (value) {
  21742. var partials = data[3];
  21743. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  21744. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  21745. }
  21746. // Compose partial right arguments.
  21747. value = source[5];
  21748. if (value) {
  21749. partials = data[5];
  21750. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  21751. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  21752. }
  21753. // Use source `argPos` if available.
  21754. value = source[7];
  21755. if (value) {
  21756. data[7] = value;
  21757. }
  21758. // Use source `ary` if it's smaller.
  21759. if (srcBitmask & WRAP_ARY_FLAG) {
  21760. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  21761. }
  21762. // Use source `arity` if one is not provided.
  21763. if (data[9] == null) {
  21764. data[9] = source[9];
  21765. }
  21766. // Use source `func` and merge bitmasks.
  21767. data[0] = source[0];
  21768. data[1] = newBitmask;
  21769. return data;
  21770. }
  21771. /**
  21772. * This function is like
  21773. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  21774. * except that it includes inherited enumerable properties.
  21775. *
  21776. * @private
  21777. * @param {Object} object The object to query.
  21778. * @returns {Array} Returns the array of property names.
  21779. */
  21780. function nativeKeysIn(object) {
  21781. var result = [];
  21782. if (object != null) {
  21783. for (var key in Object(object)) {
  21784. result.push(key);
  21785. }
  21786. }
  21787. return result;
  21788. }
  21789. /**
  21790. * Converts `value` to a string using `Object.prototype.toString`.
  21791. *
  21792. * @private
  21793. * @param {*} value The value to convert.
  21794. * @returns {string} Returns the converted string.
  21795. */
  21796. function objectToString(value) {
  21797. return nativeObjectToString.call(value);
  21798. }
  21799. /**
  21800. * A specialized version of `baseRest` which transforms the rest array.
  21801. *
  21802. * @private
  21803. * @param {Function} func The function to apply a rest parameter to.
  21804. * @param {number} [start=func.length-1] The start position of the rest parameter.
  21805. * @param {Function} transform The rest array transform.
  21806. * @returns {Function} Returns the new function.
  21807. */
  21808. function overRest(func, start, transform) {
  21809. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  21810. return function() {
  21811. var args = arguments,
  21812. index = -1,
  21813. length = nativeMax(args.length - start, 0),
  21814. array = Array(length);
  21815. while (++index < length) {
  21816. array[index] = args[start + index];
  21817. }
  21818. index = -1;
  21819. var otherArgs = Array(start + 1);
  21820. while (++index < start) {
  21821. otherArgs[index] = args[index];
  21822. }
  21823. otherArgs[start] = transform(array);
  21824. return apply(func, this, otherArgs);
  21825. };
  21826. }
  21827. /**
  21828. * Gets the parent value at `path` of `object`.
  21829. *
  21830. * @private
  21831. * @param {Object} object The object to query.
  21832. * @param {Array} path The path to get the parent value of.
  21833. * @returns {*} Returns the parent value.
  21834. */
  21835. function parent(object, path) {
  21836. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  21837. }
  21838. /**
  21839. * Reorder `array` according to the specified indexes where the element at
  21840. * the first index is assigned as the first element, the element at
  21841. * the second index is assigned as the second element, and so on.
  21842. *
  21843. * @private
  21844. * @param {Array} array The array to reorder.
  21845. * @param {Array} indexes The arranged array indexes.
  21846. * @returns {Array} Returns `array`.
  21847. */
  21848. function reorder(array, indexes) {
  21849. var arrLength = array.length,
  21850. length = nativeMin(indexes.length, arrLength),
  21851. oldArray = copyArray(array);
  21852. while (length--) {
  21853. var index = indexes[length];
  21854. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  21855. }
  21856. return array;
  21857. }
  21858. /**
  21859. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  21860. *
  21861. * @private
  21862. * @param {Object} object The object to query.
  21863. * @param {string} key The key of the property to get.
  21864. * @returns {*} Returns the property value.
  21865. */
  21866. function safeGet(object, key) {
  21867. if (key === 'constructor' && typeof object[key] === 'function') {
  21868. return;
  21869. }
  21870. if (key == '__proto__') {
  21871. return;
  21872. }
  21873. return object[key];
  21874. }
  21875. /**
  21876. * Sets metadata for `func`.
  21877. *
  21878. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  21879. * period of time, it will trip its breaker and transition to an identity
  21880. * function to avoid garbage collection pauses in V8. See
  21881. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  21882. * for more details.
  21883. *
  21884. * @private
  21885. * @param {Function} func The function to associate metadata with.
  21886. * @param {*} data The metadata.
  21887. * @returns {Function} Returns `func`.
  21888. */
  21889. var setData = shortOut(baseSetData);
  21890. /**
  21891. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  21892. *
  21893. * @private
  21894. * @param {Function} func The function to delay.
  21895. * @param {number} wait The number of milliseconds to delay invocation.
  21896. * @returns {number|Object} Returns the timer id or timeout object.
  21897. */
  21898. var setTimeout = ctxSetTimeout || function(func, wait) {
  21899. return root.setTimeout(func, wait);
  21900. };
  21901. /**
  21902. * Sets the `toString` method of `func` to return `string`.
  21903. *
  21904. * @private
  21905. * @param {Function} func The function to modify.
  21906. * @param {Function} string The `toString` result.
  21907. * @returns {Function} Returns `func`.
  21908. */
  21909. var setToString = shortOut(baseSetToString);
  21910. /**
  21911. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  21912. * with wrapper details in a comment at the top of the source body.
  21913. *
  21914. * @private
  21915. * @param {Function} wrapper The function to modify.
  21916. * @param {Function} reference The reference function.
  21917. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  21918. * @returns {Function} Returns `wrapper`.
  21919. */
  21920. function setWrapToString(wrapper, reference, bitmask) {
  21921. var source = (reference + '');
  21922. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  21923. }
  21924. /**
  21925. * Creates a function that'll short out and invoke `identity` instead
  21926. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  21927. * milliseconds.
  21928. *
  21929. * @private
  21930. * @param {Function} func The function to restrict.
  21931. * @returns {Function} Returns the new shortable function.
  21932. */
  21933. function shortOut(func) {
  21934. var count = 0,
  21935. lastCalled = 0;
  21936. return function() {
  21937. var stamp = nativeNow(),
  21938. remaining = HOT_SPAN - (stamp - lastCalled);
  21939. lastCalled = stamp;
  21940. if (remaining > 0) {
  21941. if (++count >= HOT_COUNT) {
  21942. return arguments[0];
  21943. }
  21944. } else {
  21945. count = 0;
  21946. }
  21947. return func.apply(undefined, arguments);
  21948. };
  21949. }
  21950. /**
  21951. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  21952. *
  21953. * @private
  21954. * @param {Array} array The array to shuffle.
  21955. * @param {number} [size=array.length] The size of `array`.
  21956. * @returns {Array} Returns `array`.
  21957. */
  21958. function shuffleSelf(array, size) {
  21959. var index = -1,
  21960. length = array.length,
  21961. lastIndex = length - 1;
  21962. size = size === undefined ? length : size;
  21963. while (++index < size) {
  21964. var rand = baseRandom(index, lastIndex),
  21965. value = array[rand];
  21966. array[rand] = array[index];
  21967. array[index] = value;
  21968. }
  21969. array.length = size;
  21970. return array;
  21971. }
  21972. /**
  21973. * Converts `string` to a property path array.
  21974. *
  21975. * @private
  21976. * @param {string} string The string to convert.
  21977. * @returns {Array} Returns the property path array.
  21978. */
  21979. var stringToPath = memoizeCapped(function(string) {
  21980. var result = [];
  21981. if (string.charCodeAt(0) === 46 /* . */) {
  21982. result.push('');
  21983. }
  21984. string.replace(rePropName, function(match, number, quote, subString) {
  21985. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  21986. });
  21987. return result;
  21988. });
  21989. /**
  21990. * Converts `value` to a string key if it's not a string or symbol.
  21991. *
  21992. * @private
  21993. * @param {*} value The value to inspect.
  21994. * @returns {string|symbol} Returns the key.
  21995. */
  21996. function toKey(value) {
  21997. if (typeof value == 'string' || isSymbol(value)) {
  21998. return value;
  21999. }
  22000. var result = (value + '');
  22001. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  22002. }
  22003. /**
  22004. * Converts `func` to its source code.
  22005. *
  22006. * @private
  22007. * @param {Function} func The function to convert.
  22008. * @returns {string} Returns the source code.
  22009. */
  22010. function toSource(func) {
  22011. if (func != null) {
  22012. try {
  22013. return funcToString.call(func);
  22014. } catch (e) {}
  22015. try {
  22016. return (func + '');
  22017. } catch (e) {}
  22018. }
  22019. return '';
  22020. }
  22021. /**
  22022. * Updates wrapper `details` based on `bitmask` flags.
  22023. *
  22024. * @private
  22025. * @returns {Array} details The details to modify.
  22026. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  22027. * @returns {Array} Returns `details`.
  22028. */
  22029. function updateWrapDetails(details, bitmask) {
  22030. arrayEach(wrapFlags, function(pair) {
  22031. var value = '_.' + pair[0];
  22032. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  22033. details.push(value);
  22034. }
  22035. });
  22036. return details.sort();
  22037. }
  22038. /**
  22039. * Creates a clone of `wrapper`.
  22040. *
  22041. * @private
  22042. * @param {Object} wrapper The wrapper to clone.
  22043. * @returns {Object} Returns the cloned wrapper.
  22044. */
  22045. function wrapperClone(wrapper) {
  22046. if (wrapper instanceof LazyWrapper) {
  22047. return wrapper.clone();
  22048. }
  22049. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  22050. result.__actions__ = copyArray(wrapper.__actions__);
  22051. result.__index__ = wrapper.__index__;
  22052. result.__values__ = wrapper.__values__;
  22053. return result;
  22054. }
  22055. /*------------------------------------------------------------------------*/
  22056. /**
  22057. * Creates an array of elements split into groups the length of `size`.
  22058. * If `array` can't be split evenly, the final chunk will be the remaining
  22059. * elements.
  22060. *
  22061. * @static
  22062. * @memberOf _
  22063. * @since 3.0.0
  22064. * @category Array
  22065. * @param {Array} array The array to process.
  22066. * @param {number} [size=1] The length of each chunk
  22067. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22068. * @returns {Array} Returns the new array of chunks.
  22069. * @example
  22070. *
  22071. * _.chunk(['a', 'b', 'c', 'd'], 2);
  22072. * // => [['a', 'b'], ['c', 'd']]
  22073. *
  22074. * _.chunk(['a', 'b', 'c', 'd'], 3);
  22075. * // => [['a', 'b', 'c'], ['d']]
  22076. */
  22077. function chunk(array, size, guard) {
  22078. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  22079. size = 1;
  22080. } else {
  22081. size = nativeMax(toInteger(size), 0);
  22082. }
  22083. var length = array == null ? 0 : array.length;
  22084. if (!length || size < 1) {
  22085. return [];
  22086. }
  22087. var index = 0,
  22088. resIndex = 0,
  22089. result = Array(nativeCeil(length / size));
  22090. while (index < length) {
  22091. result[resIndex++] = baseSlice(array, index, (index += size));
  22092. }
  22093. return result;
  22094. }
  22095. /**
  22096. * Creates an array with all falsey values removed. The values `false`, `null`,
  22097. * `0`, `""`, `undefined`, and `NaN` are falsey.
  22098. *
  22099. * @static
  22100. * @memberOf _
  22101. * @since 0.1.0
  22102. * @category Array
  22103. * @param {Array} array The array to compact.
  22104. * @returns {Array} Returns the new array of filtered values.
  22105. * @example
  22106. *
  22107. * _.compact([0, 1, false, 2, '', 3]);
  22108. * // => [1, 2, 3]
  22109. */
  22110. function compact(array) {
  22111. var index = -1,
  22112. length = array == null ? 0 : array.length,
  22113. resIndex = 0,
  22114. result = [];
  22115. while (++index < length) {
  22116. var value = array[index];
  22117. if (value) {
  22118. result[resIndex++] = value;
  22119. }
  22120. }
  22121. return result;
  22122. }
  22123. /**
  22124. * Creates a new array concatenating `array` with any additional arrays
  22125. * and/or values.
  22126. *
  22127. * @static
  22128. * @memberOf _
  22129. * @since 4.0.0
  22130. * @category Array
  22131. * @param {Array} array The array to concatenate.
  22132. * @param {...*} [values] The values to concatenate.
  22133. * @returns {Array} Returns the new concatenated array.
  22134. * @example
  22135. *
  22136. * var array = [1];
  22137. * var other = _.concat(array, 2, [3], [[4]]);
  22138. *
  22139. * console.log(other);
  22140. * // => [1, 2, 3, [4]]
  22141. *
  22142. * console.log(array);
  22143. * // => [1]
  22144. */
  22145. function concat() {
  22146. var length = arguments.length;
  22147. if (!length) {
  22148. return [];
  22149. }
  22150. var args = Array(length - 1),
  22151. array = arguments[0],
  22152. index = length;
  22153. while (index--) {
  22154. args[index - 1] = arguments[index];
  22155. }
  22156. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  22157. }
  22158. /**
  22159. * Creates an array of `array` values not included in the other given arrays
  22160. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22161. * for equality comparisons. The order and references of result values are
  22162. * determined by the first array.
  22163. *
  22164. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  22165. *
  22166. * @static
  22167. * @memberOf _
  22168. * @since 0.1.0
  22169. * @category Array
  22170. * @param {Array} array The array to inspect.
  22171. * @param {...Array} [values] The values to exclude.
  22172. * @returns {Array} Returns the new array of filtered values.
  22173. * @see _.without, _.xor
  22174. * @example
  22175. *
  22176. * _.difference([2, 1], [2, 3]);
  22177. * // => [1]
  22178. */
  22179. var difference = baseRest(function(array, values) {
  22180. return isArrayLikeObject(array)
  22181. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  22182. : [];
  22183. });
  22184. /**
  22185. * This method is like `_.difference` except that it accepts `iteratee` which
  22186. * is invoked for each element of `array` and `values` to generate the criterion
  22187. * by which they're compared. The order and references of result values are
  22188. * determined by the first array. The iteratee is invoked with one argument:
  22189. * (value).
  22190. *
  22191. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  22192. *
  22193. * @static
  22194. * @memberOf _
  22195. * @since 4.0.0
  22196. * @category Array
  22197. * @param {Array} array The array to inspect.
  22198. * @param {...Array} [values] The values to exclude.
  22199. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22200. * @returns {Array} Returns the new array of filtered values.
  22201. * @example
  22202. *
  22203. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22204. * // => [1.2]
  22205. *
  22206. * // The `_.property` iteratee shorthand.
  22207. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  22208. * // => [{ 'x': 2 }]
  22209. */
  22210. var differenceBy = baseRest(function(array, values) {
  22211. var iteratee = last(values);
  22212. if (isArrayLikeObject(iteratee)) {
  22213. iteratee = undefined;
  22214. }
  22215. return isArrayLikeObject(array)
  22216. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  22217. : [];
  22218. });
  22219. /**
  22220. * This method is like `_.difference` except that it accepts `comparator`
  22221. * which is invoked to compare elements of `array` to `values`. The order and
  22222. * references of result values are determined by the first array. The comparator
  22223. * is invoked with two arguments: (arrVal, othVal).
  22224. *
  22225. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  22226. *
  22227. * @static
  22228. * @memberOf _
  22229. * @since 4.0.0
  22230. * @category Array
  22231. * @param {Array} array The array to inspect.
  22232. * @param {...Array} [values] The values to exclude.
  22233. * @param {Function} [comparator] The comparator invoked per element.
  22234. * @returns {Array} Returns the new array of filtered values.
  22235. * @example
  22236. *
  22237. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22238. *
  22239. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  22240. * // => [{ 'x': 2, 'y': 1 }]
  22241. */
  22242. var differenceWith = baseRest(function(array, values) {
  22243. var comparator = last(values);
  22244. if (isArrayLikeObject(comparator)) {
  22245. comparator = undefined;
  22246. }
  22247. return isArrayLikeObject(array)
  22248. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  22249. : [];
  22250. });
  22251. /**
  22252. * Creates a slice of `array` with `n` elements dropped from the beginning.
  22253. *
  22254. * @static
  22255. * @memberOf _
  22256. * @since 0.5.0
  22257. * @category Array
  22258. * @param {Array} array The array to query.
  22259. * @param {number} [n=1] The number of elements to drop.
  22260. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22261. * @returns {Array} Returns the slice of `array`.
  22262. * @example
  22263. *
  22264. * _.drop([1, 2, 3]);
  22265. * // => [2, 3]
  22266. *
  22267. * _.drop([1, 2, 3], 2);
  22268. * // => [3]
  22269. *
  22270. * _.drop([1, 2, 3], 5);
  22271. * // => []
  22272. *
  22273. * _.drop([1, 2, 3], 0);
  22274. * // => [1, 2, 3]
  22275. */
  22276. function drop(array, n, guard) {
  22277. var length = array == null ? 0 : array.length;
  22278. if (!length) {
  22279. return [];
  22280. }
  22281. n = (guard || n === undefined) ? 1 : toInteger(n);
  22282. return baseSlice(array, n < 0 ? 0 : n, length);
  22283. }
  22284. /**
  22285. * Creates a slice of `array` with `n` elements dropped from the end.
  22286. *
  22287. * @static
  22288. * @memberOf _
  22289. * @since 3.0.0
  22290. * @category Array
  22291. * @param {Array} array The array to query.
  22292. * @param {number} [n=1] The number of elements to drop.
  22293. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22294. * @returns {Array} Returns the slice of `array`.
  22295. * @example
  22296. *
  22297. * _.dropRight([1, 2, 3]);
  22298. * // => [1, 2]
  22299. *
  22300. * _.dropRight([1, 2, 3], 2);
  22301. * // => [1]
  22302. *
  22303. * _.dropRight([1, 2, 3], 5);
  22304. * // => []
  22305. *
  22306. * _.dropRight([1, 2, 3], 0);
  22307. * // => [1, 2, 3]
  22308. */
  22309. function dropRight(array, n, guard) {
  22310. var length = array == null ? 0 : array.length;
  22311. if (!length) {
  22312. return [];
  22313. }
  22314. n = (guard || n === undefined) ? 1 : toInteger(n);
  22315. n = length - n;
  22316. return baseSlice(array, 0, n < 0 ? 0 : n);
  22317. }
  22318. /**
  22319. * Creates a slice of `array` excluding elements dropped from the end.
  22320. * Elements are dropped until `predicate` returns falsey. The predicate is
  22321. * invoked with three arguments: (value, index, array).
  22322. *
  22323. * @static
  22324. * @memberOf _
  22325. * @since 3.0.0
  22326. * @category Array
  22327. * @param {Array} array The array to query.
  22328. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22329. * @returns {Array} Returns the slice of `array`.
  22330. * @example
  22331. *
  22332. * var users = [
  22333. * { 'user': 'barney', 'active': true },
  22334. * { 'user': 'fred', 'active': false },
  22335. * { 'user': 'pebbles', 'active': false }
  22336. * ];
  22337. *
  22338. * _.dropRightWhile(users, function(o) { return !o.active; });
  22339. * // => objects for ['barney']
  22340. *
  22341. * // The `_.matches` iteratee shorthand.
  22342. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  22343. * // => objects for ['barney', 'fred']
  22344. *
  22345. * // The `_.matchesProperty` iteratee shorthand.
  22346. * _.dropRightWhile(users, ['active', false]);
  22347. * // => objects for ['barney']
  22348. *
  22349. * // The `_.property` iteratee shorthand.
  22350. * _.dropRightWhile(users, 'active');
  22351. * // => objects for ['barney', 'fred', 'pebbles']
  22352. */
  22353. function dropRightWhile(array, predicate) {
  22354. return (array && array.length)
  22355. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  22356. : [];
  22357. }
  22358. /**
  22359. * Creates a slice of `array` excluding elements dropped from the beginning.
  22360. * Elements are dropped until `predicate` returns falsey. The predicate is
  22361. * invoked with three arguments: (value, index, array).
  22362. *
  22363. * @static
  22364. * @memberOf _
  22365. * @since 3.0.0
  22366. * @category Array
  22367. * @param {Array} array The array to query.
  22368. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22369. * @returns {Array} Returns the slice of `array`.
  22370. * @example
  22371. *
  22372. * var users = [
  22373. * { 'user': 'barney', 'active': false },
  22374. * { 'user': 'fred', 'active': false },
  22375. * { 'user': 'pebbles', 'active': true }
  22376. * ];
  22377. *
  22378. * _.dropWhile(users, function(o) { return !o.active; });
  22379. * // => objects for ['pebbles']
  22380. *
  22381. * // The `_.matches` iteratee shorthand.
  22382. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  22383. * // => objects for ['fred', 'pebbles']
  22384. *
  22385. * // The `_.matchesProperty` iteratee shorthand.
  22386. * _.dropWhile(users, ['active', false]);
  22387. * // => objects for ['pebbles']
  22388. *
  22389. * // The `_.property` iteratee shorthand.
  22390. * _.dropWhile(users, 'active');
  22391. * // => objects for ['barney', 'fred', 'pebbles']
  22392. */
  22393. function dropWhile(array, predicate) {
  22394. return (array && array.length)
  22395. ? baseWhile(array, getIteratee(predicate, 3), true)
  22396. : [];
  22397. }
  22398. /**
  22399. * Fills elements of `array` with `value` from `start` up to, but not
  22400. * including, `end`.
  22401. *
  22402. * **Note:** This method mutates `array`.
  22403. *
  22404. * @static
  22405. * @memberOf _
  22406. * @since 3.2.0
  22407. * @category Array
  22408. * @param {Array} array The array to fill.
  22409. * @param {*} value The value to fill `array` with.
  22410. * @param {number} [start=0] The start position.
  22411. * @param {number} [end=array.length] The end position.
  22412. * @returns {Array} Returns `array`.
  22413. * @example
  22414. *
  22415. * var array = [1, 2, 3];
  22416. *
  22417. * _.fill(array, 'a');
  22418. * console.log(array);
  22419. * // => ['a', 'a', 'a']
  22420. *
  22421. * _.fill(Array(3), 2);
  22422. * // => [2, 2, 2]
  22423. *
  22424. * _.fill([4, 6, 8, 10], '*', 1, 3);
  22425. * // => [4, '*', '*', 10]
  22426. */
  22427. function fill(array, value, start, end) {
  22428. var length = array == null ? 0 : array.length;
  22429. if (!length) {
  22430. return [];
  22431. }
  22432. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  22433. start = 0;
  22434. end = length;
  22435. }
  22436. return baseFill(array, value, start, end);
  22437. }
  22438. /**
  22439. * This method is like `_.find` except that it returns the index of the first
  22440. * element `predicate` returns truthy for instead of the element itself.
  22441. *
  22442. * @static
  22443. * @memberOf _
  22444. * @since 1.1.0
  22445. * @category Array
  22446. * @param {Array} array The array to inspect.
  22447. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22448. * @param {number} [fromIndex=0] The index to search from.
  22449. * @returns {number} Returns the index of the found element, else `-1`.
  22450. * @example
  22451. *
  22452. * var users = [
  22453. * { 'user': 'barney', 'active': false },
  22454. * { 'user': 'fred', 'active': false },
  22455. * { 'user': 'pebbles', 'active': true }
  22456. * ];
  22457. *
  22458. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  22459. * // => 0
  22460. *
  22461. * // The `_.matches` iteratee shorthand.
  22462. * _.findIndex(users, { 'user': 'fred', 'active': false });
  22463. * // => 1
  22464. *
  22465. * // The `_.matchesProperty` iteratee shorthand.
  22466. * _.findIndex(users, ['active', false]);
  22467. * // => 0
  22468. *
  22469. * // The `_.property` iteratee shorthand.
  22470. * _.findIndex(users, 'active');
  22471. * // => 2
  22472. */
  22473. function findIndex(array, predicate, fromIndex) {
  22474. var length = array == null ? 0 : array.length;
  22475. if (!length) {
  22476. return -1;
  22477. }
  22478. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22479. if (index < 0) {
  22480. index = nativeMax(length + index, 0);
  22481. }
  22482. return baseFindIndex(array, getIteratee(predicate, 3), index);
  22483. }
  22484. /**
  22485. * This method is like `_.findIndex` except that it iterates over elements
  22486. * of `collection` from right to left.
  22487. *
  22488. * @static
  22489. * @memberOf _
  22490. * @since 2.0.0
  22491. * @category Array
  22492. * @param {Array} array The array to inspect.
  22493. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22494. * @param {number} [fromIndex=array.length-1] The index to search from.
  22495. * @returns {number} Returns the index of the found element, else `-1`.
  22496. * @example
  22497. *
  22498. * var users = [
  22499. * { 'user': 'barney', 'active': true },
  22500. * { 'user': 'fred', 'active': false },
  22501. * { 'user': 'pebbles', 'active': false }
  22502. * ];
  22503. *
  22504. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  22505. * // => 2
  22506. *
  22507. * // The `_.matches` iteratee shorthand.
  22508. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  22509. * // => 0
  22510. *
  22511. * // The `_.matchesProperty` iteratee shorthand.
  22512. * _.findLastIndex(users, ['active', false]);
  22513. * // => 2
  22514. *
  22515. * // The `_.property` iteratee shorthand.
  22516. * _.findLastIndex(users, 'active');
  22517. * // => 0
  22518. */
  22519. function findLastIndex(array, predicate, fromIndex) {
  22520. var length = array == null ? 0 : array.length;
  22521. if (!length) {
  22522. return -1;
  22523. }
  22524. var index = length - 1;
  22525. if (fromIndex !== undefined) {
  22526. index = toInteger(fromIndex);
  22527. index = fromIndex < 0
  22528. ? nativeMax(length + index, 0)
  22529. : nativeMin(index, length - 1);
  22530. }
  22531. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  22532. }
  22533. /**
  22534. * Flattens `array` a single level deep.
  22535. *
  22536. * @static
  22537. * @memberOf _
  22538. * @since 0.1.0
  22539. * @category Array
  22540. * @param {Array} array The array to flatten.
  22541. * @returns {Array} Returns the new flattened array.
  22542. * @example
  22543. *
  22544. * _.flatten([1, [2, [3, [4]], 5]]);
  22545. * // => [1, 2, [3, [4]], 5]
  22546. */
  22547. function flatten(array) {
  22548. var length = array == null ? 0 : array.length;
  22549. return length ? baseFlatten(array, 1) : [];
  22550. }
  22551. /**
  22552. * Recursively flattens `array`.
  22553. *
  22554. * @static
  22555. * @memberOf _
  22556. * @since 3.0.0
  22557. * @category Array
  22558. * @param {Array} array The array to flatten.
  22559. * @returns {Array} Returns the new flattened array.
  22560. * @example
  22561. *
  22562. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  22563. * // => [1, 2, 3, 4, 5]
  22564. */
  22565. function flattenDeep(array) {
  22566. var length = array == null ? 0 : array.length;
  22567. return length ? baseFlatten(array, INFINITY) : [];
  22568. }
  22569. /**
  22570. * Recursively flatten `array` up to `depth` times.
  22571. *
  22572. * @static
  22573. * @memberOf _
  22574. * @since 4.4.0
  22575. * @category Array
  22576. * @param {Array} array The array to flatten.
  22577. * @param {number} [depth=1] The maximum recursion depth.
  22578. * @returns {Array} Returns the new flattened array.
  22579. * @example
  22580. *
  22581. * var array = [1, [2, [3, [4]], 5]];
  22582. *
  22583. * _.flattenDepth(array, 1);
  22584. * // => [1, 2, [3, [4]], 5]
  22585. *
  22586. * _.flattenDepth(array, 2);
  22587. * // => [1, 2, 3, [4], 5]
  22588. */
  22589. function flattenDepth(array, depth) {
  22590. var length = array == null ? 0 : array.length;
  22591. if (!length) {
  22592. return [];
  22593. }
  22594. depth = depth === undefined ? 1 : toInteger(depth);
  22595. return baseFlatten(array, depth);
  22596. }
  22597. /**
  22598. * The inverse of `_.toPairs`; this method returns an object composed
  22599. * from key-value `pairs`.
  22600. *
  22601. * @static
  22602. * @memberOf _
  22603. * @since 4.0.0
  22604. * @category Array
  22605. * @param {Array} pairs The key-value pairs.
  22606. * @returns {Object} Returns the new object.
  22607. * @example
  22608. *
  22609. * _.fromPairs([['a', 1], ['b', 2]]);
  22610. * // => { 'a': 1, 'b': 2 }
  22611. */
  22612. function fromPairs(pairs) {
  22613. var index = -1,
  22614. length = pairs == null ? 0 : pairs.length,
  22615. result = {};
  22616. while (++index < length) {
  22617. var pair = pairs[index];
  22618. result[pair[0]] = pair[1];
  22619. }
  22620. return result;
  22621. }
  22622. /**
  22623. * Gets the first element of `array`.
  22624. *
  22625. * @static
  22626. * @memberOf _
  22627. * @since 0.1.0
  22628. * @alias first
  22629. * @category Array
  22630. * @param {Array} array The array to query.
  22631. * @returns {*} Returns the first element of `array`.
  22632. * @example
  22633. *
  22634. * _.head([1, 2, 3]);
  22635. * // => 1
  22636. *
  22637. * _.head([]);
  22638. * // => undefined
  22639. */
  22640. function head(array) {
  22641. return (array && array.length) ? array[0] : undefined;
  22642. }
  22643. /**
  22644. * Gets the index at which the first occurrence of `value` is found in `array`
  22645. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22646. * for equality comparisons. If `fromIndex` is negative, it's used as the
  22647. * offset from the end of `array`.
  22648. *
  22649. * @static
  22650. * @memberOf _
  22651. * @since 0.1.0
  22652. * @category Array
  22653. * @param {Array} array The array to inspect.
  22654. * @param {*} value The value to search for.
  22655. * @param {number} [fromIndex=0] The index to search from.
  22656. * @returns {number} Returns the index of the matched value, else `-1`.
  22657. * @example
  22658. *
  22659. * _.indexOf([1, 2, 1, 2], 2);
  22660. * // => 1
  22661. *
  22662. * // Search from the `fromIndex`.
  22663. * _.indexOf([1, 2, 1, 2], 2, 2);
  22664. * // => 3
  22665. */
  22666. function indexOf(array, value, fromIndex) {
  22667. var length = array == null ? 0 : array.length;
  22668. if (!length) {
  22669. return -1;
  22670. }
  22671. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22672. if (index < 0) {
  22673. index = nativeMax(length + index, 0);
  22674. }
  22675. return baseIndexOf(array, value, index);
  22676. }
  22677. /**
  22678. * Gets all but the last element of `array`.
  22679. *
  22680. * @static
  22681. * @memberOf _
  22682. * @since 0.1.0
  22683. * @category Array
  22684. * @param {Array} array The array to query.
  22685. * @returns {Array} Returns the slice of `array`.
  22686. * @example
  22687. *
  22688. * _.initial([1, 2, 3]);
  22689. * // => [1, 2]
  22690. */
  22691. function initial(array) {
  22692. var length = array == null ? 0 : array.length;
  22693. return length ? baseSlice(array, 0, -1) : [];
  22694. }
  22695. /**
  22696. * Creates an array of unique values that are included in all given arrays
  22697. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22698. * for equality comparisons. The order and references of result values are
  22699. * determined by the first array.
  22700. *
  22701. * @static
  22702. * @memberOf _
  22703. * @since 0.1.0
  22704. * @category Array
  22705. * @param {...Array} [arrays] The arrays to inspect.
  22706. * @returns {Array} Returns the new array of intersecting values.
  22707. * @example
  22708. *
  22709. * _.intersection([2, 1], [2, 3]);
  22710. * // => [2]
  22711. */
  22712. var intersection = baseRest(function(arrays) {
  22713. var mapped = arrayMap(arrays, castArrayLikeObject);
  22714. return (mapped.length && mapped[0] === arrays[0])
  22715. ? baseIntersection(mapped)
  22716. : [];
  22717. });
  22718. /**
  22719. * This method is like `_.intersection` except that it accepts `iteratee`
  22720. * which is invoked for each element of each `arrays` to generate the criterion
  22721. * by which they're compared. The order and references of result values are
  22722. * determined by the first array. The iteratee is invoked with one argument:
  22723. * (value).
  22724. *
  22725. * @static
  22726. * @memberOf _
  22727. * @since 4.0.0
  22728. * @category Array
  22729. * @param {...Array} [arrays] The arrays to inspect.
  22730. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22731. * @returns {Array} Returns the new array of intersecting values.
  22732. * @example
  22733. *
  22734. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22735. * // => [2.1]
  22736. *
  22737. * // The `_.property` iteratee shorthand.
  22738. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  22739. * // => [{ 'x': 1 }]
  22740. */
  22741. var intersectionBy = baseRest(function(arrays) {
  22742. var iteratee = last(arrays),
  22743. mapped = arrayMap(arrays, castArrayLikeObject);
  22744. if (iteratee === last(mapped)) {
  22745. iteratee = undefined;
  22746. } else {
  22747. mapped.pop();
  22748. }
  22749. return (mapped.length && mapped[0] === arrays[0])
  22750. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  22751. : [];
  22752. });
  22753. /**
  22754. * This method is like `_.intersection` except that it accepts `comparator`
  22755. * which is invoked to compare elements of `arrays`. The order and references
  22756. * of result values are determined by the first array. The comparator is
  22757. * invoked with two arguments: (arrVal, othVal).
  22758. *
  22759. * @static
  22760. * @memberOf _
  22761. * @since 4.0.0
  22762. * @category Array
  22763. * @param {...Array} [arrays] The arrays to inspect.
  22764. * @param {Function} [comparator] The comparator invoked per element.
  22765. * @returns {Array} Returns the new array of intersecting values.
  22766. * @example
  22767. *
  22768. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22769. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  22770. *
  22771. * _.intersectionWith(objects, others, _.isEqual);
  22772. * // => [{ 'x': 1, 'y': 2 }]
  22773. */
  22774. var intersectionWith = baseRest(function(arrays) {
  22775. var comparator = last(arrays),
  22776. mapped = arrayMap(arrays, castArrayLikeObject);
  22777. comparator = typeof comparator == 'function' ? comparator : undefined;
  22778. if (comparator) {
  22779. mapped.pop();
  22780. }
  22781. return (mapped.length && mapped[0] === arrays[0])
  22782. ? baseIntersection(mapped, undefined, comparator)
  22783. : [];
  22784. });
  22785. /**
  22786. * Converts all elements in `array` into a string separated by `separator`.
  22787. *
  22788. * @static
  22789. * @memberOf _
  22790. * @since 4.0.0
  22791. * @category Array
  22792. * @param {Array} array The array to convert.
  22793. * @param {string} [separator=','] The element separator.
  22794. * @returns {string} Returns the joined string.
  22795. * @example
  22796. *
  22797. * _.join(['a', 'b', 'c'], '~');
  22798. * // => 'a~b~c'
  22799. */
  22800. function join(array, separator) {
  22801. return array == null ? '' : nativeJoin.call(array, separator);
  22802. }
  22803. /**
  22804. * Gets the last element of `array`.
  22805. *
  22806. * @static
  22807. * @memberOf _
  22808. * @since 0.1.0
  22809. * @category Array
  22810. * @param {Array} array The array to query.
  22811. * @returns {*} Returns the last element of `array`.
  22812. * @example
  22813. *
  22814. * _.last([1, 2, 3]);
  22815. * // => 3
  22816. */
  22817. function last(array) {
  22818. var length = array == null ? 0 : array.length;
  22819. return length ? array[length - 1] : undefined;
  22820. }
  22821. /**
  22822. * This method is like `_.indexOf` except that it iterates over elements of
  22823. * `array` from right to left.
  22824. *
  22825. * @static
  22826. * @memberOf _
  22827. * @since 0.1.0
  22828. * @category Array
  22829. * @param {Array} array The array to inspect.
  22830. * @param {*} value The value to search for.
  22831. * @param {number} [fromIndex=array.length-1] The index to search from.
  22832. * @returns {number} Returns the index of the matched value, else `-1`.
  22833. * @example
  22834. *
  22835. * _.lastIndexOf([1, 2, 1, 2], 2);
  22836. * // => 3
  22837. *
  22838. * // Search from the `fromIndex`.
  22839. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  22840. * // => 1
  22841. */
  22842. function lastIndexOf(array, value, fromIndex) {
  22843. var length = array == null ? 0 : array.length;
  22844. if (!length) {
  22845. return -1;
  22846. }
  22847. var index = length;
  22848. if (fromIndex !== undefined) {
  22849. index = toInteger(fromIndex);
  22850. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  22851. }
  22852. return value === value
  22853. ? strictLastIndexOf(array, value, index)
  22854. : baseFindIndex(array, baseIsNaN, index, true);
  22855. }
  22856. /**
  22857. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  22858. * element from the end is returned.
  22859. *
  22860. * @static
  22861. * @memberOf _
  22862. * @since 4.11.0
  22863. * @category Array
  22864. * @param {Array} array The array to query.
  22865. * @param {number} [n=0] The index of the element to return.
  22866. * @returns {*} Returns the nth element of `array`.
  22867. * @example
  22868. *
  22869. * var array = ['a', 'b', 'c', 'd'];
  22870. *
  22871. * _.nth(array, 1);
  22872. * // => 'b'
  22873. *
  22874. * _.nth(array, -2);
  22875. * // => 'c';
  22876. */
  22877. function nth(array, n) {
  22878. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  22879. }
  22880. /**
  22881. * Removes all given values from `array` using
  22882. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22883. * for equality comparisons.
  22884. *
  22885. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  22886. * to remove elements from an array by predicate.
  22887. *
  22888. * @static
  22889. * @memberOf _
  22890. * @since 2.0.0
  22891. * @category Array
  22892. * @param {Array} array The array to modify.
  22893. * @param {...*} [values] The values to remove.
  22894. * @returns {Array} Returns `array`.
  22895. * @example
  22896. *
  22897. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22898. *
  22899. * _.pull(array, 'a', 'c');
  22900. * console.log(array);
  22901. * // => ['b', 'b']
  22902. */
  22903. var pull = baseRest(pullAll);
  22904. /**
  22905. * This method is like `_.pull` except that it accepts an array of values to remove.
  22906. *
  22907. * **Note:** Unlike `_.difference`, this method mutates `array`.
  22908. *
  22909. * @static
  22910. * @memberOf _
  22911. * @since 4.0.0
  22912. * @category Array
  22913. * @param {Array} array The array to modify.
  22914. * @param {Array} values The values to remove.
  22915. * @returns {Array} Returns `array`.
  22916. * @example
  22917. *
  22918. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22919. *
  22920. * _.pullAll(array, ['a', 'c']);
  22921. * console.log(array);
  22922. * // => ['b', 'b']
  22923. */
  22924. function pullAll(array, values) {
  22925. return (array && array.length && values && values.length)
  22926. ? basePullAll(array, values)
  22927. : array;
  22928. }
  22929. /**
  22930. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  22931. * invoked for each element of `array` and `values` to generate the criterion
  22932. * by which they're compared. The iteratee is invoked with one argument: (value).
  22933. *
  22934. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  22935. *
  22936. * @static
  22937. * @memberOf _
  22938. * @since 4.0.0
  22939. * @category Array
  22940. * @param {Array} array The array to modify.
  22941. * @param {Array} values The values to remove.
  22942. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22943. * @returns {Array} Returns `array`.
  22944. * @example
  22945. *
  22946. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  22947. *
  22948. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  22949. * console.log(array);
  22950. * // => [{ 'x': 2 }]
  22951. */
  22952. function pullAllBy(array, values, iteratee) {
  22953. return (array && array.length && values && values.length)
  22954. ? basePullAll(array, values, getIteratee(iteratee, 2))
  22955. : array;
  22956. }
  22957. /**
  22958. * This method is like `_.pullAll` except that it accepts `comparator` which
  22959. * is invoked to compare elements of `array` to `values`. The comparator is
  22960. * invoked with two arguments: (arrVal, othVal).
  22961. *
  22962. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  22963. *
  22964. * @static
  22965. * @memberOf _
  22966. * @since 4.6.0
  22967. * @category Array
  22968. * @param {Array} array The array to modify.
  22969. * @param {Array} values The values to remove.
  22970. * @param {Function} [comparator] The comparator invoked per element.
  22971. * @returns {Array} Returns `array`.
  22972. * @example
  22973. *
  22974. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  22975. *
  22976. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  22977. * console.log(array);
  22978. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  22979. */
  22980. function pullAllWith(array, values, comparator) {
  22981. return (array && array.length && values && values.length)
  22982. ? basePullAll(array, values, undefined, comparator)
  22983. : array;
  22984. }
  22985. /**
  22986. * Removes elements from `array` corresponding to `indexes` and returns an
  22987. * array of removed elements.
  22988. *
  22989. * **Note:** Unlike `_.at`, this method mutates `array`.
  22990. *
  22991. * @static
  22992. * @memberOf _
  22993. * @since 3.0.0
  22994. * @category Array
  22995. * @param {Array} array The array to modify.
  22996. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  22997. * @returns {Array} Returns the new array of removed elements.
  22998. * @example
  22999. *
  23000. * var array = ['a', 'b', 'c', 'd'];
  23001. * var pulled = _.pullAt(array, [1, 3]);
  23002. *
  23003. * console.log(array);
  23004. * // => ['a', 'c']
  23005. *
  23006. * console.log(pulled);
  23007. * // => ['b', 'd']
  23008. */
  23009. var pullAt = flatRest(function(array, indexes) {
  23010. var length = array == null ? 0 : array.length,
  23011. result = baseAt(array, indexes);
  23012. basePullAt(array, arrayMap(indexes, function(index) {
  23013. return isIndex(index, length) ? +index : index;
  23014. }).sort(compareAscending));
  23015. return result;
  23016. });
  23017. /**
  23018. * Removes all elements from `array` that `predicate` returns truthy for
  23019. * and returns an array of the removed elements. The predicate is invoked
  23020. * with three arguments: (value, index, array).
  23021. *
  23022. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  23023. * to pull elements from an array by value.
  23024. *
  23025. * @static
  23026. * @memberOf _
  23027. * @since 2.0.0
  23028. * @category Array
  23029. * @param {Array} array The array to modify.
  23030. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23031. * @returns {Array} Returns the new array of removed elements.
  23032. * @example
  23033. *
  23034. * var array = [1, 2, 3, 4];
  23035. * var evens = _.remove(array, function(n) {
  23036. * return n % 2 == 0;
  23037. * });
  23038. *
  23039. * console.log(array);
  23040. * // => [1, 3]
  23041. *
  23042. * console.log(evens);
  23043. * // => [2, 4]
  23044. */
  23045. function remove(array, predicate) {
  23046. var result = [];
  23047. if (!(array && array.length)) {
  23048. return result;
  23049. }
  23050. var index = -1,
  23051. indexes = [],
  23052. length = array.length;
  23053. predicate = getIteratee(predicate, 3);
  23054. while (++index < length) {
  23055. var value = array[index];
  23056. if (predicate(value, index, array)) {
  23057. result.push(value);
  23058. indexes.push(index);
  23059. }
  23060. }
  23061. basePullAt(array, indexes);
  23062. return result;
  23063. }
  23064. /**
  23065. * Reverses `array` so that the first element becomes the last, the second
  23066. * element becomes the second to last, and so on.
  23067. *
  23068. * **Note:** This method mutates `array` and is based on
  23069. * [`Array#reverse`](https://mdn.io/Array/reverse).
  23070. *
  23071. * @static
  23072. * @memberOf _
  23073. * @since 4.0.0
  23074. * @category Array
  23075. * @param {Array} array The array to modify.
  23076. * @returns {Array} Returns `array`.
  23077. * @example
  23078. *
  23079. * var array = [1, 2, 3];
  23080. *
  23081. * _.reverse(array);
  23082. * // => [3, 2, 1]
  23083. *
  23084. * console.log(array);
  23085. * // => [3, 2, 1]
  23086. */
  23087. function reverse(array) {
  23088. return array == null ? array : nativeReverse.call(array);
  23089. }
  23090. /**
  23091. * Creates a slice of `array` from `start` up to, but not including, `end`.
  23092. *
  23093. * **Note:** This method is used instead of
  23094. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  23095. * returned.
  23096. *
  23097. * @static
  23098. * @memberOf _
  23099. * @since 3.0.0
  23100. * @category Array
  23101. * @param {Array} array The array to slice.
  23102. * @param {number} [start=0] The start position.
  23103. * @param {number} [end=array.length] The end position.
  23104. * @returns {Array} Returns the slice of `array`.
  23105. */
  23106. function slice(array, start, end) {
  23107. var length = array == null ? 0 : array.length;
  23108. if (!length) {
  23109. return [];
  23110. }
  23111. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  23112. start = 0;
  23113. end = length;
  23114. }
  23115. else {
  23116. start = start == null ? 0 : toInteger(start);
  23117. end = end === undefined ? length : toInteger(end);
  23118. }
  23119. return baseSlice(array, start, end);
  23120. }
  23121. /**
  23122. * Uses a binary search to determine the lowest index at which `value`
  23123. * should be inserted into `array` in order to maintain its sort order.
  23124. *
  23125. * @static
  23126. * @memberOf _
  23127. * @since 0.1.0
  23128. * @category Array
  23129. * @param {Array} array The sorted array to inspect.
  23130. * @param {*} value The value to evaluate.
  23131. * @returns {number} Returns the index at which `value` should be inserted
  23132. * into `array`.
  23133. * @example
  23134. *
  23135. * _.sortedIndex([30, 50], 40);
  23136. * // => 1
  23137. */
  23138. function sortedIndex(array, value) {
  23139. return baseSortedIndex(array, value);
  23140. }
  23141. /**
  23142. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  23143. * which is invoked for `value` and each element of `array` to compute their
  23144. * sort ranking. The iteratee is invoked with one argument: (value).
  23145. *
  23146. * @static
  23147. * @memberOf _
  23148. * @since 4.0.0
  23149. * @category Array
  23150. * @param {Array} array The sorted array to inspect.
  23151. * @param {*} value The value to evaluate.
  23152. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23153. * @returns {number} Returns the index at which `value` should be inserted
  23154. * into `array`.
  23155. * @example
  23156. *
  23157. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23158. *
  23159. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23160. * // => 0
  23161. *
  23162. * // The `_.property` iteratee shorthand.
  23163. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  23164. * // => 0
  23165. */
  23166. function sortedIndexBy(array, value, iteratee) {
  23167. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  23168. }
  23169. /**
  23170. * This method is like `_.indexOf` except that it performs a binary
  23171. * search on a sorted `array`.
  23172. *
  23173. * @static
  23174. * @memberOf _
  23175. * @since 4.0.0
  23176. * @category Array
  23177. * @param {Array} array The array to inspect.
  23178. * @param {*} value The value to search for.
  23179. * @returns {number} Returns the index of the matched value, else `-1`.
  23180. * @example
  23181. *
  23182. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  23183. * // => 1
  23184. */
  23185. function sortedIndexOf(array, value) {
  23186. var length = array == null ? 0 : array.length;
  23187. if (length) {
  23188. var index = baseSortedIndex(array, value);
  23189. if (index < length && eq(array[index], value)) {
  23190. return index;
  23191. }
  23192. }
  23193. return -1;
  23194. }
  23195. /**
  23196. * This method is like `_.sortedIndex` except that it returns the highest
  23197. * index at which `value` should be inserted into `array` in order to
  23198. * maintain its sort order.
  23199. *
  23200. * @static
  23201. * @memberOf _
  23202. * @since 3.0.0
  23203. * @category Array
  23204. * @param {Array} array The sorted array to inspect.
  23205. * @param {*} value The value to evaluate.
  23206. * @returns {number} Returns the index at which `value` should be inserted
  23207. * into `array`.
  23208. * @example
  23209. *
  23210. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  23211. * // => 4
  23212. */
  23213. function sortedLastIndex(array, value) {
  23214. return baseSortedIndex(array, value, true);
  23215. }
  23216. /**
  23217. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  23218. * which is invoked for `value` and each element of `array` to compute their
  23219. * sort ranking. The iteratee is invoked with one argument: (value).
  23220. *
  23221. * @static
  23222. * @memberOf _
  23223. * @since 4.0.0
  23224. * @category Array
  23225. * @param {Array} array The sorted array to inspect.
  23226. * @param {*} value The value to evaluate.
  23227. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23228. * @returns {number} Returns the index at which `value` should be inserted
  23229. * into `array`.
  23230. * @example
  23231. *
  23232. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23233. *
  23234. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23235. * // => 1
  23236. *
  23237. * // The `_.property` iteratee shorthand.
  23238. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  23239. * // => 1
  23240. */
  23241. function sortedLastIndexBy(array, value, iteratee) {
  23242. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  23243. }
  23244. /**
  23245. * This method is like `_.lastIndexOf` except that it performs a binary
  23246. * search on a sorted `array`.
  23247. *
  23248. * @static
  23249. * @memberOf _
  23250. * @since 4.0.0
  23251. * @category Array
  23252. * @param {Array} array The array to inspect.
  23253. * @param {*} value The value to search for.
  23254. * @returns {number} Returns the index of the matched value, else `-1`.
  23255. * @example
  23256. *
  23257. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  23258. * // => 3
  23259. */
  23260. function sortedLastIndexOf(array, value) {
  23261. var length = array == null ? 0 : array.length;
  23262. if (length) {
  23263. var index = baseSortedIndex(array, value, true) - 1;
  23264. if (eq(array[index], value)) {
  23265. return index;
  23266. }
  23267. }
  23268. return -1;
  23269. }
  23270. /**
  23271. * This method is like `_.uniq` except that it's designed and optimized
  23272. * for sorted arrays.
  23273. *
  23274. * @static
  23275. * @memberOf _
  23276. * @since 4.0.0
  23277. * @category Array
  23278. * @param {Array} array The array to inspect.
  23279. * @returns {Array} Returns the new duplicate free array.
  23280. * @example
  23281. *
  23282. * _.sortedUniq([1, 1, 2]);
  23283. * // => [1, 2]
  23284. */
  23285. function sortedUniq(array) {
  23286. return (array && array.length)
  23287. ? baseSortedUniq(array)
  23288. : [];
  23289. }
  23290. /**
  23291. * This method is like `_.uniqBy` except that it's designed and optimized
  23292. * for sorted arrays.
  23293. *
  23294. * @static
  23295. * @memberOf _
  23296. * @since 4.0.0
  23297. * @category Array
  23298. * @param {Array} array The array to inspect.
  23299. * @param {Function} [iteratee] The iteratee invoked per element.
  23300. * @returns {Array} Returns the new duplicate free array.
  23301. * @example
  23302. *
  23303. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  23304. * // => [1.1, 2.3]
  23305. */
  23306. function sortedUniqBy(array, iteratee) {
  23307. return (array && array.length)
  23308. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  23309. : [];
  23310. }
  23311. /**
  23312. * Gets all but the first element of `array`.
  23313. *
  23314. * @static
  23315. * @memberOf _
  23316. * @since 4.0.0
  23317. * @category Array
  23318. * @param {Array} array The array to query.
  23319. * @returns {Array} Returns the slice of `array`.
  23320. * @example
  23321. *
  23322. * _.tail([1, 2, 3]);
  23323. * // => [2, 3]
  23324. */
  23325. function tail(array) {
  23326. var length = array == null ? 0 : array.length;
  23327. return length ? baseSlice(array, 1, length) : [];
  23328. }
  23329. /**
  23330. * Creates a slice of `array` with `n` elements taken from the beginning.
  23331. *
  23332. * @static
  23333. * @memberOf _
  23334. * @since 0.1.0
  23335. * @category Array
  23336. * @param {Array} array The array to query.
  23337. * @param {number} [n=1] The number of elements to take.
  23338. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23339. * @returns {Array} Returns the slice of `array`.
  23340. * @example
  23341. *
  23342. * _.take([1, 2, 3]);
  23343. * // => [1]
  23344. *
  23345. * _.take([1, 2, 3], 2);
  23346. * // => [1, 2]
  23347. *
  23348. * _.take([1, 2, 3], 5);
  23349. * // => [1, 2, 3]
  23350. *
  23351. * _.take([1, 2, 3], 0);
  23352. * // => []
  23353. */
  23354. function take(array, n, guard) {
  23355. if (!(array && array.length)) {
  23356. return [];
  23357. }
  23358. n = (guard || n === undefined) ? 1 : toInteger(n);
  23359. return baseSlice(array, 0, n < 0 ? 0 : n);
  23360. }
  23361. /**
  23362. * Creates a slice of `array` with `n` elements taken from the end.
  23363. *
  23364. * @static
  23365. * @memberOf _
  23366. * @since 3.0.0
  23367. * @category Array
  23368. * @param {Array} array The array to query.
  23369. * @param {number} [n=1] The number of elements to take.
  23370. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23371. * @returns {Array} Returns the slice of `array`.
  23372. * @example
  23373. *
  23374. * _.takeRight([1, 2, 3]);
  23375. * // => [3]
  23376. *
  23377. * _.takeRight([1, 2, 3], 2);
  23378. * // => [2, 3]
  23379. *
  23380. * _.takeRight([1, 2, 3], 5);
  23381. * // => [1, 2, 3]
  23382. *
  23383. * _.takeRight([1, 2, 3], 0);
  23384. * // => []
  23385. */
  23386. function takeRight(array, n, guard) {
  23387. var length = array == null ? 0 : array.length;
  23388. if (!length) {
  23389. return [];
  23390. }
  23391. n = (guard || n === undefined) ? 1 : toInteger(n);
  23392. n = length - n;
  23393. return baseSlice(array, n < 0 ? 0 : n, length);
  23394. }
  23395. /**
  23396. * Creates a slice of `array` with elements taken from the end. Elements are
  23397. * taken until `predicate` returns falsey. The predicate is invoked with
  23398. * three arguments: (value, index, array).
  23399. *
  23400. * @static
  23401. * @memberOf _
  23402. * @since 3.0.0
  23403. * @category Array
  23404. * @param {Array} array The array to query.
  23405. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23406. * @returns {Array} Returns the slice of `array`.
  23407. * @example
  23408. *
  23409. * var users = [
  23410. * { 'user': 'barney', 'active': true },
  23411. * { 'user': 'fred', 'active': false },
  23412. * { 'user': 'pebbles', 'active': false }
  23413. * ];
  23414. *
  23415. * _.takeRightWhile(users, function(o) { return !o.active; });
  23416. * // => objects for ['fred', 'pebbles']
  23417. *
  23418. * // The `_.matches` iteratee shorthand.
  23419. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  23420. * // => objects for ['pebbles']
  23421. *
  23422. * // The `_.matchesProperty` iteratee shorthand.
  23423. * _.takeRightWhile(users, ['active', false]);
  23424. * // => objects for ['fred', 'pebbles']
  23425. *
  23426. * // The `_.property` iteratee shorthand.
  23427. * _.takeRightWhile(users, 'active');
  23428. * // => []
  23429. */
  23430. function takeRightWhile(array, predicate) {
  23431. return (array && array.length)
  23432. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  23433. : [];
  23434. }
  23435. /**
  23436. * Creates a slice of `array` with elements taken from the beginning. Elements
  23437. * are taken until `predicate` returns falsey. The predicate is invoked with
  23438. * three arguments: (value, index, array).
  23439. *
  23440. * @static
  23441. * @memberOf _
  23442. * @since 3.0.0
  23443. * @category Array
  23444. * @param {Array} array The array to query.
  23445. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23446. * @returns {Array} Returns the slice of `array`.
  23447. * @example
  23448. *
  23449. * var users = [
  23450. * { 'user': 'barney', 'active': false },
  23451. * { 'user': 'fred', 'active': false },
  23452. * { 'user': 'pebbles', 'active': true }
  23453. * ];
  23454. *
  23455. * _.takeWhile(users, function(o) { return !o.active; });
  23456. * // => objects for ['barney', 'fred']
  23457. *
  23458. * // The `_.matches` iteratee shorthand.
  23459. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  23460. * // => objects for ['barney']
  23461. *
  23462. * // The `_.matchesProperty` iteratee shorthand.
  23463. * _.takeWhile(users, ['active', false]);
  23464. * // => objects for ['barney', 'fred']
  23465. *
  23466. * // The `_.property` iteratee shorthand.
  23467. * _.takeWhile(users, 'active');
  23468. * // => []
  23469. */
  23470. function takeWhile(array, predicate) {
  23471. return (array && array.length)
  23472. ? baseWhile(array, getIteratee(predicate, 3))
  23473. : [];
  23474. }
  23475. /**
  23476. * Creates an array of unique values, in order, from all given arrays using
  23477. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23478. * for equality comparisons.
  23479. *
  23480. * @static
  23481. * @memberOf _
  23482. * @since 0.1.0
  23483. * @category Array
  23484. * @param {...Array} [arrays] The arrays to inspect.
  23485. * @returns {Array} Returns the new array of combined values.
  23486. * @example
  23487. *
  23488. * _.union([2], [1, 2]);
  23489. * // => [2, 1]
  23490. */
  23491. var union = baseRest(function(arrays) {
  23492. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  23493. });
  23494. /**
  23495. * This method is like `_.union` except that it accepts `iteratee` which is
  23496. * invoked for each element of each `arrays` to generate the criterion by
  23497. * which uniqueness is computed. Result values are chosen from the first
  23498. * array in which the value occurs. The iteratee is invoked with one argument:
  23499. * (value).
  23500. *
  23501. * @static
  23502. * @memberOf _
  23503. * @since 4.0.0
  23504. * @category Array
  23505. * @param {...Array} [arrays] The arrays to inspect.
  23506. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23507. * @returns {Array} Returns the new array of combined values.
  23508. * @example
  23509. *
  23510. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  23511. * // => [2.1, 1.2]
  23512. *
  23513. * // The `_.property` iteratee shorthand.
  23514. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23515. * // => [{ 'x': 1 }, { 'x': 2 }]
  23516. */
  23517. var unionBy = baseRest(function(arrays) {
  23518. var iteratee = last(arrays);
  23519. if (isArrayLikeObject(iteratee)) {
  23520. iteratee = undefined;
  23521. }
  23522. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  23523. });
  23524. /**
  23525. * This method is like `_.union` except that it accepts `comparator` which
  23526. * is invoked to compare elements of `arrays`. Result values are chosen from
  23527. * the first array in which the value occurs. The comparator is invoked
  23528. * with two arguments: (arrVal, othVal).
  23529. *
  23530. * @static
  23531. * @memberOf _
  23532. * @since 4.0.0
  23533. * @category Array
  23534. * @param {...Array} [arrays] The arrays to inspect.
  23535. * @param {Function} [comparator] The comparator invoked per element.
  23536. * @returns {Array} Returns the new array of combined values.
  23537. * @example
  23538. *
  23539. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23540. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23541. *
  23542. * _.unionWith(objects, others, _.isEqual);
  23543. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23544. */
  23545. var unionWith = baseRest(function(arrays) {
  23546. var comparator = last(arrays);
  23547. comparator = typeof comparator == 'function' ? comparator : undefined;
  23548. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  23549. });
  23550. /**
  23551. * Creates a duplicate-free version of an array, using
  23552. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23553. * for equality comparisons, in which only the first occurrence of each element
  23554. * is kept. The order of result values is determined by the order they occur
  23555. * in the array.
  23556. *
  23557. * @static
  23558. * @memberOf _
  23559. * @since 0.1.0
  23560. * @category Array
  23561. * @param {Array} array The array to inspect.
  23562. * @returns {Array} Returns the new duplicate free array.
  23563. * @example
  23564. *
  23565. * _.uniq([2, 1, 2]);
  23566. * // => [2, 1]
  23567. */
  23568. function uniq(array) {
  23569. return (array && array.length) ? baseUniq(array) : [];
  23570. }
  23571. /**
  23572. * This method is like `_.uniq` except that it accepts `iteratee` which is
  23573. * invoked for each element in `array` to generate the criterion by which
  23574. * uniqueness is computed. The order of result values is determined by the
  23575. * order they occur in the array. The iteratee is invoked with one argument:
  23576. * (value).
  23577. *
  23578. * @static
  23579. * @memberOf _
  23580. * @since 4.0.0
  23581. * @category Array
  23582. * @param {Array} array The array to inspect.
  23583. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23584. * @returns {Array} Returns the new duplicate free array.
  23585. * @example
  23586. *
  23587. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  23588. * // => [2.1, 1.2]
  23589. *
  23590. * // The `_.property` iteratee shorthand.
  23591. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  23592. * // => [{ 'x': 1 }, { 'x': 2 }]
  23593. */
  23594. function uniqBy(array, iteratee) {
  23595. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  23596. }
  23597. /**
  23598. * This method is like `_.uniq` except that it accepts `comparator` which
  23599. * is invoked to compare elements of `array`. The order of result values is
  23600. * determined by the order they occur in the array.The comparator is invoked
  23601. * with two arguments: (arrVal, othVal).
  23602. *
  23603. * @static
  23604. * @memberOf _
  23605. * @since 4.0.0
  23606. * @category Array
  23607. * @param {Array} array The array to inspect.
  23608. * @param {Function} [comparator] The comparator invoked per element.
  23609. * @returns {Array} Returns the new duplicate free array.
  23610. * @example
  23611. *
  23612. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23613. *
  23614. * _.uniqWith(objects, _.isEqual);
  23615. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  23616. */
  23617. function uniqWith(array, comparator) {
  23618. comparator = typeof comparator == 'function' ? comparator : undefined;
  23619. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  23620. }
  23621. /**
  23622. * This method is like `_.zip` except that it accepts an array of grouped
  23623. * elements and creates an array regrouping the elements to their pre-zip
  23624. * configuration.
  23625. *
  23626. * @static
  23627. * @memberOf _
  23628. * @since 1.2.0
  23629. * @category Array
  23630. * @param {Array} array The array of grouped elements to process.
  23631. * @returns {Array} Returns the new array of regrouped elements.
  23632. * @example
  23633. *
  23634. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  23635. * // => [['a', 1, true], ['b', 2, false]]
  23636. *
  23637. * _.unzip(zipped);
  23638. * // => [['a', 'b'], [1, 2], [true, false]]
  23639. */
  23640. function unzip(array) {
  23641. if (!(array && array.length)) {
  23642. return [];
  23643. }
  23644. var length = 0;
  23645. array = arrayFilter(array, function(group) {
  23646. if (isArrayLikeObject(group)) {
  23647. length = nativeMax(group.length, length);
  23648. return true;
  23649. }
  23650. });
  23651. return baseTimes(length, function(index) {
  23652. return arrayMap(array, baseProperty(index));
  23653. });
  23654. }
  23655. /**
  23656. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  23657. * how regrouped values should be combined. The iteratee is invoked with the
  23658. * elements of each group: (...group).
  23659. *
  23660. * @static
  23661. * @memberOf _
  23662. * @since 3.8.0
  23663. * @category Array
  23664. * @param {Array} array The array of grouped elements to process.
  23665. * @param {Function} [iteratee=_.identity] The function to combine
  23666. * regrouped values.
  23667. * @returns {Array} Returns the new array of regrouped elements.
  23668. * @example
  23669. *
  23670. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  23671. * // => [[1, 10, 100], [2, 20, 200]]
  23672. *
  23673. * _.unzipWith(zipped, _.add);
  23674. * // => [3, 30, 300]
  23675. */
  23676. function unzipWith(array, iteratee) {
  23677. if (!(array && array.length)) {
  23678. return [];
  23679. }
  23680. var result = unzip(array);
  23681. if (iteratee == null) {
  23682. return result;
  23683. }
  23684. return arrayMap(result, function(group) {
  23685. return apply(iteratee, undefined, group);
  23686. });
  23687. }
  23688. /**
  23689. * Creates an array excluding all given values using
  23690. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23691. * for equality comparisons.
  23692. *
  23693. * **Note:** Unlike `_.pull`, this method returns a new array.
  23694. *
  23695. * @static
  23696. * @memberOf _
  23697. * @since 0.1.0
  23698. * @category Array
  23699. * @param {Array} array The array to inspect.
  23700. * @param {...*} [values] The values to exclude.
  23701. * @returns {Array} Returns the new array of filtered values.
  23702. * @see _.difference, _.xor
  23703. * @example
  23704. *
  23705. * _.without([2, 1, 2, 3], 1, 2);
  23706. * // => [3]
  23707. */
  23708. var without = baseRest(function(array, values) {
  23709. return isArrayLikeObject(array)
  23710. ? baseDifference(array, values)
  23711. : [];
  23712. });
  23713. /**
  23714. * Creates an array of unique values that is the
  23715. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  23716. * of the given arrays. The order of result values is determined by the order
  23717. * they occur in the arrays.
  23718. *
  23719. * @static
  23720. * @memberOf _
  23721. * @since 2.4.0
  23722. * @category Array
  23723. * @param {...Array} [arrays] The arrays to inspect.
  23724. * @returns {Array} Returns the new array of filtered values.
  23725. * @see _.difference, _.without
  23726. * @example
  23727. *
  23728. * _.xor([2, 1], [2, 3]);
  23729. * // => [1, 3]
  23730. */
  23731. var xor = baseRest(function(arrays) {
  23732. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  23733. });
  23734. /**
  23735. * This method is like `_.xor` except that it accepts `iteratee` which is
  23736. * invoked for each element of each `arrays` to generate the criterion by
  23737. * which by which they're compared. The order of result values is determined
  23738. * by the order they occur in the arrays. The iteratee is invoked with one
  23739. * argument: (value).
  23740. *
  23741. * @static
  23742. * @memberOf _
  23743. * @since 4.0.0
  23744. * @category Array
  23745. * @param {...Array} [arrays] The arrays to inspect.
  23746. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23747. * @returns {Array} Returns the new array of filtered values.
  23748. * @example
  23749. *
  23750. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  23751. * // => [1.2, 3.4]
  23752. *
  23753. * // The `_.property` iteratee shorthand.
  23754. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23755. * // => [{ 'x': 2 }]
  23756. */
  23757. var xorBy = baseRest(function(arrays) {
  23758. var iteratee = last(arrays);
  23759. if (isArrayLikeObject(iteratee)) {
  23760. iteratee = undefined;
  23761. }
  23762. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  23763. });
  23764. /**
  23765. * This method is like `_.xor` except that it accepts `comparator` which is
  23766. * invoked to compare elements of `arrays`. The order of result values is
  23767. * determined by the order they occur in the arrays. The comparator is invoked
  23768. * with two arguments: (arrVal, othVal).
  23769. *
  23770. * @static
  23771. * @memberOf _
  23772. * @since 4.0.0
  23773. * @category Array
  23774. * @param {...Array} [arrays] The arrays to inspect.
  23775. * @param {Function} [comparator] The comparator invoked per element.
  23776. * @returns {Array} Returns the new array of filtered values.
  23777. * @example
  23778. *
  23779. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23780. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23781. *
  23782. * _.xorWith(objects, others, _.isEqual);
  23783. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23784. */
  23785. var xorWith = baseRest(function(arrays) {
  23786. var comparator = last(arrays);
  23787. comparator = typeof comparator == 'function' ? comparator : undefined;
  23788. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  23789. });
  23790. /**
  23791. * Creates an array of grouped elements, the first of which contains the
  23792. * first elements of the given arrays, the second of which contains the
  23793. * second elements of the given arrays, and so on.
  23794. *
  23795. * @static
  23796. * @memberOf _
  23797. * @since 0.1.0
  23798. * @category Array
  23799. * @param {...Array} [arrays] The arrays to process.
  23800. * @returns {Array} Returns the new array of grouped elements.
  23801. * @example
  23802. *
  23803. * _.zip(['a', 'b'], [1, 2], [true, false]);
  23804. * // => [['a', 1, true], ['b', 2, false]]
  23805. */
  23806. var zip = baseRest(unzip);
  23807. /**
  23808. * This method is like `_.fromPairs` except that it accepts two arrays,
  23809. * one of property identifiers and one of corresponding values.
  23810. *
  23811. * @static
  23812. * @memberOf _
  23813. * @since 0.4.0
  23814. * @category Array
  23815. * @param {Array} [props=[]] The property identifiers.
  23816. * @param {Array} [values=[]] The property values.
  23817. * @returns {Object} Returns the new object.
  23818. * @example
  23819. *
  23820. * _.zipObject(['a', 'b'], [1, 2]);
  23821. * // => { 'a': 1, 'b': 2 }
  23822. */
  23823. function zipObject(props, values) {
  23824. return baseZipObject(props || [], values || [], assignValue);
  23825. }
  23826. /**
  23827. * This method is like `_.zipObject` except that it supports property paths.
  23828. *
  23829. * @static
  23830. * @memberOf _
  23831. * @since 4.1.0
  23832. * @category Array
  23833. * @param {Array} [props=[]] The property identifiers.
  23834. * @param {Array} [values=[]] The property values.
  23835. * @returns {Object} Returns the new object.
  23836. * @example
  23837. *
  23838. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  23839. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  23840. */
  23841. function zipObjectDeep(props, values) {
  23842. return baseZipObject(props || [], values || [], baseSet);
  23843. }
  23844. /**
  23845. * This method is like `_.zip` except that it accepts `iteratee` to specify
  23846. * how grouped values should be combined. The iteratee is invoked with the
  23847. * elements of each group: (...group).
  23848. *
  23849. * @static
  23850. * @memberOf _
  23851. * @since 3.8.0
  23852. * @category Array
  23853. * @param {...Array} [arrays] The arrays to process.
  23854. * @param {Function} [iteratee=_.identity] The function to combine
  23855. * grouped values.
  23856. * @returns {Array} Returns the new array of grouped elements.
  23857. * @example
  23858. *
  23859. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  23860. * return a + b + c;
  23861. * });
  23862. * // => [111, 222]
  23863. */
  23864. var zipWith = baseRest(function(arrays) {
  23865. var length = arrays.length,
  23866. iteratee = length > 1 ? arrays[length - 1] : undefined;
  23867. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  23868. return unzipWith(arrays, iteratee);
  23869. });
  23870. /*------------------------------------------------------------------------*/
  23871. /**
  23872. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  23873. * chain sequences enabled. The result of such sequences must be unwrapped
  23874. * with `_#value`.
  23875. *
  23876. * @static
  23877. * @memberOf _
  23878. * @since 1.3.0
  23879. * @category Seq
  23880. * @param {*} value The value to wrap.
  23881. * @returns {Object} Returns the new `lodash` wrapper instance.
  23882. * @example
  23883. *
  23884. * var users = [
  23885. * { 'user': 'barney', 'age': 36 },
  23886. * { 'user': 'fred', 'age': 40 },
  23887. * { 'user': 'pebbles', 'age': 1 }
  23888. * ];
  23889. *
  23890. * var youngest = _
  23891. * .chain(users)
  23892. * .sortBy('age')
  23893. * .map(function(o) {
  23894. * return o.user + ' is ' + o.age;
  23895. * })
  23896. * .head()
  23897. * .value();
  23898. * // => 'pebbles is 1'
  23899. */
  23900. function chain(value) {
  23901. var result = lodash(value);
  23902. result.__chain__ = true;
  23903. return result;
  23904. }
  23905. /**
  23906. * This method invokes `interceptor` and returns `value`. The interceptor
  23907. * is invoked with one argument; (value). The purpose of this method is to
  23908. * "tap into" a method chain sequence in order to modify intermediate results.
  23909. *
  23910. * @static
  23911. * @memberOf _
  23912. * @since 0.1.0
  23913. * @category Seq
  23914. * @param {*} value The value to provide to `interceptor`.
  23915. * @param {Function} interceptor The function to invoke.
  23916. * @returns {*} Returns `value`.
  23917. * @example
  23918. *
  23919. * _([1, 2, 3])
  23920. * .tap(function(array) {
  23921. * // Mutate input array.
  23922. * array.pop();
  23923. * })
  23924. * .reverse()
  23925. * .value();
  23926. * // => [2, 1]
  23927. */
  23928. function tap(value, interceptor) {
  23929. interceptor(value);
  23930. return value;
  23931. }
  23932. /**
  23933. * This method is like `_.tap` except that it returns the result of `interceptor`.
  23934. * The purpose of this method is to "pass thru" values replacing intermediate
  23935. * results in a method chain sequence.
  23936. *
  23937. * @static
  23938. * @memberOf _
  23939. * @since 3.0.0
  23940. * @category Seq
  23941. * @param {*} value The value to provide to `interceptor`.
  23942. * @param {Function} interceptor The function to invoke.
  23943. * @returns {*} Returns the result of `interceptor`.
  23944. * @example
  23945. *
  23946. * _(' abc ')
  23947. * .chain()
  23948. * .trim()
  23949. * .thru(function(value) {
  23950. * return [value];
  23951. * })
  23952. * .value();
  23953. * // => ['abc']
  23954. */
  23955. function thru(value, interceptor) {
  23956. return interceptor(value);
  23957. }
  23958. /**
  23959. * This method is the wrapper version of `_.at`.
  23960. *
  23961. * @name at
  23962. * @memberOf _
  23963. * @since 1.0.0
  23964. * @category Seq
  23965. * @param {...(string|string[])} [paths] The property paths to pick.
  23966. * @returns {Object} Returns the new `lodash` wrapper instance.
  23967. * @example
  23968. *
  23969. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  23970. *
  23971. * _(object).at(['a[0].b.c', 'a[1]']).value();
  23972. * // => [3, 4]
  23973. */
  23974. var wrapperAt = flatRest(function(paths) {
  23975. var length = paths.length,
  23976. start = length ? paths[0] : 0,
  23977. value = this.__wrapped__,
  23978. interceptor = function(object) { return baseAt(object, paths); };
  23979. if (length > 1 || this.__actions__.length ||
  23980. !(value instanceof LazyWrapper) || !isIndex(start)) {
  23981. return this.thru(interceptor);
  23982. }
  23983. value = value.slice(start, +start + (length ? 1 : 0));
  23984. value.__actions__.push({
  23985. 'func': thru,
  23986. 'args': [interceptor],
  23987. 'thisArg': undefined
  23988. });
  23989. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  23990. if (length && !array.length) {
  23991. array.push(undefined);
  23992. }
  23993. return array;
  23994. });
  23995. });
  23996. /**
  23997. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  23998. *
  23999. * @name chain
  24000. * @memberOf _
  24001. * @since 0.1.0
  24002. * @category Seq
  24003. * @returns {Object} Returns the new `lodash` wrapper instance.
  24004. * @example
  24005. *
  24006. * var users = [
  24007. * { 'user': 'barney', 'age': 36 },
  24008. * { 'user': 'fred', 'age': 40 }
  24009. * ];
  24010. *
  24011. * // A sequence without explicit chaining.
  24012. * _(users).head();
  24013. * // => { 'user': 'barney', 'age': 36 }
  24014. *
  24015. * // A sequence with explicit chaining.
  24016. * _(users)
  24017. * .chain()
  24018. * .head()
  24019. * .pick('user')
  24020. * .value();
  24021. * // => { 'user': 'barney' }
  24022. */
  24023. function wrapperChain() {
  24024. return chain(this);
  24025. }
  24026. /**
  24027. * Executes the chain sequence and returns the wrapped result.
  24028. *
  24029. * @name commit
  24030. * @memberOf _
  24031. * @since 3.2.0
  24032. * @category Seq
  24033. * @returns {Object} Returns the new `lodash` wrapper instance.
  24034. * @example
  24035. *
  24036. * var array = [1, 2];
  24037. * var wrapped = _(array).push(3);
  24038. *
  24039. * console.log(array);
  24040. * // => [1, 2]
  24041. *
  24042. * wrapped = wrapped.commit();
  24043. * console.log(array);
  24044. * // => [1, 2, 3]
  24045. *
  24046. * wrapped.last();
  24047. * // => 3
  24048. *
  24049. * console.log(array);
  24050. * // => [1, 2, 3]
  24051. */
  24052. function wrapperCommit() {
  24053. return new LodashWrapper(this.value(), this.__chain__);
  24054. }
  24055. /**
  24056. * Gets the next value on a wrapped object following the
  24057. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  24058. *
  24059. * @name next
  24060. * @memberOf _
  24061. * @since 4.0.0
  24062. * @category Seq
  24063. * @returns {Object} Returns the next iterator value.
  24064. * @example
  24065. *
  24066. * var wrapped = _([1, 2]);
  24067. *
  24068. * wrapped.next();
  24069. * // => { 'done': false, 'value': 1 }
  24070. *
  24071. * wrapped.next();
  24072. * // => { 'done': false, 'value': 2 }
  24073. *
  24074. * wrapped.next();
  24075. * // => { 'done': true, 'value': undefined }
  24076. */
  24077. function wrapperNext() {
  24078. if (this.__values__ === undefined) {
  24079. this.__values__ = toArray(this.value());
  24080. }
  24081. var done = this.__index__ >= this.__values__.length,
  24082. value = done ? undefined : this.__values__[this.__index__++];
  24083. return { 'done': done, 'value': value };
  24084. }
  24085. /**
  24086. * Enables the wrapper to be iterable.
  24087. *
  24088. * @name Symbol.iterator
  24089. * @memberOf _
  24090. * @since 4.0.0
  24091. * @category Seq
  24092. * @returns {Object} Returns the wrapper object.
  24093. * @example
  24094. *
  24095. * var wrapped = _([1, 2]);
  24096. *
  24097. * wrapped[Symbol.iterator]() === wrapped;
  24098. * // => true
  24099. *
  24100. * Array.from(wrapped);
  24101. * // => [1, 2]
  24102. */
  24103. function wrapperToIterator() {
  24104. return this;
  24105. }
  24106. /**
  24107. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  24108. *
  24109. * @name plant
  24110. * @memberOf _
  24111. * @since 3.2.0
  24112. * @category Seq
  24113. * @param {*} value The value to plant.
  24114. * @returns {Object} Returns the new `lodash` wrapper instance.
  24115. * @example
  24116. *
  24117. * function square(n) {
  24118. * return n * n;
  24119. * }
  24120. *
  24121. * var wrapped = _([1, 2]).map(square);
  24122. * var other = wrapped.plant([3, 4]);
  24123. *
  24124. * other.value();
  24125. * // => [9, 16]
  24126. *
  24127. * wrapped.value();
  24128. * // => [1, 4]
  24129. */
  24130. function wrapperPlant(value) {
  24131. var result,
  24132. parent = this;
  24133. while (parent instanceof baseLodash) {
  24134. var clone = wrapperClone(parent);
  24135. clone.__index__ = 0;
  24136. clone.__values__ = undefined;
  24137. if (result) {
  24138. previous.__wrapped__ = clone;
  24139. } else {
  24140. result = clone;
  24141. }
  24142. var previous = clone;
  24143. parent = parent.__wrapped__;
  24144. }
  24145. previous.__wrapped__ = value;
  24146. return result;
  24147. }
  24148. /**
  24149. * This method is the wrapper version of `_.reverse`.
  24150. *
  24151. * **Note:** This method mutates the wrapped array.
  24152. *
  24153. * @name reverse
  24154. * @memberOf _
  24155. * @since 0.1.0
  24156. * @category Seq
  24157. * @returns {Object} Returns the new `lodash` wrapper instance.
  24158. * @example
  24159. *
  24160. * var array = [1, 2, 3];
  24161. *
  24162. * _(array).reverse().value()
  24163. * // => [3, 2, 1]
  24164. *
  24165. * console.log(array);
  24166. * // => [3, 2, 1]
  24167. */
  24168. function wrapperReverse() {
  24169. var value = this.__wrapped__;
  24170. if (value instanceof LazyWrapper) {
  24171. var wrapped = value;
  24172. if (this.__actions__.length) {
  24173. wrapped = new LazyWrapper(this);
  24174. }
  24175. wrapped = wrapped.reverse();
  24176. wrapped.__actions__.push({
  24177. 'func': thru,
  24178. 'args': [reverse],
  24179. 'thisArg': undefined
  24180. });
  24181. return new LodashWrapper(wrapped, this.__chain__);
  24182. }
  24183. return this.thru(reverse);
  24184. }
  24185. /**
  24186. * Executes the chain sequence to resolve the unwrapped value.
  24187. *
  24188. * @name value
  24189. * @memberOf _
  24190. * @since 0.1.0
  24191. * @alias toJSON, valueOf
  24192. * @category Seq
  24193. * @returns {*} Returns the resolved unwrapped value.
  24194. * @example
  24195. *
  24196. * _([1, 2, 3]).value();
  24197. * // => [1, 2, 3]
  24198. */
  24199. function wrapperValue() {
  24200. return baseWrapperValue(this.__wrapped__, this.__actions__);
  24201. }
  24202. /*------------------------------------------------------------------------*/
  24203. /**
  24204. * Creates an object composed of keys generated from the results of running
  24205. * each element of `collection` thru `iteratee`. The corresponding value of
  24206. * each key is the number of times the key was returned by `iteratee`. The
  24207. * iteratee is invoked with one argument: (value).
  24208. *
  24209. * @static
  24210. * @memberOf _
  24211. * @since 0.5.0
  24212. * @category Collection
  24213. * @param {Array|Object} collection The collection to iterate over.
  24214. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24215. * @returns {Object} Returns the composed aggregate object.
  24216. * @example
  24217. *
  24218. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  24219. * // => { '4': 1, '6': 2 }
  24220. *
  24221. * // The `_.property` iteratee shorthand.
  24222. * _.countBy(['one', 'two', 'three'], 'length');
  24223. * // => { '3': 2, '5': 1 }
  24224. */
  24225. var countBy = createAggregator(function(result, value, key) {
  24226. if (hasOwnProperty.call(result, key)) {
  24227. ++result[key];
  24228. } else {
  24229. baseAssignValue(result, key, 1);
  24230. }
  24231. });
  24232. /**
  24233. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  24234. * Iteration is stopped once `predicate` returns falsey. The predicate is
  24235. * invoked with three arguments: (value, index|key, collection).
  24236. *
  24237. * **Note:** This method returns `true` for
  24238. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  24239. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  24240. * elements of empty collections.
  24241. *
  24242. * @static
  24243. * @memberOf _
  24244. * @since 0.1.0
  24245. * @category Collection
  24246. * @param {Array|Object} collection The collection to iterate over.
  24247. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24248. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24249. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  24250. * else `false`.
  24251. * @example
  24252. *
  24253. * _.every([true, 1, null, 'yes'], Boolean);
  24254. * // => false
  24255. *
  24256. * var users = [
  24257. * { 'user': 'barney', 'age': 36, 'active': false },
  24258. * { 'user': 'fred', 'age': 40, 'active': false }
  24259. * ];
  24260. *
  24261. * // The `_.matches` iteratee shorthand.
  24262. * _.every(users, { 'user': 'barney', 'active': false });
  24263. * // => false
  24264. *
  24265. * // The `_.matchesProperty` iteratee shorthand.
  24266. * _.every(users, ['active', false]);
  24267. * // => true
  24268. *
  24269. * // The `_.property` iteratee shorthand.
  24270. * _.every(users, 'active');
  24271. * // => false
  24272. */
  24273. function every(collection, predicate, guard) {
  24274. var func = isArray(collection) ? arrayEvery : baseEvery;
  24275. if (guard && isIterateeCall(collection, predicate, guard)) {
  24276. predicate = undefined;
  24277. }
  24278. return func(collection, getIteratee(predicate, 3));
  24279. }
  24280. /**
  24281. * Iterates over elements of `collection`, returning an array of all elements
  24282. * `predicate` returns truthy for. The predicate is invoked with three
  24283. * arguments: (value, index|key, collection).
  24284. *
  24285. * **Note:** Unlike `_.remove`, this method returns a new array.
  24286. *
  24287. * @static
  24288. * @memberOf _
  24289. * @since 0.1.0
  24290. * @category Collection
  24291. * @param {Array|Object} collection The collection to iterate over.
  24292. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24293. * @returns {Array} Returns the new filtered array.
  24294. * @see _.reject
  24295. * @example
  24296. *
  24297. * var users = [
  24298. * { 'user': 'barney', 'age': 36, 'active': true },
  24299. * { 'user': 'fred', 'age': 40, 'active': false }
  24300. * ];
  24301. *
  24302. * _.filter(users, function(o) { return !o.active; });
  24303. * // => objects for ['fred']
  24304. *
  24305. * // The `_.matches` iteratee shorthand.
  24306. * _.filter(users, { 'age': 36, 'active': true });
  24307. * // => objects for ['barney']
  24308. *
  24309. * // The `_.matchesProperty` iteratee shorthand.
  24310. * _.filter(users, ['active', false]);
  24311. * // => objects for ['fred']
  24312. *
  24313. * // The `_.property` iteratee shorthand.
  24314. * _.filter(users, 'active');
  24315. * // => objects for ['barney']
  24316. */
  24317. function filter(collection, predicate) {
  24318. var func = isArray(collection) ? arrayFilter : baseFilter;
  24319. return func(collection, getIteratee(predicate, 3));
  24320. }
  24321. /**
  24322. * Iterates over elements of `collection`, returning the first element
  24323. * `predicate` returns truthy for. The predicate is invoked with three
  24324. * arguments: (value, index|key, collection).
  24325. *
  24326. * @static
  24327. * @memberOf _
  24328. * @since 0.1.0
  24329. * @category Collection
  24330. * @param {Array|Object} collection The collection to inspect.
  24331. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24332. * @param {number} [fromIndex=0] The index to search from.
  24333. * @returns {*} Returns the matched element, else `undefined`.
  24334. * @example
  24335. *
  24336. * var users = [
  24337. * { 'user': 'barney', 'age': 36, 'active': true },
  24338. * { 'user': 'fred', 'age': 40, 'active': false },
  24339. * { 'user': 'pebbles', 'age': 1, 'active': true }
  24340. * ];
  24341. *
  24342. * _.find(users, function(o) { return o.age < 40; });
  24343. * // => object for 'barney'
  24344. *
  24345. * // The `_.matches` iteratee shorthand.
  24346. * _.find(users, { 'age': 1, 'active': true });
  24347. * // => object for 'pebbles'
  24348. *
  24349. * // The `_.matchesProperty` iteratee shorthand.
  24350. * _.find(users, ['active', false]);
  24351. * // => object for 'fred'
  24352. *
  24353. * // The `_.property` iteratee shorthand.
  24354. * _.find(users, 'active');
  24355. * // => object for 'barney'
  24356. */
  24357. var find = createFind(findIndex);
  24358. /**
  24359. * This method is like `_.find` except that it iterates over elements of
  24360. * `collection` from right to left.
  24361. *
  24362. * @static
  24363. * @memberOf _
  24364. * @since 2.0.0
  24365. * @category Collection
  24366. * @param {Array|Object} collection The collection to inspect.
  24367. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24368. * @param {number} [fromIndex=collection.length-1] The index to search from.
  24369. * @returns {*} Returns the matched element, else `undefined`.
  24370. * @example
  24371. *
  24372. * _.findLast([1, 2, 3, 4], function(n) {
  24373. * return n % 2 == 1;
  24374. * });
  24375. * // => 3
  24376. */
  24377. var findLast = createFind(findLastIndex);
  24378. /**
  24379. * Creates a flattened array of values by running each element in `collection`
  24380. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  24381. * with three arguments: (value, index|key, collection).
  24382. *
  24383. * @static
  24384. * @memberOf _
  24385. * @since 4.0.0
  24386. * @category Collection
  24387. * @param {Array|Object} collection The collection to iterate over.
  24388. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24389. * @returns {Array} Returns the new flattened array.
  24390. * @example
  24391. *
  24392. * function duplicate(n) {
  24393. * return [n, n];
  24394. * }
  24395. *
  24396. * _.flatMap([1, 2], duplicate);
  24397. * // => [1, 1, 2, 2]
  24398. */
  24399. function flatMap(collection, iteratee) {
  24400. return baseFlatten(map(collection, iteratee), 1);
  24401. }
  24402. /**
  24403. * This method is like `_.flatMap` except that it recursively flattens the
  24404. * mapped results.
  24405. *
  24406. * @static
  24407. * @memberOf _
  24408. * @since 4.7.0
  24409. * @category Collection
  24410. * @param {Array|Object} collection The collection to iterate over.
  24411. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24412. * @returns {Array} Returns the new flattened array.
  24413. * @example
  24414. *
  24415. * function duplicate(n) {
  24416. * return [[[n, n]]];
  24417. * }
  24418. *
  24419. * _.flatMapDeep([1, 2], duplicate);
  24420. * // => [1, 1, 2, 2]
  24421. */
  24422. function flatMapDeep(collection, iteratee) {
  24423. return baseFlatten(map(collection, iteratee), INFINITY);
  24424. }
  24425. /**
  24426. * This method is like `_.flatMap` except that it recursively flattens the
  24427. * mapped results up to `depth` times.
  24428. *
  24429. * @static
  24430. * @memberOf _
  24431. * @since 4.7.0
  24432. * @category Collection
  24433. * @param {Array|Object} collection The collection to iterate over.
  24434. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24435. * @param {number} [depth=1] The maximum recursion depth.
  24436. * @returns {Array} Returns the new flattened array.
  24437. * @example
  24438. *
  24439. * function duplicate(n) {
  24440. * return [[[n, n]]];
  24441. * }
  24442. *
  24443. * _.flatMapDepth([1, 2], duplicate, 2);
  24444. * // => [[1, 1], [2, 2]]
  24445. */
  24446. function flatMapDepth(collection, iteratee, depth) {
  24447. depth = depth === undefined ? 1 : toInteger(depth);
  24448. return baseFlatten(map(collection, iteratee), depth);
  24449. }
  24450. /**
  24451. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  24452. * The iteratee is invoked with three arguments: (value, index|key, collection).
  24453. * Iteratee functions may exit iteration early by explicitly returning `false`.
  24454. *
  24455. * **Note:** As with other "Collections" methods, objects with a "length"
  24456. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  24457. * or `_.forOwn` for object iteration.
  24458. *
  24459. * @static
  24460. * @memberOf _
  24461. * @since 0.1.0
  24462. * @alias each
  24463. * @category Collection
  24464. * @param {Array|Object} collection The collection to iterate over.
  24465. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24466. * @returns {Array|Object} Returns `collection`.
  24467. * @see _.forEachRight
  24468. * @example
  24469. *
  24470. * _.forEach([1, 2], function(value) {
  24471. * console.log(value);
  24472. * });
  24473. * // => Logs `1` then `2`.
  24474. *
  24475. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  24476. * console.log(key);
  24477. * });
  24478. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  24479. */
  24480. function forEach(collection, iteratee) {
  24481. var func = isArray(collection) ? arrayEach : baseEach;
  24482. return func(collection, getIteratee(iteratee, 3));
  24483. }
  24484. /**
  24485. * This method is like `_.forEach` except that it iterates over elements of
  24486. * `collection` from right to left.
  24487. *
  24488. * @static
  24489. * @memberOf _
  24490. * @since 2.0.0
  24491. * @alias eachRight
  24492. * @category Collection
  24493. * @param {Array|Object} collection The collection to iterate over.
  24494. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24495. * @returns {Array|Object} Returns `collection`.
  24496. * @see _.forEach
  24497. * @example
  24498. *
  24499. * _.forEachRight([1, 2], function(value) {
  24500. * console.log(value);
  24501. * });
  24502. * // => Logs `2` then `1`.
  24503. */
  24504. function forEachRight(collection, iteratee) {
  24505. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  24506. return func(collection, getIteratee(iteratee, 3));
  24507. }
  24508. /**
  24509. * Creates an object composed of keys generated from the results of running
  24510. * each element of `collection` thru `iteratee`. The order of grouped values
  24511. * is determined by the order they occur in `collection`. The corresponding
  24512. * value of each key is an array of elements responsible for generating the
  24513. * key. The iteratee is invoked with one argument: (value).
  24514. *
  24515. * @static
  24516. * @memberOf _
  24517. * @since 0.1.0
  24518. * @category Collection
  24519. * @param {Array|Object} collection The collection to iterate over.
  24520. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24521. * @returns {Object} Returns the composed aggregate object.
  24522. * @example
  24523. *
  24524. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  24525. * // => { '4': [4.2], '6': [6.1, 6.3] }
  24526. *
  24527. * // The `_.property` iteratee shorthand.
  24528. * _.groupBy(['one', 'two', 'three'], 'length');
  24529. * // => { '3': ['one', 'two'], '5': ['three'] }
  24530. */
  24531. var groupBy = createAggregator(function(result, value, key) {
  24532. if (hasOwnProperty.call(result, key)) {
  24533. result[key].push(value);
  24534. } else {
  24535. baseAssignValue(result, key, [value]);
  24536. }
  24537. });
  24538. /**
  24539. * Checks if `value` is in `collection`. If `collection` is a string, it's
  24540. * checked for a substring of `value`, otherwise
  24541. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  24542. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  24543. * the offset from the end of `collection`.
  24544. *
  24545. * @static
  24546. * @memberOf _
  24547. * @since 0.1.0
  24548. * @category Collection
  24549. * @param {Array|Object|string} collection The collection to inspect.
  24550. * @param {*} value The value to search for.
  24551. * @param {number} [fromIndex=0] The index to search from.
  24552. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24553. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  24554. * @example
  24555. *
  24556. * _.includes([1, 2, 3], 1);
  24557. * // => true
  24558. *
  24559. * _.includes([1, 2, 3], 1, 2);
  24560. * // => false
  24561. *
  24562. * _.includes({ 'a': 1, 'b': 2 }, 1);
  24563. * // => true
  24564. *
  24565. * _.includes('abcd', 'bc');
  24566. * // => true
  24567. */
  24568. function includes(collection, value, fromIndex, guard) {
  24569. collection = isArrayLike(collection) ? collection : values(collection);
  24570. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  24571. var length = collection.length;
  24572. if (fromIndex < 0) {
  24573. fromIndex = nativeMax(length + fromIndex, 0);
  24574. }
  24575. return isString(collection)
  24576. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  24577. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  24578. }
  24579. /**
  24580. * Invokes the method at `path` of each element in `collection`, returning
  24581. * an array of the results of each invoked method. Any additional arguments
  24582. * are provided to each invoked method. If `path` is a function, it's invoked
  24583. * for, and `this` bound to, each element in `collection`.
  24584. *
  24585. * @static
  24586. * @memberOf _
  24587. * @since 4.0.0
  24588. * @category Collection
  24589. * @param {Array|Object} collection The collection to iterate over.
  24590. * @param {Array|Function|string} path The path of the method to invoke or
  24591. * the function invoked per iteration.
  24592. * @param {...*} [args] The arguments to invoke each method with.
  24593. * @returns {Array} Returns the array of results.
  24594. * @example
  24595. *
  24596. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  24597. * // => [[1, 5, 7], [1, 2, 3]]
  24598. *
  24599. * _.invokeMap([123, 456], String.prototype.split, '');
  24600. * // => [['1', '2', '3'], ['4', '5', '6']]
  24601. */
  24602. var invokeMap = baseRest(function(collection, path, args) {
  24603. var index = -1,
  24604. isFunc = typeof path == 'function',
  24605. result = isArrayLike(collection) ? Array(collection.length) : [];
  24606. baseEach(collection, function(value) {
  24607. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  24608. });
  24609. return result;
  24610. });
  24611. /**
  24612. * Creates an object composed of keys generated from the results of running
  24613. * each element of `collection` thru `iteratee`. The corresponding value of
  24614. * each key is the last element responsible for generating the key. The
  24615. * iteratee is invoked with one argument: (value).
  24616. *
  24617. * @static
  24618. * @memberOf _
  24619. * @since 4.0.0
  24620. * @category Collection
  24621. * @param {Array|Object} collection The collection to iterate over.
  24622. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24623. * @returns {Object} Returns the composed aggregate object.
  24624. * @example
  24625. *
  24626. * var array = [
  24627. * { 'dir': 'left', 'code': 97 },
  24628. * { 'dir': 'right', 'code': 100 }
  24629. * ];
  24630. *
  24631. * _.keyBy(array, function(o) {
  24632. * return String.fromCharCode(o.code);
  24633. * });
  24634. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24635. *
  24636. * _.keyBy(array, 'dir');
  24637. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  24638. */
  24639. var keyBy = createAggregator(function(result, value, key) {
  24640. baseAssignValue(result, key, value);
  24641. });
  24642. /**
  24643. * Creates an array of values by running each element in `collection` thru
  24644. * `iteratee`. The iteratee is invoked with three arguments:
  24645. * (value, index|key, collection).
  24646. *
  24647. * Many lodash methods are guarded to work as iteratees for methods like
  24648. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  24649. *
  24650. * The guarded methods are:
  24651. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  24652. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  24653. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  24654. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  24655. *
  24656. * @static
  24657. * @memberOf _
  24658. * @since 0.1.0
  24659. * @category Collection
  24660. * @param {Array|Object} collection The collection to iterate over.
  24661. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24662. * @returns {Array} Returns the new mapped array.
  24663. * @example
  24664. *
  24665. * function square(n) {
  24666. * return n * n;
  24667. * }
  24668. *
  24669. * _.map([4, 8], square);
  24670. * // => [16, 64]
  24671. *
  24672. * _.map({ 'a': 4, 'b': 8 }, square);
  24673. * // => [16, 64] (iteration order is not guaranteed)
  24674. *
  24675. * var users = [
  24676. * { 'user': 'barney' },
  24677. * { 'user': 'fred' }
  24678. * ];
  24679. *
  24680. * // The `_.property` iteratee shorthand.
  24681. * _.map(users, 'user');
  24682. * // => ['barney', 'fred']
  24683. */
  24684. function map(collection, iteratee) {
  24685. var func = isArray(collection) ? arrayMap : baseMap;
  24686. return func(collection, getIteratee(iteratee, 3));
  24687. }
  24688. /**
  24689. * This method is like `_.sortBy` except that it allows specifying the sort
  24690. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  24691. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  24692. * descending or "asc" for ascending sort order of corresponding values.
  24693. *
  24694. * @static
  24695. * @memberOf _
  24696. * @since 4.0.0
  24697. * @category Collection
  24698. * @param {Array|Object} collection The collection to iterate over.
  24699. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  24700. * The iteratees to sort by.
  24701. * @param {string[]} [orders] The sort orders of `iteratees`.
  24702. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24703. * @returns {Array} Returns the new sorted array.
  24704. * @example
  24705. *
  24706. * var users = [
  24707. * { 'user': 'fred', 'age': 48 },
  24708. * { 'user': 'barney', 'age': 34 },
  24709. * { 'user': 'fred', 'age': 40 },
  24710. * { 'user': 'barney', 'age': 36 }
  24711. * ];
  24712. *
  24713. * // Sort by `user` in ascending order and by `age` in descending order.
  24714. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  24715. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  24716. */
  24717. function orderBy(collection, iteratees, orders, guard) {
  24718. if (collection == null) {
  24719. return [];
  24720. }
  24721. if (!isArray(iteratees)) {
  24722. iteratees = iteratees == null ? [] : [iteratees];
  24723. }
  24724. orders = guard ? undefined : orders;
  24725. if (!isArray(orders)) {
  24726. orders = orders == null ? [] : [orders];
  24727. }
  24728. return baseOrderBy(collection, iteratees, orders);
  24729. }
  24730. /**
  24731. * Creates an array of elements split into two groups, the first of which
  24732. * contains elements `predicate` returns truthy for, the second of which
  24733. * contains elements `predicate` returns falsey for. The predicate is
  24734. * invoked with one argument: (value).
  24735. *
  24736. * @static
  24737. * @memberOf _
  24738. * @since 3.0.0
  24739. * @category Collection
  24740. * @param {Array|Object} collection The collection to iterate over.
  24741. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24742. * @returns {Array} Returns the array of grouped elements.
  24743. * @example
  24744. *
  24745. * var users = [
  24746. * { 'user': 'barney', 'age': 36, 'active': false },
  24747. * { 'user': 'fred', 'age': 40, 'active': true },
  24748. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24749. * ];
  24750. *
  24751. * _.partition(users, function(o) { return o.active; });
  24752. * // => objects for [['fred'], ['barney', 'pebbles']]
  24753. *
  24754. * // The `_.matches` iteratee shorthand.
  24755. * _.partition(users, { 'age': 1, 'active': false });
  24756. * // => objects for [['pebbles'], ['barney', 'fred']]
  24757. *
  24758. * // The `_.matchesProperty` iteratee shorthand.
  24759. * _.partition(users, ['active', false]);
  24760. * // => objects for [['barney', 'pebbles'], ['fred']]
  24761. *
  24762. * // The `_.property` iteratee shorthand.
  24763. * _.partition(users, 'active');
  24764. * // => objects for [['fred'], ['barney', 'pebbles']]
  24765. */
  24766. var partition = createAggregator(function(result, value, key) {
  24767. result[key ? 0 : 1].push(value);
  24768. }, function() { return [[], []]; });
  24769. /**
  24770. * Reduces `collection` to a value which is the accumulated result of running
  24771. * each element in `collection` thru `iteratee`, where each successive
  24772. * invocation is supplied the return value of the previous. If `accumulator`
  24773. * is not given, the first element of `collection` is used as the initial
  24774. * value. The iteratee is invoked with four arguments:
  24775. * (accumulator, value, index|key, collection).
  24776. *
  24777. * Many lodash methods are guarded to work as iteratees for methods like
  24778. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  24779. *
  24780. * The guarded methods are:
  24781. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  24782. * and `sortBy`
  24783. *
  24784. * @static
  24785. * @memberOf _
  24786. * @since 0.1.0
  24787. * @category Collection
  24788. * @param {Array|Object} collection The collection to iterate over.
  24789. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24790. * @param {*} [accumulator] The initial value.
  24791. * @returns {*} Returns the accumulated value.
  24792. * @see _.reduceRight
  24793. * @example
  24794. *
  24795. * _.reduce([1, 2], function(sum, n) {
  24796. * return sum + n;
  24797. * }, 0);
  24798. * // => 3
  24799. *
  24800. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  24801. * (result[value] || (result[value] = [])).push(key);
  24802. * return result;
  24803. * }, {});
  24804. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  24805. */
  24806. function reduce(collection, iteratee, accumulator) {
  24807. var func = isArray(collection) ? arrayReduce : baseReduce,
  24808. initAccum = arguments.length < 3;
  24809. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  24810. }
  24811. /**
  24812. * This method is like `_.reduce` except that it iterates over elements of
  24813. * `collection` from right to left.
  24814. *
  24815. * @static
  24816. * @memberOf _
  24817. * @since 0.1.0
  24818. * @category Collection
  24819. * @param {Array|Object} collection The collection to iterate over.
  24820. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24821. * @param {*} [accumulator] The initial value.
  24822. * @returns {*} Returns the accumulated value.
  24823. * @see _.reduce
  24824. * @example
  24825. *
  24826. * var array = [[0, 1], [2, 3], [4, 5]];
  24827. *
  24828. * _.reduceRight(array, function(flattened, other) {
  24829. * return flattened.concat(other);
  24830. * }, []);
  24831. * // => [4, 5, 2, 3, 0, 1]
  24832. */
  24833. function reduceRight(collection, iteratee, accumulator) {
  24834. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  24835. initAccum = arguments.length < 3;
  24836. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  24837. }
  24838. /**
  24839. * The opposite of `_.filter`; this method returns the elements of `collection`
  24840. * that `predicate` does **not** return truthy for.
  24841. *
  24842. * @static
  24843. * @memberOf _
  24844. * @since 0.1.0
  24845. * @category Collection
  24846. * @param {Array|Object} collection The collection to iterate over.
  24847. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24848. * @returns {Array} Returns the new filtered array.
  24849. * @see _.filter
  24850. * @example
  24851. *
  24852. * var users = [
  24853. * { 'user': 'barney', 'age': 36, 'active': false },
  24854. * { 'user': 'fred', 'age': 40, 'active': true }
  24855. * ];
  24856. *
  24857. * _.reject(users, function(o) { return !o.active; });
  24858. * // => objects for ['fred']
  24859. *
  24860. * // The `_.matches` iteratee shorthand.
  24861. * _.reject(users, { 'age': 40, 'active': true });
  24862. * // => objects for ['barney']
  24863. *
  24864. * // The `_.matchesProperty` iteratee shorthand.
  24865. * _.reject(users, ['active', false]);
  24866. * // => objects for ['fred']
  24867. *
  24868. * // The `_.property` iteratee shorthand.
  24869. * _.reject(users, 'active');
  24870. * // => objects for ['barney']
  24871. */
  24872. function reject(collection, predicate) {
  24873. var func = isArray(collection) ? arrayFilter : baseFilter;
  24874. return func(collection, negate(getIteratee(predicate, 3)));
  24875. }
  24876. /**
  24877. * Gets a random element from `collection`.
  24878. *
  24879. * @static
  24880. * @memberOf _
  24881. * @since 2.0.0
  24882. * @category Collection
  24883. * @param {Array|Object} collection The collection to sample.
  24884. * @returns {*} Returns the random element.
  24885. * @example
  24886. *
  24887. * _.sample([1, 2, 3, 4]);
  24888. * // => 2
  24889. */
  24890. function sample(collection) {
  24891. var func = isArray(collection) ? arraySample : baseSample;
  24892. return func(collection);
  24893. }
  24894. /**
  24895. * Gets `n` random elements at unique keys from `collection` up to the
  24896. * size of `collection`.
  24897. *
  24898. * @static
  24899. * @memberOf _
  24900. * @since 4.0.0
  24901. * @category Collection
  24902. * @param {Array|Object} collection The collection to sample.
  24903. * @param {number} [n=1] The number of elements to sample.
  24904. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24905. * @returns {Array} Returns the random elements.
  24906. * @example
  24907. *
  24908. * _.sampleSize([1, 2, 3], 2);
  24909. * // => [3, 1]
  24910. *
  24911. * _.sampleSize([1, 2, 3], 4);
  24912. * // => [2, 3, 1]
  24913. */
  24914. function sampleSize(collection, n, guard) {
  24915. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  24916. n = 1;
  24917. } else {
  24918. n = toInteger(n);
  24919. }
  24920. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  24921. return func(collection, n);
  24922. }
  24923. /**
  24924. * Creates an array of shuffled values, using a version of the
  24925. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  24926. *
  24927. * @static
  24928. * @memberOf _
  24929. * @since 0.1.0
  24930. * @category Collection
  24931. * @param {Array|Object} collection The collection to shuffle.
  24932. * @returns {Array} Returns the new shuffled array.
  24933. * @example
  24934. *
  24935. * _.shuffle([1, 2, 3, 4]);
  24936. * // => [4, 1, 3, 2]
  24937. */
  24938. function shuffle(collection) {
  24939. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  24940. return func(collection);
  24941. }
  24942. /**
  24943. * Gets the size of `collection` by returning its length for array-like
  24944. * values or the number of own enumerable string keyed properties for objects.
  24945. *
  24946. * @static
  24947. * @memberOf _
  24948. * @since 0.1.0
  24949. * @category Collection
  24950. * @param {Array|Object|string} collection The collection to inspect.
  24951. * @returns {number} Returns the collection size.
  24952. * @example
  24953. *
  24954. * _.size([1, 2, 3]);
  24955. * // => 3
  24956. *
  24957. * _.size({ 'a': 1, 'b': 2 });
  24958. * // => 2
  24959. *
  24960. * _.size('pebbles');
  24961. * // => 7
  24962. */
  24963. function size(collection) {
  24964. if (collection == null) {
  24965. return 0;
  24966. }
  24967. if (isArrayLike(collection)) {
  24968. return isString(collection) ? stringSize(collection) : collection.length;
  24969. }
  24970. var tag = getTag(collection);
  24971. if (tag == mapTag || tag == setTag) {
  24972. return collection.size;
  24973. }
  24974. return baseKeys(collection).length;
  24975. }
  24976. /**
  24977. * Checks if `predicate` returns truthy for **any** element of `collection`.
  24978. * Iteration is stopped once `predicate` returns truthy. The predicate is
  24979. * invoked with three arguments: (value, index|key, collection).
  24980. *
  24981. * @static
  24982. * @memberOf _
  24983. * @since 0.1.0
  24984. * @category Collection
  24985. * @param {Array|Object} collection The collection to iterate over.
  24986. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24987. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24988. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24989. * else `false`.
  24990. * @example
  24991. *
  24992. * _.some([null, 0, 'yes', false], Boolean);
  24993. * // => true
  24994. *
  24995. * var users = [
  24996. * { 'user': 'barney', 'active': true },
  24997. * { 'user': 'fred', 'active': false }
  24998. * ];
  24999. *
  25000. * // The `_.matches` iteratee shorthand.
  25001. * _.some(users, { 'user': 'barney', 'active': false });
  25002. * // => false
  25003. *
  25004. * // The `_.matchesProperty` iteratee shorthand.
  25005. * _.some(users, ['active', false]);
  25006. * // => true
  25007. *
  25008. * // The `_.property` iteratee shorthand.
  25009. * _.some(users, 'active');
  25010. * // => true
  25011. */
  25012. function some(collection, predicate, guard) {
  25013. var func = isArray(collection) ? arraySome : baseSome;
  25014. if (guard && isIterateeCall(collection, predicate, guard)) {
  25015. predicate = undefined;
  25016. }
  25017. return func(collection, getIteratee(predicate, 3));
  25018. }
  25019. /**
  25020. * Creates an array of elements, sorted in ascending order by the results of
  25021. * running each element in a collection thru each iteratee. This method
  25022. * performs a stable sort, that is, it preserves the original sort order of
  25023. * equal elements. The iteratees are invoked with one argument: (value).
  25024. *
  25025. * @static
  25026. * @memberOf _
  25027. * @since 0.1.0
  25028. * @category Collection
  25029. * @param {Array|Object} collection The collection to iterate over.
  25030. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  25031. * The iteratees to sort by.
  25032. * @returns {Array} Returns the new sorted array.
  25033. * @example
  25034. *
  25035. * var users = [
  25036. * { 'user': 'fred', 'age': 48 },
  25037. * { 'user': 'barney', 'age': 36 },
  25038. * { 'user': 'fred', 'age': 40 },
  25039. * { 'user': 'barney', 'age': 34 }
  25040. * ];
  25041. *
  25042. * _.sortBy(users, [function(o) { return o.user; }]);
  25043. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  25044. *
  25045. * _.sortBy(users, ['user', 'age']);
  25046. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  25047. */
  25048. var sortBy = baseRest(function(collection, iteratees) {
  25049. if (collection == null) {
  25050. return [];
  25051. }
  25052. var length = iteratees.length;
  25053. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  25054. iteratees = [];
  25055. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  25056. iteratees = [iteratees[0]];
  25057. }
  25058. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  25059. });
  25060. /*------------------------------------------------------------------------*/
  25061. /**
  25062. * Gets the timestamp of the number of milliseconds that have elapsed since
  25063. * the Unix epoch (1 January 1970 00:00:00 UTC).
  25064. *
  25065. * @static
  25066. * @memberOf _
  25067. * @since 2.4.0
  25068. * @category Date
  25069. * @returns {number} Returns the timestamp.
  25070. * @example
  25071. *
  25072. * _.defer(function(stamp) {
  25073. * console.log(_.now() - stamp);
  25074. * }, _.now());
  25075. * // => Logs the number of milliseconds it took for the deferred invocation.
  25076. */
  25077. var now = ctxNow || function() {
  25078. return root.Date.now();
  25079. };
  25080. /*------------------------------------------------------------------------*/
  25081. /**
  25082. * The opposite of `_.before`; this method creates a function that invokes
  25083. * `func` once it's called `n` or more times.
  25084. *
  25085. * @static
  25086. * @memberOf _
  25087. * @since 0.1.0
  25088. * @category Function
  25089. * @param {number} n The number of calls before `func` is invoked.
  25090. * @param {Function} func The function to restrict.
  25091. * @returns {Function} Returns the new restricted function.
  25092. * @example
  25093. *
  25094. * var saves = ['profile', 'settings'];
  25095. *
  25096. * var done = _.after(saves.length, function() {
  25097. * console.log('done saving!');
  25098. * });
  25099. *
  25100. * _.forEach(saves, function(type) {
  25101. * asyncSave({ 'type': type, 'complete': done });
  25102. * });
  25103. * // => Logs 'done saving!' after the two async saves have completed.
  25104. */
  25105. function after(n, func) {
  25106. if (typeof func != 'function') {
  25107. throw new TypeError(FUNC_ERROR_TEXT);
  25108. }
  25109. n = toInteger(n);
  25110. return function() {
  25111. if (--n < 1) {
  25112. return func.apply(this, arguments);
  25113. }
  25114. };
  25115. }
  25116. /**
  25117. * Creates a function that invokes `func`, with up to `n` arguments,
  25118. * ignoring any additional arguments.
  25119. *
  25120. * @static
  25121. * @memberOf _
  25122. * @since 3.0.0
  25123. * @category Function
  25124. * @param {Function} func The function to cap arguments for.
  25125. * @param {number} [n=func.length] The arity cap.
  25126. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25127. * @returns {Function} Returns the new capped function.
  25128. * @example
  25129. *
  25130. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  25131. * // => [6, 8, 10]
  25132. */
  25133. function ary(func, n, guard) {
  25134. n = guard ? undefined : n;
  25135. n = (func && n == null) ? func.length : n;
  25136. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  25137. }
  25138. /**
  25139. * Creates a function that invokes `func`, with the `this` binding and arguments
  25140. * of the created function, while it's called less than `n` times. Subsequent
  25141. * calls to the created function return the result of the last `func` invocation.
  25142. *
  25143. * @static
  25144. * @memberOf _
  25145. * @since 3.0.0
  25146. * @category Function
  25147. * @param {number} n The number of calls at which `func` is no longer invoked.
  25148. * @param {Function} func The function to restrict.
  25149. * @returns {Function} Returns the new restricted function.
  25150. * @example
  25151. *
  25152. * jQuery(element).on('click', _.before(5, addContactToList));
  25153. * // => Allows adding up to 4 contacts to the list.
  25154. */
  25155. function before(n, func) {
  25156. var result;
  25157. if (typeof func != 'function') {
  25158. throw new TypeError(FUNC_ERROR_TEXT);
  25159. }
  25160. n = toInteger(n);
  25161. return function() {
  25162. if (--n > 0) {
  25163. result = func.apply(this, arguments);
  25164. }
  25165. if (n <= 1) {
  25166. func = undefined;
  25167. }
  25168. return result;
  25169. };
  25170. }
  25171. /**
  25172. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  25173. * and `partials` prepended to the arguments it receives.
  25174. *
  25175. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  25176. * may be used as a placeholder for partially applied arguments.
  25177. *
  25178. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  25179. * property of bound functions.
  25180. *
  25181. * @static
  25182. * @memberOf _
  25183. * @since 0.1.0
  25184. * @category Function
  25185. * @param {Function} func The function to bind.
  25186. * @param {*} thisArg The `this` binding of `func`.
  25187. * @param {...*} [partials] The arguments to be partially applied.
  25188. * @returns {Function} Returns the new bound function.
  25189. * @example
  25190. *
  25191. * function greet(greeting, punctuation) {
  25192. * return greeting + ' ' + this.user + punctuation;
  25193. * }
  25194. *
  25195. * var object = { 'user': 'fred' };
  25196. *
  25197. * var bound = _.bind(greet, object, 'hi');
  25198. * bound('!');
  25199. * // => 'hi fred!'
  25200. *
  25201. * // Bound with placeholders.
  25202. * var bound = _.bind(greet, object, _, '!');
  25203. * bound('hi');
  25204. * // => 'hi fred!'
  25205. */
  25206. var bind = baseRest(function(func, thisArg, partials) {
  25207. var bitmask = WRAP_BIND_FLAG;
  25208. if (partials.length) {
  25209. var holders = replaceHolders(partials, getHolder(bind));
  25210. bitmask |= WRAP_PARTIAL_FLAG;
  25211. }
  25212. return createWrap(func, bitmask, thisArg, partials, holders);
  25213. });
  25214. /**
  25215. * Creates a function that invokes the method at `object[key]` with `partials`
  25216. * prepended to the arguments it receives.
  25217. *
  25218. * This method differs from `_.bind` by allowing bound functions to reference
  25219. * methods that may be redefined or don't yet exist. See
  25220. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  25221. * for more details.
  25222. *
  25223. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  25224. * builds, may be used as a placeholder for partially applied arguments.
  25225. *
  25226. * @static
  25227. * @memberOf _
  25228. * @since 0.10.0
  25229. * @category Function
  25230. * @param {Object} object The object to invoke the method on.
  25231. * @param {string} key The key of the method.
  25232. * @param {...*} [partials] The arguments to be partially applied.
  25233. * @returns {Function} Returns the new bound function.
  25234. * @example
  25235. *
  25236. * var object = {
  25237. * 'user': 'fred',
  25238. * 'greet': function(greeting, punctuation) {
  25239. * return greeting + ' ' + this.user + punctuation;
  25240. * }
  25241. * };
  25242. *
  25243. * var bound = _.bindKey(object, 'greet', 'hi');
  25244. * bound('!');
  25245. * // => 'hi fred!'
  25246. *
  25247. * object.greet = function(greeting, punctuation) {
  25248. * return greeting + 'ya ' + this.user + punctuation;
  25249. * };
  25250. *
  25251. * bound('!');
  25252. * // => 'hiya fred!'
  25253. *
  25254. * // Bound with placeholders.
  25255. * var bound = _.bindKey(object, 'greet', _, '!');
  25256. * bound('hi');
  25257. * // => 'hiya fred!'
  25258. */
  25259. var bindKey = baseRest(function(object, key, partials) {
  25260. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  25261. if (partials.length) {
  25262. var holders = replaceHolders(partials, getHolder(bindKey));
  25263. bitmask |= WRAP_PARTIAL_FLAG;
  25264. }
  25265. return createWrap(key, bitmask, object, partials, holders);
  25266. });
  25267. /**
  25268. * Creates a function that accepts arguments of `func` and either invokes
  25269. * `func` returning its result, if at least `arity` number of arguments have
  25270. * been provided, or returns a function that accepts the remaining `func`
  25271. * arguments, and so on. The arity of `func` may be specified if `func.length`
  25272. * is not sufficient.
  25273. *
  25274. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  25275. * may be used as a placeholder for provided arguments.
  25276. *
  25277. * **Note:** This method doesn't set the "length" property of curried functions.
  25278. *
  25279. * @static
  25280. * @memberOf _
  25281. * @since 2.0.0
  25282. * @category Function
  25283. * @param {Function} func The function to curry.
  25284. * @param {number} [arity=func.length] The arity of `func`.
  25285. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25286. * @returns {Function} Returns the new curried function.
  25287. * @example
  25288. *
  25289. * var abc = function(a, b, c) {
  25290. * return [a, b, c];
  25291. * };
  25292. *
  25293. * var curried = _.curry(abc);
  25294. *
  25295. * curried(1)(2)(3);
  25296. * // => [1, 2, 3]
  25297. *
  25298. * curried(1, 2)(3);
  25299. * // => [1, 2, 3]
  25300. *
  25301. * curried(1, 2, 3);
  25302. * // => [1, 2, 3]
  25303. *
  25304. * // Curried with placeholders.
  25305. * curried(1)(_, 3)(2);
  25306. * // => [1, 2, 3]
  25307. */
  25308. function curry(func, arity, guard) {
  25309. arity = guard ? undefined : arity;
  25310. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25311. result.placeholder = curry.placeholder;
  25312. return result;
  25313. }
  25314. /**
  25315. * This method is like `_.curry` except that arguments are applied to `func`
  25316. * in the manner of `_.partialRight` instead of `_.partial`.
  25317. *
  25318. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  25319. * builds, may be used as a placeholder for provided arguments.
  25320. *
  25321. * **Note:** This method doesn't set the "length" property of curried functions.
  25322. *
  25323. * @static
  25324. * @memberOf _
  25325. * @since 3.0.0
  25326. * @category Function
  25327. * @param {Function} func The function to curry.
  25328. * @param {number} [arity=func.length] The arity of `func`.
  25329. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25330. * @returns {Function} Returns the new curried function.
  25331. * @example
  25332. *
  25333. * var abc = function(a, b, c) {
  25334. * return [a, b, c];
  25335. * };
  25336. *
  25337. * var curried = _.curryRight(abc);
  25338. *
  25339. * curried(3)(2)(1);
  25340. * // => [1, 2, 3]
  25341. *
  25342. * curried(2, 3)(1);
  25343. * // => [1, 2, 3]
  25344. *
  25345. * curried(1, 2, 3);
  25346. * // => [1, 2, 3]
  25347. *
  25348. * // Curried with placeholders.
  25349. * curried(3)(1, _)(2);
  25350. * // => [1, 2, 3]
  25351. */
  25352. function curryRight(func, arity, guard) {
  25353. arity = guard ? undefined : arity;
  25354. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25355. result.placeholder = curryRight.placeholder;
  25356. return result;
  25357. }
  25358. /**
  25359. * Creates a debounced function that delays invoking `func` until after `wait`
  25360. * milliseconds have elapsed since the last time the debounced function was
  25361. * invoked. The debounced function comes with a `cancel` method to cancel
  25362. * delayed `func` invocations and a `flush` method to immediately invoke them.
  25363. * Provide `options` to indicate whether `func` should be invoked on the
  25364. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  25365. * with the last arguments provided to the debounced function. Subsequent
  25366. * calls to the debounced function return the result of the last `func`
  25367. * invocation.
  25368. *
  25369. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25370. * invoked on the trailing edge of the timeout only if the debounced function
  25371. * is invoked more than once during the `wait` timeout.
  25372. *
  25373. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25374. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25375. *
  25376. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25377. * for details over the differences between `_.debounce` and `_.throttle`.
  25378. *
  25379. * @static
  25380. * @memberOf _
  25381. * @since 0.1.0
  25382. * @category Function
  25383. * @param {Function} func The function to debounce.
  25384. * @param {number} [wait=0] The number of milliseconds to delay.
  25385. * @param {Object} [options={}] The options object.
  25386. * @param {boolean} [options.leading=false]
  25387. * Specify invoking on the leading edge of the timeout.
  25388. * @param {number} [options.maxWait]
  25389. * The maximum time `func` is allowed to be delayed before it's invoked.
  25390. * @param {boolean} [options.trailing=true]
  25391. * Specify invoking on the trailing edge of the timeout.
  25392. * @returns {Function} Returns the new debounced function.
  25393. * @example
  25394. *
  25395. * // Avoid costly calculations while the window size is in flux.
  25396. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  25397. *
  25398. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  25399. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  25400. * 'leading': true,
  25401. * 'trailing': false
  25402. * }));
  25403. *
  25404. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  25405. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  25406. * var source = new EventSource('/stream');
  25407. * jQuery(source).on('message', debounced);
  25408. *
  25409. * // Cancel the trailing debounced invocation.
  25410. * jQuery(window).on('popstate', debounced.cancel);
  25411. */
  25412. function debounce(func, wait, options) {
  25413. var lastArgs,
  25414. lastThis,
  25415. maxWait,
  25416. result,
  25417. timerId,
  25418. lastCallTime,
  25419. lastInvokeTime = 0,
  25420. leading = false,
  25421. maxing = false,
  25422. trailing = true;
  25423. if (typeof func != 'function') {
  25424. throw new TypeError(FUNC_ERROR_TEXT);
  25425. }
  25426. wait = toNumber(wait) || 0;
  25427. if (isObject(options)) {
  25428. leading = !!options.leading;
  25429. maxing = 'maxWait' in options;
  25430. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  25431. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25432. }
  25433. function invokeFunc(time) {
  25434. var args = lastArgs,
  25435. thisArg = lastThis;
  25436. lastArgs = lastThis = undefined;
  25437. lastInvokeTime = time;
  25438. result = func.apply(thisArg, args);
  25439. return result;
  25440. }
  25441. function leadingEdge(time) {
  25442. // Reset any `maxWait` timer.
  25443. lastInvokeTime = time;
  25444. // Start the timer for the trailing edge.
  25445. timerId = setTimeout(timerExpired, wait);
  25446. // Invoke the leading edge.
  25447. return leading ? invokeFunc(time) : result;
  25448. }
  25449. function remainingWait(time) {
  25450. var timeSinceLastCall = time - lastCallTime,
  25451. timeSinceLastInvoke = time - lastInvokeTime,
  25452. timeWaiting = wait - timeSinceLastCall;
  25453. return maxing
  25454. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  25455. : timeWaiting;
  25456. }
  25457. function shouldInvoke(time) {
  25458. var timeSinceLastCall = time - lastCallTime,
  25459. timeSinceLastInvoke = time - lastInvokeTime;
  25460. // Either this is the first call, activity has stopped and we're at the
  25461. // trailing edge, the system time has gone backwards and we're treating
  25462. // it as the trailing edge, or we've hit the `maxWait` limit.
  25463. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  25464. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  25465. }
  25466. function timerExpired() {
  25467. var time = now();
  25468. if (shouldInvoke(time)) {
  25469. return trailingEdge(time);
  25470. }
  25471. // Restart the timer.
  25472. timerId = setTimeout(timerExpired, remainingWait(time));
  25473. }
  25474. function trailingEdge(time) {
  25475. timerId = undefined;
  25476. // Only invoke if we have `lastArgs` which means `func` has been
  25477. // debounced at least once.
  25478. if (trailing && lastArgs) {
  25479. return invokeFunc(time);
  25480. }
  25481. lastArgs = lastThis = undefined;
  25482. return result;
  25483. }
  25484. function cancel() {
  25485. if (timerId !== undefined) {
  25486. clearTimeout(timerId);
  25487. }
  25488. lastInvokeTime = 0;
  25489. lastArgs = lastCallTime = lastThis = timerId = undefined;
  25490. }
  25491. function flush() {
  25492. return timerId === undefined ? result : trailingEdge(now());
  25493. }
  25494. function debounced() {
  25495. var time = now(),
  25496. isInvoking = shouldInvoke(time);
  25497. lastArgs = arguments;
  25498. lastThis = this;
  25499. lastCallTime = time;
  25500. if (isInvoking) {
  25501. if (timerId === undefined) {
  25502. return leadingEdge(lastCallTime);
  25503. }
  25504. if (maxing) {
  25505. // Handle invocations in a tight loop.
  25506. clearTimeout(timerId);
  25507. timerId = setTimeout(timerExpired, wait);
  25508. return invokeFunc(lastCallTime);
  25509. }
  25510. }
  25511. if (timerId === undefined) {
  25512. timerId = setTimeout(timerExpired, wait);
  25513. }
  25514. return result;
  25515. }
  25516. debounced.cancel = cancel;
  25517. debounced.flush = flush;
  25518. return debounced;
  25519. }
  25520. /**
  25521. * Defers invoking the `func` until the current call stack has cleared. Any
  25522. * additional arguments are provided to `func` when it's invoked.
  25523. *
  25524. * @static
  25525. * @memberOf _
  25526. * @since 0.1.0
  25527. * @category Function
  25528. * @param {Function} func The function to defer.
  25529. * @param {...*} [args] The arguments to invoke `func` with.
  25530. * @returns {number} Returns the timer id.
  25531. * @example
  25532. *
  25533. * _.defer(function(text) {
  25534. * console.log(text);
  25535. * }, 'deferred');
  25536. * // => Logs 'deferred' after one millisecond.
  25537. */
  25538. var defer = baseRest(function(func, args) {
  25539. return baseDelay(func, 1, args);
  25540. });
  25541. /**
  25542. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  25543. * provided to `func` when it's invoked.
  25544. *
  25545. * @static
  25546. * @memberOf _
  25547. * @since 0.1.0
  25548. * @category Function
  25549. * @param {Function} func The function to delay.
  25550. * @param {number} wait The number of milliseconds to delay invocation.
  25551. * @param {...*} [args] The arguments to invoke `func` with.
  25552. * @returns {number} Returns the timer id.
  25553. * @example
  25554. *
  25555. * _.delay(function(text) {
  25556. * console.log(text);
  25557. * }, 1000, 'later');
  25558. * // => Logs 'later' after one second.
  25559. */
  25560. var delay = baseRest(function(func, wait, args) {
  25561. return baseDelay(func, toNumber(wait) || 0, args);
  25562. });
  25563. /**
  25564. * Creates a function that invokes `func` with arguments reversed.
  25565. *
  25566. * @static
  25567. * @memberOf _
  25568. * @since 4.0.0
  25569. * @category Function
  25570. * @param {Function} func The function to flip arguments for.
  25571. * @returns {Function} Returns the new flipped function.
  25572. * @example
  25573. *
  25574. * var flipped = _.flip(function() {
  25575. * return _.toArray(arguments);
  25576. * });
  25577. *
  25578. * flipped('a', 'b', 'c', 'd');
  25579. * // => ['d', 'c', 'b', 'a']
  25580. */
  25581. function flip(func) {
  25582. return createWrap(func, WRAP_FLIP_FLAG);
  25583. }
  25584. /**
  25585. * Creates a function that memoizes the result of `func`. If `resolver` is
  25586. * provided, it determines the cache key for storing the result based on the
  25587. * arguments provided to the memoized function. By default, the first argument
  25588. * provided to the memoized function is used as the map cache key. The `func`
  25589. * is invoked with the `this` binding of the memoized function.
  25590. *
  25591. * **Note:** The cache is exposed as the `cache` property on the memoized
  25592. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25593. * constructor with one whose instances implement the
  25594. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  25595. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  25596. *
  25597. * @static
  25598. * @memberOf _
  25599. * @since 0.1.0
  25600. * @category Function
  25601. * @param {Function} func The function to have its output memoized.
  25602. * @param {Function} [resolver] The function to resolve the cache key.
  25603. * @returns {Function} Returns the new memoized function.
  25604. * @example
  25605. *
  25606. * var object = { 'a': 1, 'b': 2 };
  25607. * var other = { 'c': 3, 'd': 4 };
  25608. *
  25609. * var values = _.memoize(_.values);
  25610. * values(object);
  25611. * // => [1, 2]
  25612. *
  25613. * values(other);
  25614. * // => [3, 4]
  25615. *
  25616. * object.a = 2;
  25617. * values(object);
  25618. * // => [1, 2]
  25619. *
  25620. * // Modify the result cache.
  25621. * values.cache.set(object, ['a', 'b']);
  25622. * values(object);
  25623. * // => ['a', 'b']
  25624. *
  25625. * // Replace `_.memoize.Cache`.
  25626. * _.memoize.Cache = WeakMap;
  25627. */
  25628. function memoize(func, resolver) {
  25629. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  25630. throw new TypeError(FUNC_ERROR_TEXT);
  25631. }
  25632. var memoized = function() {
  25633. var args = arguments,
  25634. key = resolver ? resolver.apply(this, args) : args[0],
  25635. cache = memoized.cache;
  25636. if (cache.has(key)) {
  25637. return cache.get(key);
  25638. }
  25639. var result = func.apply(this, args);
  25640. memoized.cache = cache.set(key, result) || cache;
  25641. return result;
  25642. };
  25643. memoized.cache = new (memoize.Cache || MapCache);
  25644. return memoized;
  25645. }
  25646. // Expose `MapCache`.
  25647. memoize.Cache = MapCache;
  25648. /**
  25649. * Creates a function that negates the result of the predicate `func`. The
  25650. * `func` predicate is invoked with the `this` binding and arguments of the
  25651. * created function.
  25652. *
  25653. * @static
  25654. * @memberOf _
  25655. * @since 3.0.0
  25656. * @category Function
  25657. * @param {Function} predicate The predicate to negate.
  25658. * @returns {Function} Returns the new negated function.
  25659. * @example
  25660. *
  25661. * function isEven(n) {
  25662. * return n % 2 == 0;
  25663. * }
  25664. *
  25665. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  25666. * // => [1, 3, 5]
  25667. */
  25668. function negate(predicate) {
  25669. if (typeof predicate != 'function') {
  25670. throw new TypeError(FUNC_ERROR_TEXT);
  25671. }
  25672. return function() {
  25673. var args = arguments;
  25674. switch (args.length) {
  25675. case 0: return !predicate.call(this);
  25676. case 1: return !predicate.call(this, args[0]);
  25677. case 2: return !predicate.call(this, args[0], args[1]);
  25678. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  25679. }
  25680. return !predicate.apply(this, args);
  25681. };
  25682. }
  25683. /**
  25684. * Creates a function that is restricted to invoking `func` once. Repeat calls
  25685. * to the function return the value of the first invocation. The `func` is
  25686. * invoked with the `this` binding and arguments of the created function.
  25687. *
  25688. * @static
  25689. * @memberOf _
  25690. * @since 0.1.0
  25691. * @category Function
  25692. * @param {Function} func The function to restrict.
  25693. * @returns {Function} Returns the new restricted function.
  25694. * @example
  25695. *
  25696. * var initialize = _.once(createApplication);
  25697. * initialize();
  25698. * initialize();
  25699. * // => `createApplication` is invoked once
  25700. */
  25701. function once(func) {
  25702. return before(2, func);
  25703. }
  25704. /**
  25705. * Creates a function that invokes `func` with its arguments transformed.
  25706. *
  25707. * @static
  25708. * @since 4.0.0
  25709. * @memberOf _
  25710. * @category Function
  25711. * @param {Function} func The function to wrap.
  25712. * @param {...(Function|Function[])} [transforms=[_.identity]]
  25713. * The argument transforms.
  25714. * @returns {Function} Returns the new function.
  25715. * @example
  25716. *
  25717. * function doubled(n) {
  25718. * return n * 2;
  25719. * }
  25720. *
  25721. * function square(n) {
  25722. * return n * n;
  25723. * }
  25724. *
  25725. * var func = _.overArgs(function(x, y) {
  25726. * return [x, y];
  25727. * }, [square, doubled]);
  25728. *
  25729. * func(9, 3);
  25730. * // => [81, 6]
  25731. *
  25732. * func(10, 5);
  25733. * // => [100, 10]
  25734. */
  25735. var overArgs = castRest(function(func, transforms) {
  25736. transforms = (transforms.length == 1 && isArray(transforms[0]))
  25737. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  25738. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  25739. var funcsLength = transforms.length;
  25740. return baseRest(function(args) {
  25741. var index = -1,
  25742. length = nativeMin(args.length, funcsLength);
  25743. while (++index < length) {
  25744. args[index] = transforms[index].call(this, args[index]);
  25745. }
  25746. return apply(func, this, args);
  25747. });
  25748. });
  25749. /**
  25750. * Creates a function that invokes `func` with `partials` prepended to the
  25751. * arguments it receives. This method is like `_.bind` except it does **not**
  25752. * alter the `this` binding.
  25753. *
  25754. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  25755. * builds, may be used as a placeholder for partially applied arguments.
  25756. *
  25757. * **Note:** This method doesn't set the "length" property of partially
  25758. * applied functions.
  25759. *
  25760. * @static
  25761. * @memberOf _
  25762. * @since 0.2.0
  25763. * @category Function
  25764. * @param {Function} func The function to partially apply arguments to.
  25765. * @param {...*} [partials] The arguments to be partially applied.
  25766. * @returns {Function} Returns the new partially applied function.
  25767. * @example
  25768. *
  25769. * function greet(greeting, name) {
  25770. * return greeting + ' ' + name;
  25771. * }
  25772. *
  25773. * var sayHelloTo = _.partial(greet, 'hello');
  25774. * sayHelloTo('fred');
  25775. * // => 'hello fred'
  25776. *
  25777. * // Partially applied with placeholders.
  25778. * var greetFred = _.partial(greet, _, 'fred');
  25779. * greetFred('hi');
  25780. * // => 'hi fred'
  25781. */
  25782. var partial = baseRest(function(func, partials) {
  25783. var holders = replaceHolders(partials, getHolder(partial));
  25784. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  25785. });
  25786. /**
  25787. * This method is like `_.partial` except that partially applied arguments
  25788. * are appended to the arguments it receives.
  25789. *
  25790. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  25791. * builds, may be used as a placeholder for partially applied arguments.
  25792. *
  25793. * **Note:** This method doesn't set the "length" property of partially
  25794. * applied functions.
  25795. *
  25796. * @static
  25797. * @memberOf _
  25798. * @since 1.0.0
  25799. * @category Function
  25800. * @param {Function} func The function to partially apply arguments to.
  25801. * @param {...*} [partials] The arguments to be partially applied.
  25802. * @returns {Function} Returns the new partially applied function.
  25803. * @example
  25804. *
  25805. * function greet(greeting, name) {
  25806. * return greeting + ' ' + name;
  25807. * }
  25808. *
  25809. * var greetFred = _.partialRight(greet, 'fred');
  25810. * greetFred('hi');
  25811. * // => 'hi fred'
  25812. *
  25813. * // Partially applied with placeholders.
  25814. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  25815. * sayHelloTo('fred');
  25816. * // => 'hello fred'
  25817. */
  25818. var partialRight = baseRest(function(func, partials) {
  25819. var holders = replaceHolders(partials, getHolder(partialRight));
  25820. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  25821. });
  25822. /**
  25823. * Creates a function that invokes `func` with arguments arranged according
  25824. * to the specified `indexes` where the argument value at the first index is
  25825. * provided as the first argument, the argument value at the second index is
  25826. * provided as the second argument, and so on.
  25827. *
  25828. * @static
  25829. * @memberOf _
  25830. * @since 3.0.0
  25831. * @category Function
  25832. * @param {Function} func The function to rearrange arguments for.
  25833. * @param {...(number|number[])} indexes The arranged argument indexes.
  25834. * @returns {Function} Returns the new function.
  25835. * @example
  25836. *
  25837. * var rearged = _.rearg(function(a, b, c) {
  25838. * return [a, b, c];
  25839. * }, [2, 0, 1]);
  25840. *
  25841. * rearged('b', 'c', 'a')
  25842. * // => ['a', 'b', 'c']
  25843. */
  25844. var rearg = flatRest(function(func, indexes) {
  25845. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  25846. });
  25847. /**
  25848. * Creates a function that invokes `func` with the `this` binding of the
  25849. * created function and arguments from `start` and beyond provided as
  25850. * an array.
  25851. *
  25852. * **Note:** This method is based on the
  25853. * [rest parameter](https://mdn.io/rest_parameters).
  25854. *
  25855. * @static
  25856. * @memberOf _
  25857. * @since 4.0.0
  25858. * @category Function
  25859. * @param {Function} func The function to apply a rest parameter to.
  25860. * @param {number} [start=func.length-1] The start position of the rest parameter.
  25861. * @returns {Function} Returns the new function.
  25862. * @example
  25863. *
  25864. * var say = _.rest(function(what, names) {
  25865. * return what + ' ' + _.initial(names).join(', ') +
  25866. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  25867. * });
  25868. *
  25869. * say('hello', 'fred', 'barney', 'pebbles');
  25870. * // => 'hello fred, barney, & pebbles'
  25871. */
  25872. function rest(func, start) {
  25873. if (typeof func != 'function') {
  25874. throw new TypeError(FUNC_ERROR_TEXT);
  25875. }
  25876. start = start === undefined ? start : toInteger(start);
  25877. return baseRest(func, start);
  25878. }
  25879. /**
  25880. * Creates a function that invokes `func` with the `this` binding of the
  25881. * create function and an array of arguments much like
  25882. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  25883. *
  25884. * **Note:** This method is based on the
  25885. * [spread operator](https://mdn.io/spread_operator).
  25886. *
  25887. * @static
  25888. * @memberOf _
  25889. * @since 3.2.0
  25890. * @category Function
  25891. * @param {Function} func The function to spread arguments over.
  25892. * @param {number} [start=0] The start position of the spread.
  25893. * @returns {Function} Returns the new function.
  25894. * @example
  25895. *
  25896. * var say = _.spread(function(who, what) {
  25897. * return who + ' says ' + what;
  25898. * });
  25899. *
  25900. * say(['fred', 'hello']);
  25901. * // => 'fred says hello'
  25902. *
  25903. * var numbers = Promise.all([
  25904. * Promise.resolve(40),
  25905. * Promise.resolve(36)
  25906. * ]);
  25907. *
  25908. * numbers.then(_.spread(function(x, y) {
  25909. * return x + y;
  25910. * }));
  25911. * // => a Promise of 76
  25912. */
  25913. function spread(func, start) {
  25914. if (typeof func != 'function') {
  25915. throw new TypeError(FUNC_ERROR_TEXT);
  25916. }
  25917. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  25918. return baseRest(function(args) {
  25919. var array = args[start],
  25920. otherArgs = castSlice(args, 0, start);
  25921. if (array) {
  25922. arrayPush(otherArgs, array);
  25923. }
  25924. return apply(func, this, otherArgs);
  25925. });
  25926. }
  25927. /**
  25928. * Creates a throttled function that only invokes `func` at most once per
  25929. * every `wait` milliseconds. The throttled function comes with a `cancel`
  25930. * method to cancel delayed `func` invocations and a `flush` method to
  25931. * immediately invoke them. Provide `options` to indicate whether `func`
  25932. * should be invoked on the leading and/or trailing edge of the `wait`
  25933. * timeout. The `func` is invoked with the last arguments provided to the
  25934. * throttled function. Subsequent calls to the throttled function return the
  25935. * result of the last `func` invocation.
  25936. *
  25937. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25938. * invoked on the trailing edge of the timeout only if the throttled function
  25939. * is invoked more than once during the `wait` timeout.
  25940. *
  25941. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25942. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25943. *
  25944. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25945. * for details over the differences between `_.throttle` and `_.debounce`.
  25946. *
  25947. * @static
  25948. * @memberOf _
  25949. * @since 0.1.0
  25950. * @category Function
  25951. * @param {Function} func The function to throttle.
  25952. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  25953. * @param {Object} [options={}] The options object.
  25954. * @param {boolean} [options.leading=true]
  25955. * Specify invoking on the leading edge of the timeout.
  25956. * @param {boolean} [options.trailing=true]
  25957. * Specify invoking on the trailing edge of the timeout.
  25958. * @returns {Function} Returns the new throttled function.
  25959. * @example
  25960. *
  25961. * // Avoid excessively updating the position while scrolling.
  25962. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  25963. *
  25964. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  25965. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  25966. * jQuery(element).on('click', throttled);
  25967. *
  25968. * // Cancel the trailing throttled invocation.
  25969. * jQuery(window).on('popstate', throttled.cancel);
  25970. */
  25971. function throttle(func, wait, options) {
  25972. var leading = true,
  25973. trailing = true;
  25974. if (typeof func != 'function') {
  25975. throw new TypeError(FUNC_ERROR_TEXT);
  25976. }
  25977. if (isObject(options)) {
  25978. leading = 'leading' in options ? !!options.leading : leading;
  25979. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25980. }
  25981. return debounce(func, wait, {
  25982. 'leading': leading,
  25983. 'maxWait': wait,
  25984. 'trailing': trailing
  25985. });
  25986. }
  25987. /**
  25988. * Creates a function that accepts up to one argument, ignoring any
  25989. * additional arguments.
  25990. *
  25991. * @static
  25992. * @memberOf _
  25993. * @since 4.0.0
  25994. * @category Function
  25995. * @param {Function} func The function to cap arguments for.
  25996. * @returns {Function} Returns the new capped function.
  25997. * @example
  25998. *
  25999. * _.map(['6', '8', '10'], _.unary(parseInt));
  26000. * // => [6, 8, 10]
  26001. */
  26002. function unary(func) {
  26003. return ary(func, 1);
  26004. }
  26005. /**
  26006. * Creates a function that provides `value` to `wrapper` as its first
  26007. * argument. Any additional arguments provided to the function are appended
  26008. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  26009. * binding of the created function.
  26010. *
  26011. * @static
  26012. * @memberOf _
  26013. * @since 0.1.0
  26014. * @category Function
  26015. * @param {*} value The value to wrap.
  26016. * @param {Function} [wrapper=identity] The wrapper function.
  26017. * @returns {Function} Returns the new function.
  26018. * @example
  26019. *
  26020. * var p = _.wrap(_.escape, function(func, text) {
  26021. * return '<p>' + func(text) + '</p>';
  26022. * });
  26023. *
  26024. * p('fred, barney, & pebbles');
  26025. * // => '<p>fred, barney, &amp; pebbles</p>'
  26026. */
  26027. function wrap(value, wrapper) {
  26028. return partial(castFunction(wrapper), value);
  26029. }
  26030. /*------------------------------------------------------------------------*/
  26031. /**
  26032. * Casts `value` as an array if it's not one.
  26033. *
  26034. * @static
  26035. * @memberOf _
  26036. * @since 4.4.0
  26037. * @category Lang
  26038. * @param {*} value The value to inspect.
  26039. * @returns {Array} Returns the cast array.
  26040. * @example
  26041. *
  26042. * _.castArray(1);
  26043. * // => [1]
  26044. *
  26045. * _.castArray({ 'a': 1 });
  26046. * // => [{ 'a': 1 }]
  26047. *
  26048. * _.castArray('abc');
  26049. * // => ['abc']
  26050. *
  26051. * _.castArray(null);
  26052. * // => [null]
  26053. *
  26054. * _.castArray(undefined);
  26055. * // => [undefined]
  26056. *
  26057. * _.castArray();
  26058. * // => []
  26059. *
  26060. * var array = [1, 2, 3];
  26061. * console.log(_.castArray(array) === array);
  26062. * // => true
  26063. */
  26064. function castArray() {
  26065. if (!arguments.length) {
  26066. return [];
  26067. }
  26068. var value = arguments[0];
  26069. return isArray(value) ? value : [value];
  26070. }
  26071. /**
  26072. * Creates a shallow clone of `value`.
  26073. *
  26074. * **Note:** This method is loosely based on the
  26075. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  26076. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  26077. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  26078. * arrays. The own enumerable properties of `arguments` objects are cloned
  26079. * as plain objects. An empty object is returned for uncloneable values such
  26080. * as error objects, functions, DOM nodes, and WeakMaps.
  26081. *
  26082. * @static
  26083. * @memberOf _
  26084. * @since 0.1.0
  26085. * @category Lang
  26086. * @param {*} value The value to clone.
  26087. * @returns {*} Returns the cloned value.
  26088. * @see _.cloneDeep
  26089. * @example
  26090. *
  26091. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26092. *
  26093. * var shallow = _.clone(objects);
  26094. * console.log(shallow[0] === objects[0]);
  26095. * // => true
  26096. */
  26097. function clone(value) {
  26098. return baseClone(value, CLONE_SYMBOLS_FLAG);
  26099. }
  26100. /**
  26101. * This method is like `_.clone` except that it accepts `customizer` which
  26102. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  26103. * cloning is handled by the method instead. The `customizer` is invoked with
  26104. * up to four arguments; (value [, index|key, object, stack]).
  26105. *
  26106. * @static
  26107. * @memberOf _
  26108. * @since 4.0.0
  26109. * @category Lang
  26110. * @param {*} value The value to clone.
  26111. * @param {Function} [customizer] The function to customize cloning.
  26112. * @returns {*} Returns the cloned value.
  26113. * @see _.cloneDeepWith
  26114. * @example
  26115. *
  26116. * function customizer(value) {
  26117. * if (_.isElement(value)) {
  26118. * return value.cloneNode(false);
  26119. * }
  26120. * }
  26121. *
  26122. * var el = _.cloneWith(document.body, customizer);
  26123. *
  26124. * console.log(el === document.body);
  26125. * // => false
  26126. * console.log(el.nodeName);
  26127. * // => 'BODY'
  26128. * console.log(el.childNodes.length);
  26129. * // => 0
  26130. */
  26131. function cloneWith(value, customizer) {
  26132. customizer = typeof customizer == 'function' ? customizer : undefined;
  26133. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  26134. }
  26135. /**
  26136. * This method is like `_.clone` except that it recursively clones `value`.
  26137. *
  26138. * @static
  26139. * @memberOf _
  26140. * @since 1.0.0
  26141. * @category Lang
  26142. * @param {*} value The value to recursively clone.
  26143. * @returns {*} Returns the deep cloned value.
  26144. * @see _.clone
  26145. * @example
  26146. *
  26147. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26148. *
  26149. * var deep = _.cloneDeep(objects);
  26150. * console.log(deep[0] === objects[0]);
  26151. * // => false
  26152. */
  26153. function cloneDeep(value) {
  26154. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  26155. }
  26156. /**
  26157. * This method is like `_.cloneWith` except that it recursively clones `value`.
  26158. *
  26159. * @static
  26160. * @memberOf _
  26161. * @since 4.0.0
  26162. * @category Lang
  26163. * @param {*} value The value to recursively clone.
  26164. * @param {Function} [customizer] The function to customize cloning.
  26165. * @returns {*} Returns the deep cloned value.
  26166. * @see _.cloneWith
  26167. * @example
  26168. *
  26169. * function customizer(value) {
  26170. * if (_.isElement(value)) {
  26171. * return value.cloneNode(true);
  26172. * }
  26173. * }
  26174. *
  26175. * var el = _.cloneDeepWith(document.body, customizer);
  26176. *
  26177. * console.log(el === document.body);
  26178. * // => false
  26179. * console.log(el.nodeName);
  26180. * // => 'BODY'
  26181. * console.log(el.childNodes.length);
  26182. * // => 20
  26183. */
  26184. function cloneDeepWith(value, customizer) {
  26185. customizer = typeof customizer == 'function' ? customizer : undefined;
  26186. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  26187. }
  26188. /**
  26189. * Checks if `object` conforms to `source` by invoking the predicate
  26190. * properties of `source` with the corresponding property values of `object`.
  26191. *
  26192. * **Note:** This method is equivalent to `_.conforms` when `source` is
  26193. * partially applied.
  26194. *
  26195. * @static
  26196. * @memberOf _
  26197. * @since 4.14.0
  26198. * @category Lang
  26199. * @param {Object} object The object to inspect.
  26200. * @param {Object} source The object of property predicates to conform to.
  26201. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  26202. * @example
  26203. *
  26204. * var object = { 'a': 1, 'b': 2 };
  26205. *
  26206. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  26207. * // => true
  26208. *
  26209. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  26210. * // => false
  26211. */
  26212. function conformsTo(object, source) {
  26213. return source == null || baseConformsTo(object, source, keys(source));
  26214. }
  26215. /**
  26216. * Performs a
  26217. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26218. * comparison between two values to determine if they are equivalent.
  26219. *
  26220. * @static
  26221. * @memberOf _
  26222. * @since 4.0.0
  26223. * @category Lang
  26224. * @param {*} value The value to compare.
  26225. * @param {*} other The other value to compare.
  26226. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26227. * @example
  26228. *
  26229. * var object = { 'a': 1 };
  26230. * var other = { 'a': 1 };
  26231. *
  26232. * _.eq(object, object);
  26233. * // => true
  26234. *
  26235. * _.eq(object, other);
  26236. * // => false
  26237. *
  26238. * _.eq('a', 'a');
  26239. * // => true
  26240. *
  26241. * _.eq('a', Object('a'));
  26242. * // => false
  26243. *
  26244. * _.eq(NaN, NaN);
  26245. * // => true
  26246. */
  26247. function eq(value, other) {
  26248. return value === other || (value !== value && other !== other);
  26249. }
  26250. /**
  26251. * Checks if `value` is greater than `other`.
  26252. *
  26253. * @static
  26254. * @memberOf _
  26255. * @since 3.9.0
  26256. * @category Lang
  26257. * @param {*} value The value to compare.
  26258. * @param {*} other The other value to compare.
  26259. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  26260. * else `false`.
  26261. * @see _.lt
  26262. * @example
  26263. *
  26264. * _.gt(3, 1);
  26265. * // => true
  26266. *
  26267. * _.gt(3, 3);
  26268. * // => false
  26269. *
  26270. * _.gt(1, 3);
  26271. * // => false
  26272. */
  26273. var gt = createRelationalOperation(baseGt);
  26274. /**
  26275. * Checks if `value` is greater than or equal to `other`.
  26276. *
  26277. * @static
  26278. * @memberOf _
  26279. * @since 3.9.0
  26280. * @category Lang
  26281. * @param {*} value The value to compare.
  26282. * @param {*} other The other value to compare.
  26283. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  26284. * `other`, else `false`.
  26285. * @see _.lte
  26286. * @example
  26287. *
  26288. * _.gte(3, 1);
  26289. * // => true
  26290. *
  26291. * _.gte(3, 3);
  26292. * // => true
  26293. *
  26294. * _.gte(1, 3);
  26295. * // => false
  26296. */
  26297. var gte = createRelationalOperation(function(value, other) {
  26298. return value >= other;
  26299. });
  26300. /**
  26301. * Checks if `value` is likely an `arguments` object.
  26302. *
  26303. * @static
  26304. * @memberOf _
  26305. * @since 0.1.0
  26306. * @category Lang
  26307. * @param {*} value The value to check.
  26308. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  26309. * else `false`.
  26310. * @example
  26311. *
  26312. * _.isArguments(function() { return arguments; }());
  26313. * // => true
  26314. *
  26315. * _.isArguments([1, 2, 3]);
  26316. * // => false
  26317. */
  26318. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  26319. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  26320. !propertyIsEnumerable.call(value, 'callee');
  26321. };
  26322. /**
  26323. * Checks if `value` is classified as an `Array` object.
  26324. *
  26325. * @static
  26326. * @memberOf _
  26327. * @since 0.1.0
  26328. * @category Lang
  26329. * @param {*} value The value to check.
  26330. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  26331. * @example
  26332. *
  26333. * _.isArray([1, 2, 3]);
  26334. * // => true
  26335. *
  26336. * _.isArray(document.body.children);
  26337. * // => false
  26338. *
  26339. * _.isArray('abc');
  26340. * // => false
  26341. *
  26342. * _.isArray(_.noop);
  26343. * // => false
  26344. */
  26345. var isArray = Array.isArray;
  26346. /**
  26347. * Checks if `value` is classified as an `ArrayBuffer` object.
  26348. *
  26349. * @static
  26350. * @memberOf _
  26351. * @since 4.3.0
  26352. * @category Lang
  26353. * @param {*} value The value to check.
  26354. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  26355. * @example
  26356. *
  26357. * _.isArrayBuffer(new ArrayBuffer(2));
  26358. * // => true
  26359. *
  26360. * _.isArrayBuffer(new Array(2));
  26361. * // => false
  26362. */
  26363. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  26364. /**
  26365. * Checks if `value` is array-like. A value is considered array-like if it's
  26366. * not a function and has a `value.length` that's an integer greater than or
  26367. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  26368. *
  26369. * @static
  26370. * @memberOf _
  26371. * @since 4.0.0
  26372. * @category Lang
  26373. * @param {*} value The value to check.
  26374. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  26375. * @example
  26376. *
  26377. * _.isArrayLike([1, 2, 3]);
  26378. * // => true
  26379. *
  26380. * _.isArrayLike(document.body.children);
  26381. * // => true
  26382. *
  26383. * _.isArrayLike('abc');
  26384. * // => true
  26385. *
  26386. * _.isArrayLike(_.noop);
  26387. * // => false
  26388. */
  26389. function isArrayLike(value) {
  26390. return value != null && isLength(value.length) && !isFunction(value);
  26391. }
  26392. /**
  26393. * This method is like `_.isArrayLike` except that it also checks if `value`
  26394. * is an object.
  26395. *
  26396. * @static
  26397. * @memberOf _
  26398. * @since 4.0.0
  26399. * @category Lang
  26400. * @param {*} value The value to check.
  26401. * @returns {boolean} Returns `true` if `value` is an array-like object,
  26402. * else `false`.
  26403. * @example
  26404. *
  26405. * _.isArrayLikeObject([1, 2, 3]);
  26406. * // => true
  26407. *
  26408. * _.isArrayLikeObject(document.body.children);
  26409. * // => true
  26410. *
  26411. * _.isArrayLikeObject('abc');
  26412. * // => false
  26413. *
  26414. * _.isArrayLikeObject(_.noop);
  26415. * // => false
  26416. */
  26417. function isArrayLikeObject(value) {
  26418. return isObjectLike(value) && isArrayLike(value);
  26419. }
  26420. /**
  26421. * Checks if `value` is classified as a boolean primitive or object.
  26422. *
  26423. * @static
  26424. * @memberOf _
  26425. * @since 0.1.0
  26426. * @category Lang
  26427. * @param {*} value The value to check.
  26428. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  26429. * @example
  26430. *
  26431. * _.isBoolean(false);
  26432. * // => true
  26433. *
  26434. * _.isBoolean(null);
  26435. * // => false
  26436. */
  26437. function isBoolean(value) {
  26438. return value === true || value === false ||
  26439. (isObjectLike(value) && baseGetTag(value) == boolTag);
  26440. }
  26441. /**
  26442. * Checks if `value` is a buffer.
  26443. *
  26444. * @static
  26445. * @memberOf _
  26446. * @since 4.3.0
  26447. * @category Lang
  26448. * @param {*} value The value to check.
  26449. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  26450. * @example
  26451. *
  26452. * _.isBuffer(new Buffer(2));
  26453. * // => true
  26454. *
  26455. * _.isBuffer(new Uint8Array(2));
  26456. * // => false
  26457. */
  26458. var isBuffer = nativeIsBuffer || stubFalse;
  26459. /**
  26460. * Checks if `value` is classified as a `Date` object.
  26461. *
  26462. * @static
  26463. * @memberOf _
  26464. * @since 0.1.0
  26465. * @category Lang
  26466. * @param {*} value The value to check.
  26467. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  26468. * @example
  26469. *
  26470. * _.isDate(new Date);
  26471. * // => true
  26472. *
  26473. * _.isDate('Mon April 23 2012');
  26474. * // => false
  26475. */
  26476. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  26477. /**
  26478. * Checks if `value` is likely a DOM element.
  26479. *
  26480. * @static
  26481. * @memberOf _
  26482. * @since 0.1.0
  26483. * @category Lang
  26484. * @param {*} value The value to check.
  26485. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  26486. * @example
  26487. *
  26488. * _.isElement(document.body);
  26489. * // => true
  26490. *
  26491. * _.isElement('<body>');
  26492. * // => false
  26493. */
  26494. function isElement(value) {
  26495. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  26496. }
  26497. /**
  26498. * Checks if `value` is an empty object, collection, map, or set.
  26499. *
  26500. * Objects are considered empty if they have no own enumerable string keyed
  26501. * properties.
  26502. *
  26503. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  26504. * jQuery-like collections are considered empty if they have a `length` of `0`.
  26505. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  26506. *
  26507. * @static
  26508. * @memberOf _
  26509. * @since 0.1.0
  26510. * @category Lang
  26511. * @param {*} value The value to check.
  26512. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  26513. * @example
  26514. *
  26515. * _.isEmpty(null);
  26516. * // => true
  26517. *
  26518. * _.isEmpty(true);
  26519. * // => true
  26520. *
  26521. * _.isEmpty(1);
  26522. * // => true
  26523. *
  26524. * _.isEmpty([1, 2, 3]);
  26525. * // => false
  26526. *
  26527. * _.isEmpty({ 'a': 1 });
  26528. * // => false
  26529. */
  26530. function isEmpty(value) {
  26531. if (value == null) {
  26532. return true;
  26533. }
  26534. if (isArrayLike(value) &&
  26535. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  26536. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  26537. return !value.length;
  26538. }
  26539. var tag = getTag(value);
  26540. if (tag == mapTag || tag == setTag) {
  26541. return !value.size;
  26542. }
  26543. if (isPrototype(value)) {
  26544. return !baseKeys(value).length;
  26545. }
  26546. for (var key in value) {
  26547. if (hasOwnProperty.call(value, key)) {
  26548. return false;
  26549. }
  26550. }
  26551. return true;
  26552. }
  26553. /**
  26554. * Performs a deep comparison between two values to determine if they are
  26555. * equivalent.
  26556. *
  26557. * **Note:** This method supports comparing arrays, array buffers, booleans,
  26558. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  26559. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  26560. * by their own, not inherited, enumerable properties. Functions and DOM
  26561. * nodes are compared by strict equality, i.e. `===`.
  26562. *
  26563. * @static
  26564. * @memberOf _
  26565. * @since 0.1.0
  26566. * @category Lang
  26567. * @param {*} value The value to compare.
  26568. * @param {*} other The other value to compare.
  26569. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26570. * @example
  26571. *
  26572. * var object = { 'a': 1 };
  26573. * var other = { 'a': 1 };
  26574. *
  26575. * _.isEqual(object, other);
  26576. * // => true
  26577. *
  26578. * object === other;
  26579. * // => false
  26580. */
  26581. function isEqual(value, other) {
  26582. return baseIsEqual(value, other);
  26583. }
  26584. /**
  26585. * This method is like `_.isEqual` except that it accepts `customizer` which
  26586. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26587. * are handled by the method instead. The `customizer` is invoked with up to
  26588. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  26589. *
  26590. * @static
  26591. * @memberOf _
  26592. * @since 4.0.0
  26593. * @category Lang
  26594. * @param {*} value The value to compare.
  26595. * @param {*} other The other value to compare.
  26596. * @param {Function} [customizer] The function to customize comparisons.
  26597. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26598. * @example
  26599. *
  26600. * function isGreeting(value) {
  26601. * return /^h(?:i|ello)$/.test(value);
  26602. * }
  26603. *
  26604. * function customizer(objValue, othValue) {
  26605. * if (isGreeting(objValue) && isGreeting(othValue)) {
  26606. * return true;
  26607. * }
  26608. * }
  26609. *
  26610. * var array = ['hello', 'goodbye'];
  26611. * var other = ['hi', 'goodbye'];
  26612. *
  26613. * _.isEqualWith(array, other, customizer);
  26614. * // => true
  26615. */
  26616. function isEqualWith(value, other, customizer) {
  26617. customizer = typeof customizer == 'function' ? customizer : undefined;
  26618. var result = customizer ? customizer(value, other) : undefined;
  26619. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  26620. }
  26621. /**
  26622. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  26623. * `SyntaxError`, `TypeError`, or `URIError` object.
  26624. *
  26625. * @static
  26626. * @memberOf _
  26627. * @since 3.0.0
  26628. * @category Lang
  26629. * @param {*} value The value to check.
  26630. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  26631. * @example
  26632. *
  26633. * _.isError(new Error);
  26634. * // => true
  26635. *
  26636. * _.isError(Error);
  26637. * // => false
  26638. */
  26639. function isError(value) {
  26640. if (!isObjectLike(value)) {
  26641. return false;
  26642. }
  26643. var tag = baseGetTag(value);
  26644. return tag == errorTag || tag == domExcTag ||
  26645. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  26646. }
  26647. /**
  26648. * Checks if `value` is a finite primitive number.
  26649. *
  26650. * **Note:** This method is based on
  26651. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  26652. *
  26653. * @static
  26654. * @memberOf _
  26655. * @since 0.1.0
  26656. * @category Lang
  26657. * @param {*} value The value to check.
  26658. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  26659. * @example
  26660. *
  26661. * _.isFinite(3);
  26662. * // => true
  26663. *
  26664. * _.isFinite(Number.MIN_VALUE);
  26665. * // => true
  26666. *
  26667. * _.isFinite(Infinity);
  26668. * // => false
  26669. *
  26670. * _.isFinite('3');
  26671. * // => false
  26672. */
  26673. function isFinite(value) {
  26674. return typeof value == 'number' && nativeIsFinite(value);
  26675. }
  26676. /**
  26677. * Checks if `value` is classified as a `Function` object.
  26678. *
  26679. * @static
  26680. * @memberOf _
  26681. * @since 0.1.0
  26682. * @category Lang
  26683. * @param {*} value The value to check.
  26684. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  26685. * @example
  26686. *
  26687. * _.isFunction(_);
  26688. * // => true
  26689. *
  26690. * _.isFunction(/abc/);
  26691. * // => false
  26692. */
  26693. function isFunction(value) {
  26694. if (!isObject(value)) {
  26695. return false;
  26696. }
  26697. // The use of `Object#toString` avoids issues with the `typeof` operator
  26698. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  26699. var tag = baseGetTag(value);
  26700. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  26701. }
  26702. /**
  26703. * Checks if `value` is an integer.
  26704. *
  26705. * **Note:** This method is based on
  26706. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  26707. *
  26708. * @static
  26709. * @memberOf _
  26710. * @since 4.0.0
  26711. * @category Lang
  26712. * @param {*} value The value to check.
  26713. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  26714. * @example
  26715. *
  26716. * _.isInteger(3);
  26717. * // => true
  26718. *
  26719. * _.isInteger(Number.MIN_VALUE);
  26720. * // => false
  26721. *
  26722. * _.isInteger(Infinity);
  26723. * // => false
  26724. *
  26725. * _.isInteger('3');
  26726. * // => false
  26727. */
  26728. function isInteger(value) {
  26729. return typeof value == 'number' && value == toInteger(value);
  26730. }
  26731. /**
  26732. * Checks if `value` is a valid array-like length.
  26733. *
  26734. * **Note:** This method is loosely based on
  26735. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  26736. *
  26737. * @static
  26738. * @memberOf _
  26739. * @since 4.0.0
  26740. * @category Lang
  26741. * @param {*} value The value to check.
  26742. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  26743. * @example
  26744. *
  26745. * _.isLength(3);
  26746. * // => true
  26747. *
  26748. * _.isLength(Number.MIN_VALUE);
  26749. * // => false
  26750. *
  26751. * _.isLength(Infinity);
  26752. * // => false
  26753. *
  26754. * _.isLength('3');
  26755. * // => false
  26756. */
  26757. function isLength(value) {
  26758. return typeof value == 'number' &&
  26759. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  26760. }
  26761. /**
  26762. * Checks if `value` is the
  26763. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  26764. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26765. *
  26766. * @static
  26767. * @memberOf _
  26768. * @since 0.1.0
  26769. * @category Lang
  26770. * @param {*} value The value to check.
  26771. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26772. * @example
  26773. *
  26774. * _.isObject({});
  26775. * // => true
  26776. *
  26777. * _.isObject([1, 2, 3]);
  26778. * // => true
  26779. *
  26780. * _.isObject(_.noop);
  26781. * // => true
  26782. *
  26783. * _.isObject(null);
  26784. * // => false
  26785. */
  26786. function isObject(value) {
  26787. var type = typeof value;
  26788. return value != null && (type == 'object' || type == 'function');
  26789. }
  26790. /**
  26791. * Checks if `value` is object-like. A value is object-like if it's not `null`
  26792. * and has a `typeof` result of "object".
  26793. *
  26794. * @static
  26795. * @memberOf _
  26796. * @since 4.0.0
  26797. * @category Lang
  26798. * @param {*} value The value to check.
  26799. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  26800. * @example
  26801. *
  26802. * _.isObjectLike({});
  26803. * // => true
  26804. *
  26805. * _.isObjectLike([1, 2, 3]);
  26806. * // => true
  26807. *
  26808. * _.isObjectLike(_.noop);
  26809. * // => false
  26810. *
  26811. * _.isObjectLike(null);
  26812. * // => false
  26813. */
  26814. function isObjectLike(value) {
  26815. return value != null && typeof value == 'object';
  26816. }
  26817. /**
  26818. * Checks if `value` is classified as a `Map` object.
  26819. *
  26820. * @static
  26821. * @memberOf _
  26822. * @since 4.3.0
  26823. * @category Lang
  26824. * @param {*} value The value to check.
  26825. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  26826. * @example
  26827. *
  26828. * _.isMap(new Map);
  26829. * // => true
  26830. *
  26831. * _.isMap(new WeakMap);
  26832. * // => false
  26833. */
  26834. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  26835. /**
  26836. * Performs a partial deep comparison between `object` and `source` to
  26837. * determine if `object` contains equivalent property values.
  26838. *
  26839. * **Note:** This method is equivalent to `_.matches` when `source` is
  26840. * partially applied.
  26841. *
  26842. * Partial comparisons will match empty array and empty object `source`
  26843. * values against any array or object value, respectively. See `_.isEqual`
  26844. * for a list of supported value comparisons.
  26845. *
  26846. * @static
  26847. * @memberOf _
  26848. * @since 3.0.0
  26849. * @category Lang
  26850. * @param {Object} object The object to inspect.
  26851. * @param {Object} source The object of property values to match.
  26852. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26853. * @example
  26854. *
  26855. * var object = { 'a': 1, 'b': 2 };
  26856. *
  26857. * _.isMatch(object, { 'b': 2 });
  26858. * // => true
  26859. *
  26860. * _.isMatch(object, { 'b': 1 });
  26861. * // => false
  26862. */
  26863. function isMatch(object, source) {
  26864. return object === source || baseIsMatch(object, source, getMatchData(source));
  26865. }
  26866. /**
  26867. * This method is like `_.isMatch` except that it accepts `customizer` which
  26868. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26869. * are handled by the method instead. The `customizer` is invoked with five
  26870. * arguments: (objValue, srcValue, index|key, object, source).
  26871. *
  26872. * @static
  26873. * @memberOf _
  26874. * @since 4.0.0
  26875. * @category Lang
  26876. * @param {Object} object The object to inspect.
  26877. * @param {Object} source The object of property values to match.
  26878. * @param {Function} [customizer] The function to customize comparisons.
  26879. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26880. * @example
  26881. *
  26882. * function isGreeting(value) {
  26883. * return /^h(?:i|ello)$/.test(value);
  26884. * }
  26885. *
  26886. * function customizer(objValue, srcValue) {
  26887. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  26888. * return true;
  26889. * }
  26890. * }
  26891. *
  26892. * var object = { 'greeting': 'hello' };
  26893. * var source = { 'greeting': 'hi' };
  26894. *
  26895. * _.isMatchWith(object, source, customizer);
  26896. * // => true
  26897. */
  26898. function isMatchWith(object, source, customizer) {
  26899. customizer = typeof customizer == 'function' ? customizer : undefined;
  26900. return baseIsMatch(object, source, getMatchData(source), customizer);
  26901. }
  26902. /**
  26903. * Checks if `value` is `NaN`.
  26904. *
  26905. * **Note:** This method is based on
  26906. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  26907. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  26908. * `undefined` and other non-number values.
  26909. *
  26910. * @static
  26911. * @memberOf _
  26912. * @since 0.1.0
  26913. * @category Lang
  26914. * @param {*} value The value to check.
  26915. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26916. * @example
  26917. *
  26918. * _.isNaN(NaN);
  26919. * // => true
  26920. *
  26921. * _.isNaN(new Number(NaN));
  26922. * // => true
  26923. *
  26924. * isNaN(undefined);
  26925. * // => true
  26926. *
  26927. * _.isNaN(undefined);
  26928. * // => false
  26929. */
  26930. function isNaN(value) {
  26931. // An `NaN` primitive is the only value that is not equal to itself.
  26932. // Perform the `toStringTag` check first to avoid errors with some
  26933. // ActiveX objects in IE.
  26934. return isNumber(value) && value != +value;
  26935. }
  26936. /**
  26937. * Checks if `value` is a pristine native function.
  26938. *
  26939. * **Note:** This method can't reliably detect native functions in the presence
  26940. * of the core-js package because core-js circumvents this kind of detection.
  26941. * Despite multiple requests, the core-js maintainer has made it clear: any
  26942. * attempt to fix the detection will be obstructed. As a result, we're left
  26943. * with little choice but to throw an error. Unfortunately, this also affects
  26944. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  26945. * which rely on core-js.
  26946. *
  26947. * @static
  26948. * @memberOf _
  26949. * @since 3.0.0
  26950. * @category Lang
  26951. * @param {*} value The value to check.
  26952. * @returns {boolean} Returns `true` if `value` is a native function,
  26953. * else `false`.
  26954. * @example
  26955. *
  26956. * _.isNative(Array.prototype.push);
  26957. * // => true
  26958. *
  26959. * _.isNative(_);
  26960. * // => false
  26961. */
  26962. function isNative(value) {
  26963. if (isMaskable(value)) {
  26964. throw new Error(CORE_ERROR_TEXT);
  26965. }
  26966. return baseIsNative(value);
  26967. }
  26968. /**
  26969. * Checks if `value` is `null`.
  26970. *
  26971. * @static
  26972. * @memberOf _
  26973. * @since 0.1.0
  26974. * @category Lang
  26975. * @param {*} value The value to check.
  26976. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  26977. * @example
  26978. *
  26979. * _.isNull(null);
  26980. * // => true
  26981. *
  26982. * _.isNull(void 0);
  26983. * // => false
  26984. */
  26985. function isNull(value) {
  26986. return value === null;
  26987. }
  26988. /**
  26989. * Checks if `value` is `null` or `undefined`.
  26990. *
  26991. * @static
  26992. * @memberOf _
  26993. * @since 4.0.0
  26994. * @category Lang
  26995. * @param {*} value The value to check.
  26996. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  26997. * @example
  26998. *
  26999. * _.isNil(null);
  27000. * // => true
  27001. *
  27002. * _.isNil(void 0);
  27003. * // => true
  27004. *
  27005. * _.isNil(NaN);
  27006. * // => false
  27007. */
  27008. function isNil(value) {
  27009. return value == null;
  27010. }
  27011. /**
  27012. * Checks if `value` is classified as a `Number` primitive or object.
  27013. *
  27014. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  27015. * classified as numbers, use the `_.isFinite` method.
  27016. *
  27017. * @static
  27018. * @memberOf _
  27019. * @since 0.1.0
  27020. * @category Lang
  27021. * @param {*} value The value to check.
  27022. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  27023. * @example
  27024. *
  27025. * _.isNumber(3);
  27026. * // => true
  27027. *
  27028. * _.isNumber(Number.MIN_VALUE);
  27029. * // => true
  27030. *
  27031. * _.isNumber(Infinity);
  27032. * // => true
  27033. *
  27034. * _.isNumber('3');
  27035. * // => false
  27036. */
  27037. function isNumber(value) {
  27038. return typeof value == 'number' ||
  27039. (isObjectLike(value) && baseGetTag(value) == numberTag);
  27040. }
  27041. /**
  27042. * Checks if `value` is a plain object, that is, an object created by the
  27043. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  27044. *
  27045. * @static
  27046. * @memberOf _
  27047. * @since 0.8.0
  27048. * @category Lang
  27049. * @param {*} value The value to check.
  27050. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  27051. * @example
  27052. *
  27053. * function Foo() {
  27054. * this.a = 1;
  27055. * }
  27056. *
  27057. * _.isPlainObject(new Foo);
  27058. * // => false
  27059. *
  27060. * _.isPlainObject([1, 2, 3]);
  27061. * // => false
  27062. *
  27063. * _.isPlainObject({ 'x': 0, 'y': 0 });
  27064. * // => true
  27065. *
  27066. * _.isPlainObject(Object.create(null));
  27067. * // => true
  27068. */
  27069. function isPlainObject(value) {
  27070. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  27071. return false;
  27072. }
  27073. var proto = getPrototype(value);
  27074. if (proto === null) {
  27075. return true;
  27076. }
  27077. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  27078. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  27079. funcToString.call(Ctor) == objectCtorString;
  27080. }
  27081. /**
  27082. * Checks if `value` is classified as a `RegExp` object.
  27083. *
  27084. * @static
  27085. * @memberOf _
  27086. * @since 0.1.0
  27087. * @category Lang
  27088. * @param {*} value The value to check.
  27089. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  27090. * @example
  27091. *
  27092. * _.isRegExp(/abc/);
  27093. * // => true
  27094. *
  27095. * _.isRegExp('/abc/');
  27096. * // => false
  27097. */
  27098. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  27099. /**
  27100. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  27101. * double precision number which isn't the result of a rounded unsafe integer.
  27102. *
  27103. * **Note:** This method is based on
  27104. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  27105. *
  27106. * @static
  27107. * @memberOf _
  27108. * @since 4.0.0
  27109. * @category Lang
  27110. * @param {*} value The value to check.
  27111. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  27112. * @example
  27113. *
  27114. * _.isSafeInteger(3);
  27115. * // => true
  27116. *
  27117. * _.isSafeInteger(Number.MIN_VALUE);
  27118. * // => false
  27119. *
  27120. * _.isSafeInteger(Infinity);
  27121. * // => false
  27122. *
  27123. * _.isSafeInteger('3');
  27124. * // => false
  27125. */
  27126. function isSafeInteger(value) {
  27127. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  27128. }
  27129. /**
  27130. * Checks if `value` is classified as a `Set` object.
  27131. *
  27132. * @static
  27133. * @memberOf _
  27134. * @since 4.3.0
  27135. * @category Lang
  27136. * @param {*} value The value to check.
  27137. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  27138. * @example
  27139. *
  27140. * _.isSet(new Set);
  27141. * // => true
  27142. *
  27143. * _.isSet(new WeakSet);
  27144. * // => false
  27145. */
  27146. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  27147. /**
  27148. * Checks if `value` is classified as a `String` primitive or object.
  27149. *
  27150. * @static
  27151. * @since 0.1.0
  27152. * @memberOf _
  27153. * @category Lang
  27154. * @param {*} value The value to check.
  27155. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  27156. * @example
  27157. *
  27158. * _.isString('abc');
  27159. * // => true
  27160. *
  27161. * _.isString(1);
  27162. * // => false
  27163. */
  27164. function isString(value) {
  27165. return typeof value == 'string' ||
  27166. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  27167. }
  27168. /**
  27169. * Checks if `value` is classified as a `Symbol` primitive or object.
  27170. *
  27171. * @static
  27172. * @memberOf _
  27173. * @since 4.0.0
  27174. * @category Lang
  27175. * @param {*} value The value to check.
  27176. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  27177. * @example
  27178. *
  27179. * _.isSymbol(Symbol.iterator);
  27180. * // => true
  27181. *
  27182. * _.isSymbol('abc');
  27183. * // => false
  27184. */
  27185. function isSymbol(value) {
  27186. return typeof value == 'symbol' ||
  27187. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  27188. }
  27189. /**
  27190. * Checks if `value` is classified as a typed array.
  27191. *
  27192. * @static
  27193. * @memberOf _
  27194. * @since 3.0.0
  27195. * @category Lang
  27196. * @param {*} value The value to check.
  27197. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  27198. * @example
  27199. *
  27200. * _.isTypedArray(new Uint8Array);
  27201. * // => true
  27202. *
  27203. * _.isTypedArray([]);
  27204. * // => false
  27205. */
  27206. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  27207. /**
  27208. * Checks if `value` is `undefined`.
  27209. *
  27210. * @static
  27211. * @since 0.1.0
  27212. * @memberOf _
  27213. * @category Lang
  27214. * @param {*} value The value to check.
  27215. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  27216. * @example
  27217. *
  27218. * _.isUndefined(void 0);
  27219. * // => true
  27220. *
  27221. * _.isUndefined(null);
  27222. * // => false
  27223. */
  27224. function isUndefined(value) {
  27225. return value === undefined;
  27226. }
  27227. /**
  27228. * Checks if `value` is classified as a `WeakMap` object.
  27229. *
  27230. * @static
  27231. * @memberOf _
  27232. * @since 4.3.0
  27233. * @category Lang
  27234. * @param {*} value The value to check.
  27235. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  27236. * @example
  27237. *
  27238. * _.isWeakMap(new WeakMap);
  27239. * // => true
  27240. *
  27241. * _.isWeakMap(new Map);
  27242. * // => false
  27243. */
  27244. function isWeakMap(value) {
  27245. return isObjectLike(value) && getTag(value) == weakMapTag;
  27246. }
  27247. /**
  27248. * Checks if `value` is classified as a `WeakSet` object.
  27249. *
  27250. * @static
  27251. * @memberOf _
  27252. * @since 4.3.0
  27253. * @category Lang
  27254. * @param {*} value The value to check.
  27255. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  27256. * @example
  27257. *
  27258. * _.isWeakSet(new WeakSet);
  27259. * // => true
  27260. *
  27261. * _.isWeakSet(new Set);
  27262. * // => false
  27263. */
  27264. function isWeakSet(value) {
  27265. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  27266. }
  27267. /**
  27268. * Checks if `value` is less than `other`.
  27269. *
  27270. * @static
  27271. * @memberOf _
  27272. * @since 3.9.0
  27273. * @category Lang
  27274. * @param {*} value The value to compare.
  27275. * @param {*} other The other value to compare.
  27276. * @returns {boolean} Returns `true` if `value` is less than `other`,
  27277. * else `false`.
  27278. * @see _.gt
  27279. * @example
  27280. *
  27281. * _.lt(1, 3);
  27282. * // => true
  27283. *
  27284. * _.lt(3, 3);
  27285. * // => false
  27286. *
  27287. * _.lt(3, 1);
  27288. * // => false
  27289. */
  27290. var lt = createRelationalOperation(baseLt);
  27291. /**
  27292. * Checks if `value` is less than or equal to `other`.
  27293. *
  27294. * @static
  27295. * @memberOf _
  27296. * @since 3.9.0
  27297. * @category Lang
  27298. * @param {*} value The value to compare.
  27299. * @param {*} other The other value to compare.
  27300. * @returns {boolean} Returns `true` if `value` is less than or equal to
  27301. * `other`, else `false`.
  27302. * @see _.gte
  27303. * @example
  27304. *
  27305. * _.lte(1, 3);
  27306. * // => true
  27307. *
  27308. * _.lte(3, 3);
  27309. * // => true
  27310. *
  27311. * _.lte(3, 1);
  27312. * // => false
  27313. */
  27314. var lte = createRelationalOperation(function(value, other) {
  27315. return value <= other;
  27316. });
  27317. /**
  27318. * Converts `value` to an array.
  27319. *
  27320. * @static
  27321. * @since 0.1.0
  27322. * @memberOf _
  27323. * @category Lang
  27324. * @param {*} value The value to convert.
  27325. * @returns {Array} Returns the converted array.
  27326. * @example
  27327. *
  27328. * _.toArray({ 'a': 1, 'b': 2 });
  27329. * // => [1, 2]
  27330. *
  27331. * _.toArray('abc');
  27332. * // => ['a', 'b', 'c']
  27333. *
  27334. * _.toArray(1);
  27335. * // => []
  27336. *
  27337. * _.toArray(null);
  27338. * // => []
  27339. */
  27340. function toArray(value) {
  27341. if (!value) {
  27342. return [];
  27343. }
  27344. if (isArrayLike(value)) {
  27345. return isString(value) ? stringToArray(value) : copyArray(value);
  27346. }
  27347. if (symIterator && value[symIterator]) {
  27348. return iteratorToArray(value[symIterator]());
  27349. }
  27350. var tag = getTag(value),
  27351. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  27352. return func(value);
  27353. }
  27354. /**
  27355. * Converts `value` to a finite number.
  27356. *
  27357. * @static
  27358. * @memberOf _
  27359. * @since 4.12.0
  27360. * @category Lang
  27361. * @param {*} value The value to convert.
  27362. * @returns {number} Returns the converted number.
  27363. * @example
  27364. *
  27365. * _.toFinite(3.2);
  27366. * // => 3.2
  27367. *
  27368. * _.toFinite(Number.MIN_VALUE);
  27369. * // => 5e-324
  27370. *
  27371. * _.toFinite(Infinity);
  27372. * // => 1.7976931348623157e+308
  27373. *
  27374. * _.toFinite('3.2');
  27375. * // => 3.2
  27376. */
  27377. function toFinite(value) {
  27378. if (!value) {
  27379. return value === 0 ? value : 0;
  27380. }
  27381. value = toNumber(value);
  27382. if (value === INFINITY || value === -INFINITY) {
  27383. var sign = (value < 0 ? -1 : 1);
  27384. return sign * MAX_INTEGER;
  27385. }
  27386. return value === value ? value : 0;
  27387. }
  27388. /**
  27389. * Converts `value` to an integer.
  27390. *
  27391. * **Note:** This method is loosely based on
  27392. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  27393. *
  27394. * @static
  27395. * @memberOf _
  27396. * @since 4.0.0
  27397. * @category Lang
  27398. * @param {*} value The value to convert.
  27399. * @returns {number} Returns the converted integer.
  27400. * @example
  27401. *
  27402. * _.toInteger(3.2);
  27403. * // => 3
  27404. *
  27405. * _.toInteger(Number.MIN_VALUE);
  27406. * // => 0
  27407. *
  27408. * _.toInteger(Infinity);
  27409. * // => 1.7976931348623157e+308
  27410. *
  27411. * _.toInteger('3.2');
  27412. * // => 3
  27413. */
  27414. function toInteger(value) {
  27415. var result = toFinite(value),
  27416. remainder = result % 1;
  27417. return result === result ? (remainder ? result - remainder : result) : 0;
  27418. }
  27419. /**
  27420. * Converts `value` to an integer suitable for use as the length of an
  27421. * array-like object.
  27422. *
  27423. * **Note:** This method is based on
  27424. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  27425. *
  27426. * @static
  27427. * @memberOf _
  27428. * @since 4.0.0
  27429. * @category Lang
  27430. * @param {*} value The value to convert.
  27431. * @returns {number} Returns the converted integer.
  27432. * @example
  27433. *
  27434. * _.toLength(3.2);
  27435. * // => 3
  27436. *
  27437. * _.toLength(Number.MIN_VALUE);
  27438. * // => 0
  27439. *
  27440. * _.toLength(Infinity);
  27441. * // => 4294967295
  27442. *
  27443. * _.toLength('3.2');
  27444. * // => 3
  27445. */
  27446. function toLength(value) {
  27447. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  27448. }
  27449. /**
  27450. * Converts `value` to a number.
  27451. *
  27452. * @static
  27453. * @memberOf _
  27454. * @since 4.0.0
  27455. * @category Lang
  27456. * @param {*} value The value to process.
  27457. * @returns {number} Returns the number.
  27458. * @example
  27459. *
  27460. * _.toNumber(3.2);
  27461. * // => 3.2
  27462. *
  27463. * _.toNumber(Number.MIN_VALUE);
  27464. * // => 5e-324
  27465. *
  27466. * _.toNumber(Infinity);
  27467. * // => Infinity
  27468. *
  27469. * _.toNumber('3.2');
  27470. * // => 3.2
  27471. */
  27472. function toNumber(value) {
  27473. if (typeof value == 'number') {
  27474. return value;
  27475. }
  27476. if (isSymbol(value)) {
  27477. return NAN;
  27478. }
  27479. if (isObject(value)) {
  27480. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  27481. value = isObject(other) ? (other + '') : other;
  27482. }
  27483. if (typeof value != 'string') {
  27484. return value === 0 ? value : +value;
  27485. }
  27486. value = value.replace(reTrim, '');
  27487. var isBinary = reIsBinary.test(value);
  27488. return (isBinary || reIsOctal.test(value))
  27489. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  27490. : (reIsBadHex.test(value) ? NAN : +value);
  27491. }
  27492. /**
  27493. * Converts `value` to a plain object flattening inherited enumerable string
  27494. * keyed properties of `value` to own properties of the plain object.
  27495. *
  27496. * @static
  27497. * @memberOf _
  27498. * @since 3.0.0
  27499. * @category Lang
  27500. * @param {*} value The value to convert.
  27501. * @returns {Object} Returns the converted plain object.
  27502. * @example
  27503. *
  27504. * function Foo() {
  27505. * this.b = 2;
  27506. * }
  27507. *
  27508. * Foo.prototype.c = 3;
  27509. *
  27510. * _.assign({ 'a': 1 }, new Foo);
  27511. * // => { 'a': 1, 'b': 2 }
  27512. *
  27513. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  27514. * // => { 'a': 1, 'b': 2, 'c': 3 }
  27515. */
  27516. function toPlainObject(value) {
  27517. return copyObject(value, keysIn(value));
  27518. }
  27519. /**
  27520. * Converts `value` to a safe integer. A safe integer can be compared and
  27521. * represented correctly.
  27522. *
  27523. * @static
  27524. * @memberOf _
  27525. * @since 4.0.0
  27526. * @category Lang
  27527. * @param {*} value The value to convert.
  27528. * @returns {number} Returns the converted integer.
  27529. * @example
  27530. *
  27531. * _.toSafeInteger(3.2);
  27532. * // => 3
  27533. *
  27534. * _.toSafeInteger(Number.MIN_VALUE);
  27535. * // => 0
  27536. *
  27537. * _.toSafeInteger(Infinity);
  27538. * // => 9007199254740991
  27539. *
  27540. * _.toSafeInteger('3.2');
  27541. * // => 3
  27542. */
  27543. function toSafeInteger(value) {
  27544. return value
  27545. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  27546. : (value === 0 ? value : 0);
  27547. }
  27548. /**
  27549. * Converts `value` to a string. An empty string is returned for `null`
  27550. * and `undefined` values. The sign of `-0` is preserved.
  27551. *
  27552. * @static
  27553. * @memberOf _
  27554. * @since 4.0.0
  27555. * @category Lang
  27556. * @param {*} value The value to convert.
  27557. * @returns {string} Returns the converted string.
  27558. * @example
  27559. *
  27560. * _.toString(null);
  27561. * // => ''
  27562. *
  27563. * _.toString(-0);
  27564. * // => '-0'
  27565. *
  27566. * _.toString([1, 2, 3]);
  27567. * // => '1,2,3'
  27568. */
  27569. function toString(value) {
  27570. return value == null ? '' : baseToString(value);
  27571. }
  27572. /*------------------------------------------------------------------------*/
  27573. /**
  27574. * Assigns own enumerable string keyed properties of source objects to the
  27575. * destination object. Source objects are applied from left to right.
  27576. * Subsequent sources overwrite property assignments of previous sources.
  27577. *
  27578. * **Note:** This method mutates `object` and is loosely based on
  27579. * [`Object.assign`](https://mdn.io/Object/assign).
  27580. *
  27581. * @static
  27582. * @memberOf _
  27583. * @since 0.10.0
  27584. * @category Object
  27585. * @param {Object} object The destination object.
  27586. * @param {...Object} [sources] The source objects.
  27587. * @returns {Object} Returns `object`.
  27588. * @see _.assignIn
  27589. * @example
  27590. *
  27591. * function Foo() {
  27592. * this.a = 1;
  27593. * }
  27594. *
  27595. * function Bar() {
  27596. * this.c = 3;
  27597. * }
  27598. *
  27599. * Foo.prototype.b = 2;
  27600. * Bar.prototype.d = 4;
  27601. *
  27602. * _.assign({ 'a': 0 }, new Foo, new Bar);
  27603. * // => { 'a': 1, 'c': 3 }
  27604. */
  27605. var assign = createAssigner(function(object, source) {
  27606. if (isPrototype(source) || isArrayLike(source)) {
  27607. copyObject(source, keys(source), object);
  27608. return;
  27609. }
  27610. for (var key in source) {
  27611. if (hasOwnProperty.call(source, key)) {
  27612. assignValue(object, key, source[key]);
  27613. }
  27614. }
  27615. });
  27616. /**
  27617. * This method is like `_.assign` except that it iterates over own and
  27618. * inherited source properties.
  27619. *
  27620. * **Note:** This method mutates `object`.
  27621. *
  27622. * @static
  27623. * @memberOf _
  27624. * @since 4.0.0
  27625. * @alias extend
  27626. * @category Object
  27627. * @param {Object} object The destination object.
  27628. * @param {...Object} [sources] The source objects.
  27629. * @returns {Object} Returns `object`.
  27630. * @see _.assign
  27631. * @example
  27632. *
  27633. * function Foo() {
  27634. * this.a = 1;
  27635. * }
  27636. *
  27637. * function Bar() {
  27638. * this.c = 3;
  27639. * }
  27640. *
  27641. * Foo.prototype.b = 2;
  27642. * Bar.prototype.d = 4;
  27643. *
  27644. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  27645. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  27646. */
  27647. var assignIn = createAssigner(function(object, source) {
  27648. copyObject(source, keysIn(source), object);
  27649. });
  27650. /**
  27651. * This method is like `_.assignIn` except that it accepts `customizer`
  27652. * which is invoked to produce the assigned values. If `customizer` returns
  27653. * `undefined`, assignment is handled by the method instead. The `customizer`
  27654. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27655. *
  27656. * **Note:** This method mutates `object`.
  27657. *
  27658. * @static
  27659. * @memberOf _
  27660. * @since 4.0.0
  27661. * @alias extendWith
  27662. * @category Object
  27663. * @param {Object} object The destination object.
  27664. * @param {...Object} sources The source objects.
  27665. * @param {Function} [customizer] The function to customize assigned values.
  27666. * @returns {Object} Returns `object`.
  27667. * @see _.assignWith
  27668. * @example
  27669. *
  27670. * function customizer(objValue, srcValue) {
  27671. * return _.isUndefined(objValue) ? srcValue : objValue;
  27672. * }
  27673. *
  27674. * var defaults = _.partialRight(_.assignInWith, customizer);
  27675. *
  27676. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27677. * // => { 'a': 1, 'b': 2 }
  27678. */
  27679. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  27680. copyObject(source, keysIn(source), object, customizer);
  27681. });
  27682. /**
  27683. * This method is like `_.assign` except that it accepts `customizer`
  27684. * which is invoked to produce the assigned values. If `customizer` returns
  27685. * `undefined`, assignment is handled by the method instead. The `customizer`
  27686. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27687. *
  27688. * **Note:** This method mutates `object`.
  27689. *
  27690. * @static
  27691. * @memberOf _
  27692. * @since 4.0.0
  27693. * @category Object
  27694. * @param {Object} object The destination object.
  27695. * @param {...Object} sources The source objects.
  27696. * @param {Function} [customizer] The function to customize assigned values.
  27697. * @returns {Object} Returns `object`.
  27698. * @see _.assignInWith
  27699. * @example
  27700. *
  27701. * function customizer(objValue, srcValue) {
  27702. * return _.isUndefined(objValue) ? srcValue : objValue;
  27703. * }
  27704. *
  27705. * var defaults = _.partialRight(_.assignWith, customizer);
  27706. *
  27707. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27708. * // => { 'a': 1, 'b': 2 }
  27709. */
  27710. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  27711. copyObject(source, keys(source), object, customizer);
  27712. });
  27713. /**
  27714. * Creates an array of values corresponding to `paths` of `object`.
  27715. *
  27716. * @static
  27717. * @memberOf _
  27718. * @since 1.0.0
  27719. * @category Object
  27720. * @param {Object} object The object to iterate over.
  27721. * @param {...(string|string[])} [paths] The property paths to pick.
  27722. * @returns {Array} Returns the picked values.
  27723. * @example
  27724. *
  27725. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  27726. *
  27727. * _.at(object, ['a[0].b.c', 'a[1]']);
  27728. * // => [3, 4]
  27729. */
  27730. var at = flatRest(baseAt);
  27731. /**
  27732. * Creates an object that inherits from the `prototype` object. If a
  27733. * `properties` object is given, its own enumerable string keyed properties
  27734. * are assigned to the created object.
  27735. *
  27736. * @static
  27737. * @memberOf _
  27738. * @since 2.3.0
  27739. * @category Object
  27740. * @param {Object} prototype The object to inherit from.
  27741. * @param {Object} [properties] The properties to assign to the object.
  27742. * @returns {Object} Returns the new object.
  27743. * @example
  27744. *
  27745. * function Shape() {
  27746. * this.x = 0;
  27747. * this.y = 0;
  27748. * }
  27749. *
  27750. * function Circle() {
  27751. * Shape.call(this);
  27752. * }
  27753. *
  27754. * Circle.prototype = _.create(Shape.prototype, {
  27755. * 'constructor': Circle
  27756. * });
  27757. *
  27758. * var circle = new Circle;
  27759. * circle instanceof Circle;
  27760. * // => true
  27761. *
  27762. * circle instanceof Shape;
  27763. * // => true
  27764. */
  27765. function create(prototype, properties) {
  27766. var result = baseCreate(prototype);
  27767. return properties == null ? result : baseAssign(result, properties);
  27768. }
  27769. /**
  27770. * Assigns own and inherited enumerable string keyed properties of source
  27771. * objects to the destination object for all destination properties that
  27772. * resolve to `undefined`. Source objects are applied from left to right.
  27773. * Once a property is set, additional values of the same property are ignored.
  27774. *
  27775. * **Note:** This method mutates `object`.
  27776. *
  27777. * @static
  27778. * @since 0.1.0
  27779. * @memberOf _
  27780. * @category Object
  27781. * @param {Object} object The destination object.
  27782. * @param {...Object} [sources] The source objects.
  27783. * @returns {Object} Returns `object`.
  27784. * @see _.defaultsDeep
  27785. * @example
  27786. *
  27787. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27788. * // => { 'a': 1, 'b': 2 }
  27789. */
  27790. var defaults = baseRest(function(object, sources) {
  27791. object = Object(object);
  27792. var index = -1;
  27793. var length = sources.length;
  27794. var guard = length > 2 ? sources[2] : undefined;
  27795. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  27796. length = 1;
  27797. }
  27798. while (++index < length) {
  27799. var source = sources[index];
  27800. var props = keysIn(source);
  27801. var propsIndex = -1;
  27802. var propsLength = props.length;
  27803. while (++propsIndex < propsLength) {
  27804. var key = props[propsIndex];
  27805. var value = object[key];
  27806. if (value === undefined ||
  27807. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  27808. object[key] = source[key];
  27809. }
  27810. }
  27811. }
  27812. return object;
  27813. });
  27814. /**
  27815. * This method is like `_.defaults` except that it recursively assigns
  27816. * default properties.
  27817. *
  27818. * **Note:** This method mutates `object`.
  27819. *
  27820. * @static
  27821. * @memberOf _
  27822. * @since 3.10.0
  27823. * @category Object
  27824. * @param {Object} object The destination object.
  27825. * @param {...Object} [sources] The source objects.
  27826. * @returns {Object} Returns `object`.
  27827. * @see _.defaults
  27828. * @example
  27829. *
  27830. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  27831. * // => { 'a': { 'b': 2, 'c': 3 } }
  27832. */
  27833. var defaultsDeep = baseRest(function(args) {
  27834. args.push(undefined, customDefaultsMerge);
  27835. return apply(mergeWith, undefined, args);
  27836. });
  27837. /**
  27838. * This method is like `_.find` except that it returns the key of the first
  27839. * element `predicate` returns truthy for instead of the element itself.
  27840. *
  27841. * @static
  27842. * @memberOf _
  27843. * @since 1.1.0
  27844. * @category Object
  27845. * @param {Object} object The object to inspect.
  27846. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27847. * @returns {string|undefined} Returns the key of the matched element,
  27848. * else `undefined`.
  27849. * @example
  27850. *
  27851. * var users = {
  27852. * 'barney': { 'age': 36, 'active': true },
  27853. * 'fred': { 'age': 40, 'active': false },
  27854. * 'pebbles': { 'age': 1, 'active': true }
  27855. * };
  27856. *
  27857. * _.findKey(users, function(o) { return o.age < 40; });
  27858. * // => 'barney' (iteration order is not guaranteed)
  27859. *
  27860. * // The `_.matches` iteratee shorthand.
  27861. * _.findKey(users, { 'age': 1, 'active': true });
  27862. * // => 'pebbles'
  27863. *
  27864. * // The `_.matchesProperty` iteratee shorthand.
  27865. * _.findKey(users, ['active', false]);
  27866. * // => 'fred'
  27867. *
  27868. * // The `_.property` iteratee shorthand.
  27869. * _.findKey(users, 'active');
  27870. * // => 'barney'
  27871. */
  27872. function findKey(object, predicate) {
  27873. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  27874. }
  27875. /**
  27876. * This method is like `_.findKey` except that it iterates over elements of
  27877. * a collection in the opposite order.
  27878. *
  27879. * @static
  27880. * @memberOf _
  27881. * @since 2.0.0
  27882. * @category Object
  27883. * @param {Object} object The object to inspect.
  27884. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27885. * @returns {string|undefined} Returns the key of the matched element,
  27886. * else `undefined`.
  27887. * @example
  27888. *
  27889. * var users = {
  27890. * 'barney': { 'age': 36, 'active': true },
  27891. * 'fred': { 'age': 40, 'active': false },
  27892. * 'pebbles': { 'age': 1, 'active': true }
  27893. * };
  27894. *
  27895. * _.findLastKey(users, function(o) { return o.age < 40; });
  27896. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  27897. *
  27898. * // The `_.matches` iteratee shorthand.
  27899. * _.findLastKey(users, { 'age': 36, 'active': true });
  27900. * // => 'barney'
  27901. *
  27902. * // The `_.matchesProperty` iteratee shorthand.
  27903. * _.findLastKey(users, ['active', false]);
  27904. * // => 'fred'
  27905. *
  27906. * // The `_.property` iteratee shorthand.
  27907. * _.findLastKey(users, 'active');
  27908. * // => 'pebbles'
  27909. */
  27910. function findLastKey(object, predicate) {
  27911. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  27912. }
  27913. /**
  27914. * Iterates over own and inherited enumerable string keyed properties of an
  27915. * object and invokes `iteratee` for each property. The iteratee is invoked
  27916. * with three arguments: (value, key, object). Iteratee functions may exit
  27917. * iteration early by explicitly returning `false`.
  27918. *
  27919. * @static
  27920. * @memberOf _
  27921. * @since 0.3.0
  27922. * @category Object
  27923. * @param {Object} object The object to iterate over.
  27924. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27925. * @returns {Object} Returns `object`.
  27926. * @see _.forInRight
  27927. * @example
  27928. *
  27929. * function Foo() {
  27930. * this.a = 1;
  27931. * this.b = 2;
  27932. * }
  27933. *
  27934. * Foo.prototype.c = 3;
  27935. *
  27936. * _.forIn(new Foo, function(value, key) {
  27937. * console.log(key);
  27938. * });
  27939. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  27940. */
  27941. function forIn(object, iteratee) {
  27942. return object == null
  27943. ? object
  27944. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  27945. }
  27946. /**
  27947. * This method is like `_.forIn` except that it iterates over properties of
  27948. * `object` in the opposite order.
  27949. *
  27950. * @static
  27951. * @memberOf _
  27952. * @since 2.0.0
  27953. * @category Object
  27954. * @param {Object} object The object to iterate over.
  27955. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27956. * @returns {Object} Returns `object`.
  27957. * @see _.forIn
  27958. * @example
  27959. *
  27960. * function Foo() {
  27961. * this.a = 1;
  27962. * this.b = 2;
  27963. * }
  27964. *
  27965. * Foo.prototype.c = 3;
  27966. *
  27967. * _.forInRight(new Foo, function(value, key) {
  27968. * console.log(key);
  27969. * });
  27970. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  27971. */
  27972. function forInRight(object, iteratee) {
  27973. return object == null
  27974. ? object
  27975. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  27976. }
  27977. /**
  27978. * Iterates over own enumerable string keyed properties of an object and
  27979. * invokes `iteratee` for each property. The iteratee is invoked with three
  27980. * arguments: (value, key, object). Iteratee functions may exit iteration
  27981. * early by explicitly returning `false`.
  27982. *
  27983. * @static
  27984. * @memberOf _
  27985. * @since 0.3.0
  27986. * @category Object
  27987. * @param {Object} object The object to iterate over.
  27988. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27989. * @returns {Object} Returns `object`.
  27990. * @see _.forOwnRight
  27991. * @example
  27992. *
  27993. * function Foo() {
  27994. * this.a = 1;
  27995. * this.b = 2;
  27996. * }
  27997. *
  27998. * Foo.prototype.c = 3;
  27999. *
  28000. * _.forOwn(new Foo, function(value, key) {
  28001. * console.log(key);
  28002. * });
  28003. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  28004. */
  28005. function forOwn(object, iteratee) {
  28006. return object && baseForOwn(object, getIteratee(iteratee, 3));
  28007. }
  28008. /**
  28009. * This method is like `_.forOwn` except that it iterates over properties of
  28010. * `object` in the opposite order.
  28011. *
  28012. * @static
  28013. * @memberOf _
  28014. * @since 2.0.0
  28015. * @category Object
  28016. * @param {Object} object The object to iterate over.
  28017. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28018. * @returns {Object} Returns `object`.
  28019. * @see _.forOwn
  28020. * @example
  28021. *
  28022. * function Foo() {
  28023. * this.a = 1;
  28024. * this.b = 2;
  28025. * }
  28026. *
  28027. * Foo.prototype.c = 3;
  28028. *
  28029. * _.forOwnRight(new Foo, function(value, key) {
  28030. * console.log(key);
  28031. * });
  28032. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  28033. */
  28034. function forOwnRight(object, iteratee) {
  28035. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  28036. }
  28037. /**
  28038. * Creates an array of function property names from own enumerable properties
  28039. * of `object`.
  28040. *
  28041. * @static
  28042. * @since 0.1.0
  28043. * @memberOf _
  28044. * @category Object
  28045. * @param {Object} object The object to inspect.
  28046. * @returns {Array} Returns the function names.
  28047. * @see _.functionsIn
  28048. * @example
  28049. *
  28050. * function Foo() {
  28051. * this.a = _.constant('a');
  28052. * this.b = _.constant('b');
  28053. * }
  28054. *
  28055. * Foo.prototype.c = _.constant('c');
  28056. *
  28057. * _.functions(new Foo);
  28058. * // => ['a', 'b']
  28059. */
  28060. function functions(object) {
  28061. return object == null ? [] : baseFunctions(object, keys(object));
  28062. }
  28063. /**
  28064. * Creates an array of function property names from own and inherited
  28065. * enumerable properties of `object`.
  28066. *
  28067. * @static
  28068. * @memberOf _
  28069. * @since 4.0.0
  28070. * @category Object
  28071. * @param {Object} object The object to inspect.
  28072. * @returns {Array} Returns the function names.
  28073. * @see _.functions
  28074. * @example
  28075. *
  28076. * function Foo() {
  28077. * this.a = _.constant('a');
  28078. * this.b = _.constant('b');
  28079. * }
  28080. *
  28081. * Foo.prototype.c = _.constant('c');
  28082. *
  28083. * _.functionsIn(new Foo);
  28084. * // => ['a', 'b', 'c']
  28085. */
  28086. function functionsIn(object) {
  28087. return object == null ? [] : baseFunctions(object, keysIn(object));
  28088. }
  28089. /**
  28090. * Gets the value at `path` of `object`. If the resolved value is
  28091. * `undefined`, the `defaultValue` is returned in its place.
  28092. *
  28093. * @static
  28094. * @memberOf _
  28095. * @since 3.7.0
  28096. * @category Object
  28097. * @param {Object} object The object to query.
  28098. * @param {Array|string} path The path of the property to get.
  28099. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28100. * @returns {*} Returns the resolved value.
  28101. * @example
  28102. *
  28103. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28104. *
  28105. * _.get(object, 'a[0].b.c');
  28106. * // => 3
  28107. *
  28108. * _.get(object, ['a', '0', 'b', 'c']);
  28109. * // => 3
  28110. *
  28111. * _.get(object, 'a.b.c', 'default');
  28112. * // => 'default'
  28113. */
  28114. function get(object, path, defaultValue) {
  28115. var result = object == null ? undefined : baseGet(object, path);
  28116. return result === undefined ? defaultValue : result;
  28117. }
  28118. /**
  28119. * Checks if `path` is a direct property of `object`.
  28120. *
  28121. * @static
  28122. * @since 0.1.0
  28123. * @memberOf _
  28124. * @category Object
  28125. * @param {Object} object The object to query.
  28126. * @param {Array|string} path The path to check.
  28127. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28128. * @example
  28129. *
  28130. * var object = { 'a': { 'b': 2 } };
  28131. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  28132. *
  28133. * _.has(object, 'a');
  28134. * // => true
  28135. *
  28136. * _.has(object, 'a.b');
  28137. * // => true
  28138. *
  28139. * _.has(object, ['a', 'b']);
  28140. * // => true
  28141. *
  28142. * _.has(other, 'a');
  28143. * // => false
  28144. */
  28145. function has(object, path) {
  28146. return object != null && hasPath(object, path, baseHas);
  28147. }
  28148. /**
  28149. * Checks if `path` is a direct or inherited property of `object`.
  28150. *
  28151. * @static
  28152. * @memberOf _
  28153. * @since 4.0.0
  28154. * @category Object
  28155. * @param {Object} object The object to query.
  28156. * @param {Array|string} path The path to check.
  28157. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28158. * @example
  28159. *
  28160. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  28161. *
  28162. * _.hasIn(object, 'a');
  28163. * // => true
  28164. *
  28165. * _.hasIn(object, 'a.b');
  28166. * // => true
  28167. *
  28168. * _.hasIn(object, ['a', 'b']);
  28169. * // => true
  28170. *
  28171. * _.hasIn(object, 'b');
  28172. * // => false
  28173. */
  28174. function hasIn(object, path) {
  28175. return object != null && hasPath(object, path, baseHasIn);
  28176. }
  28177. /**
  28178. * Creates an object composed of the inverted keys and values of `object`.
  28179. * If `object` contains duplicate values, subsequent values overwrite
  28180. * property assignments of previous values.
  28181. *
  28182. * @static
  28183. * @memberOf _
  28184. * @since 0.7.0
  28185. * @category Object
  28186. * @param {Object} object The object to invert.
  28187. * @returns {Object} Returns the new inverted object.
  28188. * @example
  28189. *
  28190. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28191. *
  28192. * _.invert(object);
  28193. * // => { '1': 'c', '2': 'b' }
  28194. */
  28195. var invert = createInverter(function(result, value, key) {
  28196. if (value != null &&
  28197. typeof value.toString != 'function') {
  28198. value = nativeObjectToString.call(value);
  28199. }
  28200. result[value] = key;
  28201. }, constant(identity));
  28202. /**
  28203. * This method is like `_.invert` except that the inverted object is generated
  28204. * from the results of running each element of `object` thru `iteratee`. The
  28205. * corresponding inverted value of each inverted key is an array of keys
  28206. * responsible for generating the inverted value. The iteratee is invoked
  28207. * with one argument: (value).
  28208. *
  28209. * @static
  28210. * @memberOf _
  28211. * @since 4.1.0
  28212. * @category Object
  28213. * @param {Object} object The object to invert.
  28214. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  28215. * @returns {Object} Returns the new inverted object.
  28216. * @example
  28217. *
  28218. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28219. *
  28220. * _.invertBy(object);
  28221. * // => { '1': ['a', 'c'], '2': ['b'] }
  28222. *
  28223. * _.invertBy(object, function(value) {
  28224. * return 'group' + value;
  28225. * });
  28226. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  28227. */
  28228. var invertBy = createInverter(function(result, value, key) {
  28229. if (value != null &&
  28230. typeof value.toString != 'function') {
  28231. value = nativeObjectToString.call(value);
  28232. }
  28233. if (hasOwnProperty.call(result, value)) {
  28234. result[value].push(key);
  28235. } else {
  28236. result[value] = [key];
  28237. }
  28238. }, getIteratee);
  28239. /**
  28240. * Invokes the method at `path` of `object`.
  28241. *
  28242. * @static
  28243. * @memberOf _
  28244. * @since 4.0.0
  28245. * @category Object
  28246. * @param {Object} object The object to query.
  28247. * @param {Array|string} path The path of the method to invoke.
  28248. * @param {...*} [args] The arguments to invoke the method with.
  28249. * @returns {*} Returns the result of the invoked method.
  28250. * @example
  28251. *
  28252. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  28253. *
  28254. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  28255. * // => [2, 3]
  28256. */
  28257. var invoke = baseRest(baseInvoke);
  28258. /**
  28259. * Creates an array of the own enumerable property names of `object`.
  28260. *
  28261. * **Note:** Non-object values are coerced to objects. See the
  28262. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  28263. * for more details.
  28264. *
  28265. * @static
  28266. * @since 0.1.0
  28267. * @memberOf _
  28268. * @category Object
  28269. * @param {Object} object The object to query.
  28270. * @returns {Array} Returns the array of property names.
  28271. * @example
  28272. *
  28273. * function Foo() {
  28274. * this.a = 1;
  28275. * this.b = 2;
  28276. * }
  28277. *
  28278. * Foo.prototype.c = 3;
  28279. *
  28280. * _.keys(new Foo);
  28281. * // => ['a', 'b'] (iteration order is not guaranteed)
  28282. *
  28283. * _.keys('hi');
  28284. * // => ['0', '1']
  28285. */
  28286. function keys(object) {
  28287. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  28288. }
  28289. /**
  28290. * Creates an array of the own and inherited enumerable property names of `object`.
  28291. *
  28292. * **Note:** Non-object values are coerced to objects.
  28293. *
  28294. * @static
  28295. * @memberOf _
  28296. * @since 3.0.0
  28297. * @category Object
  28298. * @param {Object} object The object to query.
  28299. * @returns {Array} Returns the array of property names.
  28300. * @example
  28301. *
  28302. * function Foo() {
  28303. * this.a = 1;
  28304. * this.b = 2;
  28305. * }
  28306. *
  28307. * Foo.prototype.c = 3;
  28308. *
  28309. * _.keysIn(new Foo);
  28310. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  28311. */
  28312. function keysIn(object) {
  28313. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  28314. }
  28315. /**
  28316. * The opposite of `_.mapValues`; this method creates an object with the
  28317. * same values as `object` and keys generated by running each own enumerable
  28318. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  28319. * with three arguments: (value, key, object).
  28320. *
  28321. * @static
  28322. * @memberOf _
  28323. * @since 3.8.0
  28324. * @category Object
  28325. * @param {Object} object The object to iterate over.
  28326. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28327. * @returns {Object} Returns the new mapped object.
  28328. * @see _.mapValues
  28329. * @example
  28330. *
  28331. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  28332. * return key + value;
  28333. * });
  28334. * // => { 'a1': 1, 'b2': 2 }
  28335. */
  28336. function mapKeys(object, iteratee) {
  28337. var result = {};
  28338. iteratee = getIteratee(iteratee, 3);
  28339. baseForOwn(object, function(value, key, object) {
  28340. baseAssignValue(result, iteratee(value, key, object), value);
  28341. });
  28342. return result;
  28343. }
  28344. /**
  28345. * Creates an object with the same keys as `object` and values generated
  28346. * by running each own enumerable string keyed property of `object` thru
  28347. * `iteratee`. The iteratee is invoked with three arguments:
  28348. * (value, key, object).
  28349. *
  28350. * @static
  28351. * @memberOf _
  28352. * @since 2.4.0
  28353. * @category Object
  28354. * @param {Object} object The object to iterate over.
  28355. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28356. * @returns {Object} Returns the new mapped object.
  28357. * @see _.mapKeys
  28358. * @example
  28359. *
  28360. * var users = {
  28361. * 'fred': { 'user': 'fred', 'age': 40 },
  28362. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  28363. * };
  28364. *
  28365. * _.mapValues(users, function(o) { return o.age; });
  28366. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28367. *
  28368. * // The `_.property` iteratee shorthand.
  28369. * _.mapValues(users, 'age');
  28370. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28371. */
  28372. function mapValues(object, iteratee) {
  28373. var result = {};
  28374. iteratee = getIteratee(iteratee, 3);
  28375. baseForOwn(object, function(value, key, object) {
  28376. baseAssignValue(result, key, iteratee(value, key, object));
  28377. });
  28378. return result;
  28379. }
  28380. /**
  28381. * This method is like `_.assign` except that it recursively merges own and
  28382. * inherited enumerable string keyed properties of source objects into the
  28383. * destination object. Source properties that resolve to `undefined` are
  28384. * skipped if a destination value exists. Array and plain object properties
  28385. * are merged recursively. Other objects and value types are overridden by
  28386. * assignment. Source objects are applied from left to right. Subsequent
  28387. * sources overwrite property assignments of previous sources.
  28388. *
  28389. * **Note:** This method mutates `object`.
  28390. *
  28391. * @static
  28392. * @memberOf _
  28393. * @since 0.5.0
  28394. * @category Object
  28395. * @param {Object} object The destination object.
  28396. * @param {...Object} [sources] The source objects.
  28397. * @returns {Object} Returns `object`.
  28398. * @example
  28399. *
  28400. * var object = {
  28401. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  28402. * };
  28403. *
  28404. * var other = {
  28405. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  28406. * };
  28407. *
  28408. * _.merge(object, other);
  28409. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  28410. */
  28411. var merge = createAssigner(function(object, source, srcIndex) {
  28412. baseMerge(object, source, srcIndex);
  28413. });
  28414. /**
  28415. * This method is like `_.merge` except that it accepts `customizer` which
  28416. * is invoked to produce the merged values of the destination and source
  28417. * properties. If `customizer` returns `undefined`, merging is handled by the
  28418. * method instead. The `customizer` is invoked with six arguments:
  28419. * (objValue, srcValue, key, object, source, stack).
  28420. *
  28421. * **Note:** This method mutates `object`.
  28422. *
  28423. * @static
  28424. * @memberOf _
  28425. * @since 4.0.0
  28426. * @category Object
  28427. * @param {Object} object The destination object.
  28428. * @param {...Object} sources The source objects.
  28429. * @param {Function} customizer The function to customize assigned values.
  28430. * @returns {Object} Returns `object`.
  28431. * @example
  28432. *
  28433. * function customizer(objValue, srcValue) {
  28434. * if (_.isArray(objValue)) {
  28435. * return objValue.concat(srcValue);
  28436. * }
  28437. * }
  28438. *
  28439. * var object = { 'a': [1], 'b': [2] };
  28440. * var other = { 'a': [3], 'b': [4] };
  28441. *
  28442. * _.mergeWith(object, other, customizer);
  28443. * // => { 'a': [1, 3], 'b': [2, 4] }
  28444. */
  28445. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  28446. baseMerge(object, source, srcIndex, customizer);
  28447. });
  28448. /**
  28449. * The opposite of `_.pick`; this method creates an object composed of the
  28450. * own and inherited enumerable property paths of `object` that are not omitted.
  28451. *
  28452. * **Note:** This method is considerably slower than `_.pick`.
  28453. *
  28454. * @static
  28455. * @since 0.1.0
  28456. * @memberOf _
  28457. * @category Object
  28458. * @param {Object} object The source object.
  28459. * @param {...(string|string[])} [paths] The property paths to omit.
  28460. * @returns {Object} Returns the new object.
  28461. * @example
  28462. *
  28463. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28464. *
  28465. * _.omit(object, ['a', 'c']);
  28466. * // => { 'b': '2' }
  28467. */
  28468. var omit = flatRest(function(object, paths) {
  28469. var result = {};
  28470. if (object == null) {
  28471. return result;
  28472. }
  28473. var isDeep = false;
  28474. paths = arrayMap(paths, function(path) {
  28475. path = castPath(path, object);
  28476. isDeep || (isDeep = path.length > 1);
  28477. return path;
  28478. });
  28479. copyObject(object, getAllKeysIn(object), result);
  28480. if (isDeep) {
  28481. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  28482. }
  28483. var length = paths.length;
  28484. while (length--) {
  28485. baseUnset(result, paths[length]);
  28486. }
  28487. return result;
  28488. });
  28489. /**
  28490. * The opposite of `_.pickBy`; this method creates an object composed of
  28491. * the own and inherited enumerable string keyed properties of `object` that
  28492. * `predicate` doesn't return truthy for. The predicate is invoked with two
  28493. * arguments: (value, key).
  28494. *
  28495. * @static
  28496. * @memberOf _
  28497. * @since 4.0.0
  28498. * @category Object
  28499. * @param {Object} object The source object.
  28500. * @param {Function} [predicate=_.identity] The function invoked per property.
  28501. * @returns {Object} Returns the new object.
  28502. * @example
  28503. *
  28504. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28505. *
  28506. * _.omitBy(object, _.isNumber);
  28507. * // => { 'b': '2' }
  28508. */
  28509. function omitBy(object, predicate) {
  28510. return pickBy(object, negate(getIteratee(predicate)));
  28511. }
  28512. /**
  28513. * Creates an object composed of the picked `object` properties.
  28514. *
  28515. * @static
  28516. * @since 0.1.0
  28517. * @memberOf _
  28518. * @category Object
  28519. * @param {Object} object The source object.
  28520. * @param {...(string|string[])} [paths] The property paths to pick.
  28521. * @returns {Object} Returns the new object.
  28522. * @example
  28523. *
  28524. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28525. *
  28526. * _.pick(object, ['a', 'c']);
  28527. * // => { 'a': 1, 'c': 3 }
  28528. */
  28529. var pick = flatRest(function(object, paths) {
  28530. return object == null ? {} : basePick(object, paths);
  28531. });
  28532. /**
  28533. * Creates an object composed of the `object` properties `predicate` returns
  28534. * truthy for. The predicate is invoked with two arguments: (value, key).
  28535. *
  28536. * @static
  28537. * @memberOf _
  28538. * @since 4.0.0
  28539. * @category Object
  28540. * @param {Object} object The source object.
  28541. * @param {Function} [predicate=_.identity] The function invoked per property.
  28542. * @returns {Object} Returns the new object.
  28543. * @example
  28544. *
  28545. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28546. *
  28547. * _.pickBy(object, _.isNumber);
  28548. * // => { 'a': 1, 'c': 3 }
  28549. */
  28550. function pickBy(object, predicate) {
  28551. if (object == null) {
  28552. return {};
  28553. }
  28554. var props = arrayMap(getAllKeysIn(object), function(prop) {
  28555. return [prop];
  28556. });
  28557. predicate = getIteratee(predicate);
  28558. return basePickBy(object, props, function(value, path) {
  28559. return predicate(value, path[0]);
  28560. });
  28561. }
  28562. /**
  28563. * This method is like `_.get` except that if the resolved value is a
  28564. * function it's invoked with the `this` binding of its parent object and
  28565. * its result is returned.
  28566. *
  28567. * @static
  28568. * @since 0.1.0
  28569. * @memberOf _
  28570. * @category Object
  28571. * @param {Object} object The object to query.
  28572. * @param {Array|string} path The path of the property to resolve.
  28573. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28574. * @returns {*} Returns the resolved value.
  28575. * @example
  28576. *
  28577. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  28578. *
  28579. * _.result(object, 'a[0].b.c1');
  28580. * // => 3
  28581. *
  28582. * _.result(object, 'a[0].b.c2');
  28583. * // => 4
  28584. *
  28585. * _.result(object, 'a[0].b.c3', 'default');
  28586. * // => 'default'
  28587. *
  28588. * _.result(object, 'a[0].b.c3', _.constant('default'));
  28589. * // => 'default'
  28590. */
  28591. function result(object, path, defaultValue) {
  28592. path = castPath(path, object);
  28593. var index = -1,
  28594. length = path.length;
  28595. // Ensure the loop is entered when path is empty.
  28596. if (!length) {
  28597. length = 1;
  28598. object = undefined;
  28599. }
  28600. while (++index < length) {
  28601. var value = object == null ? undefined : object[toKey(path[index])];
  28602. if (value === undefined) {
  28603. index = length;
  28604. value = defaultValue;
  28605. }
  28606. object = isFunction(value) ? value.call(object) : value;
  28607. }
  28608. return object;
  28609. }
  28610. /**
  28611. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  28612. * it's created. Arrays are created for missing index properties while objects
  28613. * are created for all other missing properties. Use `_.setWith` to customize
  28614. * `path` creation.
  28615. *
  28616. * **Note:** This method mutates `object`.
  28617. *
  28618. * @static
  28619. * @memberOf _
  28620. * @since 3.7.0
  28621. * @category Object
  28622. * @param {Object} object The object to modify.
  28623. * @param {Array|string} path The path of the property to set.
  28624. * @param {*} value The value to set.
  28625. * @returns {Object} Returns `object`.
  28626. * @example
  28627. *
  28628. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28629. *
  28630. * _.set(object, 'a[0].b.c', 4);
  28631. * console.log(object.a[0].b.c);
  28632. * // => 4
  28633. *
  28634. * _.set(object, ['x', '0', 'y', 'z'], 5);
  28635. * console.log(object.x[0].y.z);
  28636. * // => 5
  28637. */
  28638. function set(object, path, value) {
  28639. return object == null ? object : baseSet(object, path, value);
  28640. }
  28641. /**
  28642. * This method is like `_.set` except that it accepts `customizer` which is
  28643. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28644. * path creation is handled by the method instead. The `customizer` is invoked
  28645. * with three arguments: (nsValue, key, nsObject).
  28646. *
  28647. * **Note:** This method mutates `object`.
  28648. *
  28649. * @static
  28650. * @memberOf _
  28651. * @since 4.0.0
  28652. * @category Object
  28653. * @param {Object} object The object to modify.
  28654. * @param {Array|string} path The path of the property to set.
  28655. * @param {*} value The value to set.
  28656. * @param {Function} [customizer] The function to customize assigned values.
  28657. * @returns {Object} Returns `object`.
  28658. * @example
  28659. *
  28660. * var object = {};
  28661. *
  28662. * _.setWith(object, '[0][1]', 'a', Object);
  28663. * // => { '0': { '1': 'a' } }
  28664. */
  28665. function setWith(object, path, value, customizer) {
  28666. customizer = typeof customizer == 'function' ? customizer : undefined;
  28667. return object == null ? object : baseSet(object, path, value, customizer);
  28668. }
  28669. /**
  28670. * Creates an array of own enumerable string keyed-value pairs for `object`
  28671. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  28672. * entries are returned.
  28673. *
  28674. * @static
  28675. * @memberOf _
  28676. * @since 4.0.0
  28677. * @alias entries
  28678. * @category Object
  28679. * @param {Object} object The object to query.
  28680. * @returns {Array} Returns the key-value pairs.
  28681. * @example
  28682. *
  28683. * function Foo() {
  28684. * this.a = 1;
  28685. * this.b = 2;
  28686. * }
  28687. *
  28688. * Foo.prototype.c = 3;
  28689. *
  28690. * _.toPairs(new Foo);
  28691. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  28692. */
  28693. var toPairs = createToPairs(keys);
  28694. /**
  28695. * Creates an array of own and inherited enumerable string keyed-value pairs
  28696. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  28697. * or set, its entries are returned.
  28698. *
  28699. * @static
  28700. * @memberOf _
  28701. * @since 4.0.0
  28702. * @alias entriesIn
  28703. * @category Object
  28704. * @param {Object} object The object to query.
  28705. * @returns {Array} Returns the key-value pairs.
  28706. * @example
  28707. *
  28708. * function Foo() {
  28709. * this.a = 1;
  28710. * this.b = 2;
  28711. * }
  28712. *
  28713. * Foo.prototype.c = 3;
  28714. *
  28715. * _.toPairsIn(new Foo);
  28716. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  28717. */
  28718. var toPairsIn = createToPairs(keysIn);
  28719. /**
  28720. * An alternative to `_.reduce`; this method transforms `object` to a new
  28721. * `accumulator` object which is the result of running each of its own
  28722. * enumerable string keyed properties thru `iteratee`, with each invocation
  28723. * potentially mutating the `accumulator` object. If `accumulator` is not
  28724. * provided, a new object with the same `[[Prototype]]` will be used. The
  28725. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  28726. * Iteratee functions may exit iteration early by explicitly returning `false`.
  28727. *
  28728. * @static
  28729. * @memberOf _
  28730. * @since 1.3.0
  28731. * @category Object
  28732. * @param {Object} object The object to iterate over.
  28733. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28734. * @param {*} [accumulator] The custom accumulator value.
  28735. * @returns {*} Returns the accumulated value.
  28736. * @example
  28737. *
  28738. * _.transform([2, 3, 4], function(result, n) {
  28739. * result.push(n *= n);
  28740. * return n % 2 == 0;
  28741. * }, []);
  28742. * // => [4, 9]
  28743. *
  28744. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  28745. * (result[value] || (result[value] = [])).push(key);
  28746. * }, {});
  28747. * // => { '1': ['a', 'c'], '2': ['b'] }
  28748. */
  28749. function transform(object, iteratee, accumulator) {
  28750. var isArr = isArray(object),
  28751. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  28752. iteratee = getIteratee(iteratee, 4);
  28753. if (accumulator == null) {
  28754. var Ctor = object && object.constructor;
  28755. if (isArrLike) {
  28756. accumulator = isArr ? new Ctor : [];
  28757. }
  28758. else if (isObject(object)) {
  28759. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  28760. }
  28761. else {
  28762. accumulator = {};
  28763. }
  28764. }
  28765. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  28766. return iteratee(accumulator, value, index, object);
  28767. });
  28768. return accumulator;
  28769. }
  28770. /**
  28771. * Removes the property at `path` of `object`.
  28772. *
  28773. * **Note:** This method mutates `object`.
  28774. *
  28775. * @static
  28776. * @memberOf _
  28777. * @since 4.0.0
  28778. * @category Object
  28779. * @param {Object} object The object to modify.
  28780. * @param {Array|string} path The path of the property to unset.
  28781. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  28782. * @example
  28783. *
  28784. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  28785. * _.unset(object, 'a[0].b.c');
  28786. * // => true
  28787. *
  28788. * console.log(object);
  28789. * // => { 'a': [{ 'b': {} }] };
  28790. *
  28791. * _.unset(object, ['a', '0', 'b', 'c']);
  28792. * // => true
  28793. *
  28794. * console.log(object);
  28795. * // => { 'a': [{ 'b': {} }] };
  28796. */
  28797. function unset(object, path) {
  28798. return object == null ? true : baseUnset(object, path);
  28799. }
  28800. /**
  28801. * This method is like `_.set` except that accepts `updater` to produce the
  28802. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  28803. * is invoked with one argument: (value).
  28804. *
  28805. * **Note:** This method mutates `object`.
  28806. *
  28807. * @static
  28808. * @memberOf _
  28809. * @since 4.6.0
  28810. * @category Object
  28811. * @param {Object} object The object to modify.
  28812. * @param {Array|string} path The path of the property to set.
  28813. * @param {Function} updater The function to produce the updated value.
  28814. * @returns {Object} Returns `object`.
  28815. * @example
  28816. *
  28817. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28818. *
  28819. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  28820. * console.log(object.a[0].b.c);
  28821. * // => 9
  28822. *
  28823. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  28824. * console.log(object.x[0].y.z);
  28825. * // => 0
  28826. */
  28827. function update(object, path, updater) {
  28828. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  28829. }
  28830. /**
  28831. * This method is like `_.update` except that it accepts `customizer` which is
  28832. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28833. * path creation is handled by the method instead. The `customizer` is invoked
  28834. * with three arguments: (nsValue, key, nsObject).
  28835. *
  28836. * **Note:** This method mutates `object`.
  28837. *
  28838. * @static
  28839. * @memberOf _
  28840. * @since 4.6.0
  28841. * @category Object
  28842. * @param {Object} object The object to modify.
  28843. * @param {Array|string} path The path of the property to set.
  28844. * @param {Function} updater The function to produce the updated value.
  28845. * @param {Function} [customizer] The function to customize assigned values.
  28846. * @returns {Object} Returns `object`.
  28847. * @example
  28848. *
  28849. * var object = {};
  28850. *
  28851. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  28852. * // => { '0': { '1': 'a' } }
  28853. */
  28854. function updateWith(object, path, updater, customizer) {
  28855. customizer = typeof customizer == 'function' ? customizer : undefined;
  28856. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  28857. }
  28858. /**
  28859. * Creates an array of the own enumerable string keyed property values of `object`.
  28860. *
  28861. * **Note:** Non-object values are coerced to objects.
  28862. *
  28863. * @static
  28864. * @since 0.1.0
  28865. * @memberOf _
  28866. * @category Object
  28867. * @param {Object} object The object to query.
  28868. * @returns {Array} Returns the array of property values.
  28869. * @example
  28870. *
  28871. * function Foo() {
  28872. * this.a = 1;
  28873. * this.b = 2;
  28874. * }
  28875. *
  28876. * Foo.prototype.c = 3;
  28877. *
  28878. * _.values(new Foo);
  28879. * // => [1, 2] (iteration order is not guaranteed)
  28880. *
  28881. * _.values('hi');
  28882. * // => ['h', 'i']
  28883. */
  28884. function values(object) {
  28885. return object == null ? [] : baseValues(object, keys(object));
  28886. }
  28887. /**
  28888. * Creates an array of the own and inherited enumerable string keyed property
  28889. * values of `object`.
  28890. *
  28891. * **Note:** Non-object values are coerced to objects.
  28892. *
  28893. * @static
  28894. * @memberOf _
  28895. * @since 3.0.0
  28896. * @category Object
  28897. * @param {Object} object The object to query.
  28898. * @returns {Array} Returns the array of property values.
  28899. * @example
  28900. *
  28901. * function Foo() {
  28902. * this.a = 1;
  28903. * this.b = 2;
  28904. * }
  28905. *
  28906. * Foo.prototype.c = 3;
  28907. *
  28908. * _.valuesIn(new Foo);
  28909. * // => [1, 2, 3] (iteration order is not guaranteed)
  28910. */
  28911. function valuesIn(object) {
  28912. return object == null ? [] : baseValues(object, keysIn(object));
  28913. }
  28914. /*------------------------------------------------------------------------*/
  28915. /**
  28916. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  28917. *
  28918. * @static
  28919. * @memberOf _
  28920. * @since 4.0.0
  28921. * @category Number
  28922. * @param {number} number The number to clamp.
  28923. * @param {number} [lower] The lower bound.
  28924. * @param {number} upper The upper bound.
  28925. * @returns {number} Returns the clamped number.
  28926. * @example
  28927. *
  28928. * _.clamp(-10, -5, 5);
  28929. * // => -5
  28930. *
  28931. * _.clamp(10, -5, 5);
  28932. * // => 5
  28933. */
  28934. function clamp(number, lower, upper) {
  28935. if (upper === undefined) {
  28936. upper = lower;
  28937. lower = undefined;
  28938. }
  28939. if (upper !== undefined) {
  28940. upper = toNumber(upper);
  28941. upper = upper === upper ? upper : 0;
  28942. }
  28943. if (lower !== undefined) {
  28944. lower = toNumber(lower);
  28945. lower = lower === lower ? lower : 0;
  28946. }
  28947. return baseClamp(toNumber(number), lower, upper);
  28948. }
  28949. /**
  28950. * Checks if `n` is between `start` and up to, but not including, `end`. If
  28951. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  28952. * If `start` is greater than `end` the params are swapped to support
  28953. * negative ranges.
  28954. *
  28955. * @static
  28956. * @memberOf _
  28957. * @since 3.3.0
  28958. * @category Number
  28959. * @param {number} number The number to check.
  28960. * @param {number} [start=0] The start of the range.
  28961. * @param {number} end The end of the range.
  28962. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  28963. * @see _.range, _.rangeRight
  28964. * @example
  28965. *
  28966. * _.inRange(3, 2, 4);
  28967. * // => true
  28968. *
  28969. * _.inRange(4, 8);
  28970. * // => true
  28971. *
  28972. * _.inRange(4, 2);
  28973. * // => false
  28974. *
  28975. * _.inRange(2, 2);
  28976. * // => false
  28977. *
  28978. * _.inRange(1.2, 2);
  28979. * // => true
  28980. *
  28981. * _.inRange(5.2, 4);
  28982. * // => false
  28983. *
  28984. * _.inRange(-3, -2, -6);
  28985. * // => true
  28986. */
  28987. function inRange(number, start, end) {
  28988. start = toFinite(start);
  28989. if (end === undefined) {
  28990. end = start;
  28991. start = 0;
  28992. } else {
  28993. end = toFinite(end);
  28994. }
  28995. number = toNumber(number);
  28996. return baseInRange(number, start, end);
  28997. }
  28998. /**
  28999. * Produces a random number between the inclusive `lower` and `upper` bounds.
  29000. * If only one argument is provided a number between `0` and the given number
  29001. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  29002. * floats, a floating-point number is returned instead of an integer.
  29003. *
  29004. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  29005. * floating-point values which can produce unexpected results.
  29006. *
  29007. * @static
  29008. * @memberOf _
  29009. * @since 0.7.0
  29010. * @category Number
  29011. * @param {number} [lower=0] The lower bound.
  29012. * @param {number} [upper=1] The upper bound.
  29013. * @param {boolean} [floating] Specify returning a floating-point number.
  29014. * @returns {number} Returns the random number.
  29015. * @example
  29016. *
  29017. * _.random(0, 5);
  29018. * // => an integer between 0 and 5
  29019. *
  29020. * _.random(5);
  29021. * // => also an integer between 0 and 5
  29022. *
  29023. * _.random(5, true);
  29024. * // => a floating-point number between 0 and 5
  29025. *
  29026. * _.random(1.2, 5.2);
  29027. * // => a floating-point number between 1.2 and 5.2
  29028. */
  29029. function random(lower, upper, floating) {
  29030. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  29031. upper = floating = undefined;
  29032. }
  29033. if (floating === undefined) {
  29034. if (typeof upper == 'boolean') {
  29035. floating = upper;
  29036. upper = undefined;
  29037. }
  29038. else if (typeof lower == 'boolean') {
  29039. floating = lower;
  29040. lower = undefined;
  29041. }
  29042. }
  29043. if (lower === undefined && upper === undefined) {
  29044. lower = 0;
  29045. upper = 1;
  29046. }
  29047. else {
  29048. lower = toFinite(lower);
  29049. if (upper === undefined) {
  29050. upper = lower;
  29051. lower = 0;
  29052. } else {
  29053. upper = toFinite(upper);
  29054. }
  29055. }
  29056. if (lower > upper) {
  29057. var temp = lower;
  29058. lower = upper;
  29059. upper = temp;
  29060. }
  29061. if (floating || lower % 1 || upper % 1) {
  29062. var rand = nativeRandom();
  29063. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  29064. }
  29065. return baseRandom(lower, upper);
  29066. }
  29067. /*------------------------------------------------------------------------*/
  29068. /**
  29069. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  29070. *
  29071. * @static
  29072. * @memberOf _
  29073. * @since 3.0.0
  29074. * @category String
  29075. * @param {string} [string=''] The string to convert.
  29076. * @returns {string} Returns the camel cased string.
  29077. * @example
  29078. *
  29079. * _.camelCase('Foo Bar');
  29080. * // => 'fooBar'
  29081. *
  29082. * _.camelCase('--foo-bar--');
  29083. * // => 'fooBar'
  29084. *
  29085. * _.camelCase('__FOO_BAR__');
  29086. * // => 'fooBar'
  29087. */
  29088. var camelCase = createCompounder(function(result, word, index) {
  29089. word = word.toLowerCase();
  29090. return result + (index ? capitalize(word) : word);
  29091. });
  29092. /**
  29093. * Converts the first character of `string` to upper case and the remaining
  29094. * to lower case.
  29095. *
  29096. * @static
  29097. * @memberOf _
  29098. * @since 3.0.0
  29099. * @category String
  29100. * @param {string} [string=''] The string to capitalize.
  29101. * @returns {string} Returns the capitalized string.
  29102. * @example
  29103. *
  29104. * _.capitalize('FRED');
  29105. * // => 'Fred'
  29106. */
  29107. function capitalize(string) {
  29108. return upperFirst(toString(string).toLowerCase());
  29109. }
  29110. /**
  29111. * Deburrs `string` by converting
  29112. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  29113. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  29114. * letters to basic Latin letters and removing
  29115. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  29116. *
  29117. * @static
  29118. * @memberOf _
  29119. * @since 3.0.0
  29120. * @category String
  29121. * @param {string} [string=''] The string to deburr.
  29122. * @returns {string} Returns the deburred string.
  29123. * @example
  29124. *
  29125. * _.deburr('déjà vu');
  29126. * // => 'deja vu'
  29127. */
  29128. function deburr(string) {
  29129. string = toString(string);
  29130. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  29131. }
  29132. /**
  29133. * Checks if `string` ends with the given target string.
  29134. *
  29135. * @static
  29136. * @memberOf _
  29137. * @since 3.0.0
  29138. * @category String
  29139. * @param {string} [string=''] The string to inspect.
  29140. * @param {string} [target] The string to search for.
  29141. * @param {number} [position=string.length] The position to search up to.
  29142. * @returns {boolean} Returns `true` if `string` ends with `target`,
  29143. * else `false`.
  29144. * @example
  29145. *
  29146. * _.endsWith('abc', 'c');
  29147. * // => true
  29148. *
  29149. * _.endsWith('abc', 'b');
  29150. * // => false
  29151. *
  29152. * _.endsWith('abc', 'b', 2);
  29153. * // => true
  29154. */
  29155. function endsWith(string, target, position) {
  29156. string = toString(string);
  29157. target = baseToString(target);
  29158. var length = string.length;
  29159. position = position === undefined
  29160. ? length
  29161. : baseClamp(toInteger(position), 0, length);
  29162. var end = position;
  29163. position -= target.length;
  29164. return position >= 0 && string.slice(position, end) == target;
  29165. }
  29166. /**
  29167. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  29168. * corresponding HTML entities.
  29169. *
  29170. * **Note:** No other characters are escaped. To escape additional
  29171. * characters use a third-party library like [_he_](https://mths.be/he).
  29172. *
  29173. * Though the ">" character is escaped for symmetry, characters like
  29174. * ">" and "/" don't need escaping in HTML and have no special meaning
  29175. * unless they're part of a tag or unquoted attribute value. See
  29176. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  29177. * (under "semi-related fun fact") for more details.
  29178. *
  29179. * When working with HTML you should always
  29180. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  29181. * XSS vectors.
  29182. *
  29183. * @static
  29184. * @since 0.1.0
  29185. * @memberOf _
  29186. * @category String
  29187. * @param {string} [string=''] The string to escape.
  29188. * @returns {string} Returns the escaped string.
  29189. * @example
  29190. *
  29191. * _.escape('fred, barney, & pebbles');
  29192. * // => 'fred, barney, &amp; pebbles'
  29193. */
  29194. function escape(string) {
  29195. string = toString(string);
  29196. return (string && reHasUnescapedHtml.test(string))
  29197. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  29198. : string;
  29199. }
  29200. /**
  29201. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  29202. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  29203. *
  29204. * @static
  29205. * @memberOf _
  29206. * @since 3.0.0
  29207. * @category String
  29208. * @param {string} [string=''] The string to escape.
  29209. * @returns {string} Returns the escaped string.
  29210. * @example
  29211. *
  29212. * _.escapeRegExp('[lodash](https://lodash.com/)');
  29213. * // => '\[lodash\]\(https://lodash\.com/\)'
  29214. */
  29215. function escapeRegExp(string) {
  29216. string = toString(string);
  29217. return (string && reHasRegExpChar.test(string))
  29218. ? string.replace(reRegExpChar, '\\$&')
  29219. : string;
  29220. }
  29221. /**
  29222. * Converts `string` to
  29223. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  29224. *
  29225. * @static
  29226. * @memberOf _
  29227. * @since 3.0.0
  29228. * @category String
  29229. * @param {string} [string=''] The string to convert.
  29230. * @returns {string} Returns the kebab cased string.
  29231. * @example
  29232. *
  29233. * _.kebabCase('Foo Bar');
  29234. * // => 'foo-bar'
  29235. *
  29236. * _.kebabCase('fooBar');
  29237. * // => 'foo-bar'
  29238. *
  29239. * _.kebabCase('__FOO_BAR__');
  29240. * // => 'foo-bar'
  29241. */
  29242. var kebabCase = createCompounder(function(result, word, index) {
  29243. return result + (index ? '-' : '') + word.toLowerCase();
  29244. });
  29245. /**
  29246. * Converts `string`, as space separated words, to lower case.
  29247. *
  29248. * @static
  29249. * @memberOf _
  29250. * @since 4.0.0
  29251. * @category String
  29252. * @param {string} [string=''] The string to convert.
  29253. * @returns {string} Returns the lower cased string.
  29254. * @example
  29255. *
  29256. * _.lowerCase('--Foo-Bar--');
  29257. * // => 'foo bar'
  29258. *
  29259. * _.lowerCase('fooBar');
  29260. * // => 'foo bar'
  29261. *
  29262. * _.lowerCase('__FOO_BAR__');
  29263. * // => 'foo bar'
  29264. */
  29265. var lowerCase = createCompounder(function(result, word, index) {
  29266. return result + (index ? ' ' : '') + word.toLowerCase();
  29267. });
  29268. /**
  29269. * Converts the first character of `string` to lower case.
  29270. *
  29271. * @static
  29272. * @memberOf _
  29273. * @since 4.0.0
  29274. * @category String
  29275. * @param {string} [string=''] The string to convert.
  29276. * @returns {string} Returns the converted string.
  29277. * @example
  29278. *
  29279. * _.lowerFirst('Fred');
  29280. * // => 'fred'
  29281. *
  29282. * _.lowerFirst('FRED');
  29283. * // => 'fRED'
  29284. */
  29285. var lowerFirst = createCaseFirst('toLowerCase');
  29286. /**
  29287. * Pads `string` on the left and right sides if it's shorter than `length`.
  29288. * Padding characters are truncated if they can't be evenly divided by `length`.
  29289. *
  29290. * @static
  29291. * @memberOf _
  29292. * @since 3.0.0
  29293. * @category String
  29294. * @param {string} [string=''] The string to pad.
  29295. * @param {number} [length=0] The padding length.
  29296. * @param {string} [chars=' '] The string used as padding.
  29297. * @returns {string} Returns the padded string.
  29298. * @example
  29299. *
  29300. * _.pad('abc', 8);
  29301. * // => ' abc '
  29302. *
  29303. * _.pad('abc', 8, '_-');
  29304. * // => '_-abc_-_'
  29305. *
  29306. * _.pad('abc', 3);
  29307. * // => 'abc'
  29308. */
  29309. function pad(string, length, chars) {
  29310. string = toString(string);
  29311. length = toInteger(length);
  29312. var strLength = length ? stringSize(string) : 0;
  29313. if (!length || strLength >= length) {
  29314. return string;
  29315. }
  29316. var mid = (length - strLength) / 2;
  29317. return (
  29318. createPadding(nativeFloor(mid), chars) +
  29319. string +
  29320. createPadding(nativeCeil(mid), chars)
  29321. );
  29322. }
  29323. /**
  29324. * Pads `string` on the right side if it's shorter than `length`. Padding
  29325. * characters are truncated if they exceed `length`.
  29326. *
  29327. * @static
  29328. * @memberOf _
  29329. * @since 4.0.0
  29330. * @category String
  29331. * @param {string} [string=''] The string to pad.
  29332. * @param {number} [length=0] The padding length.
  29333. * @param {string} [chars=' '] The string used as padding.
  29334. * @returns {string} Returns the padded string.
  29335. * @example
  29336. *
  29337. * _.padEnd('abc', 6);
  29338. * // => 'abc '
  29339. *
  29340. * _.padEnd('abc', 6, '_-');
  29341. * // => 'abc_-_'
  29342. *
  29343. * _.padEnd('abc', 3);
  29344. * // => 'abc'
  29345. */
  29346. function padEnd(string, length, chars) {
  29347. string = toString(string);
  29348. length = toInteger(length);
  29349. var strLength = length ? stringSize(string) : 0;
  29350. return (length && strLength < length)
  29351. ? (string + createPadding(length - strLength, chars))
  29352. : string;
  29353. }
  29354. /**
  29355. * Pads `string` on the left side if it's shorter than `length`. Padding
  29356. * characters are truncated if they exceed `length`.
  29357. *
  29358. * @static
  29359. * @memberOf _
  29360. * @since 4.0.0
  29361. * @category String
  29362. * @param {string} [string=''] The string to pad.
  29363. * @param {number} [length=0] The padding length.
  29364. * @param {string} [chars=' '] The string used as padding.
  29365. * @returns {string} Returns the padded string.
  29366. * @example
  29367. *
  29368. * _.padStart('abc', 6);
  29369. * // => ' abc'
  29370. *
  29371. * _.padStart('abc', 6, '_-');
  29372. * // => '_-_abc'
  29373. *
  29374. * _.padStart('abc', 3);
  29375. * // => 'abc'
  29376. */
  29377. function padStart(string, length, chars) {
  29378. string = toString(string);
  29379. length = toInteger(length);
  29380. var strLength = length ? stringSize(string) : 0;
  29381. return (length && strLength < length)
  29382. ? (createPadding(length - strLength, chars) + string)
  29383. : string;
  29384. }
  29385. /**
  29386. * Converts `string` to an integer of the specified radix. If `radix` is
  29387. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  29388. * hexadecimal, in which case a `radix` of `16` is used.
  29389. *
  29390. * **Note:** This method aligns with the
  29391. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  29392. *
  29393. * @static
  29394. * @memberOf _
  29395. * @since 1.1.0
  29396. * @category String
  29397. * @param {string} string The string to convert.
  29398. * @param {number} [radix=10] The radix to interpret `value` by.
  29399. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29400. * @returns {number} Returns the converted integer.
  29401. * @example
  29402. *
  29403. * _.parseInt('08');
  29404. * // => 8
  29405. *
  29406. * _.map(['6', '08', '10'], _.parseInt);
  29407. * // => [6, 8, 10]
  29408. */
  29409. function parseInt(string, radix, guard) {
  29410. if (guard || radix == null) {
  29411. radix = 0;
  29412. } else if (radix) {
  29413. radix = +radix;
  29414. }
  29415. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  29416. }
  29417. /**
  29418. * Repeats the given string `n` times.
  29419. *
  29420. * @static
  29421. * @memberOf _
  29422. * @since 3.0.0
  29423. * @category String
  29424. * @param {string} [string=''] The string to repeat.
  29425. * @param {number} [n=1] The number of times to repeat the string.
  29426. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29427. * @returns {string} Returns the repeated string.
  29428. * @example
  29429. *
  29430. * _.repeat('*', 3);
  29431. * // => '***'
  29432. *
  29433. * _.repeat('abc', 2);
  29434. * // => 'abcabc'
  29435. *
  29436. * _.repeat('abc', 0);
  29437. * // => ''
  29438. */
  29439. function repeat(string, n, guard) {
  29440. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  29441. n = 1;
  29442. } else {
  29443. n = toInteger(n);
  29444. }
  29445. return baseRepeat(toString(string), n);
  29446. }
  29447. /**
  29448. * Replaces matches for `pattern` in `string` with `replacement`.
  29449. *
  29450. * **Note:** This method is based on
  29451. * [`String#replace`](https://mdn.io/String/replace).
  29452. *
  29453. * @static
  29454. * @memberOf _
  29455. * @since 4.0.0
  29456. * @category String
  29457. * @param {string} [string=''] The string to modify.
  29458. * @param {RegExp|string} pattern The pattern to replace.
  29459. * @param {Function|string} replacement The match replacement.
  29460. * @returns {string} Returns the modified string.
  29461. * @example
  29462. *
  29463. * _.replace('Hi Fred', 'Fred', 'Barney');
  29464. * // => 'Hi Barney'
  29465. */
  29466. function replace() {
  29467. var args = arguments,
  29468. string = toString(args[0]);
  29469. return args.length < 3 ? string : string.replace(args[1], args[2]);
  29470. }
  29471. /**
  29472. * Converts `string` to
  29473. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  29474. *
  29475. * @static
  29476. * @memberOf _
  29477. * @since 3.0.0
  29478. * @category String
  29479. * @param {string} [string=''] The string to convert.
  29480. * @returns {string} Returns the snake cased string.
  29481. * @example
  29482. *
  29483. * _.snakeCase('Foo Bar');
  29484. * // => 'foo_bar'
  29485. *
  29486. * _.snakeCase('fooBar');
  29487. * // => 'foo_bar'
  29488. *
  29489. * _.snakeCase('--FOO-BAR--');
  29490. * // => 'foo_bar'
  29491. */
  29492. var snakeCase = createCompounder(function(result, word, index) {
  29493. return result + (index ? '_' : '') + word.toLowerCase();
  29494. });
  29495. /**
  29496. * Splits `string` by `separator`.
  29497. *
  29498. * **Note:** This method is based on
  29499. * [`String#split`](https://mdn.io/String/split).
  29500. *
  29501. * @static
  29502. * @memberOf _
  29503. * @since 4.0.0
  29504. * @category String
  29505. * @param {string} [string=''] The string to split.
  29506. * @param {RegExp|string} separator The separator pattern to split by.
  29507. * @param {number} [limit] The length to truncate results to.
  29508. * @returns {Array} Returns the string segments.
  29509. * @example
  29510. *
  29511. * _.split('a-b-c', '-', 2);
  29512. * // => ['a', 'b']
  29513. */
  29514. function split(string, separator, limit) {
  29515. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  29516. separator = limit = undefined;
  29517. }
  29518. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  29519. if (!limit) {
  29520. return [];
  29521. }
  29522. string = toString(string);
  29523. if (string && (
  29524. typeof separator == 'string' ||
  29525. (separator != null && !isRegExp(separator))
  29526. )) {
  29527. separator = baseToString(separator);
  29528. if (!separator && hasUnicode(string)) {
  29529. return castSlice(stringToArray(string), 0, limit);
  29530. }
  29531. }
  29532. return string.split(separator, limit);
  29533. }
  29534. /**
  29535. * Converts `string` to
  29536. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  29537. *
  29538. * @static
  29539. * @memberOf _
  29540. * @since 3.1.0
  29541. * @category String
  29542. * @param {string} [string=''] The string to convert.
  29543. * @returns {string} Returns the start cased string.
  29544. * @example
  29545. *
  29546. * _.startCase('--foo-bar--');
  29547. * // => 'Foo Bar'
  29548. *
  29549. * _.startCase('fooBar');
  29550. * // => 'Foo Bar'
  29551. *
  29552. * _.startCase('__FOO_BAR__');
  29553. * // => 'FOO BAR'
  29554. */
  29555. var startCase = createCompounder(function(result, word, index) {
  29556. return result + (index ? ' ' : '') + upperFirst(word);
  29557. });
  29558. /**
  29559. * Checks if `string` starts with the given target string.
  29560. *
  29561. * @static
  29562. * @memberOf _
  29563. * @since 3.0.0
  29564. * @category String
  29565. * @param {string} [string=''] The string to inspect.
  29566. * @param {string} [target] The string to search for.
  29567. * @param {number} [position=0] The position to search from.
  29568. * @returns {boolean} Returns `true` if `string` starts with `target`,
  29569. * else `false`.
  29570. * @example
  29571. *
  29572. * _.startsWith('abc', 'a');
  29573. * // => true
  29574. *
  29575. * _.startsWith('abc', 'b');
  29576. * // => false
  29577. *
  29578. * _.startsWith('abc', 'b', 1);
  29579. * // => true
  29580. */
  29581. function startsWith(string, target, position) {
  29582. string = toString(string);
  29583. position = position == null
  29584. ? 0
  29585. : baseClamp(toInteger(position), 0, string.length);
  29586. target = baseToString(target);
  29587. return string.slice(position, position + target.length) == target;
  29588. }
  29589. /**
  29590. * Creates a compiled template function that can interpolate data properties
  29591. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  29592. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  29593. * properties may be accessed as free variables in the template. If a setting
  29594. * object is given, it takes precedence over `_.templateSettings` values.
  29595. *
  29596. * **Note:** In the development build `_.template` utilizes
  29597. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  29598. * for easier debugging.
  29599. *
  29600. * For more information on precompiling templates see
  29601. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  29602. *
  29603. * For more information on Chrome extension sandboxes see
  29604. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  29605. *
  29606. * @static
  29607. * @since 0.1.0
  29608. * @memberOf _
  29609. * @category String
  29610. * @param {string} [string=''] The template string.
  29611. * @param {Object} [options={}] The options object.
  29612. * @param {RegExp} [options.escape=_.templateSettings.escape]
  29613. * The HTML "escape" delimiter.
  29614. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  29615. * The "evaluate" delimiter.
  29616. * @param {Object} [options.imports=_.templateSettings.imports]
  29617. * An object to import into the template as free variables.
  29618. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  29619. * The "interpolate" delimiter.
  29620. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  29621. * The sourceURL of the compiled template.
  29622. * @param {string} [options.variable='obj']
  29623. * The data object variable name.
  29624. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29625. * @returns {Function} Returns the compiled template function.
  29626. * @example
  29627. *
  29628. * // Use the "interpolate" delimiter to create a compiled template.
  29629. * var compiled = _.template('hello <%= user %>!');
  29630. * compiled({ 'user': 'fred' });
  29631. * // => 'hello fred!'
  29632. *
  29633. * // Use the HTML "escape" delimiter to escape data property values.
  29634. * var compiled = _.template('<b><%- value %></b>');
  29635. * compiled({ 'value': '<script>' });
  29636. * // => '<b>&lt;script&gt;</b>'
  29637. *
  29638. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  29639. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  29640. * compiled({ 'users': ['fred', 'barney'] });
  29641. * // => '<li>fred</li><li>barney</li>'
  29642. *
  29643. * // Use the internal `print` function in "evaluate" delimiters.
  29644. * var compiled = _.template('<% print("hello " + user); %>!');
  29645. * compiled({ 'user': 'barney' });
  29646. * // => 'hello barney!'
  29647. *
  29648. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  29649. * // Disable support by replacing the "interpolate" delimiter.
  29650. * var compiled = _.template('hello ${ user }!');
  29651. * compiled({ 'user': 'pebbles' });
  29652. * // => 'hello pebbles!'
  29653. *
  29654. * // Use backslashes to treat delimiters as plain text.
  29655. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  29656. * compiled({ 'value': 'ignored' });
  29657. * // => '<%- value %>'
  29658. *
  29659. * // Use the `imports` option to import `jQuery` as `jq`.
  29660. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  29661. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  29662. * compiled({ 'users': ['fred', 'barney'] });
  29663. * // => '<li>fred</li><li>barney</li>'
  29664. *
  29665. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  29666. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  29667. * compiled(data);
  29668. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  29669. *
  29670. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  29671. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  29672. * compiled.source;
  29673. * // => function(data) {
  29674. * // var __t, __p = '';
  29675. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  29676. * // return __p;
  29677. * // }
  29678. *
  29679. * // Use custom template delimiters.
  29680. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  29681. * var compiled = _.template('hello {{ user }}!');
  29682. * compiled({ 'user': 'mustache' });
  29683. * // => 'hello mustache!'
  29684. *
  29685. * // Use the `source` property to inline compiled templates for meaningful
  29686. * // line numbers in error messages and stack traces.
  29687. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  29688. * var JST = {\
  29689. * "main": ' + _.template(mainText).source + '\
  29690. * };\
  29691. * ');
  29692. */
  29693. function template(string, options, guard) {
  29694. // Based on John Resig's `tmpl` implementation
  29695. // (http://ejohn.org/blog/javascript-micro-templating/)
  29696. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  29697. var settings = lodash.templateSettings;
  29698. if (guard && isIterateeCall(string, options, guard)) {
  29699. options = undefined;
  29700. }
  29701. string = toString(string);
  29702. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  29703. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  29704. importsKeys = keys(imports),
  29705. importsValues = baseValues(imports, importsKeys);
  29706. var isEscaping,
  29707. isEvaluating,
  29708. index = 0,
  29709. interpolate = options.interpolate || reNoMatch,
  29710. source = "__p += '";
  29711. // Compile the regexp to match each delimiter.
  29712. var reDelimiters = RegExp(
  29713. (options.escape || reNoMatch).source + '|' +
  29714. interpolate.source + '|' +
  29715. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  29716. (options.evaluate || reNoMatch).source + '|$'
  29717. , 'g');
  29718. // Use a sourceURL for easier debugging.
  29719. // The sourceURL gets injected into the source that's eval-ed, so be careful
  29720. // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
  29721. // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
  29722. var sourceURL = '//# sourceURL=' +
  29723. (hasOwnProperty.call(options, 'sourceURL')
  29724. ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
  29725. : ('lodash.templateSources[' + (++templateCounter) + ']')
  29726. ) + '\n';
  29727. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  29728. interpolateValue || (interpolateValue = esTemplateValue);
  29729. // Escape characters that can't be included in string literals.
  29730. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  29731. // Replace delimiters with snippets.
  29732. if (escapeValue) {
  29733. isEscaping = true;
  29734. source += "' +\n__e(" + escapeValue + ") +\n'";
  29735. }
  29736. if (evaluateValue) {
  29737. isEvaluating = true;
  29738. source += "';\n" + evaluateValue + ";\n__p += '";
  29739. }
  29740. if (interpolateValue) {
  29741. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  29742. }
  29743. index = offset + match.length;
  29744. // The JS engine embedded in Adobe products needs `match` returned in
  29745. // order to produce the correct `offset` value.
  29746. return match;
  29747. });
  29748. source += "';\n";
  29749. // If `variable` is not specified wrap a with-statement around the generated
  29750. // code to add the data object to the top of the scope chain.
  29751. // Like with sourceURL, we take care to not check the option's prototype,
  29752. // as this configuration is a code injection vector.
  29753. var variable = hasOwnProperty.call(options, 'variable') && options.variable;
  29754. if (!variable) {
  29755. source = 'with (obj) {\n' + source + '\n}\n';
  29756. }
  29757. // Cleanup code by stripping empty strings.
  29758. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  29759. .replace(reEmptyStringMiddle, '$1')
  29760. .replace(reEmptyStringTrailing, '$1;');
  29761. // Frame code as the function body.
  29762. source = 'function(' + (variable || 'obj') + ') {\n' +
  29763. (variable
  29764. ? ''
  29765. : 'obj || (obj = {});\n'
  29766. ) +
  29767. "var __t, __p = ''" +
  29768. (isEscaping
  29769. ? ', __e = _.escape'
  29770. : ''
  29771. ) +
  29772. (isEvaluating
  29773. ? ', __j = Array.prototype.join;\n' +
  29774. "function print() { __p += __j.call(arguments, '') }\n"
  29775. : ';\n'
  29776. ) +
  29777. source +
  29778. 'return __p\n}';
  29779. var result = attempt(function() {
  29780. return Function(importsKeys, sourceURL + 'return ' + source)
  29781. .apply(undefined, importsValues);
  29782. });
  29783. // Provide the compiled function's source by its `toString` method or
  29784. // the `source` property as a convenience for inlining compiled templates.
  29785. result.source = source;
  29786. if (isError(result)) {
  29787. throw result;
  29788. }
  29789. return result;
  29790. }
  29791. /**
  29792. * Converts `string`, as a whole, to lower case just like
  29793. * [String#toLowerCase](https://mdn.io/toLowerCase).
  29794. *
  29795. * @static
  29796. * @memberOf _
  29797. * @since 4.0.0
  29798. * @category String
  29799. * @param {string} [string=''] The string to convert.
  29800. * @returns {string} Returns the lower cased string.
  29801. * @example
  29802. *
  29803. * _.toLower('--Foo-Bar--');
  29804. * // => '--foo-bar--'
  29805. *
  29806. * _.toLower('fooBar');
  29807. * // => 'foobar'
  29808. *
  29809. * _.toLower('__FOO_BAR__');
  29810. * // => '__foo_bar__'
  29811. */
  29812. function toLower(value) {
  29813. return toString(value).toLowerCase();
  29814. }
  29815. /**
  29816. * Converts `string`, as a whole, to upper case just like
  29817. * [String#toUpperCase](https://mdn.io/toUpperCase).
  29818. *
  29819. * @static
  29820. * @memberOf _
  29821. * @since 4.0.0
  29822. * @category String
  29823. * @param {string} [string=''] The string to convert.
  29824. * @returns {string} Returns the upper cased string.
  29825. * @example
  29826. *
  29827. * _.toUpper('--foo-bar--');
  29828. * // => '--FOO-BAR--'
  29829. *
  29830. * _.toUpper('fooBar');
  29831. * // => 'FOOBAR'
  29832. *
  29833. * _.toUpper('__foo_bar__');
  29834. * // => '__FOO_BAR__'
  29835. */
  29836. function toUpper(value) {
  29837. return toString(value).toUpperCase();
  29838. }
  29839. /**
  29840. * Removes leading and trailing whitespace or specified characters from `string`.
  29841. *
  29842. * @static
  29843. * @memberOf _
  29844. * @since 3.0.0
  29845. * @category String
  29846. * @param {string} [string=''] The string to trim.
  29847. * @param {string} [chars=whitespace] The characters to trim.
  29848. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29849. * @returns {string} Returns the trimmed string.
  29850. * @example
  29851. *
  29852. * _.trim(' abc ');
  29853. * // => 'abc'
  29854. *
  29855. * _.trim('-_-abc-_-', '_-');
  29856. * // => 'abc'
  29857. *
  29858. * _.map([' foo ', ' bar '], _.trim);
  29859. * // => ['foo', 'bar']
  29860. */
  29861. function trim(string, chars, guard) {
  29862. string = toString(string);
  29863. if (string && (guard || chars === undefined)) {
  29864. return string.replace(reTrim, '');
  29865. }
  29866. if (!string || !(chars = baseToString(chars))) {
  29867. return string;
  29868. }
  29869. var strSymbols = stringToArray(string),
  29870. chrSymbols = stringToArray(chars),
  29871. start = charsStartIndex(strSymbols, chrSymbols),
  29872. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  29873. return castSlice(strSymbols, start, end).join('');
  29874. }
  29875. /**
  29876. * Removes trailing whitespace or specified characters from `string`.
  29877. *
  29878. * @static
  29879. * @memberOf _
  29880. * @since 4.0.0
  29881. * @category String
  29882. * @param {string} [string=''] The string to trim.
  29883. * @param {string} [chars=whitespace] The characters to trim.
  29884. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29885. * @returns {string} Returns the trimmed string.
  29886. * @example
  29887. *
  29888. * _.trimEnd(' abc ');
  29889. * // => ' abc'
  29890. *
  29891. * _.trimEnd('-_-abc-_-', '_-');
  29892. * // => '-_-abc'
  29893. */
  29894. function trimEnd(string, chars, guard) {
  29895. string = toString(string);
  29896. if (string && (guard || chars === undefined)) {
  29897. return string.replace(reTrimEnd, '');
  29898. }
  29899. if (!string || !(chars = baseToString(chars))) {
  29900. return string;
  29901. }
  29902. var strSymbols = stringToArray(string),
  29903. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  29904. return castSlice(strSymbols, 0, end).join('');
  29905. }
  29906. /**
  29907. * Removes leading whitespace or specified characters from `string`.
  29908. *
  29909. * @static
  29910. * @memberOf _
  29911. * @since 4.0.0
  29912. * @category String
  29913. * @param {string} [string=''] The string to trim.
  29914. * @param {string} [chars=whitespace] The characters to trim.
  29915. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29916. * @returns {string} Returns the trimmed string.
  29917. * @example
  29918. *
  29919. * _.trimStart(' abc ');
  29920. * // => 'abc '
  29921. *
  29922. * _.trimStart('-_-abc-_-', '_-');
  29923. * // => 'abc-_-'
  29924. */
  29925. function trimStart(string, chars, guard) {
  29926. string = toString(string);
  29927. if (string && (guard || chars === undefined)) {
  29928. return string.replace(reTrimStart, '');
  29929. }
  29930. if (!string || !(chars = baseToString(chars))) {
  29931. return string;
  29932. }
  29933. var strSymbols = stringToArray(string),
  29934. start = charsStartIndex(strSymbols, stringToArray(chars));
  29935. return castSlice(strSymbols, start).join('');
  29936. }
  29937. /**
  29938. * Truncates `string` if it's longer than the given maximum string length.
  29939. * The last characters of the truncated string are replaced with the omission
  29940. * string which defaults to "...".
  29941. *
  29942. * @static
  29943. * @memberOf _
  29944. * @since 4.0.0
  29945. * @category String
  29946. * @param {string} [string=''] The string to truncate.
  29947. * @param {Object} [options={}] The options object.
  29948. * @param {number} [options.length=30] The maximum string length.
  29949. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  29950. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  29951. * @returns {string} Returns the truncated string.
  29952. * @example
  29953. *
  29954. * _.truncate('hi-diddly-ho there, neighborino');
  29955. * // => 'hi-diddly-ho there, neighbo...'
  29956. *
  29957. * _.truncate('hi-diddly-ho there, neighborino', {
  29958. * 'length': 24,
  29959. * 'separator': ' '
  29960. * });
  29961. * // => 'hi-diddly-ho there,...'
  29962. *
  29963. * _.truncate('hi-diddly-ho there, neighborino', {
  29964. * 'length': 24,
  29965. * 'separator': /,? +/
  29966. * });
  29967. * // => 'hi-diddly-ho there...'
  29968. *
  29969. * _.truncate('hi-diddly-ho there, neighborino', {
  29970. * 'omission': ' [...]'
  29971. * });
  29972. * // => 'hi-diddly-ho there, neig [...]'
  29973. */
  29974. function truncate(string, options) {
  29975. var length = DEFAULT_TRUNC_LENGTH,
  29976. omission = DEFAULT_TRUNC_OMISSION;
  29977. if (isObject(options)) {
  29978. var separator = 'separator' in options ? options.separator : separator;
  29979. length = 'length' in options ? toInteger(options.length) : length;
  29980. omission = 'omission' in options ? baseToString(options.omission) : omission;
  29981. }
  29982. string = toString(string);
  29983. var strLength = string.length;
  29984. if (hasUnicode(string)) {
  29985. var strSymbols = stringToArray(string);
  29986. strLength = strSymbols.length;
  29987. }
  29988. if (length >= strLength) {
  29989. return string;
  29990. }
  29991. var end = length - stringSize(omission);
  29992. if (end < 1) {
  29993. return omission;
  29994. }
  29995. var result = strSymbols
  29996. ? castSlice(strSymbols, 0, end).join('')
  29997. : string.slice(0, end);
  29998. if (separator === undefined) {
  29999. return result + omission;
  30000. }
  30001. if (strSymbols) {
  30002. end += (result.length - end);
  30003. }
  30004. if (isRegExp(separator)) {
  30005. if (string.slice(end).search(separator)) {
  30006. var match,
  30007. substring = result;
  30008. if (!separator.global) {
  30009. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  30010. }
  30011. separator.lastIndex = 0;
  30012. while ((match = separator.exec(substring))) {
  30013. var newEnd = match.index;
  30014. }
  30015. result = result.slice(0, newEnd === undefined ? end : newEnd);
  30016. }
  30017. } else if (string.indexOf(baseToString(separator), end) != end) {
  30018. var index = result.lastIndexOf(separator);
  30019. if (index > -1) {
  30020. result = result.slice(0, index);
  30021. }
  30022. }
  30023. return result + omission;
  30024. }
  30025. /**
  30026. * The inverse of `_.escape`; this method converts the HTML entities
  30027. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  30028. * their corresponding characters.
  30029. *
  30030. * **Note:** No other HTML entities are unescaped. To unescape additional
  30031. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  30032. *
  30033. * @static
  30034. * @memberOf _
  30035. * @since 0.6.0
  30036. * @category String
  30037. * @param {string} [string=''] The string to unescape.
  30038. * @returns {string} Returns the unescaped string.
  30039. * @example
  30040. *
  30041. * _.unescape('fred, barney, &amp; pebbles');
  30042. * // => 'fred, barney, & pebbles'
  30043. */
  30044. function unescape(string) {
  30045. string = toString(string);
  30046. return (string && reHasEscapedHtml.test(string))
  30047. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  30048. : string;
  30049. }
  30050. /**
  30051. * Converts `string`, as space separated words, to upper case.
  30052. *
  30053. * @static
  30054. * @memberOf _
  30055. * @since 4.0.0
  30056. * @category String
  30057. * @param {string} [string=''] The string to convert.
  30058. * @returns {string} Returns the upper cased string.
  30059. * @example
  30060. *
  30061. * _.upperCase('--foo-bar');
  30062. * // => 'FOO BAR'
  30063. *
  30064. * _.upperCase('fooBar');
  30065. * // => 'FOO BAR'
  30066. *
  30067. * _.upperCase('__foo_bar__');
  30068. * // => 'FOO BAR'
  30069. */
  30070. var upperCase = createCompounder(function(result, word, index) {
  30071. return result + (index ? ' ' : '') + word.toUpperCase();
  30072. });
  30073. /**
  30074. * Converts the first character of `string` to upper case.
  30075. *
  30076. * @static
  30077. * @memberOf _
  30078. * @since 4.0.0
  30079. * @category String
  30080. * @param {string} [string=''] The string to convert.
  30081. * @returns {string} Returns the converted string.
  30082. * @example
  30083. *
  30084. * _.upperFirst('fred');
  30085. * // => 'Fred'
  30086. *
  30087. * _.upperFirst('FRED');
  30088. * // => 'FRED'
  30089. */
  30090. var upperFirst = createCaseFirst('toUpperCase');
  30091. /**
  30092. * Splits `string` into an array of its words.
  30093. *
  30094. * @static
  30095. * @memberOf _
  30096. * @since 3.0.0
  30097. * @category String
  30098. * @param {string} [string=''] The string to inspect.
  30099. * @param {RegExp|string} [pattern] The pattern to match words.
  30100. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30101. * @returns {Array} Returns the words of `string`.
  30102. * @example
  30103. *
  30104. * _.words('fred, barney, & pebbles');
  30105. * // => ['fred', 'barney', 'pebbles']
  30106. *
  30107. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  30108. * // => ['fred', 'barney', '&', 'pebbles']
  30109. */
  30110. function words(string, pattern, guard) {
  30111. string = toString(string);
  30112. pattern = guard ? undefined : pattern;
  30113. if (pattern === undefined) {
  30114. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  30115. }
  30116. return string.match(pattern) || [];
  30117. }
  30118. /*------------------------------------------------------------------------*/
  30119. /**
  30120. * Attempts to invoke `func`, returning either the result or the caught error
  30121. * object. Any additional arguments are provided to `func` when it's invoked.
  30122. *
  30123. * @static
  30124. * @memberOf _
  30125. * @since 3.0.0
  30126. * @category Util
  30127. * @param {Function} func The function to attempt.
  30128. * @param {...*} [args] The arguments to invoke `func` with.
  30129. * @returns {*} Returns the `func` result or error object.
  30130. * @example
  30131. *
  30132. * // Avoid throwing errors for invalid selectors.
  30133. * var elements = _.attempt(function(selector) {
  30134. * return document.querySelectorAll(selector);
  30135. * }, '>_>');
  30136. *
  30137. * if (_.isError(elements)) {
  30138. * elements = [];
  30139. * }
  30140. */
  30141. var attempt = baseRest(function(func, args) {
  30142. try {
  30143. return apply(func, undefined, args);
  30144. } catch (e) {
  30145. return isError(e) ? e : new Error(e);
  30146. }
  30147. });
  30148. /**
  30149. * Binds methods of an object to the object itself, overwriting the existing
  30150. * method.
  30151. *
  30152. * **Note:** This method doesn't set the "length" property of bound functions.
  30153. *
  30154. * @static
  30155. * @since 0.1.0
  30156. * @memberOf _
  30157. * @category Util
  30158. * @param {Object} object The object to bind and assign the bound methods to.
  30159. * @param {...(string|string[])} methodNames The object method names to bind.
  30160. * @returns {Object} Returns `object`.
  30161. * @example
  30162. *
  30163. * var view = {
  30164. * 'label': 'docs',
  30165. * 'click': function() {
  30166. * console.log('clicked ' + this.label);
  30167. * }
  30168. * };
  30169. *
  30170. * _.bindAll(view, ['click']);
  30171. * jQuery(element).on('click', view.click);
  30172. * // => Logs 'clicked docs' when clicked.
  30173. */
  30174. var bindAll = flatRest(function(object, methodNames) {
  30175. arrayEach(methodNames, function(key) {
  30176. key = toKey(key);
  30177. baseAssignValue(object, key, bind(object[key], object));
  30178. });
  30179. return object;
  30180. });
  30181. /**
  30182. * Creates a function that iterates over `pairs` and invokes the corresponding
  30183. * function of the first predicate to return truthy. The predicate-function
  30184. * pairs are invoked with the `this` binding and arguments of the created
  30185. * function.
  30186. *
  30187. * @static
  30188. * @memberOf _
  30189. * @since 4.0.0
  30190. * @category Util
  30191. * @param {Array} pairs The predicate-function pairs.
  30192. * @returns {Function} Returns the new composite function.
  30193. * @example
  30194. *
  30195. * var func = _.cond([
  30196. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  30197. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  30198. * [_.stubTrue, _.constant('no match')]
  30199. * ]);
  30200. *
  30201. * func({ 'a': 1, 'b': 2 });
  30202. * // => 'matches A'
  30203. *
  30204. * func({ 'a': 0, 'b': 1 });
  30205. * // => 'matches B'
  30206. *
  30207. * func({ 'a': '1', 'b': '2' });
  30208. * // => 'no match'
  30209. */
  30210. function cond(pairs) {
  30211. var length = pairs == null ? 0 : pairs.length,
  30212. toIteratee = getIteratee();
  30213. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  30214. if (typeof pair[1] != 'function') {
  30215. throw new TypeError(FUNC_ERROR_TEXT);
  30216. }
  30217. return [toIteratee(pair[0]), pair[1]];
  30218. });
  30219. return baseRest(function(args) {
  30220. var index = -1;
  30221. while (++index < length) {
  30222. var pair = pairs[index];
  30223. if (apply(pair[0], this, args)) {
  30224. return apply(pair[1], this, args);
  30225. }
  30226. }
  30227. });
  30228. }
  30229. /**
  30230. * Creates a function that invokes the predicate properties of `source` with
  30231. * the corresponding property values of a given object, returning `true` if
  30232. * all predicates return truthy, else `false`.
  30233. *
  30234. * **Note:** The created function is equivalent to `_.conformsTo` with
  30235. * `source` partially applied.
  30236. *
  30237. * @static
  30238. * @memberOf _
  30239. * @since 4.0.0
  30240. * @category Util
  30241. * @param {Object} source The object of property predicates to conform to.
  30242. * @returns {Function} Returns the new spec function.
  30243. * @example
  30244. *
  30245. * var objects = [
  30246. * { 'a': 2, 'b': 1 },
  30247. * { 'a': 1, 'b': 2 }
  30248. * ];
  30249. *
  30250. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  30251. * // => [{ 'a': 1, 'b': 2 }]
  30252. */
  30253. function conforms(source) {
  30254. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  30255. }
  30256. /**
  30257. * Creates a function that returns `value`.
  30258. *
  30259. * @static
  30260. * @memberOf _
  30261. * @since 2.4.0
  30262. * @category Util
  30263. * @param {*} value The value to return from the new function.
  30264. * @returns {Function} Returns the new constant function.
  30265. * @example
  30266. *
  30267. * var objects = _.times(2, _.constant({ 'a': 1 }));
  30268. *
  30269. * console.log(objects);
  30270. * // => [{ 'a': 1 }, { 'a': 1 }]
  30271. *
  30272. * console.log(objects[0] === objects[1]);
  30273. * // => true
  30274. */
  30275. function constant(value) {
  30276. return function() {
  30277. return value;
  30278. };
  30279. }
  30280. /**
  30281. * Checks `value` to determine whether a default value should be returned in
  30282. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  30283. * or `undefined`.
  30284. *
  30285. * @static
  30286. * @memberOf _
  30287. * @since 4.14.0
  30288. * @category Util
  30289. * @param {*} value The value to check.
  30290. * @param {*} defaultValue The default value.
  30291. * @returns {*} Returns the resolved value.
  30292. * @example
  30293. *
  30294. * _.defaultTo(1, 10);
  30295. * // => 1
  30296. *
  30297. * _.defaultTo(undefined, 10);
  30298. * // => 10
  30299. */
  30300. function defaultTo(value, defaultValue) {
  30301. return (value == null || value !== value) ? defaultValue : value;
  30302. }
  30303. /**
  30304. * Creates a function that returns the result of invoking the given functions
  30305. * with the `this` binding of the created function, where each successive
  30306. * invocation is supplied the return value of the previous.
  30307. *
  30308. * @static
  30309. * @memberOf _
  30310. * @since 3.0.0
  30311. * @category Util
  30312. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30313. * @returns {Function} Returns the new composite function.
  30314. * @see _.flowRight
  30315. * @example
  30316. *
  30317. * function square(n) {
  30318. * return n * n;
  30319. * }
  30320. *
  30321. * var addSquare = _.flow([_.add, square]);
  30322. * addSquare(1, 2);
  30323. * // => 9
  30324. */
  30325. var flow = createFlow();
  30326. /**
  30327. * This method is like `_.flow` except that it creates a function that
  30328. * invokes the given functions from right to left.
  30329. *
  30330. * @static
  30331. * @since 3.0.0
  30332. * @memberOf _
  30333. * @category Util
  30334. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30335. * @returns {Function} Returns the new composite function.
  30336. * @see _.flow
  30337. * @example
  30338. *
  30339. * function square(n) {
  30340. * return n * n;
  30341. * }
  30342. *
  30343. * var addSquare = _.flowRight([square, _.add]);
  30344. * addSquare(1, 2);
  30345. * // => 9
  30346. */
  30347. var flowRight = createFlow(true);
  30348. /**
  30349. * This method returns the first argument it receives.
  30350. *
  30351. * @static
  30352. * @since 0.1.0
  30353. * @memberOf _
  30354. * @category Util
  30355. * @param {*} value Any value.
  30356. * @returns {*} Returns `value`.
  30357. * @example
  30358. *
  30359. * var object = { 'a': 1 };
  30360. *
  30361. * console.log(_.identity(object) === object);
  30362. * // => true
  30363. */
  30364. function identity(value) {
  30365. return value;
  30366. }
  30367. /**
  30368. * Creates a function that invokes `func` with the arguments of the created
  30369. * function. If `func` is a property name, the created function returns the
  30370. * property value for a given element. If `func` is an array or object, the
  30371. * created function returns `true` for elements that contain the equivalent
  30372. * source properties, otherwise it returns `false`.
  30373. *
  30374. * @static
  30375. * @since 4.0.0
  30376. * @memberOf _
  30377. * @category Util
  30378. * @param {*} [func=_.identity] The value to convert to a callback.
  30379. * @returns {Function} Returns the callback.
  30380. * @example
  30381. *
  30382. * var users = [
  30383. * { 'user': 'barney', 'age': 36, 'active': true },
  30384. * { 'user': 'fred', 'age': 40, 'active': false }
  30385. * ];
  30386. *
  30387. * // The `_.matches` iteratee shorthand.
  30388. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  30389. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  30390. *
  30391. * // The `_.matchesProperty` iteratee shorthand.
  30392. * _.filter(users, _.iteratee(['user', 'fred']));
  30393. * // => [{ 'user': 'fred', 'age': 40 }]
  30394. *
  30395. * // The `_.property` iteratee shorthand.
  30396. * _.map(users, _.iteratee('user'));
  30397. * // => ['barney', 'fred']
  30398. *
  30399. * // Create custom iteratee shorthands.
  30400. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  30401. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  30402. * return func.test(string);
  30403. * };
  30404. * });
  30405. *
  30406. * _.filter(['abc', 'def'], /ef/);
  30407. * // => ['def']
  30408. */
  30409. function iteratee(func) {
  30410. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  30411. }
  30412. /**
  30413. * Creates a function that performs a partial deep comparison between a given
  30414. * object and `source`, returning `true` if the given object has equivalent
  30415. * property values, else `false`.
  30416. *
  30417. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  30418. * partially applied.
  30419. *
  30420. * Partial comparisons will match empty array and empty object `source`
  30421. * values against any array or object value, respectively. See `_.isEqual`
  30422. * for a list of supported value comparisons.
  30423. *
  30424. * @static
  30425. * @memberOf _
  30426. * @since 3.0.0
  30427. * @category Util
  30428. * @param {Object} source The object of property values to match.
  30429. * @returns {Function} Returns the new spec function.
  30430. * @example
  30431. *
  30432. * var objects = [
  30433. * { 'a': 1, 'b': 2, 'c': 3 },
  30434. * { 'a': 4, 'b': 5, 'c': 6 }
  30435. * ];
  30436. *
  30437. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  30438. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  30439. */
  30440. function matches(source) {
  30441. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  30442. }
  30443. /**
  30444. * Creates a function that performs a partial deep comparison between the
  30445. * value at `path` of a given object to `srcValue`, returning `true` if the
  30446. * object value is equivalent, else `false`.
  30447. *
  30448. * **Note:** Partial comparisons will match empty array and empty object
  30449. * `srcValue` values against any array or object value, respectively. See
  30450. * `_.isEqual` for a list of supported value comparisons.
  30451. *
  30452. * @static
  30453. * @memberOf _
  30454. * @since 3.2.0
  30455. * @category Util
  30456. * @param {Array|string} path The path of the property to get.
  30457. * @param {*} srcValue The value to match.
  30458. * @returns {Function} Returns the new spec function.
  30459. * @example
  30460. *
  30461. * var objects = [
  30462. * { 'a': 1, 'b': 2, 'c': 3 },
  30463. * { 'a': 4, 'b': 5, 'c': 6 }
  30464. * ];
  30465. *
  30466. * _.find(objects, _.matchesProperty('a', 4));
  30467. * // => { 'a': 4, 'b': 5, 'c': 6 }
  30468. */
  30469. function matchesProperty(path, srcValue) {
  30470. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  30471. }
  30472. /**
  30473. * Creates a function that invokes the method at `path` of a given object.
  30474. * Any additional arguments are provided to the invoked method.
  30475. *
  30476. * @static
  30477. * @memberOf _
  30478. * @since 3.7.0
  30479. * @category Util
  30480. * @param {Array|string} path The path of the method to invoke.
  30481. * @param {...*} [args] The arguments to invoke the method with.
  30482. * @returns {Function} Returns the new invoker function.
  30483. * @example
  30484. *
  30485. * var objects = [
  30486. * { 'a': { 'b': _.constant(2) } },
  30487. * { 'a': { 'b': _.constant(1) } }
  30488. * ];
  30489. *
  30490. * _.map(objects, _.method('a.b'));
  30491. * // => [2, 1]
  30492. *
  30493. * _.map(objects, _.method(['a', 'b']));
  30494. * // => [2, 1]
  30495. */
  30496. var method = baseRest(function(path, args) {
  30497. return function(object) {
  30498. return baseInvoke(object, path, args);
  30499. };
  30500. });
  30501. /**
  30502. * The opposite of `_.method`; this method creates a function that invokes
  30503. * the method at a given path of `object`. Any additional arguments are
  30504. * provided to the invoked method.
  30505. *
  30506. * @static
  30507. * @memberOf _
  30508. * @since 3.7.0
  30509. * @category Util
  30510. * @param {Object} object The object to query.
  30511. * @param {...*} [args] The arguments to invoke the method with.
  30512. * @returns {Function} Returns the new invoker function.
  30513. * @example
  30514. *
  30515. * var array = _.times(3, _.constant),
  30516. * object = { 'a': array, 'b': array, 'c': array };
  30517. *
  30518. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  30519. * // => [2, 0]
  30520. *
  30521. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  30522. * // => [2, 0]
  30523. */
  30524. var methodOf = baseRest(function(object, args) {
  30525. return function(path) {
  30526. return baseInvoke(object, path, args);
  30527. };
  30528. });
  30529. /**
  30530. * Adds all own enumerable string keyed function properties of a source
  30531. * object to the destination object. If `object` is a function, then methods
  30532. * are added to its prototype as well.
  30533. *
  30534. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  30535. * avoid conflicts caused by modifying the original.
  30536. *
  30537. * @static
  30538. * @since 0.1.0
  30539. * @memberOf _
  30540. * @category Util
  30541. * @param {Function|Object} [object=lodash] The destination object.
  30542. * @param {Object} source The object of functions to add.
  30543. * @param {Object} [options={}] The options object.
  30544. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  30545. * @returns {Function|Object} Returns `object`.
  30546. * @example
  30547. *
  30548. * function vowels(string) {
  30549. * return _.filter(string, function(v) {
  30550. * return /[aeiou]/i.test(v);
  30551. * });
  30552. * }
  30553. *
  30554. * _.mixin({ 'vowels': vowels });
  30555. * _.vowels('fred');
  30556. * // => ['e']
  30557. *
  30558. * _('fred').vowels().value();
  30559. * // => ['e']
  30560. *
  30561. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  30562. * _('fred').vowels();
  30563. * // => ['e']
  30564. */
  30565. function mixin(object, source, options) {
  30566. var props = keys(source),
  30567. methodNames = baseFunctions(source, props);
  30568. if (options == null &&
  30569. !(isObject(source) && (methodNames.length || !props.length))) {
  30570. options = source;
  30571. source = object;
  30572. object = this;
  30573. methodNames = baseFunctions(source, keys(source));
  30574. }
  30575. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  30576. isFunc = isFunction(object);
  30577. arrayEach(methodNames, function(methodName) {
  30578. var func = source[methodName];
  30579. object[methodName] = func;
  30580. if (isFunc) {
  30581. object.prototype[methodName] = function() {
  30582. var chainAll = this.__chain__;
  30583. if (chain || chainAll) {
  30584. var result = object(this.__wrapped__),
  30585. actions = result.__actions__ = copyArray(this.__actions__);
  30586. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  30587. result.__chain__ = chainAll;
  30588. return result;
  30589. }
  30590. return func.apply(object, arrayPush([this.value()], arguments));
  30591. };
  30592. }
  30593. });
  30594. return object;
  30595. }
  30596. /**
  30597. * Reverts the `_` variable to its previous value and returns a reference to
  30598. * the `lodash` function.
  30599. *
  30600. * @static
  30601. * @since 0.1.0
  30602. * @memberOf _
  30603. * @category Util
  30604. * @returns {Function} Returns the `lodash` function.
  30605. * @example
  30606. *
  30607. * var lodash = _.noConflict();
  30608. */
  30609. function noConflict() {
  30610. if (root._ === this) {
  30611. root._ = oldDash;
  30612. }
  30613. return this;
  30614. }
  30615. /**
  30616. * This method returns `undefined`.
  30617. *
  30618. * @static
  30619. * @memberOf _
  30620. * @since 2.3.0
  30621. * @category Util
  30622. * @example
  30623. *
  30624. * _.times(2, _.noop);
  30625. * // => [undefined, undefined]
  30626. */
  30627. function noop() {
  30628. // No operation performed.
  30629. }
  30630. /**
  30631. * Creates a function that gets the argument at index `n`. If `n` is negative,
  30632. * the nth argument from the end is returned.
  30633. *
  30634. * @static
  30635. * @memberOf _
  30636. * @since 4.0.0
  30637. * @category Util
  30638. * @param {number} [n=0] The index of the argument to return.
  30639. * @returns {Function} Returns the new pass-thru function.
  30640. * @example
  30641. *
  30642. * var func = _.nthArg(1);
  30643. * func('a', 'b', 'c', 'd');
  30644. * // => 'b'
  30645. *
  30646. * var func = _.nthArg(-2);
  30647. * func('a', 'b', 'c', 'd');
  30648. * // => 'c'
  30649. */
  30650. function nthArg(n) {
  30651. n = toInteger(n);
  30652. return baseRest(function(args) {
  30653. return baseNth(args, n);
  30654. });
  30655. }
  30656. /**
  30657. * Creates a function that invokes `iteratees` with the arguments it receives
  30658. * and returns their results.
  30659. *
  30660. * @static
  30661. * @memberOf _
  30662. * @since 4.0.0
  30663. * @category Util
  30664. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  30665. * The iteratees to invoke.
  30666. * @returns {Function} Returns the new function.
  30667. * @example
  30668. *
  30669. * var func = _.over([Math.max, Math.min]);
  30670. *
  30671. * func(1, 2, 3, 4);
  30672. * // => [4, 1]
  30673. */
  30674. var over = createOver(arrayMap);
  30675. /**
  30676. * Creates a function that checks if **all** of the `predicates` return
  30677. * truthy when invoked with the arguments it receives.
  30678. *
  30679. * @static
  30680. * @memberOf _
  30681. * @since 4.0.0
  30682. * @category Util
  30683. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30684. * The predicates to check.
  30685. * @returns {Function} Returns the new function.
  30686. * @example
  30687. *
  30688. * var func = _.overEvery([Boolean, isFinite]);
  30689. *
  30690. * func('1');
  30691. * // => true
  30692. *
  30693. * func(null);
  30694. * // => false
  30695. *
  30696. * func(NaN);
  30697. * // => false
  30698. */
  30699. var overEvery = createOver(arrayEvery);
  30700. /**
  30701. * Creates a function that checks if **any** of the `predicates` return
  30702. * truthy when invoked with the arguments it receives.
  30703. *
  30704. * @static
  30705. * @memberOf _
  30706. * @since 4.0.0
  30707. * @category Util
  30708. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30709. * The predicates to check.
  30710. * @returns {Function} Returns the new function.
  30711. * @example
  30712. *
  30713. * var func = _.overSome([Boolean, isFinite]);
  30714. *
  30715. * func('1');
  30716. * // => true
  30717. *
  30718. * func(null);
  30719. * // => true
  30720. *
  30721. * func(NaN);
  30722. * // => false
  30723. */
  30724. var overSome = createOver(arraySome);
  30725. /**
  30726. * Creates a function that returns the value at `path` of a given object.
  30727. *
  30728. * @static
  30729. * @memberOf _
  30730. * @since 2.4.0
  30731. * @category Util
  30732. * @param {Array|string} path The path of the property to get.
  30733. * @returns {Function} Returns the new accessor function.
  30734. * @example
  30735. *
  30736. * var objects = [
  30737. * { 'a': { 'b': 2 } },
  30738. * { 'a': { 'b': 1 } }
  30739. * ];
  30740. *
  30741. * _.map(objects, _.property('a.b'));
  30742. * // => [2, 1]
  30743. *
  30744. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  30745. * // => [1, 2]
  30746. */
  30747. function property(path) {
  30748. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  30749. }
  30750. /**
  30751. * The opposite of `_.property`; this method creates a function that returns
  30752. * the value at a given path of `object`.
  30753. *
  30754. * @static
  30755. * @memberOf _
  30756. * @since 3.0.0
  30757. * @category Util
  30758. * @param {Object} object The object to query.
  30759. * @returns {Function} Returns the new accessor function.
  30760. * @example
  30761. *
  30762. * var array = [0, 1, 2],
  30763. * object = { 'a': array, 'b': array, 'c': array };
  30764. *
  30765. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  30766. * // => [2, 0]
  30767. *
  30768. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  30769. * // => [2, 0]
  30770. */
  30771. function propertyOf(object) {
  30772. return function(path) {
  30773. return object == null ? undefined : baseGet(object, path);
  30774. };
  30775. }
  30776. /**
  30777. * Creates an array of numbers (positive and/or negative) progressing from
  30778. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  30779. * `start` is specified without an `end` or `step`. If `end` is not specified,
  30780. * it's set to `start` with `start` then set to `0`.
  30781. *
  30782. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  30783. * floating-point values which can produce unexpected results.
  30784. *
  30785. * @static
  30786. * @since 0.1.0
  30787. * @memberOf _
  30788. * @category Util
  30789. * @param {number} [start=0] The start of the range.
  30790. * @param {number} end The end of the range.
  30791. * @param {number} [step=1] The value to increment or decrement by.
  30792. * @returns {Array} Returns the range of numbers.
  30793. * @see _.inRange, _.rangeRight
  30794. * @example
  30795. *
  30796. * _.range(4);
  30797. * // => [0, 1, 2, 3]
  30798. *
  30799. * _.range(-4);
  30800. * // => [0, -1, -2, -3]
  30801. *
  30802. * _.range(1, 5);
  30803. * // => [1, 2, 3, 4]
  30804. *
  30805. * _.range(0, 20, 5);
  30806. * // => [0, 5, 10, 15]
  30807. *
  30808. * _.range(0, -4, -1);
  30809. * // => [0, -1, -2, -3]
  30810. *
  30811. * _.range(1, 4, 0);
  30812. * // => [1, 1, 1]
  30813. *
  30814. * _.range(0);
  30815. * // => []
  30816. */
  30817. var range = createRange();
  30818. /**
  30819. * This method is like `_.range` except that it populates values in
  30820. * descending order.
  30821. *
  30822. * @static
  30823. * @memberOf _
  30824. * @since 4.0.0
  30825. * @category Util
  30826. * @param {number} [start=0] The start of the range.
  30827. * @param {number} end The end of the range.
  30828. * @param {number} [step=1] The value to increment or decrement by.
  30829. * @returns {Array} Returns the range of numbers.
  30830. * @see _.inRange, _.range
  30831. * @example
  30832. *
  30833. * _.rangeRight(4);
  30834. * // => [3, 2, 1, 0]
  30835. *
  30836. * _.rangeRight(-4);
  30837. * // => [-3, -2, -1, 0]
  30838. *
  30839. * _.rangeRight(1, 5);
  30840. * // => [4, 3, 2, 1]
  30841. *
  30842. * _.rangeRight(0, 20, 5);
  30843. * // => [15, 10, 5, 0]
  30844. *
  30845. * _.rangeRight(0, -4, -1);
  30846. * // => [-3, -2, -1, 0]
  30847. *
  30848. * _.rangeRight(1, 4, 0);
  30849. * // => [1, 1, 1]
  30850. *
  30851. * _.rangeRight(0);
  30852. * // => []
  30853. */
  30854. var rangeRight = createRange(true);
  30855. /**
  30856. * This method returns a new empty array.
  30857. *
  30858. * @static
  30859. * @memberOf _
  30860. * @since 4.13.0
  30861. * @category Util
  30862. * @returns {Array} Returns the new empty array.
  30863. * @example
  30864. *
  30865. * var arrays = _.times(2, _.stubArray);
  30866. *
  30867. * console.log(arrays);
  30868. * // => [[], []]
  30869. *
  30870. * console.log(arrays[0] === arrays[1]);
  30871. * // => false
  30872. */
  30873. function stubArray() {
  30874. return [];
  30875. }
  30876. /**
  30877. * This method returns `false`.
  30878. *
  30879. * @static
  30880. * @memberOf _
  30881. * @since 4.13.0
  30882. * @category Util
  30883. * @returns {boolean} Returns `false`.
  30884. * @example
  30885. *
  30886. * _.times(2, _.stubFalse);
  30887. * // => [false, false]
  30888. */
  30889. function stubFalse() {
  30890. return false;
  30891. }
  30892. /**
  30893. * This method returns a new empty object.
  30894. *
  30895. * @static
  30896. * @memberOf _
  30897. * @since 4.13.0
  30898. * @category Util
  30899. * @returns {Object} Returns the new empty object.
  30900. * @example
  30901. *
  30902. * var objects = _.times(2, _.stubObject);
  30903. *
  30904. * console.log(objects);
  30905. * // => [{}, {}]
  30906. *
  30907. * console.log(objects[0] === objects[1]);
  30908. * // => false
  30909. */
  30910. function stubObject() {
  30911. return {};
  30912. }
  30913. /**
  30914. * This method returns an empty string.
  30915. *
  30916. * @static
  30917. * @memberOf _
  30918. * @since 4.13.0
  30919. * @category Util
  30920. * @returns {string} Returns the empty string.
  30921. * @example
  30922. *
  30923. * _.times(2, _.stubString);
  30924. * // => ['', '']
  30925. */
  30926. function stubString() {
  30927. return '';
  30928. }
  30929. /**
  30930. * This method returns `true`.
  30931. *
  30932. * @static
  30933. * @memberOf _
  30934. * @since 4.13.0
  30935. * @category Util
  30936. * @returns {boolean} Returns `true`.
  30937. * @example
  30938. *
  30939. * _.times(2, _.stubTrue);
  30940. * // => [true, true]
  30941. */
  30942. function stubTrue() {
  30943. return true;
  30944. }
  30945. /**
  30946. * Invokes the iteratee `n` times, returning an array of the results of
  30947. * each invocation. The iteratee is invoked with one argument; (index).
  30948. *
  30949. * @static
  30950. * @since 0.1.0
  30951. * @memberOf _
  30952. * @category Util
  30953. * @param {number} n The number of times to invoke `iteratee`.
  30954. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  30955. * @returns {Array} Returns the array of results.
  30956. * @example
  30957. *
  30958. * _.times(3, String);
  30959. * // => ['0', '1', '2']
  30960. *
  30961. * _.times(4, _.constant(0));
  30962. * // => [0, 0, 0, 0]
  30963. */
  30964. function times(n, iteratee) {
  30965. n = toInteger(n);
  30966. if (n < 1 || n > MAX_SAFE_INTEGER) {
  30967. return [];
  30968. }
  30969. var index = MAX_ARRAY_LENGTH,
  30970. length = nativeMin(n, MAX_ARRAY_LENGTH);
  30971. iteratee = getIteratee(iteratee);
  30972. n -= MAX_ARRAY_LENGTH;
  30973. var result = baseTimes(length, iteratee);
  30974. while (++index < n) {
  30975. iteratee(index);
  30976. }
  30977. return result;
  30978. }
  30979. /**
  30980. * Converts `value` to a property path array.
  30981. *
  30982. * @static
  30983. * @memberOf _
  30984. * @since 4.0.0
  30985. * @category Util
  30986. * @param {*} value The value to convert.
  30987. * @returns {Array} Returns the new property path array.
  30988. * @example
  30989. *
  30990. * _.toPath('a.b.c');
  30991. * // => ['a', 'b', 'c']
  30992. *
  30993. * _.toPath('a[0].b.c');
  30994. * // => ['a', '0', 'b', 'c']
  30995. */
  30996. function toPath(value) {
  30997. if (isArray(value)) {
  30998. return arrayMap(value, toKey);
  30999. }
  31000. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  31001. }
  31002. /**
  31003. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  31004. *
  31005. * @static
  31006. * @since 0.1.0
  31007. * @memberOf _
  31008. * @category Util
  31009. * @param {string} [prefix=''] The value to prefix the ID with.
  31010. * @returns {string} Returns the unique ID.
  31011. * @example
  31012. *
  31013. * _.uniqueId('contact_');
  31014. * // => 'contact_104'
  31015. *
  31016. * _.uniqueId();
  31017. * // => '105'
  31018. */
  31019. function uniqueId(prefix) {
  31020. var id = ++idCounter;
  31021. return toString(prefix) + id;
  31022. }
  31023. /*------------------------------------------------------------------------*/
  31024. /**
  31025. * Adds two numbers.
  31026. *
  31027. * @static
  31028. * @memberOf _
  31029. * @since 3.4.0
  31030. * @category Math
  31031. * @param {number} augend The first number in an addition.
  31032. * @param {number} addend The second number in an addition.
  31033. * @returns {number} Returns the total.
  31034. * @example
  31035. *
  31036. * _.add(6, 4);
  31037. * // => 10
  31038. */
  31039. var add = createMathOperation(function(augend, addend) {
  31040. return augend + addend;
  31041. }, 0);
  31042. /**
  31043. * Computes `number` rounded up to `precision`.
  31044. *
  31045. * @static
  31046. * @memberOf _
  31047. * @since 3.10.0
  31048. * @category Math
  31049. * @param {number} number The number to round up.
  31050. * @param {number} [precision=0] The precision to round up to.
  31051. * @returns {number} Returns the rounded up number.
  31052. * @example
  31053. *
  31054. * _.ceil(4.006);
  31055. * // => 5
  31056. *
  31057. * _.ceil(6.004, 2);
  31058. * // => 6.01
  31059. *
  31060. * _.ceil(6040, -2);
  31061. * // => 6100
  31062. */
  31063. var ceil = createRound('ceil');
  31064. /**
  31065. * Divide two numbers.
  31066. *
  31067. * @static
  31068. * @memberOf _
  31069. * @since 4.7.0
  31070. * @category Math
  31071. * @param {number} dividend The first number in a division.
  31072. * @param {number} divisor The second number in a division.
  31073. * @returns {number} Returns the quotient.
  31074. * @example
  31075. *
  31076. * _.divide(6, 4);
  31077. * // => 1.5
  31078. */
  31079. var divide = createMathOperation(function(dividend, divisor) {
  31080. return dividend / divisor;
  31081. }, 1);
  31082. /**
  31083. * Computes `number` rounded down to `precision`.
  31084. *
  31085. * @static
  31086. * @memberOf _
  31087. * @since 3.10.0
  31088. * @category Math
  31089. * @param {number} number The number to round down.
  31090. * @param {number} [precision=0] The precision to round down to.
  31091. * @returns {number} Returns the rounded down number.
  31092. * @example
  31093. *
  31094. * _.floor(4.006);
  31095. * // => 4
  31096. *
  31097. * _.floor(0.046, 2);
  31098. * // => 0.04
  31099. *
  31100. * _.floor(4060, -2);
  31101. * // => 4000
  31102. */
  31103. var floor = createRound('floor');
  31104. /**
  31105. * Computes the maximum value of `array`. If `array` is empty or falsey,
  31106. * `undefined` is returned.
  31107. *
  31108. * @static
  31109. * @since 0.1.0
  31110. * @memberOf _
  31111. * @category Math
  31112. * @param {Array} array The array to iterate over.
  31113. * @returns {*} Returns the maximum value.
  31114. * @example
  31115. *
  31116. * _.max([4, 2, 8, 6]);
  31117. * // => 8
  31118. *
  31119. * _.max([]);
  31120. * // => undefined
  31121. */
  31122. function max(array) {
  31123. return (array && array.length)
  31124. ? baseExtremum(array, identity, baseGt)
  31125. : undefined;
  31126. }
  31127. /**
  31128. * This method is like `_.max` except that it accepts `iteratee` which is
  31129. * invoked for each element in `array` to generate the criterion by which
  31130. * the value is ranked. The iteratee is invoked with one argument: (value).
  31131. *
  31132. * @static
  31133. * @memberOf _
  31134. * @since 4.0.0
  31135. * @category Math
  31136. * @param {Array} array The array to iterate over.
  31137. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31138. * @returns {*} Returns the maximum value.
  31139. * @example
  31140. *
  31141. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31142. *
  31143. * _.maxBy(objects, function(o) { return o.n; });
  31144. * // => { 'n': 2 }
  31145. *
  31146. * // The `_.property` iteratee shorthand.
  31147. * _.maxBy(objects, 'n');
  31148. * // => { 'n': 2 }
  31149. */
  31150. function maxBy(array, iteratee) {
  31151. return (array && array.length)
  31152. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  31153. : undefined;
  31154. }
  31155. /**
  31156. * Computes the mean of the values in `array`.
  31157. *
  31158. * @static
  31159. * @memberOf _
  31160. * @since 4.0.0
  31161. * @category Math
  31162. * @param {Array} array The array to iterate over.
  31163. * @returns {number} Returns the mean.
  31164. * @example
  31165. *
  31166. * _.mean([4, 2, 8, 6]);
  31167. * // => 5
  31168. */
  31169. function mean(array) {
  31170. return baseMean(array, identity);
  31171. }
  31172. /**
  31173. * This method is like `_.mean` except that it accepts `iteratee` which is
  31174. * invoked for each element in `array` to generate the value to be averaged.
  31175. * The iteratee is invoked with one argument: (value).
  31176. *
  31177. * @static
  31178. * @memberOf _
  31179. * @since 4.7.0
  31180. * @category Math
  31181. * @param {Array} array The array to iterate over.
  31182. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31183. * @returns {number} Returns the mean.
  31184. * @example
  31185. *
  31186. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31187. *
  31188. * _.meanBy(objects, function(o) { return o.n; });
  31189. * // => 5
  31190. *
  31191. * // The `_.property` iteratee shorthand.
  31192. * _.meanBy(objects, 'n');
  31193. * // => 5
  31194. */
  31195. function meanBy(array, iteratee) {
  31196. return baseMean(array, getIteratee(iteratee, 2));
  31197. }
  31198. /**
  31199. * Computes the minimum value of `array`. If `array` is empty or falsey,
  31200. * `undefined` is returned.
  31201. *
  31202. * @static
  31203. * @since 0.1.0
  31204. * @memberOf _
  31205. * @category Math
  31206. * @param {Array} array The array to iterate over.
  31207. * @returns {*} Returns the minimum value.
  31208. * @example
  31209. *
  31210. * _.min([4, 2, 8, 6]);
  31211. * // => 2
  31212. *
  31213. * _.min([]);
  31214. * // => undefined
  31215. */
  31216. function min(array) {
  31217. return (array && array.length)
  31218. ? baseExtremum(array, identity, baseLt)
  31219. : undefined;
  31220. }
  31221. /**
  31222. * This method is like `_.min` except that it accepts `iteratee` which is
  31223. * invoked for each element in `array` to generate the criterion by which
  31224. * the value is ranked. The iteratee is invoked with one argument: (value).
  31225. *
  31226. * @static
  31227. * @memberOf _
  31228. * @since 4.0.0
  31229. * @category Math
  31230. * @param {Array} array The array to iterate over.
  31231. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31232. * @returns {*} Returns the minimum value.
  31233. * @example
  31234. *
  31235. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31236. *
  31237. * _.minBy(objects, function(o) { return o.n; });
  31238. * // => { 'n': 1 }
  31239. *
  31240. * // The `_.property` iteratee shorthand.
  31241. * _.minBy(objects, 'n');
  31242. * // => { 'n': 1 }
  31243. */
  31244. function minBy(array, iteratee) {
  31245. return (array && array.length)
  31246. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  31247. : undefined;
  31248. }
  31249. /**
  31250. * Multiply two numbers.
  31251. *
  31252. * @static
  31253. * @memberOf _
  31254. * @since 4.7.0
  31255. * @category Math
  31256. * @param {number} multiplier The first number in a multiplication.
  31257. * @param {number} multiplicand The second number in a multiplication.
  31258. * @returns {number} Returns the product.
  31259. * @example
  31260. *
  31261. * _.multiply(6, 4);
  31262. * // => 24
  31263. */
  31264. var multiply = createMathOperation(function(multiplier, multiplicand) {
  31265. return multiplier * multiplicand;
  31266. }, 1);
  31267. /**
  31268. * Computes `number` rounded to `precision`.
  31269. *
  31270. * @static
  31271. * @memberOf _
  31272. * @since 3.10.0
  31273. * @category Math
  31274. * @param {number} number The number to round.
  31275. * @param {number} [precision=0] The precision to round to.
  31276. * @returns {number} Returns the rounded number.
  31277. * @example
  31278. *
  31279. * _.round(4.006);
  31280. * // => 4
  31281. *
  31282. * _.round(4.006, 2);
  31283. * // => 4.01
  31284. *
  31285. * _.round(4060, -2);
  31286. * // => 4100
  31287. */
  31288. var round = createRound('round');
  31289. /**
  31290. * Subtract two numbers.
  31291. *
  31292. * @static
  31293. * @memberOf _
  31294. * @since 4.0.0
  31295. * @category Math
  31296. * @param {number} minuend The first number in a subtraction.
  31297. * @param {number} subtrahend The second number in a subtraction.
  31298. * @returns {number} Returns the difference.
  31299. * @example
  31300. *
  31301. * _.subtract(6, 4);
  31302. * // => 2
  31303. */
  31304. var subtract = createMathOperation(function(minuend, subtrahend) {
  31305. return minuend - subtrahend;
  31306. }, 0);
  31307. /**
  31308. * Computes the sum of the values in `array`.
  31309. *
  31310. * @static
  31311. * @memberOf _
  31312. * @since 3.4.0
  31313. * @category Math
  31314. * @param {Array} array The array to iterate over.
  31315. * @returns {number} Returns the sum.
  31316. * @example
  31317. *
  31318. * _.sum([4, 2, 8, 6]);
  31319. * // => 20
  31320. */
  31321. function sum(array) {
  31322. return (array && array.length)
  31323. ? baseSum(array, identity)
  31324. : 0;
  31325. }
  31326. /**
  31327. * This method is like `_.sum` except that it accepts `iteratee` which is
  31328. * invoked for each element in `array` to generate the value to be summed.
  31329. * The iteratee is invoked with one argument: (value).
  31330. *
  31331. * @static
  31332. * @memberOf _
  31333. * @since 4.0.0
  31334. * @category Math
  31335. * @param {Array} array The array to iterate over.
  31336. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31337. * @returns {number} Returns the sum.
  31338. * @example
  31339. *
  31340. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31341. *
  31342. * _.sumBy(objects, function(o) { return o.n; });
  31343. * // => 20
  31344. *
  31345. * // The `_.property` iteratee shorthand.
  31346. * _.sumBy(objects, 'n');
  31347. * // => 20
  31348. */
  31349. function sumBy(array, iteratee) {
  31350. return (array && array.length)
  31351. ? baseSum(array, getIteratee(iteratee, 2))
  31352. : 0;
  31353. }
  31354. /*------------------------------------------------------------------------*/
  31355. // Add methods that return wrapped values in chain sequences.
  31356. lodash.after = after;
  31357. lodash.ary = ary;
  31358. lodash.assign = assign;
  31359. lodash.assignIn = assignIn;
  31360. lodash.assignInWith = assignInWith;
  31361. lodash.assignWith = assignWith;
  31362. lodash.at = at;
  31363. lodash.before = before;
  31364. lodash.bind = bind;
  31365. lodash.bindAll = bindAll;
  31366. lodash.bindKey = bindKey;
  31367. lodash.castArray = castArray;
  31368. lodash.chain = chain;
  31369. lodash.chunk = chunk;
  31370. lodash.compact = compact;
  31371. lodash.concat = concat;
  31372. lodash.cond = cond;
  31373. lodash.conforms = conforms;
  31374. lodash.constant = constant;
  31375. lodash.countBy = countBy;
  31376. lodash.create = create;
  31377. lodash.curry = curry;
  31378. lodash.curryRight = curryRight;
  31379. lodash.debounce = debounce;
  31380. lodash.defaults = defaults;
  31381. lodash.defaultsDeep = defaultsDeep;
  31382. lodash.defer = defer;
  31383. lodash.delay = delay;
  31384. lodash.difference = difference;
  31385. lodash.differenceBy = differenceBy;
  31386. lodash.differenceWith = differenceWith;
  31387. lodash.drop = drop;
  31388. lodash.dropRight = dropRight;
  31389. lodash.dropRightWhile = dropRightWhile;
  31390. lodash.dropWhile = dropWhile;
  31391. lodash.fill = fill;
  31392. lodash.filter = filter;
  31393. lodash.flatMap = flatMap;
  31394. lodash.flatMapDeep = flatMapDeep;
  31395. lodash.flatMapDepth = flatMapDepth;
  31396. lodash.flatten = flatten;
  31397. lodash.flattenDeep = flattenDeep;
  31398. lodash.flattenDepth = flattenDepth;
  31399. lodash.flip = flip;
  31400. lodash.flow = flow;
  31401. lodash.flowRight = flowRight;
  31402. lodash.fromPairs = fromPairs;
  31403. lodash.functions = functions;
  31404. lodash.functionsIn = functionsIn;
  31405. lodash.groupBy = groupBy;
  31406. lodash.initial = initial;
  31407. lodash.intersection = intersection;
  31408. lodash.intersectionBy = intersectionBy;
  31409. lodash.intersectionWith = intersectionWith;
  31410. lodash.invert = invert;
  31411. lodash.invertBy = invertBy;
  31412. lodash.invokeMap = invokeMap;
  31413. lodash.iteratee = iteratee;
  31414. lodash.keyBy = keyBy;
  31415. lodash.keys = keys;
  31416. lodash.keysIn = keysIn;
  31417. lodash.map = map;
  31418. lodash.mapKeys = mapKeys;
  31419. lodash.mapValues = mapValues;
  31420. lodash.matches = matches;
  31421. lodash.matchesProperty = matchesProperty;
  31422. lodash.memoize = memoize;
  31423. lodash.merge = merge;
  31424. lodash.mergeWith = mergeWith;
  31425. lodash.method = method;
  31426. lodash.methodOf = methodOf;
  31427. lodash.mixin = mixin;
  31428. lodash.negate = negate;
  31429. lodash.nthArg = nthArg;
  31430. lodash.omit = omit;
  31431. lodash.omitBy = omitBy;
  31432. lodash.once = once;
  31433. lodash.orderBy = orderBy;
  31434. lodash.over = over;
  31435. lodash.overArgs = overArgs;
  31436. lodash.overEvery = overEvery;
  31437. lodash.overSome = overSome;
  31438. lodash.partial = partial;
  31439. lodash.partialRight = partialRight;
  31440. lodash.partition = partition;
  31441. lodash.pick = pick;
  31442. lodash.pickBy = pickBy;
  31443. lodash.property = property;
  31444. lodash.propertyOf = propertyOf;
  31445. lodash.pull = pull;
  31446. lodash.pullAll = pullAll;
  31447. lodash.pullAllBy = pullAllBy;
  31448. lodash.pullAllWith = pullAllWith;
  31449. lodash.pullAt = pullAt;
  31450. lodash.range = range;
  31451. lodash.rangeRight = rangeRight;
  31452. lodash.rearg = rearg;
  31453. lodash.reject = reject;
  31454. lodash.remove = remove;
  31455. lodash.rest = rest;
  31456. lodash.reverse = reverse;
  31457. lodash.sampleSize = sampleSize;
  31458. lodash.set = set;
  31459. lodash.setWith = setWith;
  31460. lodash.shuffle = shuffle;
  31461. lodash.slice = slice;
  31462. lodash.sortBy = sortBy;
  31463. lodash.sortedUniq = sortedUniq;
  31464. lodash.sortedUniqBy = sortedUniqBy;
  31465. lodash.split = split;
  31466. lodash.spread = spread;
  31467. lodash.tail = tail;
  31468. lodash.take = take;
  31469. lodash.takeRight = takeRight;
  31470. lodash.takeRightWhile = takeRightWhile;
  31471. lodash.takeWhile = takeWhile;
  31472. lodash.tap = tap;
  31473. lodash.throttle = throttle;
  31474. lodash.thru = thru;
  31475. lodash.toArray = toArray;
  31476. lodash.toPairs = toPairs;
  31477. lodash.toPairsIn = toPairsIn;
  31478. lodash.toPath = toPath;
  31479. lodash.toPlainObject = toPlainObject;
  31480. lodash.transform = transform;
  31481. lodash.unary = unary;
  31482. lodash.union = union;
  31483. lodash.unionBy = unionBy;
  31484. lodash.unionWith = unionWith;
  31485. lodash.uniq = uniq;
  31486. lodash.uniqBy = uniqBy;
  31487. lodash.uniqWith = uniqWith;
  31488. lodash.unset = unset;
  31489. lodash.unzip = unzip;
  31490. lodash.unzipWith = unzipWith;
  31491. lodash.update = update;
  31492. lodash.updateWith = updateWith;
  31493. lodash.values = values;
  31494. lodash.valuesIn = valuesIn;
  31495. lodash.without = without;
  31496. lodash.words = words;
  31497. lodash.wrap = wrap;
  31498. lodash.xor = xor;
  31499. lodash.xorBy = xorBy;
  31500. lodash.xorWith = xorWith;
  31501. lodash.zip = zip;
  31502. lodash.zipObject = zipObject;
  31503. lodash.zipObjectDeep = zipObjectDeep;
  31504. lodash.zipWith = zipWith;
  31505. // Add aliases.
  31506. lodash.entries = toPairs;
  31507. lodash.entriesIn = toPairsIn;
  31508. lodash.extend = assignIn;
  31509. lodash.extendWith = assignInWith;
  31510. // Add methods to `lodash.prototype`.
  31511. mixin(lodash, lodash);
  31512. /*------------------------------------------------------------------------*/
  31513. // Add methods that return unwrapped values in chain sequences.
  31514. lodash.add = add;
  31515. lodash.attempt = attempt;
  31516. lodash.camelCase = camelCase;
  31517. lodash.capitalize = capitalize;
  31518. lodash.ceil = ceil;
  31519. lodash.clamp = clamp;
  31520. lodash.clone = clone;
  31521. lodash.cloneDeep = cloneDeep;
  31522. lodash.cloneDeepWith = cloneDeepWith;
  31523. lodash.cloneWith = cloneWith;
  31524. lodash.conformsTo = conformsTo;
  31525. lodash.deburr = deburr;
  31526. lodash.defaultTo = defaultTo;
  31527. lodash.divide = divide;
  31528. lodash.endsWith = endsWith;
  31529. lodash.eq = eq;
  31530. lodash.escape = escape;
  31531. lodash.escapeRegExp = escapeRegExp;
  31532. lodash.every = every;
  31533. lodash.find = find;
  31534. lodash.findIndex = findIndex;
  31535. lodash.findKey = findKey;
  31536. lodash.findLast = findLast;
  31537. lodash.findLastIndex = findLastIndex;
  31538. lodash.findLastKey = findLastKey;
  31539. lodash.floor = floor;
  31540. lodash.forEach = forEach;
  31541. lodash.forEachRight = forEachRight;
  31542. lodash.forIn = forIn;
  31543. lodash.forInRight = forInRight;
  31544. lodash.forOwn = forOwn;
  31545. lodash.forOwnRight = forOwnRight;
  31546. lodash.get = get;
  31547. lodash.gt = gt;
  31548. lodash.gte = gte;
  31549. lodash.has = has;
  31550. lodash.hasIn = hasIn;
  31551. lodash.head = head;
  31552. lodash.identity = identity;
  31553. lodash.includes = includes;
  31554. lodash.indexOf = indexOf;
  31555. lodash.inRange = inRange;
  31556. lodash.invoke = invoke;
  31557. lodash.isArguments = isArguments;
  31558. lodash.isArray = isArray;
  31559. lodash.isArrayBuffer = isArrayBuffer;
  31560. lodash.isArrayLike = isArrayLike;
  31561. lodash.isArrayLikeObject = isArrayLikeObject;
  31562. lodash.isBoolean = isBoolean;
  31563. lodash.isBuffer = isBuffer;
  31564. lodash.isDate = isDate;
  31565. lodash.isElement = isElement;
  31566. lodash.isEmpty = isEmpty;
  31567. lodash.isEqual = isEqual;
  31568. lodash.isEqualWith = isEqualWith;
  31569. lodash.isError = isError;
  31570. lodash.isFinite = isFinite;
  31571. lodash.isFunction = isFunction;
  31572. lodash.isInteger = isInteger;
  31573. lodash.isLength = isLength;
  31574. lodash.isMap = isMap;
  31575. lodash.isMatch = isMatch;
  31576. lodash.isMatchWith = isMatchWith;
  31577. lodash.isNaN = isNaN;
  31578. lodash.isNative = isNative;
  31579. lodash.isNil = isNil;
  31580. lodash.isNull = isNull;
  31581. lodash.isNumber = isNumber;
  31582. lodash.isObject = isObject;
  31583. lodash.isObjectLike = isObjectLike;
  31584. lodash.isPlainObject = isPlainObject;
  31585. lodash.isRegExp = isRegExp;
  31586. lodash.isSafeInteger = isSafeInteger;
  31587. lodash.isSet = isSet;
  31588. lodash.isString = isString;
  31589. lodash.isSymbol = isSymbol;
  31590. lodash.isTypedArray = isTypedArray;
  31591. lodash.isUndefined = isUndefined;
  31592. lodash.isWeakMap = isWeakMap;
  31593. lodash.isWeakSet = isWeakSet;
  31594. lodash.join = join;
  31595. lodash.kebabCase = kebabCase;
  31596. lodash.last = last;
  31597. lodash.lastIndexOf = lastIndexOf;
  31598. lodash.lowerCase = lowerCase;
  31599. lodash.lowerFirst = lowerFirst;
  31600. lodash.lt = lt;
  31601. lodash.lte = lte;
  31602. lodash.max = max;
  31603. lodash.maxBy = maxBy;
  31604. lodash.mean = mean;
  31605. lodash.meanBy = meanBy;
  31606. lodash.min = min;
  31607. lodash.minBy = minBy;
  31608. lodash.stubArray = stubArray;
  31609. lodash.stubFalse = stubFalse;
  31610. lodash.stubObject = stubObject;
  31611. lodash.stubString = stubString;
  31612. lodash.stubTrue = stubTrue;
  31613. lodash.multiply = multiply;
  31614. lodash.nth = nth;
  31615. lodash.noConflict = noConflict;
  31616. lodash.noop = noop;
  31617. lodash.now = now;
  31618. lodash.pad = pad;
  31619. lodash.padEnd = padEnd;
  31620. lodash.padStart = padStart;
  31621. lodash.parseInt = parseInt;
  31622. lodash.random = random;
  31623. lodash.reduce = reduce;
  31624. lodash.reduceRight = reduceRight;
  31625. lodash.repeat = repeat;
  31626. lodash.replace = replace;
  31627. lodash.result = result;
  31628. lodash.round = round;
  31629. lodash.runInContext = runInContext;
  31630. lodash.sample = sample;
  31631. lodash.size = size;
  31632. lodash.snakeCase = snakeCase;
  31633. lodash.some = some;
  31634. lodash.sortedIndex = sortedIndex;
  31635. lodash.sortedIndexBy = sortedIndexBy;
  31636. lodash.sortedIndexOf = sortedIndexOf;
  31637. lodash.sortedLastIndex = sortedLastIndex;
  31638. lodash.sortedLastIndexBy = sortedLastIndexBy;
  31639. lodash.sortedLastIndexOf = sortedLastIndexOf;
  31640. lodash.startCase = startCase;
  31641. lodash.startsWith = startsWith;
  31642. lodash.subtract = subtract;
  31643. lodash.sum = sum;
  31644. lodash.sumBy = sumBy;
  31645. lodash.template = template;
  31646. lodash.times = times;
  31647. lodash.toFinite = toFinite;
  31648. lodash.toInteger = toInteger;
  31649. lodash.toLength = toLength;
  31650. lodash.toLower = toLower;
  31651. lodash.toNumber = toNumber;
  31652. lodash.toSafeInteger = toSafeInteger;
  31653. lodash.toString = toString;
  31654. lodash.toUpper = toUpper;
  31655. lodash.trim = trim;
  31656. lodash.trimEnd = trimEnd;
  31657. lodash.trimStart = trimStart;
  31658. lodash.truncate = truncate;
  31659. lodash.unescape = unescape;
  31660. lodash.uniqueId = uniqueId;
  31661. lodash.upperCase = upperCase;
  31662. lodash.upperFirst = upperFirst;
  31663. // Add aliases.
  31664. lodash.each = forEach;
  31665. lodash.eachRight = forEachRight;
  31666. lodash.first = head;
  31667. mixin(lodash, (function() {
  31668. var source = {};
  31669. baseForOwn(lodash, function(func, methodName) {
  31670. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  31671. source[methodName] = func;
  31672. }
  31673. });
  31674. return source;
  31675. }()), { 'chain': false });
  31676. /*------------------------------------------------------------------------*/
  31677. /**
  31678. * The semantic version number.
  31679. *
  31680. * @static
  31681. * @memberOf _
  31682. * @type {string}
  31683. */
  31684. lodash.VERSION = VERSION;
  31685. // Assign default placeholders.
  31686. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  31687. lodash[methodName].placeholder = lodash;
  31688. });
  31689. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  31690. arrayEach(['drop', 'take'], function(methodName, index) {
  31691. LazyWrapper.prototype[methodName] = function(n) {
  31692. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  31693. var result = (this.__filtered__ && !index)
  31694. ? new LazyWrapper(this)
  31695. : this.clone();
  31696. if (result.__filtered__) {
  31697. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  31698. } else {
  31699. result.__views__.push({
  31700. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  31701. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  31702. });
  31703. }
  31704. return result;
  31705. };
  31706. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  31707. return this.reverse()[methodName](n).reverse();
  31708. };
  31709. });
  31710. // Add `LazyWrapper` methods that accept an `iteratee` value.
  31711. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  31712. var type = index + 1,
  31713. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  31714. LazyWrapper.prototype[methodName] = function(iteratee) {
  31715. var result = this.clone();
  31716. result.__iteratees__.push({
  31717. 'iteratee': getIteratee(iteratee, 3),
  31718. 'type': type
  31719. });
  31720. result.__filtered__ = result.__filtered__ || isFilter;
  31721. return result;
  31722. };
  31723. });
  31724. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  31725. arrayEach(['head', 'last'], function(methodName, index) {
  31726. var takeName = 'take' + (index ? 'Right' : '');
  31727. LazyWrapper.prototype[methodName] = function() {
  31728. return this[takeName](1).value()[0];
  31729. };
  31730. });
  31731. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  31732. arrayEach(['initial', 'tail'], function(methodName, index) {
  31733. var dropName = 'drop' + (index ? '' : 'Right');
  31734. LazyWrapper.prototype[methodName] = function() {
  31735. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  31736. };
  31737. });
  31738. LazyWrapper.prototype.compact = function() {
  31739. return this.filter(identity);
  31740. };
  31741. LazyWrapper.prototype.find = function(predicate) {
  31742. return this.filter(predicate).head();
  31743. };
  31744. LazyWrapper.prototype.findLast = function(predicate) {
  31745. return this.reverse().find(predicate);
  31746. };
  31747. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  31748. if (typeof path == 'function') {
  31749. return new LazyWrapper(this);
  31750. }
  31751. return this.map(function(value) {
  31752. return baseInvoke(value, path, args);
  31753. });
  31754. });
  31755. LazyWrapper.prototype.reject = function(predicate) {
  31756. return this.filter(negate(getIteratee(predicate)));
  31757. };
  31758. LazyWrapper.prototype.slice = function(start, end) {
  31759. start = toInteger(start);
  31760. var result = this;
  31761. if (result.__filtered__ && (start > 0 || end < 0)) {
  31762. return new LazyWrapper(result);
  31763. }
  31764. if (start < 0) {
  31765. result = result.takeRight(-start);
  31766. } else if (start) {
  31767. result = result.drop(start);
  31768. }
  31769. if (end !== undefined) {
  31770. end = toInteger(end);
  31771. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  31772. }
  31773. return result;
  31774. };
  31775. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  31776. return this.reverse().takeWhile(predicate).reverse();
  31777. };
  31778. LazyWrapper.prototype.toArray = function() {
  31779. return this.take(MAX_ARRAY_LENGTH);
  31780. };
  31781. // Add `LazyWrapper` methods to `lodash.prototype`.
  31782. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31783. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  31784. isTaker = /^(?:head|last)$/.test(methodName),
  31785. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  31786. retUnwrapped = isTaker || /^find/.test(methodName);
  31787. if (!lodashFunc) {
  31788. return;
  31789. }
  31790. lodash.prototype[methodName] = function() {
  31791. var value = this.__wrapped__,
  31792. args = isTaker ? [1] : arguments,
  31793. isLazy = value instanceof LazyWrapper,
  31794. iteratee = args[0],
  31795. useLazy = isLazy || isArray(value);
  31796. var interceptor = function(value) {
  31797. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  31798. return (isTaker && chainAll) ? result[0] : result;
  31799. };
  31800. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  31801. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  31802. isLazy = useLazy = false;
  31803. }
  31804. var chainAll = this.__chain__,
  31805. isHybrid = !!this.__actions__.length,
  31806. isUnwrapped = retUnwrapped && !chainAll,
  31807. onlyLazy = isLazy && !isHybrid;
  31808. if (!retUnwrapped && useLazy) {
  31809. value = onlyLazy ? value : new LazyWrapper(this);
  31810. var result = func.apply(value, args);
  31811. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  31812. return new LodashWrapper(result, chainAll);
  31813. }
  31814. if (isUnwrapped && onlyLazy) {
  31815. return func.apply(this, args);
  31816. }
  31817. result = this.thru(interceptor);
  31818. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  31819. };
  31820. });
  31821. // Add `Array` methods to `lodash.prototype`.
  31822. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  31823. var func = arrayProto[methodName],
  31824. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  31825. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  31826. lodash.prototype[methodName] = function() {
  31827. var args = arguments;
  31828. if (retUnwrapped && !this.__chain__) {
  31829. var value = this.value();
  31830. return func.apply(isArray(value) ? value : [], args);
  31831. }
  31832. return this[chainName](function(value) {
  31833. return func.apply(isArray(value) ? value : [], args);
  31834. });
  31835. };
  31836. });
  31837. // Map minified method names to their real names.
  31838. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31839. var lodashFunc = lodash[methodName];
  31840. if (lodashFunc) {
  31841. var key = lodashFunc.name + '';
  31842. if (!hasOwnProperty.call(realNames, key)) {
  31843. realNames[key] = [];
  31844. }
  31845. realNames[key].push({ 'name': methodName, 'func': lodashFunc });
  31846. }
  31847. });
  31848. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  31849. 'name': 'wrapper',
  31850. 'func': undefined
  31851. }];
  31852. // Add methods to `LazyWrapper`.
  31853. LazyWrapper.prototype.clone = lazyClone;
  31854. LazyWrapper.prototype.reverse = lazyReverse;
  31855. LazyWrapper.prototype.value = lazyValue;
  31856. // Add chain sequence methods to the `lodash` wrapper.
  31857. lodash.prototype.at = wrapperAt;
  31858. lodash.prototype.chain = wrapperChain;
  31859. lodash.prototype.commit = wrapperCommit;
  31860. lodash.prototype.next = wrapperNext;
  31861. lodash.prototype.plant = wrapperPlant;
  31862. lodash.prototype.reverse = wrapperReverse;
  31863. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  31864. // Add lazy aliases.
  31865. lodash.prototype.first = lodash.prototype.head;
  31866. if (symIterator) {
  31867. lodash.prototype[symIterator] = wrapperToIterator;
  31868. }
  31869. return lodash;
  31870. });
  31871. /*--------------------------------------------------------------------------*/
  31872. // Export lodash.
  31873. var _ = runInContext();
  31874. // Some AMD build optimizers, like r.js, check for condition patterns like:
  31875. if (true) {
  31876. // Expose Lodash on the global object to prevent errors when Lodash is
  31877. // loaded by a script tag in the presence of an AMD loader.
  31878. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  31879. // Use `_.noConflict` to remove Lodash from the global object.
  31880. root._ = _;
  31881. // Define as an anonymous module so, through path mapping, it can be
  31882. // referenced as the "underscore" module.
  31883. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  31884. return _;
  31885. }).call(exports, __webpack_require__, exports, module),
  31886. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31887. }
  31888. // Check for `exports` after `define` in case a build optimizer adds it.
  31889. else {}
  31890. }.call(this));
  31891. /* 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)))
  31892. /***/ }),
  31893. /***/ "../../node_modules/lodash/map.js":
  31894. /*!******************************************************!*\
  31895. !*** C:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  31896. \******************************************************/
  31897. /*! no static exports found */
  31898. /***/ (function(module, exports, __webpack_require__) {
  31899. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  31900. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  31901. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  31902. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  31903. /**
  31904. * Creates an array of values by running each element in `collection` thru
  31905. * `iteratee`. The iteratee is invoked with three arguments:
  31906. * (value, index|key, collection).
  31907. *
  31908. * Many lodash methods are guarded to work as iteratees for methods like
  31909. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  31910. *
  31911. * The guarded methods are:
  31912. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  31913. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  31914. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  31915. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  31916. *
  31917. * @static
  31918. * @memberOf _
  31919. * @since 0.1.0
  31920. * @category Collection
  31921. * @param {Array|Object} collection The collection to iterate over.
  31922. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31923. * @returns {Array} Returns the new mapped array.
  31924. * @example
  31925. *
  31926. * function square(n) {
  31927. * return n * n;
  31928. * }
  31929. *
  31930. * _.map([4, 8], square);
  31931. * // => [16, 64]
  31932. *
  31933. * _.map({ 'a': 4, 'b': 8 }, square);
  31934. * // => [16, 64] (iteration order is not guaranteed)
  31935. *
  31936. * var users = [
  31937. * { 'user': 'barney' },
  31938. * { 'user': 'fred' }
  31939. * ];
  31940. *
  31941. * // The `_.property` iteratee shorthand.
  31942. * _.map(users, 'user');
  31943. * // => ['barney', 'fred']
  31944. */
  31945. function map(collection, iteratee) {
  31946. var func = isArray(collection) ? arrayMap : baseMap;
  31947. return func(collection, baseIteratee(iteratee, 3));
  31948. }
  31949. module.exports = map;
  31950. /***/ }),
  31951. /***/ "../../node_modules/lodash/mapValues.js":
  31952. /*!************************************************************!*\
  31953. !*** C:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  31954. \************************************************************/
  31955. /*! no static exports found */
  31956. /***/ (function(module, exports, __webpack_require__) {
  31957. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  31958. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  31959. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  31960. /**
  31961. * Creates an object with the same keys as `object` and values generated
  31962. * by running each own enumerable string keyed property of `object` thru
  31963. * `iteratee`. The iteratee is invoked with three arguments:
  31964. * (value, key, object).
  31965. *
  31966. * @static
  31967. * @memberOf _
  31968. * @since 2.4.0
  31969. * @category Object
  31970. * @param {Object} object The object to iterate over.
  31971. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31972. * @returns {Object} Returns the new mapped object.
  31973. * @see _.mapKeys
  31974. * @example
  31975. *
  31976. * var users = {
  31977. * 'fred': { 'user': 'fred', 'age': 40 },
  31978. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  31979. * };
  31980. *
  31981. * _.mapValues(users, function(o) { return o.age; });
  31982. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31983. *
  31984. * // The `_.property` iteratee shorthand.
  31985. * _.mapValues(users, 'age');
  31986. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31987. */
  31988. function mapValues(object, iteratee) {
  31989. var result = {};
  31990. iteratee = baseIteratee(iteratee, 3);
  31991. baseForOwn(object, function(value, key, object) {
  31992. baseAssignValue(result, key, iteratee(value, key, object));
  31993. });
  31994. return result;
  31995. }
  31996. module.exports = mapValues;
  31997. /***/ }),
  31998. /***/ "../../node_modules/lodash/max.js":
  31999. /*!******************************************************!*\
  32000. !*** C:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  32001. \******************************************************/
  32002. /*! no static exports found */
  32003. /***/ (function(module, exports, __webpack_require__) {
  32004. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32005. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  32006. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32007. /**
  32008. * Computes the maximum value of `array`. If `array` is empty or falsey,
  32009. * `undefined` is returned.
  32010. *
  32011. * @static
  32012. * @since 0.1.0
  32013. * @memberOf _
  32014. * @category Math
  32015. * @param {Array} array The array to iterate over.
  32016. * @returns {*} Returns the maximum value.
  32017. * @example
  32018. *
  32019. * _.max([4, 2, 8, 6]);
  32020. * // => 8
  32021. *
  32022. * _.max([]);
  32023. * // => undefined
  32024. */
  32025. function max(array) {
  32026. return (array && array.length)
  32027. ? baseExtremum(array, identity, baseGt)
  32028. : undefined;
  32029. }
  32030. module.exports = max;
  32031. /***/ }),
  32032. /***/ "../../node_modules/lodash/memoize.js":
  32033. /*!**********************************************************!*\
  32034. !*** C:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  32035. \**********************************************************/
  32036. /*! no static exports found */
  32037. /***/ (function(module, exports, __webpack_require__) {
  32038. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  32039. /** Error message constants. */
  32040. var FUNC_ERROR_TEXT = 'Expected a function';
  32041. /**
  32042. * Creates a function that memoizes the result of `func`. If `resolver` is
  32043. * provided, it determines the cache key for storing the result based on the
  32044. * arguments provided to the memoized function. By default, the first argument
  32045. * provided to the memoized function is used as the map cache key. The `func`
  32046. * is invoked with the `this` binding of the memoized function.
  32047. *
  32048. * **Note:** The cache is exposed as the `cache` property on the memoized
  32049. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  32050. * constructor with one whose instances implement the
  32051. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  32052. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  32053. *
  32054. * @static
  32055. * @memberOf _
  32056. * @since 0.1.0
  32057. * @category Function
  32058. * @param {Function} func The function to have its output memoized.
  32059. * @param {Function} [resolver] The function to resolve the cache key.
  32060. * @returns {Function} Returns the new memoized function.
  32061. * @example
  32062. *
  32063. * var object = { 'a': 1, 'b': 2 };
  32064. * var other = { 'c': 3, 'd': 4 };
  32065. *
  32066. * var values = _.memoize(_.values);
  32067. * values(object);
  32068. * // => [1, 2]
  32069. *
  32070. * values(other);
  32071. * // => [3, 4]
  32072. *
  32073. * object.a = 2;
  32074. * values(object);
  32075. * // => [1, 2]
  32076. *
  32077. * // Modify the result cache.
  32078. * values.cache.set(object, ['a', 'b']);
  32079. * values(object);
  32080. * // => ['a', 'b']
  32081. *
  32082. * // Replace `_.memoize.Cache`.
  32083. * _.memoize.Cache = WeakMap;
  32084. */
  32085. function memoize(func, resolver) {
  32086. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  32087. throw new TypeError(FUNC_ERROR_TEXT);
  32088. }
  32089. var memoized = function() {
  32090. var args = arguments,
  32091. key = resolver ? resolver.apply(this, args) : args[0],
  32092. cache = memoized.cache;
  32093. if (cache.has(key)) {
  32094. return cache.get(key);
  32095. }
  32096. var result = func.apply(this, args);
  32097. memoized.cache = cache.set(key, result) || cache;
  32098. return result;
  32099. };
  32100. memoized.cache = new (memoize.Cache || MapCache);
  32101. return memoized;
  32102. }
  32103. // Expose `MapCache`.
  32104. memoize.Cache = MapCache;
  32105. module.exports = memoize;
  32106. /***/ }),
  32107. /***/ "../../node_modules/lodash/merge.js":
  32108. /*!********************************************************!*\
  32109. !*** C:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  32110. \********************************************************/
  32111. /*! no static exports found */
  32112. /***/ (function(module, exports, __webpack_require__) {
  32113. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  32114. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  32115. /**
  32116. * This method is like `_.assign` except that it recursively merges own and
  32117. * inherited enumerable string keyed properties of source objects into the
  32118. * destination object. Source properties that resolve to `undefined` are
  32119. * skipped if a destination value exists. Array and plain object properties
  32120. * are merged recursively. Other objects and value types are overridden by
  32121. * assignment. Source objects are applied from left to right. Subsequent
  32122. * sources overwrite property assignments of previous sources.
  32123. *
  32124. * **Note:** This method mutates `object`.
  32125. *
  32126. * @static
  32127. * @memberOf _
  32128. * @since 0.5.0
  32129. * @category Object
  32130. * @param {Object} object The destination object.
  32131. * @param {...Object} [sources] The source objects.
  32132. * @returns {Object} Returns `object`.
  32133. * @example
  32134. *
  32135. * var object = {
  32136. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  32137. * };
  32138. *
  32139. * var other = {
  32140. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  32141. * };
  32142. *
  32143. * _.merge(object, other);
  32144. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  32145. */
  32146. var merge = createAssigner(function(object, source, srcIndex) {
  32147. baseMerge(object, source, srcIndex);
  32148. });
  32149. module.exports = merge;
  32150. /***/ }),
  32151. /***/ "../../node_modules/lodash/min.js":
  32152. /*!******************************************************!*\
  32153. !*** C:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  32154. \******************************************************/
  32155. /*! no static exports found */
  32156. /***/ (function(module, exports, __webpack_require__) {
  32157. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32158. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  32159. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32160. /**
  32161. * Computes the minimum value of `array`. If `array` is empty or falsey,
  32162. * `undefined` is returned.
  32163. *
  32164. * @static
  32165. * @since 0.1.0
  32166. * @memberOf _
  32167. * @category Math
  32168. * @param {Array} array The array to iterate over.
  32169. * @returns {*} Returns the minimum value.
  32170. * @example
  32171. *
  32172. * _.min([4, 2, 8, 6]);
  32173. * // => 2
  32174. *
  32175. * _.min([]);
  32176. * // => undefined
  32177. */
  32178. function min(array) {
  32179. return (array && array.length)
  32180. ? baseExtremum(array, identity, baseLt)
  32181. : undefined;
  32182. }
  32183. module.exports = min;
  32184. /***/ }),
  32185. /***/ "../../node_modules/lodash/minBy.js":
  32186. /*!********************************************************!*\
  32187. !*** C:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  32188. \********************************************************/
  32189. /*! no static exports found */
  32190. /***/ (function(module, exports, __webpack_require__) {
  32191. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32192. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32193. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  32194. /**
  32195. * This method is like `_.min` except that it accepts `iteratee` which is
  32196. * invoked for each element in `array` to generate the criterion by which
  32197. * the value is ranked. The iteratee is invoked with one argument: (value).
  32198. *
  32199. * @static
  32200. * @memberOf _
  32201. * @since 4.0.0
  32202. * @category Math
  32203. * @param {Array} array The array to iterate over.
  32204. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  32205. * @returns {*} Returns the minimum value.
  32206. * @example
  32207. *
  32208. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  32209. *
  32210. * _.minBy(objects, function(o) { return o.n; });
  32211. * // => { 'n': 1 }
  32212. *
  32213. * // The `_.property` iteratee shorthand.
  32214. * _.minBy(objects, 'n');
  32215. * // => { 'n': 1 }
  32216. */
  32217. function minBy(array, iteratee) {
  32218. return (array && array.length)
  32219. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  32220. : undefined;
  32221. }
  32222. module.exports = minBy;
  32223. /***/ }),
  32224. /***/ "../../node_modules/lodash/noop.js":
  32225. /*!*******************************************************!*\
  32226. !*** C:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  32227. \*******************************************************/
  32228. /*! no static exports found */
  32229. /***/ (function(module, exports) {
  32230. /**
  32231. * This method returns `undefined`.
  32232. *
  32233. * @static
  32234. * @memberOf _
  32235. * @since 2.3.0
  32236. * @category Util
  32237. * @example
  32238. *
  32239. * _.times(2, _.noop);
  32240. * // => [undefined, undefined]
  32241. */
  32242. function noop() {
  32243. // No operation performed.
  32244. }
  32245. module.exports = noop;
  32246. /***/ }),
  32247. /***/ "../../node_modules/lodash/now.js":
  32248. /*!******************************************************!*\
  32249. !*** C:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  32250. \******************************************************/
  32251. /*! no static exports found */
  32252. /***/ (function(module, exports, __webpack_require__) {
  32253. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  32254. /**
  32255. * Gets the timestamp of the number of milliseconds that have elapsed since
  32256. * the Unix epoch (1 January 1970 00:00:00 UTC).
  32257. *
  32258. * @static
  32259. * @memberOf _
  32260. * @since 2.4.0
  32261. * @category Date
  32262. * @returns {number} Returns the timestamp.
  32263. * @example
  32264. *
  32265. * _.defer(function(stamp) {
  32266. * console.log(_.now() - stamp);
  32267. * }, _.now());
  32268. * // => Logs the number of milliseconds it took for the deferred invocation.
  32269. */
  32270. var now = function() {
  32271. return root.Date.now();
  32272. };
  32273. module.exports = now;
  32274. /***/ }),
  32275. /***/ "../../node_modules/lodash/pick.js":
  32276. /*!*******************************************************!*\
  32277. !*** C:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  32278. \*******************************************************/
  32279. /*! no static exports found */
  32280. /***/ (function(module, exports, __webpack_require__) {
  32281. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  32282. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  32283. /**
  32284. * Creates an object composed of the picked `object` properties.
  32285. *
  32286. * @static
  32287. * @since 0.1.0
  32288. * @memberOf _
  32289. * @category Object
  32290. * @param {Object} object The source object.
  32291. * @param {...(string|string[])} [paths] The property paths to pick.
  32292. * @returns {Object} Returns the new object.
  32293. * @example
  32294. *
  32295. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  32296. *
  32297. * _.pick(object, ['a', 'c']);
  32298. * // => { 'a': 1, 'c': 3 }
  32299. */
  32300. var pick = flatRest(function(object, paths) {
  32301. return object == null ? {} : basePick(object, paths);
  32302. });
  32303. module.exports = pick;
  32304. /***/ }),
  32305. /***/ "../../node_modules/lodash/property.js":
  32306. /*!***********************************************************!*\
  32307. !*** C:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  32308. \***********************************************************/
  32309. /*! no static exports found */
  32310. /***/ (function(module, exports, __webpack_require__) {
  32311. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  32312. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  32313. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  32314. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  32315. /**
  32316. * Creates a function that returns the value at `path` of a given object.
  32317. *
  32318. * @static
  32319. * @memberOf _
  32320. * @since 2.4.0
  32321. * @category Util
  32322. * @param {Array|string} path The path of the property to get.
  32323. * @returns {Function} Returns the new accessor function.
  32324. * @example
  32325. *
  32326. * var objects = [
  32327. * { 'a': { 'b': 2 } },
  32328. * { 'a': { 'b': 1 } }
  32329. * ];
  32330. *
  32331. * _.map(objects, _.property('a.b'));
  32332. * // => [2, 1]
  32333. *
  32334. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  32335. * // => [1, 2]
  32336. */
  32337. function property(path) {
  32338. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  32339. }
  32340. module.exports = property;
  32341. /***/ }),
  32342. /***/ "../../node_modules/lodash/range.js":
  32343. /*!********************************************************!*\
  32344. !*** C:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  32345. \********************************************************/
  32346. /*! no static exports found */
  32347. /***/ (function(module, exports, __webpack_require__) {
  32348. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  32349. /**
  32350. * Creates an array of numbers (positive and/or negative) progressing from
  32351. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  32352. * `start` is specified without an `end` or `step`. If `end` is not specified,
  32353. * it's set to `start` with `start` then set to `0`.
  32354. *
  32355. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  32356. * floating-point values which can produce unexpected results.
  32357. *
  32358. * @static
  32359. * @since 0.1.0
  32360. * @memberOf _
  32361. * @category Util
  32362. * @param {number} [start=0] The start of the range.
  32363. * @param {number} end The end of the range.
  32364. * @param {number} [step=1] The value to increment or decrement by.
  32365. * @returns {Array} Returns the range of numbers.
  32366. * @see _.inRange, _.rangeRight
  32367. * @example
  32368. *
  32369. * _.range(4);
  32370. * // => [0, 1, 2, 3]
  32371. *
  32372. * _.range(-4);
  32373. * // => [0, -1, -2, -3]
  32374. *
  32375. * _.range(1, 5);
  32376. * // => [1, 2, 3, 4]
  32377. *
  32378. * _.range(0, 20, 5);
  32379. * // => [0, 5, 10, 15]
  32380. *
  32381. * _.range(0, -4, -1);
  32382. * // => [0, -1, -2, -3]
  32383. *
  32384. * _.range(1, 4, 0);
  32385. * // => [1, 1, 1]
  32386. *
  32387. * _.range(0);
  32388. * // => []
  32389. */
  32390. var range = createRange();
  32391. module.exports = range;
  32392. /***/ }),
  32393. /***/ "../../node_modules/lodash/reduce.js":
  32394. /*!*********************************************************!*\
  32395. !*** C:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  32396. \*********************************************************/
  32397. /*! no static exports found */
  32398. /***/ (function(module, exports, __webpack_require__) {
  32399. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  32400. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  32401. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32402. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  32403. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  32404. /**
  32405. * Reduces `collection` to a value which is the accumulated result of running
  32406. * each element in `collection` thru `iteratee`, where each successive
  32407. * invocation is supplied the return value of the previous. If `accumulator`
  32408. * is not given, the first element of `collection` is used as the initial
  32409. * value. The iteratee is invoked with four arguments:
  32410. * (accumulator, value, index|key, collection).
  32411. *
  32412. * Many lodash methods are guarded to work as iteratees for methods like
  32413. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  32414. *
  32415. * The guarded methods are:
  32416. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  32417. * and `sortBy`
  32418. *
  32419. * @static
  32420. * @memberOf _
  32421. * @since 0.1.0
  32422. * @category Collection
  32423. * @param {Array|Object} collection The collection to iterate over.
  32424. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32425. * @param {*} [accumulator] The initial value.
  32426. * @returns {*} Returns the accumulated value.
  32427. * @see _.reduceRight
  32428. * @example
  32429. *
  32430. * _.reduce([1, 2], function(sum, n) {
  32431. * return sum + n;
  32432. * }, 0);
  32433. * // => 3
  32434. *
  32435. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32436. * (result[value] || (result[value] = [])).push(key);
  32437. * return result;
  32438. * }, {});
  32439. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  32440. */
  32441. function reduce(collection, iteratee, accumulator) {
  32442. var func = isArray(collection) ? arrayReduce : baseReduce,
  32443. initAccum = arguments.length < 3;
  32444. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  32445. }
  32446. module.exports = reduce;
  32447. /***/ }),
  32448. /***/ "../../node_modules/lodash/size.js":
  32449. /*!*******************************************************!*\
  32450. !*** C:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  32451. \*******************************************************/
  32452. /*! no static exports found */
  32453. /***/ (function(module, exports, __webpack_require__) {
  32454. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  32455. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  32456. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  32457. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  32458. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  32459. /** `Object#toString` result references. */
  32460. var mapTag = '[object Map]',
  32461. setTag = '[object Set]';
  32462. /**
  32463. * Gets the size of `collection` by returning its length for array-like
  32464. * values or the number of own enumerable string keyed properties for objects.
  32465. *
  32466. * @static
  32467. * @memberOf _
  32468. * @since 0.1.0
  32469. * @category Collection
  32470. * @param {Array|Object|string} collection The collection to inspect.
  32471. * @returns {number} Returns the collection size.
  32472. * @example
  32473. *
  32474. * _.size([1, 2, 3]);
  32475. * // => 3
  32476. *
  32477. * _.size({ 'a': 1, 'b': 2 });
  32478. * // => 2
  32479. *
  32480. * _.size('pebbles');
  32481. * // => 7
  32482. */
  32483. function size(collection) {
  32484. if (collection == null) {
  32485. return 0;
  32486. }
  32487. if (isArrayLike(collection)) {
  32488. return isString(collection) ? stringSize(collection) : collection.length;
  32489. }
  32490. var tag = getTag(collection);
  32491. if (tag == mapTag || tag == setTag) {
  32492. return collection.size;
  32493. }
  32494. return baseKeys(collection).length;
  32495. }
  32496. module.exports = size;
  32497. /***/ }),
  32498. /***/ "../../node_modules/lodash/sortBy.js":
  32499. /*!*********************************************************!*\
  32500. !*** C:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  32501. \*********************************************************/
  32502. /*! no static exports found */
  32503. /***/ (function(module, exports, __webpack_require__) {
  32504. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32505. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  32506. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32507. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  32508. /**
  32509. * Creates an array of elements, sorted in ascending order by the results of
  32510. * running each element in a collection thru each iteratee. This method
  32511. * performs a stable sort, that is, it preserves the original sort order of
  32512. * equal elements. The iteratees are invoked with one argument: (value).
  32513. *
  32514. * @static
  32515. * @memberOf _
  32516. * @since 0.1.0
  32517. * @category Collection
  32518. * @param {Array|Object} collection The collection to iterate over.
  32519. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  32520. * The iteratees to sort by.
  32521. * @returns {Array} Returns the new sorted array.
  32522. * @example
  32523. *
  32524. * var users = [
  32525. * { 'user': 'fred', 'age': 48 },
  32526. * { 'user': 'barney', 'age': 36 },
  32527. * { 'user': 'fred', 'age': 40 },
  32528. * { 'user': 'barney', 'age': 34 }
  32529. * ];
  32530. *
  32531. * _.sortBy(users, [function(o) { return o.user; }]);
  32532. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  32533. *
  32534. * _.sortBy(users, ['user', 'age']);
  32535. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  32536. */
  32537. var sortBy = baseRest(function(collection, iteratees) {
  32538. if (collection == null) {
  32539. return [];
  32540. }
  32541. var length = iteratees.length;
  32542. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  32543. iteratees = [];
  32544. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  32545. iteratees = [iteratees[0]];
  32546. }
  32547. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  32548. });
  32549. module.exports = sortBy;
  32550. /***/ }),
  32551. /***/ "../../node_modules/lodash/stubArray.js":
  32552. /*!************************************************************!*\
  32553. !*** C:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  32554. \************************************************************/
  32555. /*! no static exports found */
  32556. /***/ (function(module, exports) {
  32557. /**
  32558. * This method returns a new empty array.
  32559. *
  32560. * @static
  32561. * @memberOf _
  32562. * @since 4.13.0
  32563. * @category Util
  32564. * @returns {Array} Returns the new empty array.
  32565. * @example
  32566. *
  32567. * var arrays = _.times(2, _.stubArray);
  32568. *
  32569. * console.log(arrays);
  32570. * // => [[], []]
  32571. *
  32572. * console.log(arrays[0] === arrays[1]);
  32573. * // => false
  32574. */
  32575. function stubArray() {
  32576. return [];
  32577. }
  32578. module.exports = stubArray;
  32579. /***/ }),
  32580. /***/ "../../node_modules/lodash/stubFalse.js":
  32581. /*!************************************************************!*\
  32582. !*** C:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  32583. \************************************************************/
  32584. /*! no static exports found */
  32585. /***/ (function(module, exports) {
  32586. /**
  32587. * This method returns `false`.
  32588. *
  32589. * @static
  32590. * @memberOf _
  32591. * @since 4.13.0
  32592. * @category Util
  32593. * @returns {boolean} Returns `false`.
  32594. * @example
  32595. *
  32596. * _.times(2, _.stubFalse);
  32597. * // => [false, false]
  32598. */
  32599. function stubFalse() {
  32600. return false;
  32601. }
  32602. module.exports = stubFalse;
  32603. /***/ }),
  32604. /***/ "../../node_modules/lodash/toFinite.js":
  32605. /*!***********************************************************!*\
  32606. !*** C:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  32607. \***********************************************************/
  32608. /*! no static exports found */
  32609. /***/ (function(module, exports, __webpack_require__) {
  32610. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  32611. /** Used as references for various `Number` constants. */
  32612. var INFINITY = 1 / 0,
  32613. MAX_INTEGER = 1.7976931348623157e+308;
  32614. /**
  32615. * Converts `value` to a finite number.
  32616. *
  32617. * @static
  32618. * @memberOf _
  32619. * @since 4.12.0
  32620. * @category Lang
  32621. * @param {*} value The value to convert.
  32622. * @returns {number} Returns the converted number.
  32623. * @example
  32624. *
  32625. * _.toFinite(3.2);
  32626. * // => 3.2
  32627. *
  32628. * _.toFinite(Number.MIN_VALUE);
  32629. * // => 5e-324
  32630. *
  32631. * _.toFinite(Infinity);
  32632. * // => 1.7976931348623157e+308
  32633. *
  32634. * _.toFinite('3.2');
  32635. * // => 3.2
  32636. */
  32637. function toFinite(value) {
  32638. if (!value) {
  32639. return value === 0 ? value : 0;
  32640. }
  32641. value = toNumber(value);
  32642. if (value === INFINITY || value === -INFINITY) {
  32643. var sign = (value < 0 ? -1 : 1);
  32644. return sign * MAX_INTEGER;
  32645. }
  32646. return value === value ? value : 0;
  32647. }
  32648. module.exports = toFinite;
  32649. /***/ }),
  32650. /***/ "../../node_modules/lodash/toInteger.js":
  32651. /*!************************************************************!*\
  32652. !*** C:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  32653. \************************************************************/
  32654. /*! no static exports found */
  32655. /***/ (function(module, exports, __webpack_require__) {
  32656. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  32657. /**
  32658. * Converts `value` to an integer.
  32659. *
  32660. * **Note:** This method is loosely based on
  32661. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  32662. *
  32663. * @static
  32664. * @memberOf _
  32665. * @since 4.0.0
  32666. * @category Lang
  32667. * @param {*} value The value to convert.
  32668. * @returns {number} Returns the converted integer.
  32669. * @example
  32670. *
  32671. * _.toInteger(3.2);
  32672. * // => 3
  32673. *
  32674. * _.toInteger(Number.MIN_VALUE);
  32675. * // => 0
  32676. *
  32677. * _.toInteger(Infinity);
  32678. * // => 1.7976931348623157e+308
  32679. *
  32680. * _.toInteger('3.2');
  32681. * // => 3
  32682. */
  32683. function toInteger(value) {
  32684. var result = toFinite(value),
  32685. remainder = result % 1;
  32686. return result === result ? (remainder ? result - remainder : result) : 0;
  32687. }
  32688. module.exports = toInteger;
  32689. /***/ }),
  32690. /***/ "../../node_modules/lodash/toNumber.js":
  32691. /*!***********************************************************!*\
  32692. !*** C:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  32693. \***********************************************************/
  32694. /*! no static exports found */
  32695. /***/ (function(module, exports, __webpack_require__) {
  32696. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32697. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  32698. /** Used as references for various `Number` constants. */
  32699. var NAN = 0 / 0;
  32700. /** Used to match leading and trailing whitespace. */
  32701. var reTrim = /^\s+|\s+$/g;
  32702. /** Used to detect bad signed hexadecimal string values. */
  32703. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  32704. /** Used to detect binary string values. */
  32705. var reIsBinary = /^0b[01]+$/i;
  32706. /** Used to detect octal string values. */
  32707. var reIsOctal = /^0o[0-7]+$/i;
  32708. /** Built-in method references without a dependency on `root`. */
  32709. var freeParseInt = parseInt;
  32710. /**
  32711. * Converts `value` to a number.
  32712. *
  32713. * @static
  32714. * @memberOf _
  32715. * @since 4.0.0
  32716. * @category Lang
  32717. * @param {*} value The value to process.
  32718. * @returns {number} Returns the number.
  32719. * @example
  32720. *
  32721. * _.toNumber(3.2);
  32722. * // => 3.2
  32723. *
  32724. * _.toNumber(Number.MIN_VALUE);
  32725. * // => 5e-324
  32726. *
  32727. * _.toNumber(Infinity);
  32728. * // => Infinity
  32729. *
  32730. * _.toNumber('3.2');
  32731. * // => 3.2
  32732. */
  32733. function toNumber(value) {
  32734. if (typeof value == 'number') {
  32735. return value;
  32736. }
  32737. if (isSymbol(value)) {
  32738. return NAN;
  32739. }
  32740. if (isObject(value)) {
  32741. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  32742. value = isObject(other) ? (other + '') : other;
  32743. }
  32744. if (typeof value != 'string') {
  32745. return value === 0 ? value : +value;
  32746. }
  32747. value = value.replace(reTrim, '');
  32748. var isBinary = reIsBinary.test(value);
  32749. return (isBinary || reIsOctal.test(value))
  32750. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  32751. : (reIsBadHex.test(value) ? NAN : +value);
  32752. }
  32753. module.exports = toNumber;
  32754. /***/ }),
  32755. /***/ "../../node_modules/lodash/toPlainObject.js":
  32756. /*!****************************************************************!*\
  32757. !*** C:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  32758. \****************************************************************/
  32759. /*! no static exports found */
  32760. /***/ (function(module, exports, __webpack_require__) {
  32761. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  32762. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  32763. /**
  32764. * Converts `value` to a plain object flattening inherited enumerable string
  32765. * keyed properties of `value` to own properties of the plain object.
  32766. *
  32767. * @static
  32768. * @memberOf _
  32769. * @since 3.0.0
  32770. * @category Lang
  32771. * @param {*} value The value to convert.
  32772. * @returns {Object} Returns the converted plain object.
  32773. * @example
  32774. *
  32775. * function Foo() {
  32776. * this.b = 2;
  32777. * }
  32778. *
  32779. * Foo.prototype.c = 3;
  32780. *
  32781. * _.assign({ 'a': 1 }, new Foo);
  32782. * // => { 'a': 1, 'b': 2 }
  32783. *
  32784. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  32785. * // => { 'a': 1, 'b': 2, 'c': 3 }
  32786. */
  32787. function toPlainObject(value) {
  32788. return copyObject(value, keysIn(value));
  32789. }
  32790. module.exports = toPlainObject;
  32791. /***/ }),
  32792. /***/ "../../node_modules/lodash/toString.js":
  32793. /*!***********************************************************!*\
  32794. !*** C:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  32795. \***********************************************************/
  32796. /*! no static exports found */
  32797. /***/ (function(module, exports, __webpack_require__) {
  32798. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  32799. /**
  32800. * Converts `value` to a string. An empty string is returned for `null`
  32801. * and `undefined` values. The sign of `-0` is preserved.
  32802. *
  32803. * @static
  32804. * @memberOf _
  32805. * @since 4.0.0
  32806. * @category Lang
  32807. * @param {*} value The value to convert.
  32808. * @returns {string} Returns the converted string.
  32809. * @example
  32810. *
  32811. * _.toString(null);
  32812. * // => ''
  32813. *
  32814. * _.toString(-0);
  32815. * // => '-0'
  32816. *
  32817. * _.toString([1, 2, 3]);
  32818. * // => '1,2,3'
  32819. */
  32820. function toString(value) {
  32821. return value == null ? '' : baseToString(value);
  32822. }
  32823. module.exports = toString;
  32824. /***/ }),
  32825. /***/ "../../node_modules/lodash/transform.js":
  32826. /*!************************************************************!*\
  32827. !*** C:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  32828. \************************************************************/
  32829. /*! no static exports found */
  32830. /***/ (function(module, exports, __webpack_require__) {
  32831. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  32832. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  32833. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  32834. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32835. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  32836. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  32837. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  32838. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  32839. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32840. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  32841. /**
  32842. * An alternative to `_.reduce`; this method transforms `object` to a new
  32843. * `accumulator` object which is the result of running each of its own
  32844. * enumerable string keyed properties thru `iteratee`, with each invocation
  32845. * potentially mutating the `accumulator` object. If `accumulator` is not
  32846. * provided, a new object with the same `[[Prototype]]` will be used. The
  32847. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  32848. * Iteratee functions may exit iteration early by explicitly returning `false`.
  32849. *
  32850. * @static
  32851. * @memberOf _
  32852. * @since 1.3.0
  32853. * @category Object
  32854. * @param {Object} object The object to iterate over.
  32855. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32856. * @param {*} [accumulator] The custom accumulator value.
  32857. * @returns {*} Returns the accumulated value.
  32858. * @example
  32859. *
  32860. * _.transform([2, 3, 4], function(result, n) {
  32861. * result.push(n *= n);
  32862. * return n % 2 == 0;
  32863. * }, []);
  32864. * // => [4, 9]
  32865. *
  32866. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32867. * (result[value] || (result[value] = [])).push(key);
  32868. * }, {});
  32869. * // => { '1': ['a', 'c'], '2': ['b'] }
  32870. */
  32871. function transform(object, iteratee, accumulator) {
  32872. var isArr = isArray(object),
  32873. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  32874. iteratee = baseIteratee(iteratee, 4);
  32875. if (accumulator == null) {
  32876. var Ctor = object && object.constructor;
  32877. if (isArrLike) {
  32878. accumulator = isArr ? new Ctor : [];
  32879. }
  32880. else if (isObject(object)) {
  32881. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  32882. }
  32883. else {
  32884. accumulator = {};
  32885. }
  32886. }
  32887. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  32888. return iteratee(accumulator, value, index, object);
  32889. });
  32890. return accumulator;
  32891. }
  32892. module.exports = transform;
  32893. /***/ }),
  32894. /***/ "../../node_modules/lodash/union.js":
  32895. /*!********************************************************!*\
  32896. !*** C:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  32897. \********************************************************/
  32898. /*! no static exports found */
  32899. /***/ (function(module, exports, __webpack_require__) {
  32900. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32901. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32902. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  32903. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  32904. /**
  32905. * Creates an array of unique values, in order, from all given arrays using
  32906. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32907. * for equality comparisons.
  32908. *
  32909. * @static
  32910. * @memberOf _
  32911. * @since 0.1.0
  32912. * @category Array
  32913. * @param {...Array} [arrays] The arrays to inspect.
  32914. * @returns {Array} Returns the new array of combined values.
  32915. * @example
  32916. *
  32917. * _.union([2], [1, 2]);
  32918. * // => [2, 1]
  32919. */
  32920. var union = baseRest(function(arrays) {
  32921. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  32922. });
  32923. module.exports = union;
  32924. /***/ }),
  32925. /***/ "../../node_modules/lodash/uniqueId.js":
  32926. /*!***********************************************************!*\
  32927. !*** C:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  32928. \***********************************************************/
  32929. /*! no static exports found */
  32930. /***/ (function(module, exports, __webpack_require__) {
  32931. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  32932. /** Used to generate unique IDs. */
  32933. var idCounter = 0;
  32934. /**
  32935. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  32936. *
  32937. * @static
  32938. * @since 0.1.0
  32939. * @memberOf _
  32940. * @category Util
  32941. * @param {string} [prefix=''] The value to prefix the ID with.
  32942. * @returns {string} Returns the unique ID.
  32943. * @example
  32944. *
  32945. * _.uniqueId('contact_');
  32946. * // => 'contact_104'
  32947. *
  32948. * _.uniqueId();
  32949. * // => '105'
  32950. */
  32951. function uniqueId(prefix) {
  32952. var id = ++idCounter;
  32953. return toString(prefix) + id;
  32954. }
  32955. module.exports = uniqueId;
  32956. /***/ }),
  32957. /***/ "../../node_modules/lodash/values.js":
  32958. /*!*********************************************************!*\
  32959. !*** C:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  32960. \*********************************************************/
  32961. /*! no static exports found */
  32962. /***/ (function(module, exports, __webpack_require__) {
  32963. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  32964. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  32965. /**
  32966. * Creates an array of the own enumerable string keyed property values of `object`.
  32967. *
  32968. * **Note:** Non-object values are coerced to objects.
  32969. *
  32970. * @static
  32971. * @since 0.1.0
  32972. * @memberOf _
  32973. * @category Object
  32974. * @param {Object} object The object to query.
  32975. * @returns {Array} Returns the array of property values.
  32976. * @example
  32977. *
  32978. * function Foo() {
  32979. * this.a = 1;
  32980. * this.b = 2;
  32981. * }
  32982. *
  32983. * Foo.prototype.c = 3;
  32984. *
  32985. * _.values(new Foo);
  32986. * // => [1, 2] (iteration order is not guaranteed)
  32987. *
  32988. * _.values('hi');
  32989. * // => ['h', 'i']
  32990. */
  32991. function values(object) {
  32992. return object == null ? [] : baseValues(object, keys(object));
  32993. }
  32994. module.exports = values;
  32995. /***/ }),
  32996. /***/ "../../node_modules/lodash/zipObject.js":
  32997. /*!************************************************************!*\
  32998. !*** C:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  32999. \************************************************************/
  33000. /*! no static exports found */
  33001. /***/ (function(module, exports, __webpack_require__) {
  33002. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  33003. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  33004. /**
  33005. * This method is like `_.fromPairs` except that it accepts two arrays,
  33006. * one of property identifiers and one of corresponding values.
  33007. *
  33008. * @static
  33009. * @memberOf _
  33010. * @since 0.4.0
  33011. * @category Array
  33012. * @param {Array} [props=[]] The property identifiers.
  33013. * @param {Array} [values=[]] The property values.
  33014. * @returns {Object} Returns the new object.
  33015. * @example
  33016. *
  33017. * _.zipObject(['a', 'b'], [1, 2]);
  33018. * // => { 'a': 1, 'b': 2 }
  33019. */
  33020. function zipObject(props, values) {
  33021. return baseZipObject(props || [], values || [], assignValue);
  33022. }
  33023. module.exports = zipObject;
  33024. /***/ }),
  33025. /***/ "../../node_modules/object-assign/index.js":
  33026. /*!***************************************************************!*\
  33027. !*** C:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  33028. \***************************************************************/
  33029. /*! no static exports found */
  33030. /***/ (function(module, exports, __webpack_require__) {
  33031. "use strict";
  33032. /*
  33033. object-assign
  33034. (c) Sindre Sorhus
  33035. @license MIT
  33036. */
  33037. /* eslint-disable no-unused-vars */
  33038. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  33039. var hasOwnProperty = Object.prototype.hasOwnProperty;
  33040. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  33041. function toObject(val) {
  33042. if (val === null || val === undefined) {
  33043. throw new TypeError('Object.assign cannot be called with null or undefined');
  33044. }
  33045. return Object(val);
  33046. }
  33047. function shouldUseNative() {
  33048. try {
  33049. if (!Object.assign) {
  33050. return false;
  33051. }
  33052. // Detect buggy property enumeration order in older V8 versions.
  33053. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  33054. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  33055. test1[5] = 'de';
  33056. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  33057. return false;
  33058. }
  33059. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33060. var test2 = {};
  33061. for (var i = 0; i < 10; i++) {
  33062. test2['_' + String.fromCharCode(i)] = i;
  33063. }
  33064. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  33065. return test2[n];
  33066. });
  33067. if (order2.join('') !== '0123456789') {
  33068. return false;
  33069. }
  33070. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33071. var test3 = {};
  33072. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  33073. test3[letter] = letter;
  33074. });
  33075. if (Object.keys(Object.assign({}, test3)).join('') !==
  33076. 'abcdefghijklmnopqrst') {
  33077. return false;
  33078. }
  33079. return true;
  33080. } catch (err) {
  33081. // We don't expect any of the above to throw, but better to be safe.
  33082. return false;
  33083. }
  33084. }
  33085. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  33086. var from;
  33087. var to = toObject(target);
  33088. var symbols;
  33089. for (var s = 1; s < arguments.length; s++) {
  33090. from = Object(arguments[s]);
  33091. for (var key in from) {
  33092. if (hasOwnProperty.call(from, key)) {
  33093. to[key] = from[key];
  33094. }
  33095. }
  33096. if (getOwnPropertySymbols) {
  33097. symbols = getOwnPropertySymbols(from);
  33098. for (var i = 0; i < symbols.length; i++) {
  33099. if (propIsEnumerable.call(from, symbols[i])) {
  33100. to[symbols[i]] = from[symbols[i]];
  33101. }
  33102. }
  33103. }
  33104. }
  33105. return to;
  33106. };
  33107. /***/ }),
  33108. /***/ "../../node_modules/process/browser.js":
  33109. /*!***********************************************************!*\
  33110. !*** C:/Repos/Babylon.js/node_modules/process/browser.js ***!
  33111. \***********************************************************/
  33112. /*! no static exports found */
  33113. /***/ (function(module, exports) {
  33114. // shim for using process in browser
  33115. var process = module.exports = {};
  33116. // cached from whatever global is present so that test runners that stub it
  33117. // don't break things. But we need to wrap it in a try catch in case it is
  33118. // wrapped in strict mode code which doesn't define any globals. It's inside a
  33119. // function because try/catches deoptimize in certain engines.
  33120. var cachedSetTimeout;
  33121. var cachedClearTimeout;
  33122. function defaultSetTimout() {
  33123. throw new Error('setTimeout has not been defined');
  33124. }
  33125. function defaultClearTimeout () {
  33126. throw new Error('clearTimeout has not been defined');
  33127. }
  33128. (function () {
  33129. try {
  33130. if (typeof setTimeout === 'function') {
  33131. cachedSetTimeout = setTimeout;
  33132. } else {
  33133. cachedSetTimeout = defaultSetTimout;
  33134. }
  33135. } catch (e) {
  33136. cachedSetTimeout = defaultSetTimout;
  33137. }
  33138. try {
  33139. if (typeof clearTimeout === 'function') {
  33140. cachedClearTimeout = clearTimeout;
  33141. } else {
  33142. cachedClearTimeout = defaultClearTimeout;
  33143. }
  33144. } catch (e) {
  33145. cachedClearTimeout = defaultClearTimeout;
  33146. }
  33147. } ())
  33148. function runTimeout(fun) {
  33149. if (cachedSetTimeout === setTimeout) {
  33150. //normal enviroments in sane situations
  33151. return setTimeout(fun, 0);
  33152. }
  33153. // if setTimeout wasn't available but was latter defined
  33154. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  33155. cachedSetTimeout = setTimeout;
  33156. return setTimeout(fun, 0);
  33157. }
  33158. try {
  33159. // when when somebody has screwed with setTimeout but no I.E. maddness
  33160. return cachedSetTimeout(fun, 0);
  33161. } catch(e){
  33162. try {
  33163. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33164. return cachedSetTimeout.call(null, fun, 0);
  33165. } catch(e){
  33166. // 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
  33167. return cachedSetTimeout.call(this, fun, 0);
  33168. }
  33169. }
  33170. }
  33171. function runClearTimeout(marker) {
  33172. if (cachedClearTimeout === clearTimeout) {
  33173. //normal enviroments in sane situations
  33174. return clearTimeout(marker);
  33175. }
  33176. // if clearTimeout wasn't available but was latter defined
  33177. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  33178. cachedClearTimeout = clearTimeout;
  33179. return clearTimeout(marker);
  33180. }
  33181. try {
  33182. // when when somebody has screwed with setTimeout but no I.E. maddness
  33183. return cachedClearTimeout(marker);
  33184. } catch (e){
  33185. try {
  33186. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33187. return cachedClearTimeout.call(null, marker);
  33188. } catch (e){
  33189. // 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.
  33190. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  33191. return cachedClearTimeout.call(this, marker);
  33192. }
  33193. }
  33194. }
  33195. var queue = [];
  33196. var draining = false;
  33197. var currentQueue;
  33198. var queueIndex = -1;
  33199. function cleanUpNextTick() {
  33200. if (!draining || !currentQueue) {
  33201. return;
  33202. }
  33203. draining = false;
  33204. if (currentQueue.length) {
  33205. queue = currentQueue.concat(queue);
  33206. } else {
  33207. queueIndex = -1;
  33208. }
  33209. if (queue.length) {
  33210. drainQueue();
  33211. }
  33212. }
  33213. function drainQueue() {
  33214. if (draining) {
  33215. return;
  33216. }
  33217. var timeout = runTimeout(cleanUpNextTick);
  33218. draining = true;
  33219. var len = queue.length;
  33220. while(len) {
  33221. currentQueue = queue;
  33222. queue = [];
  33223. while (++queueIndex < len) {
  33224. if (currentQueue) {
  33225. currentQueue[queueIndex].run();
  33226. }
  33227. }
  33228. queueIndex = -1;
  33229. len = queue.length;
  33230. }
  33231. currentQueue = null;
  33232. draining = false;
  33233. runClearTimeout(timeout);
  33234. }
  33235. process.nextTick = function (fun) {
  33236. var args = new Array(arguments.length - 1);
  33237. if (arguments.length > 1) {
  33238. for (var i = 1; i < arguments.length; i++) {
  33239. args[i - 1] = arguments[i];
  33240. }
  33241. }
  33242. queue.push(new Item(fun, args));
  33243. if (queue.length === 1 && !draining) {
  33244. runTimeout(drainQueue);
  33245. }
  33246. };
  33247. // v8 likes predictible objects
  33248. function Item(fun, array) {
  33249. this.fun = fun;
  33250. this.array = array;
  33251. }
  33252. Item.prototype.run = function () {
  33253. this.fun.apply(null, this.array);
  33254. };
  33255. process.title = 'browser';
  33256. process.browser = true;
  33257. process.env = {};
  33258. process.argv = [];
  33259. process.version = ''; // empty string to avoid regexp issues
  33260. process.versions = {};
  33261. function noop() {}
  33262. process.on = noop;
  33263. process.addListener = noop;
  33264. process.once = noop;
  33265. process.off = noop;
  33266. process.removeListener = noop;
  33267. process.removeAllListeners = noop;
  33268. process.emit = noop;
  33269. process.prependListener = noop;
  33270. process.prependOnceListener = noop;
  33271. process.listeners = function (name) { return [] }
  33272. process.binding = function (name) {
  33273. throw new Error('process.binding is not supported');
  33274. };
  33275. process.cwd = function () { return '/' };
  33276. process.chdir = function (dir) {
  33277. throw new Error('process.chdir is not supported');
  33278. };
  33279. process.umask = function() { return 0; };
  33280. /***/ }),
  33281. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  33282. /*!*********************************************************************!*\
  33283. !*** C:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  33284. \*********************************************************************/
  33285. /*! no static exports found */
  33286. /***/ (function(module, exports, __webpack_require__) {
  33287. "use strict";
  33288. /**
  33289. * Copyright (c) 2013-present, Facebook, Inc.
  33290. *
  33291. * This source code is licensed under the MIT license found in the
  33292. * LICENSE file in the root directory of this source tree.
  33293. */
  33294. var printWarning = function() {};
  33295. if (true) {
  33296. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33297. var loggedTypeFailures = {};
  33298. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33299. printWarning = function(text) {
  33300. var message = 'Warning: ' + text;
  33301. if (typeof console !== 'undefined') {
  33302. console.error(message);
  33303. }
  33304. try {
  33305. // --- Welcome to debugging React ---
  33306. // This error was thrown as a convenience so that you can use this stack
  33307. // to find the callsite that caused this warning to fire.
  33308. throw new Error(message);
  33309. } catch (x) {}
  33310. };
  33311. }
  33312. /**
  33313. * Assert that the values match with the type specs.
  33314. * Error messages are memorized and will only be shown once.
  33315. *
  33316. * @param {object} typeSpecs Map of name to a ReactPropType
  33317. * @param {object} values Runtime values that need to be type-checked
  33318. * @param {string} location e.g. "prop", "context", "child context"
  33319. * @param {string} componentName Name of the component for error messages.
  33320. * @param {?Function} getStack Returns the component stack.
  33321. * @private
  33322. */
  33323. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  33324. if (true) {
  33325. for (var typeSpecName in typeSpecs) {
  33326. if (has(typeSpecs, typeSpecName)) {
  33327. var error;
  33328. // Prop type validation may throw. In case they do, we don't want to
  33329. // fail the render phase where it didn't fail before. So we log it.
  33330. // After these have been cleaned up, we'll let them throw.
  33331. try {
  33332. // This is intentionally an invariant that gets caught. It's the same
  33333. // behavior as without this statement except with a better message.
  33334. if (typeof typeSpecs[typeSpecName] !== 'function') {
  33335. var err = Error(
  33336. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  33337. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  33338. );
  33339. err.name = 'Invariant Violation';
  33340. throw err;
  33341. }
  33342. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  33343. } catch (ex) {
  33344. error = ex;
  33345. }
  33346. if (error && !(error instanceof Error)) {
  33347. printWarning(
  33348. (componentName || 'React class') + ': type specification of ' +
  33349. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  33350. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  33351. 'You may have forgotten to pass an argument to the type checker ' +
  33352. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  33353. 'shape all require an argument).'
  33354. );
  33355. }
  33356. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  33357. // Only monitor this failure once because there tends to be a lot of the
  33358. // same error.
  33359. loggedTypeFailures[error.message] = true;
  33360. var stack = getStack ? getStack() : '';
  33361. printWarning(
  33362. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  33363. );
  33364. }
  33365. }
  33366. }
  33367. }
  33368. }
  33369. /**
  33370. * Resets warning cache when testing.
  33371. *
  33372. * @private
  33373. */
  33374. checkPropTypes.resetWarningCache = function() {
  33375. if (true) {
  33376. loggedTypeFailures = {};
  33377. }
  33378. }
  33379. module.exports = checkPropTypes;
  33380. /***/ }),
  33381. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  33382. /*!******************************************************************************!*\
  33383. !*** C:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  33384. \******************************************************************************/
  33385. /*! no static exports found */
  33386. /***/ (function(module, exports, __webpack_require__) {
  33387. "use strict";
  33388. /**
  33389. * Copyright (c) 2013-present, Facebook, Inc.
  33390. *
  33391. * This source code is licensed under the MIT license found in the
  33392. * LICENSE file in the root directory of this source tree.
  33393. */
  33394. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33395. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33396. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33397. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33398. var has = Function.call.bind(Object.prototype.hasOwnProperty);
  33399. var printWarning = function() {};
  33400. if (true) {
  33401. printWarning = function(text) {
  33402. var message = 'Warning: ' + text;
  33403. if (typeof console !== 'undefined') {
  33404. console.error(message);
  33405. }
  33406. try {
  33407. // --- Welcome to debugging React ---
  33408. // This error was thrown as a convenience so that you can use this stack
  33409. // to find the callsite that caused this warning to fire.
  33410. throw new Error(message);
  33411. } catch (x) {}
  33412. };
  33413. }
  33414. function emptyFunctionThatReturnsNull() {
  33415. return null;
  33416. }
  33417. module.exports = function(isValidElement, throwOnDirectAccess) {
  33418. /* global Symbol */
  33419. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  33420. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  33421. /**
  33422. * Returns the iterator method function contained on the iterable object.
  33423. *
  33424. * Be sure to invoke the function with the iterable as context:
  33425. *
  33426. * var iteratorFn = getIteratorFn(myIterable);
  33427. * if (iteratorFn) {
  33428. * var iterator = iteratorFn.call(myIterable);
  33429. * ...
  33430. * }
  33431. *
  33432. * @param {?object} maybeIterable
  33433. * @return {?function}
  33434. */
  33435. function getIteratorFn(maybeIterable) {
  33436. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  33437. if (typeof iteratorFn === 'function') {
  33438. return iteratorFn;
  33439. }
  33440. }
  33441. /**
  33442. * Collection of methods that allow declaration and validation of props that are
  33443. * supplied to React components. Example usage:
  33444. *
  33445. * var Props = require('ReactPropTypes');
  33446. * var MyArticle = React.createClass({
  33447. * propTypes: {
  33448. * // An optional string prop named "description".
  33449. * description: Props.string,
  33450. *
  33451. * // A required enum prop named "category".
  33452. * category: Props.oneOf(['News','Photos']).isRequired,
  33453. *
  33454. * // A prop named "dialog" that requires an instance of Dialog.
  33455. * dialog: Props.instanceOf(Dialog).isRequired
  33456. * },
  33457. * render: function() { ... }
  33458. * });
  33459. *
  33460. * A more formal specification of how these methods are used:
  33461. *
  33462. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  33463. * decl := ReactPropTypes.{type}(.isRequired)?
  33464. *
  33465. * Each and every declaration produces a function with the same signature. This
  33466. * allows the creation of custom validation functions. For example:
  33467. *
  33468. * var MyLink = React.createClass({
  33469. * propTypes: {
  33470. * // An optional string or URI prop named "href".
  33471. * href: function(props, propName, componentName) {
  33472. * var propValue = props[propName];
  33473. * if (propValue != null && typeof propValue !== 'string' &&
  33474. * !(propValue instanceof URI)) {
  33475. * return new Error(
  33476. * 'Expected a string or an URI for ' + propName + ' in ' +
  33477. * componentName
  33478. * );
  33479. * }
  33480. * }
  33481. * },
  33482. * render: function() {...}
  33483. * });
  33484. *
  33485. * @internal
  33486. */
  33487. var ANONYMOUS = '<<anonymous>>';
  33488. // Important!
  33489. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  33490. var ReactPropTypes = {
  33491. array: createPrimitiveTypeChecker('array'),
  33492. bool: createPrimitiveTypeChecker('boolean'),
  33493. func: createPrimitiveTypeChecker('function'),
  33494. number: createPrimitiveTypeChecker('number'),
  33495. object: createPrimitiveTypeChecker('object'),
  33496. string: createPrimitiveTypeChecker('string'),
  33497. symbol: createPrimitiveTypeChecker('symbol'),
  33498. any: createAnyTypeChecker(),
  33499. arrayOf: createArrayOfTypeChecker,
  33500. element: createElementTypeChecker(),
  33501. elementType: createElementTypeTypeChecker(),
  33502. instanceOf: createInstanceTypeChecker,
  33503. node: createNodeChecker(),
  33504. objectOf: createObjectOfTypeChecker,
  33505. oneOf: createEnumTypeChecker,
  33506. oneOfType: createUnionTypeChecker,
  33507. shape: createShapeTypeChecker,
  33508. exact: createStrictShapeTypeChecker,
  33509. };
  33510. /**
  33511. * inlined Object.is polyfill to avoid requiring consumers ship their own
  33512. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  33513. */
  33514. /*eslint-disable no-self-compare*/
  33515. function is(x, y) {
  33516. // SameValue algorithm
  33517. if (x === y) {
  33518. // Steps 1-5, 7-10
  33519. // Steps 6.b-6.e: +0 != -0
  33520. return x !== 0 || 1 / x === 1 / y;
  33521. } else {
  33522. // Step 6.a: NaN == NaN
  33523. return x !== x && y !== y;
  33524. }
  33525. }
  33526. /*eslint-enable no-self-compare*/
  33527. /**
  33528. * We use an Error-like object for backward compatibility as people may call
  33529. * PropTypes directly and inspect their output. However, we don't use real
  33530. * Errors anymore. We don't inspect their stack anyway, and creating them
  33531. * is prohibitively expensive if they are created too often, such as what
  33532. * happens in oneOfType() for any type before the one that matched.
  33533. */
  33534. function PropTypeError(message) {
  33535. this.message = message;
  33536. this.stack = '';
  33537. }
  33538. // Make `instanceof Error` still work for returned errors.
  33539. PropTypeError.prototype = Error.prototype;
  33540. function createChainableTypeChecker(validate) {
  33541. if (true) {
  33542. var manualPropTypeCallCache = {};
  33543. var manualPropTypeWarningCount = 0;
  33544. }
  33545. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  33546. componentName = componentName || ANONYMOUS;
  33547. propFullName = propFullName || propName;
  33548. if (secret !== ReactPropTypesSecret) {
  33549. if (throwOnDirectAccess) {
  33550. // New behavior only for users of `prop-types` package
  33551. var err = new Error(
  33552. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  33553. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  33554. 'Read more at http://fb.me/use-check-prop-types'
  33555. );
  33556. err.name = 'Invariant Violation';
  33557. throw err;
  33558. } else if ( true && typeof console !== 'undefined') {
  33559. // Old behavior for people using React.PropTypes
  33560. var cacheKey = componentName + ':' + propName;
  33561. if (
  33562. !manualPropTypeCallCache[cacheKey] &&
  33563. // Avoid spamming the console because they are often not actionable except for lib authors
  33564. manualPropTypeWarningCount < 3
  33565. ) {
  33566. printWarning(
  33567. 'You are manually calling a React.PropTypes validation ' +
  33568. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  33569. 'and will throw in the standalone `prop-types` package. ' +
  33570. 'You may be seeing this warning due to a third-party PropTypes ' +
  33571. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  33572. );
  33573. manualPropTypeCallCache[cacheKey] = true;
  33574. manualPropTypeWarningCount++;
  33575. }
  33576. }
  33577. }
  33578. if (props[propName] == null) {
  33579. if (isRequired) {
  33580. if (props[propName] === null) {
  33581. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  33582. }
  33583. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  33584. }
  33585. return null;
  33586. } else {
  33587. return validate(props, propName, componentName, location, propFullName);
  33588. }
  33589. }
  33590. var chainedCheckType = checkType.bind(null, false);
  33591. chainedCheckType.isRequired = checkType.bind(null, true);
  33592. return chainedCheckType;
  33593. }
  33594. function createPrimitiveTypeChecker(expectedType) {
  33595. function validate(props, propName, componentName, location, propFullName, secret) {
  33596. var propValue = props[propName];
  33597. var propType = getPropType(propValue);
  33598. if (propType !== expectedType) {
  33599. // `propValue` being instance of, say, date/regexp, pass the 'object'
  33600. // check, but we can offer a more precise error message here rather than
  33601. // 'of type `object`'.
  33602. var preciseType = getPreciseType(propValue);
  33603. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  33604. }
  33605. return null;
  33606. }
  33607. return createChainableTypeChecker(validate);
  33608. }
  33609. function createAnyTypeChecker() {
  33610. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  33611. }
  33612. function createArrayOfTypeChecker(typeChecker) {
  33613. function validate(props, propName, componentName, location, propFullName) {
  33614. if (typeof typeChecker !== 'function') {
  33615. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  33616. }
  33617. var propValue = props[propName];
  33618. if (!Array.isArray(propValue)) {
  33619. var propType = getPropType(propValue);
  33620. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  33621. }
  33622. for (var i = 0; i < propValue.length; i++) {
  33623. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  33624. if (error instanceof Error) {
  33625. return error;
  33626. }
  33627. }
  33628. return null;
  33629. }
  33630. return createChainableTypeChecker(validate);
  33631. }
  33632. function createElementTypeChecker() {
  33633. function validate(props, propName, componentName, location, propFullName) {
  33634. var propValue = props[propName];
  33635. if (!isValidElement(propValue)) {
  33636. var propType = getPropType(propValue);
  33637. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  33638. }
  33639. return null;
  33640. }
  33641. return createChainableTypeChecker(validate);
  33642. }
  33643. function createElementTypeTypeChecker() {
  33644. function validate(props, propName, componentName, location, propFullName) {
  33645. var propValue = props[propName];
  33646. if (!ReactIs.isValidElementType(propValue)) {
  33647. var propType = getPropType(propValue);
  33648. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
  33649. }
  33650. return null;
  33651. }
  33652. return createChainableTypeChecker(validate);
  33653. }
  33654. function createInstanceTypeChecker(expectedClass) {
  33655. function validate(props, propName, componentName, location, propFullName) {
  33656. if (!(props[propName] instanceof expectedClass)) {
  33657. var expectedClassName = expectedClass.name || ANONYMOUS;
  33658. var actualClassName = getClassName(props[propName]);
  33659. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  33660. }
  33661. return null;
  33662. }
  33663. return createChainableTypeChecker(validate);
  33664. }
  33665. function createEnumTypeChecker(expectedValues) {
  33666. if (!Array.isArray(expectedValues)) {
  33667. if (true) {
  33668. if (arguments.length > 1) {
  33669. printWarning(
  33670. 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
  33671. 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
  33672. );
  33673. } else {
  33674. printWarning('Invalid argument supplied to oneOf, expected an array.');
  33675. }
  33676. }
  33677. return emptyFunctionThatReturnsNull;
  33678. }
  33679. function validate(props, propName, componentName, location, propFullName) {
  33680. var propValue = props[propName];
  33681. for (var i = 0; i < expectedValues.length; i++) {
  33682. if (is(propValue, expectedValues[i])) {
  33683. return null;
  33684. }
  33685. }
  33686. var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
  33687. var type = getPreciseType(value);
  33688. if (type === 'symbol') {
  33689. return String(value);
  33690. }
  33691. return value;
  33692. });
  33693. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  33694. }
  33695. return createChainableTypeChecker(validate);
  33696. }
  33697. function createObjectOfTypeChecker(typeChecker) {
  33698. function validate(props, propName, componentName, location, propFullName) {
  33699. if (typeof typeChecker !== 'function') {
  33700. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  33701. }
  33702. var propValue = props[propName];
  33703. var propType = getPropType(propValue);
  33704. if (propType !== 'object') {
  33705. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  33706. }
  33707. for (var key in propValue) {
  33708. if (has(propValue, key)) {
  33709. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33710. if (error instanceof Error) {
  33711. return error;
  33712. }
  33713. }
  33714. }
  33715. return null;
  33716. }
  33717. return createChainableTypeChecker(validate);
  33718. }
  33719. function createUnionTypeChecker(arrayOfTypeCheckers) {
  33720. if (!Array.isArray(arrayOfTypeCheckers)) {
  33721. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  33722. return emptyFunctionThatReturnsNull;
  33723. }
  33724. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33725. var checker = arrayOfTypeCheckers[i];
  33726. if (typeof checker !== 'function') {
  33727. printWarning(
  33728. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  33729. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  33730. );
  33731. return emptyFunctionThatReturnsNull;
  33732. }
  33733. }
  33734. function validate(props, propName, componentName, location, propFullName) {
  33735. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33736. var checker = arrayOfTypeCheckers[i];
  33737. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  33738. return null;
  33739. }
  33740. }
  33741. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  33742. }
  33743. return createChainableTypeChecker(validate);
  33744. }
  33745. function createNodeChecker() {
  33746. function validate(props, propName, componentName, location, propFullName) {
  33747. if (!isNode(props[propName])) {
  33748. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  33749. }
  33750. return null;
  33751. }
  33752. return createChainableTypeChecker(validate);
  33753. }
  33754. function createShapeTypeChecker(shapeTypes) {
  33755. function validate(props, propName, componentName, location, propFullName) {
  33756. var propValue = props[propName];
  33757. var propType = getPropType(propValue);
  33758. if (propType !== 'object') {
  33759. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33760. }
  33761. for (var key in shapeTypes) {
  33762. var checker = shapeTypes[key];
  33763. if (!checker) {
  33764. continue;
  33765. }
  33766. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33767. if (error) {
  33768. return error;
  33769. }
  33770. }
  33771. return null;
  33772. }
  33773. return createChainableTypeChecker(validate);
  33774. }
  33775. function createStrictShapeTypeChecker(shapeTypes) {
  33776. function validate(props, propName, componentName, location, propFullName) {
  33777. var propValue = props[propName];
  33778. var propType = getPropType(propValue);
  33779. if (propType !== 'object') {
  33780. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33781. }
  33782. // We need to check all keys in case some are required but missing from
  33783. // props.
  33784. var allKeys = assign({}, props[propName], shapeTypes);
  33785. for (var key in allKeys) {
  33786. var checker = shapeTypes[key];
  33787. if (!checker) {
  33788. return new PropTypeError(
  33789. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  33790. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  33791. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  33792. );
  33793. }
  33794. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33795. if (error) {
  33796. return error;
  33797. }
  33798. }
  33799. return null;
  33800. }
  33801. return createChainableTypeChecker(validate);
  33802. }
  33803. function isNode(propValue) {
  33804. switch (typeof propValue) {
  33805. case 'number':
  33806. case 'string':
  33807. case 'undefined':
  33808. return true;
  33809. case 'boolean':
  33810. return !propValue;
  33811. case 'object':
  33812. if (Array.isArray(propValue)) {
  33813. return propValue.every(isNode);
  33814. }
  33815. if (propValue === null || isValidElement(propValue)) {
  33816. return true;
  33817. }
  33818. var iteratorFn = getIteratorFn(propValue);
  33819. if (iteratorFn) {
  33820. var iterator = iteratorFn.call(propValue);
  33821. var step;
  33822. if (iteratorFn !== propValue.entries) {
  33823. while (!(step = iterator.next()).done) {
  33824. if (!isNode(step.value)) {
  33825. return false;
  33826. }
  33827. }
  33828. } else {
  33829. // Iterator will provide entry [k,v] tuples rather than values.
  33830. while (!(step = iterator.next()).done) {
  33831. var entry = step.value;
  33832. if (entry) {
  33833. if (!isNode(entry[1])) {
  33834. return false;
  33835. }
  33836. }
  33837. }
  33838. }
  33839. } else {
  33840. return false;
  33841. }
  33842. return true;
  33843. default:
  33844. return false;
  33845. }
  33846. }
  33847. function isSymbol(propType, propValue) {
  33848. // Native Symbol.
  33849. if (propType === 'symbol') {
  33850. return true;
  33851. }
  33852. // falsy value can't be a Symbol
  33853. if (!propValue) {
  33854. return false;
  33855. }
  33856. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  33857. if (propValue['@@toStringTag'] === 'Symbol') {
  33858. return true;
  33859. }
  33860. // Fallback for non-spec compliant Symbols which are polyfilled.
  33861. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  33862. return true;
  33863. }
  33864. return false;
  33865. }
  33866. // Equivalent of `typeof` but with special handling for array and regexp.
  33867. function getPropType(propValue) {
  33868. var propType = typeof propValue;
  33869. if (Array.isArray(propValue)) {
  33870. return 'array';
  33871. }
  33872. if (propValue instanceof RegExp) {
  33873. // Old webkits (at least until Android 4.0) return 'function' rather than
  33874. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  33875. // passes PropTypes.object.
  33876. return 'object';
  33877. }
  33878. if (isSymbol(propType, propValue)) {
  33879. return 'symbol';
  33880. }
  33881. return propType;
  33882. }
  33883. // This handles more types than `getPropType`. Only used for error messages.
  33884. // See `createPrimitiveTypeChecker`.
  33885. function getPreciseType(propValue) {
  33886. if (typeof propValue === 'undefined' || propValue === null) {
  33887. return '' + propValue;
  33888. }
  33889. var propType = getPropType(propValue);
  33890. if (propType === 'object') {
  33891. if (propValue instanceof Date) {
  33892. return 'date';
  33893. } else if (propValue instanceof RegExp) {
  33894. return 'regexp';
  33895. }
  33896. }
  33897. return propType;
  33898. }
  33899. // Returns a string that is postfixed to a warning about an invalid type.
  33900. // For example, "undefined" or "of type array"
  33901. function getPostfixForTypeWarning(value) {
  33902. var type = getPreciseType(value);
  33903. switch (type) {
  33904. case 'array':
  33905. case 'object':
  33906. return 'an ' + type;
  33907. case 'boolean':
  33908. case 'date':
  33909. case 'regexp':
  33910. return 'a ' + type;
  33911. default:
  33912. return type;
  33913. }
  33914. }
  33915. // Returns class name of the object, if any.
  33916. function getClassName(propValue) {
  33917. if (!propValue.constructor || !propValue.constructor.name) {
  33918. return ANONYMOUS;
  33919. }
  33920. return propValue.constructor.name;
  33921. }
  33922. ReactPropTypes.checkPropTypes = checkPropTypes;
  33923. ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  33924. ReactPropTypes.PropTypes = ReactPropTypes;
  33925. return ReactPropTypes;
  33926. };
  33927. /***/ }),
  33928. /***/ "../../node_modules/prop-types/index.js":
  33929. /*!************************************************************!*\
  33930. !*** C:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  33931. \************************************************************/
  33932. /*! no static exports found */
  33933. /***/ (function(module, exports, __webpack_require__) {
  33934. /**
  33935. * Copyright (c) 2013-present, Facebook, Inc.
  33936. *
  33937. * This source code is licensed under the MIT license found in the
  33938. * LICENSE file in the root directory of this source tree.
  33939. */
  33940. if (true) {
  33941. var ReactIs = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
  33942. // By explicitly using `prop-types` you are opting into new development behavior.
  33943. // http://fb.me/prop-types-in-prod
  33944. var throwOnDirectAccess = true;
  33945. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
  33946. } else {}
  33947. /***/ }),
  33948. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  33949. /*!*******************************************************************************!*\
  33950. !*** C:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  33951. \*******************************************************************************/
  33952. /*! no static exports found */
  33953. /***/ (function(module, exports, __webpack_require__) {
  33954. "use strict";
  33955. /**
  33956. * Copyright (c) 2013-present, Facebook, Inc.
  33957. *
  33958. * This source code is licensed under the MIT license found in the
  33959. * LICENSE file in the root directory of this source tree.
  33960. */
  33961. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  33962. module.exports = ReactPropTypesSecret;
  33963. /***/ }),
  33964. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  33965. /*!*******************************************************************************!*\
  33966. !*** C:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  33967. \*******************************************************************************/
  33968. /*! no static exports found */
  33969. /***/ (function(module, exports, __webpack_require__) {
  33970. "use strict";
  33971. /** @license React v16.9.0
  33972. * react-dom.development.js
  33973. *
  33974. * Copyright (c) Facebook, Inc. and its affiliates.
  33975. *
  33976. * This source code is licensed under the MIT license found in the
  33977. * LICENSE file in the root directory of this source tree.
  33978. */
  33979. if (true) {
  33980. (function() {
  33981. 'use strict';
  33982. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  33983. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33984. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33985. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  33986. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  33987. // Do not require this module directly! Use normal `invariant` calls with
  33988. // template literal strings. The messages will be converted to ReactError during
  33989. // build, and in production they will be minified.
  33990. // Do not require this module directly! Use normal `invariant` calls with
  33991. // template literal strings. The messages will be converted to ReactError during
  33992. // build, and in production they will be minified.
  33993. function ReactError(error) {
  33994. error.name = 'Invariant Violation';
  33995. return error;
  33996. }
  33997. /**
  33998. * Use invariant() to assert state which your program assumes to be true.
  33999. *
  34000. * Provide sprintf-style format (only %s is supported) and arguments
  34001. * to provide information about what broke and what you were
  34002. * expecting.
  34003. *
  34004. * The invariant message will be stripped in production, but the invariant
  34005. * will remain to ensure logic does not differ in production.
  34006. */
  34007. (function () {
  34008. if (!React) {
  34009. {
  34010. throw ReactError(Error('ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.'));
  34011. }
  34012. }
  34013. })();
  34014. /**
  34015. * Injectable ordering of event plugins.
  34016. */
  34017. var eventPluginOrder = null;
  34018. /**
  34019. * Injectable mapping from names to event plugin modules.
  34020. */
  34021. var namesToPlugins = {};
  34022. /**
  34023. * Recomputes the plugin list using the injected plugins and plugin ordering.
  34024. *
  34025. * @private
  34026. */
  34027. function recomputePluginOrdering() {
  34028. if (!eventPluginOrder) {
  34029. // Wait until an `eventPluginOrder` is injected.
  34030. return;
  34031. }
  34032. for (var pluginName in namesToPlugins) {
  34033. var pluginModule = namesToPlugins[pluginName];
  34034. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  34035. (function () {
  34036. if (!(pluginIndex > -1)) {
  34037. {
  34038. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `' + pluginName + '`.'));
  34039. }
  34040. }
  34041. })();
  34042. if (plugins[pluginIndex]) {
  34043. continue;
  34044. }
  34045. (function () {
  34046. if (!pluginModule.extractEvents) {
  34047. {
  34048. throw ReactError(Error('EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `' + pluginName + '` does not.'));
  34049. }
  34050. }
  34051. })();
  34052. plugins[pluginIndex] = pluginModule;
  34053. var publishedEvents = pluginModule.eventTypes;
  34054. for (var eventName in publishedEvents) {
  34055. (function () {
  34056. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  34057. {
  34058. throw ReactError(Error('EventPluginRegistry: Failed to publish event `' + eventName + '` for plugin `' + pluginName + '`.'));
  34059. }
  34060. }
  34061. })();
  34062. }
  34063. }
  34064. }
  34065. /**
  34066. * Publishes an event so that it can be dispatched by the supplied plugin.
  34067. *
  34068. * @param {object} dispatchConfig Dispatch configuration for the event.
  34069. * @param {object} PluginModule Plugin publishing the event.
  34070. * @return {boolean} True if the event was successfully published.
  34071. * @private
  34072. */
  34073. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  34074. (function () {
  34075. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  34076. {
  34077. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same event name, `' + eventName + '`.'));
  34078. }
  34079. }
  34080. })();
  34081. eventNameDispatchConfigs[eventName] = dispatchConfig;
  34082. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  34083. if (phasedRegistrationNames) {
  34084. for (var phaseName in phasedRegistrationNames) {
  34085. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  34086. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  34087. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  34088. }
  34089. }
  34090. return true;
  34091. } else if (dispatchConfig.registrationName) {
  34092. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  34093. return true;
  34094. }
  34095. return false;
  34096. }
  34097. /**
  34098. * Publishes a registration name that is used to identify dispatched events.
  34099. *
  34100. * @param {string} registrationName Registration name to add.
  34101. * @param {object} PluginModule Plugin publishing the event.
  34102. * @private
  34103. */
  34104. function publishRegistrationName(registrationName, pluginModule, eventName) {
  34105. (function () {
  34106. if (!!registrationNameModules[registrationName]) {
  34107. {
  34108. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same registration name, `' + registrationName + '`.'));
  34109. }
  34110. }
  34111. })();
  34112. registrationNameModules[registrationName] = pluginModule;
  34113. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  34114. {
  34115. var lowerCasedName = registrationName.toLowerCase();
  34116. possibleRegistrationNames[lowerCasedName] = registrationName;
  34117. if (registrationName === 'onDoubleClick') {
  34118. possibleRegistrationNames.ondblclick = registrationName;
  34119. }
  34120. }
  34121. }
  34122. /**
  34123. * Registers plugins so that they can extract and dispatch events.
  34124. *
  34125. * @see {EventPluginHub}
  34126. */
  34127. /**
  34128. * Ordered list of injected plugins.
  34129. */
  34130. var plugins = [];
  34131. /**
  34132. * Mapping from event name to dispatch config
  34133. */
  34134. var eventNameDispatchConfigs = {};
  34135. /**
  34136. * Mapping from registration name to plugin module
  34137. */
  34138. var registrationNameModules = {};
  34139. /**
  34140. * Mapping from registration name to event name
  34141. */
  34142. var registrationNameDependencies = {};
  34143. /**
  34144. * Mapping from lowercase registration names to the properly cased version,
  34145. * used to warn in the case of missing event handlers. Available
  34146. * only in true.
  34147. * @type {Object}
  34148. */
  34149. var possibleRegistrationNames = {};
  34150. // Trust the developer to only use possibleRegistrationNames in true
  34151. /**
  34152. * Injects an ordering of plugins (by plugin name). This allows the ordering
  34153. * to be decoupled from injection of the actual plugins so that ordering is
  34154. * always deterministic regardless of packaging, on-the-fly injection, etc.
  34155. *
  34156. * @param {array} InjectedEventPluginOrder
  34157. * @internal
  34158. * @see {EventPluginHub.injection.injectEventPluginOrder}
  34159. */
  34160. function injectEventPluginOrder(injectedEventPluginOrder) {
  34161. (function () {
  34162. if (!!eventPluginOrder) {
  34163. {
  34164. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.'));
  34165. }
  34166. }
  34167. })();
  34168. // Clone the ordering so it cannot be dynamically mutated.
  34169. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  34170. recomputePluginOrdering();
  34171. }
  34172. /**
  34173. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  34174. * in the ordering injected by `injectEventPluginOrder`.
  34175. *
  34176. * Plugins can be injected as part of page initialization or on-the-fly.
  34177. *
  34178. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34179. * @internal
  34180. * @see {EventPluginHub.injection.injectEventPluginsByName}
  34181. */
  34182. function injectEventPluginsByName(injectedNamesToPlugins) {
  34183. var isOrderingDirty = false;
  34184. for (var pluginName in injectedNamesToPlugins) {
  34185. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  34186. continue;
  34187. }
  34188. var pluginModule = injectedNamesToPlugins[pluginName];
  34189. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  34190. (function () {
  34191. if (!!namesToPlugins[pluginName]) {
  34192. {
  34193. throw ReactError(Error('EventPluginRegistry: Cannot inject two different event plugins using the same name, `' + pluginName + '`.'));
  34194. }
  34195. }
  34196. })();
  34197. namesToPlugins[pluginName] = pluginModule;
  34198. isOrderingDirty = true;
  34199. }
  34200. }
  34201. if (isOrderingDirty) {
  34202. recomputePluginOrdering();
  34203. }
  34204. }
  34205. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  34206. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34207. try {
  34208. func.apply(context, funcArgs);
  34209. } catch (error) {
  34210. this.onError(error);
  34211. }
  34212. };
  34213. {
  34214. // In DEV mode, we swap out invokeGuardedCallback for a special version
  34215. // that plays more nicely with the browser's DevTools. The idea is to preserve
  34216. // "Pause on exceptions" behavior. Because React wraps all user-provided
  34217. // functions in invokeGuardedCallback, and the production version of
  34218. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  34219. // like caught exceptions, and the DevTools won't pause unless the developer
  34220. // takes the extra step of enabling pause on caught exceptions. This is
  34221. // unintuitive, though, because even though React has caught the error, from
  34222. // the developer's perspective, the error is uncaught.
  34223. //
  34224. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  34225. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  34226. // DOM node, and call the user-provided callback from inside an event handler
  34227. // for that fake event. If the callback throws, the error is "captured" using
  34228. // a global event handler. But because the error happens in a different
  34229. // event loop context, it does not interrupt the normal program flow.
  34230. // Effectively, this gives us try-catch behavior without actually using
  34231. // try-catch. Neat!
  34232. // Check that the browser supports the APIs we need to implement our special
  34233. // DEV version of invokeGuardedCallback
  34234. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  34235. var fakeNode = document.createElement('react');
  34236. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  34237. // If document doesn't exist we know for sure we will crash in this method
  34238. // when we call document.createEvent(). However this can cause confusing
  34239. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  34240. // So we preemptively throw with a better message instead.
  34241. (function () {
  34242. if (!(typeof document !== 'undefined')) {
  34243. {
  34244. 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.'));
  34245. }
  34246. }
  34247. })();
  34248. var evt = document.createEvent('Event');
  34249. // Keeps track of whether the user-provided callback threw an error. We
  34250. // set this to true at the beginning, then set it to false right after
  34251. // calling the function. If the function errors, `didError` will never be
  34252. // set to false. This strategy works even if the browser is flaky and
  34253. // fails to call our global error handler, because it doesn't rely on
  34254. // the error event at all.
  34255. var didError = true;
  34256. // Keeps track of the value of window.event so that we can reset it
  34257. // during the callback to let user code access window.event in the
  34258. // browsers that support it.
  34259. var windowEvent = window.event;
  34260. // Keeps track of the descriptor of window.event to restore it after event
  34261. // dispatching: https://github.com/facebook/react/issues/13688
  34262. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  34263. // Create an event handler for our fake event. We will synchronously
  34264. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  34265. // call the user-provided callback.
  34266. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34267. function callCallback() {
  34268. // We immediately remove the callback from event listeners so that
  34269. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  34270. // nested call would trigger the fake event handlers of any call higher
  34271. // in the stack.
  34272. fakeNode.removeEventListener(evtType, callCallback, false);
  34273. // We check for window.hasOwnProperty('event') to prevent the
  34274. // window.event assignment in both IE <= 10 as they throw an error
  34275. // "Member not found" in strict mode, and in Firefox which does not
  34276. // support window.event.
  34277. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  34278. window.event = windowEvent;
  34279. }
  34280. func.apply(context, funcArgs);
  34281. didError = false;
  34282. }
  34283. // Create a global error event handler. We use this to capture the value
  34284. // that was thrown. It's possible that this error handler will fire more
  34285. // than once; for example, if non-React code also calls `dispatchEvent`
  34286. // and a handler for that event throws. We should be resilient to most of
  34287. // those cases. Even if our error event handler fires more than once, the
  34288. // last error event is always used. If the callback actually does error,
  34289. // we know that the last error event is the correct one, because it's not
  34290. // possible for anything else to have happened in between our callback
  34291. // erroring and the code that follows the `dispatchEvent` call below. If
  34292. // the callback doesn't error, but the error event was fired, we know to
  34293. // ignore it because `didError` will be false, as described above.
  34294. var error = void 0;
  34295. // Use this to track whether the error event is ever called.
  34296. var didSetError = false;
  34297. var isCrossOriginError = false;
  34298. function handleWindowError(event) {
  34299. error = event.error;
  34300. didSetError = true;
  34301. if (error === null && event.colno === 0 && event.lineno === 0) {
  34302. isCrossOriginError = true;
  34303. }
  34304. if (event.defaultPrevented) {
  34305. // Some other error handler has prevented default.
  34306. // Browsers silence the error report if this happens.
  34307. // We'll remember this to later decide whether to log it or not.
  34308. if (error != null && typeof error === 'object') {
  34309. try {
  34310. error._suppressLogging = true;
  34311. } catch (inner) {
  34312. // Ignore.
  34313. }
  34314. }
  34315. }
  34316. }
  34317. // Create a fake event type.
  34318. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  34319. // Attach our event handlers
  34320. window.addEventListener('error', handleWindowError);
  34321. fakeNode.addEventListener(evtType, callCallback, false);
  34322. // Synchronously dispatch our fake event. If the user-provided function
  34323. // errors, it will trigger our global error handler.
  34324. evt.initEvent(evtType, false, false);
  34325. fakeNode.dispatchEvent(evt);
  34326. if (windowEventDescriptor) {
  34327. Object.defineProperty(window, 'event', windowEventDescriptor);
  34328. }
  34329. if (didError) {
  34330. if (!didSetError) {
  34331. // The callback errored, but the error event never fired.
  34332. 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.');
  34333. } else if (isCrossOriginError) {
  34334. 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.');
  34335. }
  34336. this.onError(error);
  34337. }
  34338. // Remove our event listeners
  34339. window.removeEventListener('error', handleWindowError);
  34340. };
  34341. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  34342. }
  34343. }
  34344. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  34345. // Used by Fiber to simulate a try-catch.
  34346. var hasError = false;
  34347. var caughtError = null;
  34348. // Used by event system to capture/rethrow the first error.
  34349. var hasRethrowError = false;
  34350. var rethrowError = null;
  34351. var reporter = {
  34352. onError: function (error) {
  34353. hasError = true;
  34354. caughtError = error;
  34355. }
  34356. };
  34357. /**
  34358. * Call a function while guarding against errors that happens within it.
  34359. * Returns an error if it throws, otherwise null.
  34360. *
  34361. * In production, this is implemented using a try-catch. The reason we don't
  34362. * use a try-catch directly is so that we can swap out a different
  34363. * implementation in DEV mode.
  34364. *
  34365. * @param {String} name of the guard to use for logging or debugging
  34366. * @param {Function} func The function to invoke
  34367. * @param {*} context The context to use when calling the function
  34368. * @param {...*} args Arguments for function
  34369. */
  34370. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  34371. hasError = false;
  34372. caughtError = null;
  34373. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  34374. }
  34375. /**
  34376. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  34377. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  34378. * TODO: See if caughtError and rethrowError can be unified.
  34379. *
  34380. * @param {String} name of the guard to use for logging or debugging
  34381. * @param {Function} func The function to invoke
  34382. * @param {*} context The context to use when calling the function
  34383. * @param {...*} args Arguments for function
  34384. */
  34385. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  34386. invokeGuardedCallback.apply(this, arguments);
  34387. if (hasError) {
  34388. var error = clearCaughtError();
  34389. if (!hasRethrowError) {
  34390. hasRethrowError = true;
  34391. rethrowError = error;
  34392. }
  34393. }
  34394. }
  34395. /**
  34396. * During execution of guarded functions we will capture the first error which
  34397. * we will rethrow to be handled by the top level error handler.
  34398. */
  34399. function rethrowCaughtError() {
  34400. if (hasRethrowError) {
  34401. var error = rethrowError;
  34402. hasRethrowError = false;
  34403. rethrowError = null;
  34404. throw error;
  34405. }
  34406. }
  34407. function hasCaughtError() {
  34408. return hasError;
  34409. }
  34410. function clearCaughtError() {
  34411. if (hasError) {
  34412. var error = caughtError;
  34413. hasError = false;
  34414. caughtError = null;
  34415. return error;
  34416. } else {
  34417. (function () {
  34418. {
  34419. {
  34420. 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.'));
  34421. }
  34422. }
  34423. })();
  34424. }
  34425. }
  34426. /**
  34427. * Similar to invariant but only logs a warning if the condition is not met.
  34428. * This can be used to log issues in development environments in critical
  34429. * paths. Removing the logging code for production environments will keep the
  34430. * same logic and follow the same code paths.
  34431. */
  34432. var warningWithoutStack = function () {};
  34433. {
  34434. warningWithoutStack = function (condition, format) {
  34435. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  34436. args[_key - 2] = arguments[_key];
  34437. }
  34438. if (format === undefined) {
  34439. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  34440. }
  34441. if (args.length > 8) {
  34442. // Check before the condition to catch violations early.
  34443. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  34444. }
  34445. if (condition) {
  34446. return;
  34447. }
  34448. if (typeof console !== 'undefined') {
  34449. var argsWithFormat = args.map(function (item) {
  34450. return '' + item;
  34451. });
  34452. argsWithFormat.unshift('Warning: ' + format);
  34453. // We intentionally don't use spread (or .apply) directly because it
  34454. // breaks IE9: https://github.com/facebook/react/issues/13610
  34455. Function.prototype.apply.call(console.error, console, argsWithFormat);
  34456. }
  34457. try {
  34458. // --- Welcome to debugging React ---
  34459. // This error was thrown as a convenience so that you can use this stack
  34460. // to find the callsite that caused this warning to fire.
  34461. var argIndex = 0;
  34462. var message = 'Warning: ' + format.replace(/%s/g, function () {
  34463. return args[argIndex++];
  34464. });
  34465. throw new Error(message);
  34466. } catch (x) {}
  34467. };
  34468. }
  34469. var warningWithoutStack$1 = warningWithoutStack;
  34470. var getFiberCurrentPropsFromNode = null;
  34471. var getInstanceFromNode = null;
  34472. var getNodeFromInstance = null;
  34473. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  34474. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  34475. getInstanceFromNode = getInstanceFromNodeImpl;
  34476. getNodeFromInstance = getNodeFromInstanceImpl;
  34477. {
  34478. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  34479. }
  34480. }
  34481. var validateEventDispatches = void 0;
  34482. {
  34483. validateEventDispatches = function (event) {
  34484. var dispatchListeners = event._dispatchListeners;
  34485. var dispatchInstances = event._dispatchInstances;
  34486. var listenersIsArr = Array.isArray(dispatchListeners);
  34487. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  34488. var instancesIsArr = Array.isArray(dispatchInstances);
  34489. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  34490. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  34491. };
  34492. }
  34493. /**
  34494. * Dispatch the event to the listener.
  34495. * @param {SyntheticEvent} event SyntheticEvent to handle
  34496. * @param {function} listener Application-level callback
  34497. * @param {*} inst Internal component instance
  34498. */
  34499. function executeDispatch(event, listener, inst) {
  34500. var type = event.type || 'unknown-event';
  34501. event.currentTarget = getNodeFromInstance(inst);
  34502. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  34503. event.currentTarget = null;
  34504. }
  34505. /**
  34506. * Standard/simple iteration through an event's collected dispatches.
  34507. */
  34508. function executeDispatchesInOrder(event) {
  34509. var dispatchListeners = event._dispatchListeners;
  34510. var dispatchInstances = event._dispatchInstances;
  34511. {
  34512. validateEventDispatches(event);
  34513. }
  34514. if (Array.isArray(dispatchListeners)) {
  34515. for (var i = 0; i < dispatchListeners.length; i++) {
  34516. if (event.isPropagationStopped()) {
  34517. break;
  34518. }
  34519. // Listeners and Instances are two parallel arrays that are always in sync.
  34520. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  34521. }
  34522. } else if (dispatchListeners) {
  34523. executeDispatch(event, dispatchListeners, dispatchInstances);
  34524. }
  34525. event._dispatchListeners = null;
  34526. event._dispatchInstances = null;
  34527. }
  34528. /**
  34529. * @see executeDispatchesInOrderStopAtTrueImpl
  34530. */
  34531. /**
  34532. * Execution of a "direct" dispatch - there must be at most one dispatch
  34533. * accumulated on the event or it is considered an error. It doesn't really make
  34534. * sense for an event with multiple dispatches (bubbled) to keep track of the
  34535. * return values at each dispatch execution, but it does tend to make sense when
  34536. * dealing with "direct" dispatches.
  34537. *
  34538. * @return {*} The return value of executing the single dispatch.
  34539. */
  34540. /**
  34541. * @param {SyntheticEvent} event
  34542. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  34543. */
  34544. /**
  34545. * Accumulates items that must not be null or undefined into the first one. This
  34546. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  34547. * API cleanness. Since `current` can be null before being passed in and not
  34548. * null after this function, make sure to assign it back to `current`:
  34549. *
  34550. * `a = accumulateInto(a, b);`
  34551. *
  34552. * This API should be sparingly used. Try `accumulate` for something cleaner.
  34553. *
  34554. * @return {*|array<*>} An accumulation of items.
  34555. */
  34556. function accumulateInto(current, next) {
  34557. (function () {
  34558. if (!(next != null)) {
  34559. {
  34560. throw ReactError(Error('accumulateInto(...): Accumulated items must not be null or undefined.'));
  34561. }
  34562. }
  34563. })();
  34564. if (current == null) {
  34565. return next;
  34566. }
  34567. // Both are not empty. Warning: Never call x.concat(y) when you are not
  34568. // certain that x is an Array (x could be a string with concat method).
  34569. if (Array.isArray(current)) {
  34570. if (Array.isArray(next)) {
  34571. current.push.apply(current, next);
  34572. return current;
  34573. }
  34574. current.push(next);
  34575. return current;
  34576. }
  34577. if (Array.isArray(next)) {
  34578. // A bit too dangerous to mutate `next`.
  34579. return [current].concat(next);
  34580. }
  34581. return [current, next];
  34582. }
  34583. /**
  34584. * @param {array} arr an "accumulation" of items which is either an Array or
  34585. * a single item. Useful when paired with the `accumulate` module. This is a
  34586. * simple utility that allows us to reason about a collection of items, but
  34587. * handling the case when there is exactly one item (and we do not need to
  34588. * allocate an array).
  34589. * @param {function} cb Callback invoked with each element or a collection.
  34590. * @param {?} [scope] Scope used as `this` in a callback.
  34591. */
  34592. function forEachAccumulated(arr, cb, scope) {
  34593. if (Array.isArray(arr)) {
  34594. arr.forEach(cb, scope);
  34595. } else if (arr) {
  34596. cb.call(scope, arr);
  34597. }
  34598. }
  34599. /**
  34600. * Internal queue of events that have accumulated their dispatches and are
  34601. * waiting to have their dispatches executed.
  34602. */
  34603. var eventQueue = null;
  34604. /**
  34605. * Dispatches an event and releases it back into the pool, unless persistent.
  34606. *
  34607. * @param {?object} event Synthetic event to be dispatched.
  34608. * @private
  34609. */
  34610. var executeDispatchesAndRelease = function (event) {
  34611. if (event) {
  34612. executeDispatchesInOrder(event);
  34613. if (!event.isPersistent()) {
  34614. event.constructor.release(event);
  34615. }
  34616. }
  34617. };
  34618. var executeDispatchesAndReleaseTopLevel = function (e) {
  34619. return executeDispatchesAndRelease(e);
  34620. };
  34621. function runEventsInBatch(events) {
  34622. if (events !== null) {
  34623. eventQueue = accumulateInto(eventQueue, events);
  34624. }
  34625. // Set `eventQueue` to null before processing it so that we can tell if more
  34626. // events get enqueued while processing.
  34627. var processingEventQueue = eventQueue;
  34628. eventQueue = null;
  34629. if (!processingEventQueue) {
  34630. return;
  34631. }
  34632. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  34633. (function () {
  34634. if (!!eventQueue) {
  34635. {
  34636. throw ReactError(Error('processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.'));
  34637. }
  34638. }
  34639. })();
  34640. // This would be a good time to rethrow if any of the event handlers threw.
  34641. rethrowCaughtError();
  34642. }
  34643. function isInteractive(tag) {
  34644. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  34645. }
  34646. function shouldPreventMouseEvent(name, type, props) {
  34647. switch (name) {
  34648. case 'onClick':
  34649. case 'onClickCapture':
  34650. case 'onDoubleClick':
  34651. case 'onDoubleClickCapture':
  34652. case 'onMouseDown':
  34653. case 'onMouseDownCapture':
  34654. case 'onMouseMove':
  34655. case 'onMouseMoveCapture':
  34656. case 'onMouseUp':
  34657. case 'onMouseUpCapture':
  34658. return !!(props.disabled && isInteractive(type));
  34659. default:
  34660. return false;
  34661. }
  34662. }
  34663. /**
  34664. * This is a unified interface for event plugins to be installed and configured.
  34665. *
  34666. * Event plugins can implement the following properties:
  34667. *
  34668. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  34669. * Required. When a top-level event is fired, this method is expected to
  34670. * extract synthetic events that will in turn be queued and dispatched.
  34671. *
  34672. * `eventTypes` {object}
  34673. * Optional, plugins that fire events must publish a mapping of registration
  34674. * names that are used to register listeners. Values of this mapping must
  34675. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  34676. *
  34677. * `executeDispatch` {function(object, function, string)}
  34678. * Optional, allows plugins to override how an event gets dispatched. By
  34679. * default, the listener is simply invoked.
  34680. *
  34681. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  34682. *
  34683. * @public
  34684. */
  34685. /**
  34686. * Methods for injecting dependencies.
  34687. */
  34688. var injection = {
  34689. /**
  34690. * @param {array} InjectedEventPluginOrder
  34691. * @public
  34692. */
  34693. injectEventPluginOrder: injectEventPluginOrder,
  34694. /**
  34695. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34696. */
  34697. injectEventPluginsByName: injectEventPluginsByName
  34698. };
  34699. /**
  34700. * @param {object} inst The instance, which is the source of events.
  34701. * @param {string} registrationName Name of listener (e.g. `onClick`).
  34702. * @return {?function} The stored callback.
  34703. */
  34704. function getListener(inst, registrationName) {
  34705. var listener = void 0;
  34706. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  34707. // live here; needs to be moved to a better place soon
  34708. var stateNode = inst.stateNode;
  34709. if (!stateNode) {
  34710. // Work in progress (ex: onload events in incremental mode).
  34711. return null;
  34712. }
  34713. var props = getFiberCurrentPropsFromNode(stateNode);
  34714. if (!props) {
  34715. // Work in progress.
  34716. return null;
  34717. }
  34718. listener = props[registrationName];
  34719. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  34720. return null;
  34721. }
  34722. (function () {
  34723. if (!(!listener || typeof listener === 'function')) {
  34724. {
  34725. throw ReactError(Error('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'));
  34726. }
  34727. }
  34728. })();
  34729. return listener;
  34730. }
  34731. /**
  34732. * Allows registered plugins an opportunity to extract events from top-level
  34733. * native browser events.
  34734. *
  34735. * @return {*} An accumulation of synthetic events.
  34736. * @internal
  34737. */
  34738. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34739. var events = null;
  34740. for (var i = 0; i < plugins.length; i++) {
  34741. // Not every plugin in the ordering may be loaded at runtime.
  34742. var possiblePlugin = plugins[i];
  34743. if (possiblePlugin) {
  34744. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34745. if (extractedEvents) {
  34746. events = accumulateInto(events, extractedEvents);
  34747. }
  34748. }
  34749. }
  34750. return events;
  34751. }
  34752. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34753. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34754. runEventsInBatch(events);
  34755. }
  34756. var FunctionComponent = 0;
  34757. var ClassComponent = 1;
  34758. var IndeterminateComponent = 2; // Before we know whether it is function or class
  34759. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  34760. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  34761. var HostComponent = 5;
  34762. var HostText = 6;
  34763. var Fragment = 7;
  34764. var Mode = 8;
  34765. var ContextConsumer = 9;
  34766. var ContextProvider = 10;
  34767. var ForwardRef = 11;
  34768. var Profiler = 12;
  34769. var SuspenseComponent = 13;
  34770. var MemoComponent = 14;
  34771. var SimpleMemoComponent = 15;
  34772. var LazyComponent = 16;
  34773. var IncompleteClassComponent = 17;
  34774. var DehydratedSuspenseComponent = 18;
  34775. var SuspenseListComponent = 19;
  34776. var FundamentalComponent = 20;
  34777. var randomKey = Math.random().toString(36).slice(2);
  34778. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  34779. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  34780. function precacheFiberNode(hostInst, node) {
  34781. node[internalInstanceKey] = hostInst;
  34782. }
  34783. /**
  34784. * Given a DOM node, return the closest ReactDOMComponent or
  34785. * ReactDOMTextComponent instance ancestor.
  34786. */
  34787. function getClosestInstanceFromNode(node) {
  34788. if (node[internalInstanceKey]) {
  34789. return node[internalInstanceKey];
  34790. }
  34791. while (!node[internalInstanceKey]) {
  34792. if (node.parentNode) {
  34793. node = node.parentNode;
  34794. } else {
  34795. // Top of the tree. This node must not be part of a React tree (or is
  34796. // unmounted, potentially).
  34797. return null;
  34798. }
  34799. }
  34800. var inst = node[internalInstanceKey];
  34801. if (inst.tag === HostComponent || inst.tag === HostText) {
  34802. // In Fiber, this will always be the deepest root.
  34803. return inst;
  34804. }
  34805. return null;
  34806. }
  34807. /**
  34808. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  34809. * instance, or null if the node was not rendered by this React.
  34810. */
  34811. function getInstanceFromNode$1(node) {
  34812. var inst = node[internalInstanceKey];
  34813. if (inst) {
  34814. if (inst.tag === HostComponent || inst.tag === HostText) {
  34815. return inst;
  34816. } else {
  34817. return null;
  34818. }
  34819. }
  34820. return null;
  34821. }
  34822. /**
  34823. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  34824. * DOM node.
  34825. */
  34826. function getNodeFromInstance$1(inst) {
  34827. if (inst.tag === HostComponent || inst.tag === HostText) {
  34828. // In Fiber this, is just the state node right now. We assume it will be
  34829. // a host component or host text.
  34830. return inst.stateNode;
  34831. }
  34832. // Without this first invariant, passing a non-DOM-component triggers the next
  34833. // invariant for a missing parent, which is super confusing.
  34834. (function () {
  34835. {
  34836. {
  34837. throw ReactError(Error('getNodeFromInstance: Invalid argument.'));
  34838. }
  34839. }
  34840. })();
  34841. }
  34842. function getFiberCurrentPropsFromNode$1(node) {
  34843. return node[internalEventHandlersKey] || null;
  34844. }
  34845. function updateFiberProps(node, props) {
  34846. node[internalEventHandlersKey] = props;
  34847. }
  34848. function getParent(inst) {
  34849. do {
  34850. inst = inst.return;
  34851. // TODO: If this is a HostRoot we might want to bail out.
  34852. // That is depending on if we want nested subtrees (layers) to bubble
  34853. // events to their parent. We could also go through parentNode on the
  34854. // host node but that wouldn't work for React Native and doesn't let us
  34855. // do the portal feature.
  34856. } while (inst && inst.tag !== HostComponent);
  34857. if (inst) {
  34858. return inst;
  34859. }
  34860. return null;
  34861. }
  34862. /**
  34863. * Return the lowest common ancestor of A and B, or null if they are in
  34864. * different trees.
  34865. */
  34866. function getLowestCommonAncestor(instA, instB) {
  34867. var depthA = 0;
  34868. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  34869. depthA++;
  34870. }
  34871. var depthB = 0;
  34872. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  34873. depthB++;
  34874. }
  34875. // If A is deeper, crawl up.
  34876. while (depthA - depthB > 0) {
  34877. instA = getParent(instA);
  34878. depthA--;
  34879. }
  34880. // If B is deeper, crawl up.
  34881. while (depthB - depthA > 0) {
  34882. instB = getParent(instB);
  34883. depthB--;
  34884. }
  34885. // Walk in lockstep until we find a match.
  34886. var depth = depthA;
  34887. while (depth--) {
  34888. if (instA === instB || instA === instB.alternate) {
  34889. return instA;
  34890. }
  34891. instA = getParent(instA);
  34892. instB = getParent(instB);
  34893. }
  34894. return null;
  34895. }
  34896. /**
  34897. * Return if A is an ancestor of B.
  34898. */
  34899. /**
  34900. * Return the parent instance of the passed-in instance.
  34901. */
  34902. /**
  34903. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  34904. */
  34905. function traverseTwoPhase(inst, fn, arg) {
  34906. var path = [];
  34907. while (inst) {
  34908. path.push(inst);
  34909. inst = getParent(inst);
  34910. }
  34911. var i = void 0;
  34912. for (i = path.length; i-- > 0;) {
  34913. fn(path[i], 'captured', arg);
  34914. }
  34915. for (i = 0; i < path.length; i++) {
  34916. fn(path[i], 'bubbled', arg);
  34917. }
  34918. }
  34919. /**
  34920. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  34921. * should would receive a `mouseEnter` or `mouseLeave` event.
  34922. *
  34923. * Does not invoke the callback on the nearest common ancestor because nothing
  34924. * "entered" or "left" that element.
  34925. */
  34926. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  34927. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  34928. var pathFrom = [];
  34929. while (true) {
  34930. if (!from) {
  34931. break;
  34932. }
  34933. if (from === common) {
  34934. break;
  34935. }
  34936. var alternate = from.alternate;
  34937. if (alternate !== null && alternate === common) {
  34938. break;
  34939. }
  34940. pathFrom.push(from);
  34941. from = getParent(from);
  34942. }
  34943. var pathTo = [];
  34944. while (true) {
  34945. if (!to) {
  34946. break;
  34947. }
  34948. if (to === common) {
  34949. break;
  34950. }
  34951. var _alternate = to.alternate;
  34952. if (_alternate !== null && _alternate === common) {
  34953. break;
  34954. }
  34955. pathTo.push(to);
  34956. to = getParent(to);
  34957. }
  34958. for (var i = 0; i < pathFrom.length; i++) {
  34959. fn(pathFrom[i], 'bubbled', argFrom);
  34960. }
  34961. for (var _i = pathTo.length; _i-- > 0;) {
  34962. fn(pathTo[_i], 'captured', argTo);
  34963. }
  34964. }
  34965. /**
  34966. * Some event types have a notion of different registration names for different
  34967. * "phases" of propagation. This finds listeners by a given phase.
  34968. */
  34969. function listenerAtPhase(inst, event, propagationPhase) {
  34970. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  34971. return getListener(inst, registrationName);
  34972. }
  34973. /**
  34974. * A small set of propagation patterns, each of which will accept a small amount
  34975. * of information, and generate a set of "dispatch ready event objects" - which
  34976. * are sets of events that have already been annotated with a set of dispatched
  34977. * listener functions/ids. The API is designed this way to discourage these
  34978. * propagation strategies from actually executing the dispatches, since we
  34979. * always want to collect the entire set of dispatches before executing even a
  34980. * single one.
  34981. */
  34982. /**
  34983. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  34984. * here, allows us to not have to bind or create functions for each event.
  34985. * Mutating the event's members allows us to not have to create a wrapping
  34986. * "dispatch" object that pairs the event with the listener.
  34987. */
  34988. function accumulateDirectionalDispatches(inst, phase, event) {
  34989. {
  34990. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  34991. }
  34992. var listener = listenerAtPhase(inst, event, phase);
  34993. if (listener) {
  34994. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34995. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34996. }
  34997. }
  34998. /**
  34999. * Collect dispatches (must be entirely collected before dispatching - see unit
  35000. * tests). Lazily allocate the array to conserve memory. We must loop through
  35001. * each event and perform the traversal for each one. We cannot perform a
  35002. * single traversal for the entire collection of events because each event may
  35003. * have a different target.
  35004. */
  35005. function accumulateTwoPhaseDispatchesSingle(event) {
  35006. if (event && event.dispatchConfig.phasedRegistrationNames) {
  35007. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  35008. }
  35009. }
  35010. /**
  35011. * Accumulates without regard to direction, does not look for phased
  35012. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  35013. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  35014. */
  35015. function accumulateDispatches(inst, ignoredDirection, event) {
  35016. if (inst && event && event.dispatchConfig.registrationName) {
  35017. var registrationName = event.dispatchConfig.registrationName;
  35018. var listener = getListener(inst, registrationName);
  35019. if (listener) {
  35020. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  35021. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  35022. }
  35023. }
  35024. }
  35025. /**
  35026. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  35027. * `dispatchMarker`.
  35028. * @param {SyntheticEvent} event
  35029. */
  35030. function accumulateDirectDispatchesSingle(event) {
  35031. if (event && event.dispatchConfig.registrationName) {
  35032. accumulateDispatches(event._targetInst, null, event);
  35033. }
  35034. }
  35035. function accumulateTwoPhaseDispatches(events) {
  35036. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  35037. }
  35038. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  35039. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  35040. }
  35041. function accumulateDirectDispatches(events) {
  35042. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  35043. }
  35044. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  35045. // Do not use the below two methods directly!
  35046. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  35047. // (It is the only module that is allowed to access these methods.)
  35048. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  35049. return topLevelType;
  35050. }
  35051. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  35052. return topLevelType;
  35053. }
  35054. /**
  35055. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  35056. *
  35057. * @param {string} styleProp
  35058. * @param {string} eventName
  35059. * @returns {object}
  35060. */
  35061. function makePrefixMap(styleProp, eventName) {
  35062. var prefixes = {};
  35063. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  35064. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  35065. prefixes['Moz' + styleProp] = 'moz' + eventName;
  35066. return prefixes;
  35067. }
  35068. /**
  35069. * A list of event names to a configurable list of vendor prefixes.
  35070. */
  35071. var vendorPrefixes = {
  35072. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  35073. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  35074. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  35075. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  35076. };
  35077. /**
  35078. * Event names that have already been detected and prefixed (if applicable).
  35079. */
  35080. var prefixedEventNames = {};
  35081. /**
  35082. * Element to check for prefixes on.
  35083. */
  35084. var style = {};
  35085. /**
  35086. * Bootstrap if a DOM exists.
  35087. */
  35088. if (canUseDOM) {
  35089. style = document.createElement('div').style;
  35090. // On some platforms, in particular some releases of Android 4.x,
  35091. // the un-prefixed "animation" and "transition" properties are defined on the
  35092. // style object but the events that fire will still be prefixed, so we need
  35093. // to check if the un-prefixed events are usable, and if not remove them from the map.
  35094. if (!('AnimationEvent' in window)) {
  35095. delete vendorPrefixes.animationend.animation;
  35096. delete vendorPrefixes.animationiteration.animation;
  35097. delete vendorPrefixes.animationstart.animation;
  35098. }
  35099. // Same as above
  35100. if (!('TransitionEvent' in window)) {
  35101. delete vendorPrefixes.transitionend.transition;
  35102. }
  35103. }
  35104. /**
  35105. * Attempts to determine the correct vendor prefixed event name.
  35106. *
  35107. * @param {string} eventName
  35108. * @returns {string}
  35109. */
  35110. function getVendorPrefixedEventName(eventName) {
  35111. if (prefixedEventNames[eventName]) {
  35112. return prefixedEventNames[eventName];
  35113. } else if (!vendorPrefixes[eventName]) {
  35114. return eventName;
  35115. }
  35116. var prefixMap = vendorPrefixes[eventName];
  35117. for (var styleProp in prefixMap) {
  35118. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  35119. return prefixedEventNames[eventName] = prefixMap[styleProp];
  35120. }
  35121. }
  35122. return eventName;
  35123. }
  35124. /**
  35125. * To identify top level events in ReactDOM, we use constants defined by this
  35126. * module. This is the only module that uses the unsafe* methods to express
  35127. * that the constants actually correspond to the browser event names. This lets
  35128. * us save some bundle size by avoiding a top level type -> event name map.
  35129. * The rest of ReactDOM code should import top level types from this file.
  35130. */
  35131. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  35132. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  35133. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  35134. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  35135. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  35136. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  35137. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  35138. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  35139. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  35140. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  35141. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  35142. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  35143. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  35144. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  35145. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  35146. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  35147. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  35148. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  35149. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  35150. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  35151. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  35152. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  35153. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  35154. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  35155. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  35156. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  35157. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  35158. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  35159. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  35160. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  35161. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  35162. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  35163. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  35164. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  35165. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  35166. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  35167. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  35168. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  35169. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  35170. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  35171. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  35172. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  35173. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  35174. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  35175. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  35176. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  35177. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  35178. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  35179. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  35180. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  35181. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  35182. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  35183. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  35184. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  35185. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  35186. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  35187. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  35188. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  35189. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  35190. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  35191. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  35192. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  35193. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  35194. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  35195. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  35196. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  35197. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  35198. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  35199. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  35200. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  35201. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  35202. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  35203. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  35204. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  35205. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  35206. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  35207. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  35208. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  35209. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  35210. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  35211. // List of events that need to be individually attached to media elements.
  35212. // Note that events in this list will *not* be listened to at the top level
  35213. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  35214. 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];
  35215. function getRawEventName(topLevelType) {
  35216. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  35217. }
  35218. /**
  35219. * These variables store information about text content of a target node,
  35220. * allowing comparison of content before and after a given event.
  35221. *
  35222. * Identify the node where selection currently begins, then observe
  35223. * both its text content and its current position in the DOM. Since the
  35224. * browser may natively replace the target node during composition, we can
  35225. * use its position to find its replacement.
  35226. *
  35227. *
  35228. */
  35229. var root = null;
  35230. var startText = null;
  35231. var fallbackText = null;
  35232. function initialize(nativeEventTarget) {
  35233. root = nativeEventTarget;
  35234. startText = getText();
  35235. return true;
  35236. }
  35237. function reset() {
  35238. root = null;
  35239. startText = null;
  35240. fallbackText = null;
  35241. }
  35242. function getData() {
  35243. if (fallbackText) {
  35244. return fallbackText;
  35245. }
  35246. var start = void 0;
  35247. var startValue = startText;
  35248. var startLength = startValue.length;
  35249. var end = void 0;
  35250. var endValue = getText();
  35251. var endLength = endValue.length;
  35252. for (start = 0; start < startLength; start++) {
  35253. if (startValue[start] !== endValue[start]) {
  35254. break;
  35255. }
  35256. }
  35257. var minEnd = startLength - start;
  35258. for (end = 1; end <= minEnd; end++) {
  35259. if (startValue[startLength - end] !== endValue[endLength - end]) {
  35260. break;
  35261. }
  35262. }
  35263. var sliceTail = end > 1 ? 1 - end : undefined;
  35264. fallbackText = endValue.slice(start, sliceTail);
  35265. return fallbackText;
  35266. }
  35267. function getText() {
  35268. if ('value' in root) {
  35269. return root.value;
  35270. }
  35271. return root.textContent;
  35272. }
  35273. /* eslint valid-typeof: 0 */
  35274. var EVENT_POOL_SIZE = 10;
  35275. /**
  35276. * @interface Event
  35277. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  35278. */
  35279. var EventInterface = {
  35280. type: null,
  35281. target: null,
  35282. // currentTarget is set when dispatching; no use in copying it here
  35283. currentTarget: function () {
  35284. return null;
  35285. },
  35286. eventPhase: null,
  35287. bubbles: null,
  35288. cancelable: null,
  35289. timeStamp: function (event) {
  35290. return event.timeStamp || Date.now();
  35291. },
  35292. defaultPrevented: null,
  35293. isTrusted: null
  35294. };
  35295. function functionThatReturnsTrue() {
  35296. return true;
  35297. }
  35298. function functionThatReturnsFalse() {
  35299. return false;
  35300. }
  35301. /**
  35302. * Synthetic events are dispatched by event plugins, typically in response to a
  35303. * top-level event delegation handler.
  35304. *
  35305. * These systems should generally use pooling to reduce the frequency of garbage
  35306. * collection. The system should check `isPersistent` to determine whether the
  35307. * event should be released into the pool after being dispatched. Users that
  35308. * need a persisted event should invoke `persist`.
  35309. *
  35310. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  35311. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  35312. * DOM interface; custom application-specific events can also subclass this.
  35313. *
  35314. * @param {object} dispatchConfig Configuration used to dispatch this event.
  35315. * @param {*} targetInst Marker identifying the event target.
  35316. * @param {object} nativeEvent Native browser event.
  35317. * @param {DOMEventTarget} nativeEventTarget Target node.
  35318. */
  35319. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  35320. {
  35321. // these have a getter/setter for warnings
  35322. delete this.nativeEvent;
  35323. delete this.preventDefault;
  35324. delete this.stopPropagation;
  35325. delete this.isDefaultPrevented;
  35326. delete this.isPropagationStopped;
  35327. }
  35328. this.dispatchConfig = dispatchConfig;
  35329. this._targetInst = targetInst;
  35330. this.nativeEvent = nativeEvent;
  35331. var Interface = this.constructor.Interface;
  35332. for (var propName in Interface) {
  35333. if (!Interface.hasOwnProperty(propName)) {
  35334. continue;
  35335. }
  35336. {
  35337. delete this[propName]; // this has a getter/setter for warnings
  35338. }
  35339. var normalize = Interface[propName];
  35340. if (normalize) {
  35341. this[propName] = normalize(nativeEvent);
  35342. } else {
  35343. if (propName === 'target') {
  35344. this.target = nativeEventTarget;
  35345. } else {
  35346. this[propName] = nativeEvent[propName];
  35347. }
  35348. }
  35349. }
  35350. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  35351. if (defaultPrevented) {
  35352. this.isDefaultPrevented = functionThatReturnsTrue;
  35353. } else {
  35354. this.isDefaultPrevented = functionThatReturnsFalse;
  35355. }
  35356. this.isPropagationStopped = functionThatReturnsFalse;
  35357. return this;
  35358. }
  35359. _assign(SyntheticEvent.prototype, {
  35360. preventDefault: function () {
  35361. this.defaultPrevented = true;
  35362. var event = this.nativeEvent;
  35363. if (!event) {
  35364. return;
  35365. }
  35366. if (event.preventDefault) {
  35367. event.preventDefault();
  35368. } else if (typeof event.returnValue !== 'unknown') {
  35369. event.returnValue = false;
  35370. }
  35371. this.isDefaultPrevented = functionThatReturnsTrue;
  35372. },
  35373. stopPropagation: function () {
  35374. var event = this.nativeEvent;
  35375. if (!event) {
  35376. return;
  35377. }
  35378. if (event.stopPropagation) {
  35379. event.stopPropagation();
  35380. } else if (typeof event.cancelBubble !== 'unknown') {
  35381. // The ChangeEventPlugin registers a "propertychange" event for
  35382. // IE. This event does not support bubbling or cancelling, and
  35383. // any references to cancelBubble throw "Member not found". A
  35384. // typeof check of "unknown" circumvents this issue (and is also
  35385. // IE specific).
  35386. event.cancelBubble = true;
  35387. }
  35388. this.isPropagationStopped = functionThatReturnsTrue;
  35389. },
  35390. /**
  35391. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  35392. * them back into the pool. This allows a way to hold onto a reference that
  35393. * won't be added back into the pool.
  35394. */
  35395. persist: function () {
  35396. this.isPersistent = functionThatReturnsTrue;
  35397. },
  35398. /**
  35399. * Checks if this event should be released back into the pool.
  35400. *
  35401. * @return {boolean} True if this should not be released, false otherwise.
  35402. */
  35403. isPersistent: functionThatReturnsFalse,
  35404. /**
  35405. * `PooledClass` looks for `destructor` on each instance it releases.
  35406. */
  35407. destructor: function () {
  35408. var Interface = this.constructor.Interface;
  35409. for (var propName in Interface) {
  35410. {
  35411. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  35412. }
  35413. }
  35414. this.dispatchConfig = null;
  35415. this._targetInst = null;
  35416. this.nativeEvent = null;
  35417. this.isDefaultPrevented = functionThatReturnsFalse;
  35418. this.isPropagationStopped = functionThatReturnsFalse;
  35419. this._dispatchListeners = null;
  35420. this._dispatchInstances = null;
  35421. {
  35422. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  35423. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  35424. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  35425. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  35426. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  35427. }
  35428. }
  35429. });
  35430. SyntheticEvent.Interface = EventInterface;
  35431. /**
  35432. * Helper to reduce boilerplate when creating subclasses.
  35433. */
  35434. SyntheticEvent.extend = function (Interface) {
  35435. var Super = this;
  35436. var E = function () {};
  35437. E.prototype = Super.prototype;
  35438. var prototype = new E();
  35439. function Class() {
  35440. return Super.apply(this, arguments);
  35441. }
  35442. _assign(prototype, Class.prototype);
  35443. Class.prototype = prototype;
  35444. Class.prototype.constructor = Class;
  35445. Class.Interface = _assign({}, Super.Interface, Interface);
  35446. Class.extend = Super.extend;
  35447. addEventPoolingTo(Class);
  35448. return Class;
  35449. };
  35450. addEventPoolingTo(SyntheticEvent);
  35451. /**
  35452. * Helper to nullify syntheticEvent instance properties when destructing
  35453. *
  35454. * @param {String} propName
  35455. * @param {?object} getVal
  35456. * @return {object} defineProperty object
  35457. */
  35458. function getPooledWarningPropertyDefinition(propName, getVal) {
  35459. var isFunction = typeof getVal === 'function';
  35460. return {
  35461. configurable: true,
  35462. set: set,
  35463. get: get
  35464. };
  35465. function set(val) {
  35466. var action = isFunction ? 'setting the method' : 'setting the property';
  35467. warn(action, 'This is effectively a no-op');
  35468. return val;
  35469. }
  35470. function get() {
  35471. var action = isFunction ? 'accessing the method' : 'accessing the property';
  35472. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  35473. warn(action, result);
  35474. return getVal;
  35475. }
  35476. function warn(action, result) {
  35477. var warningCondition = false;
  35478. !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;
  35479. }
  35480. }
  35481. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  35482. var EventConstructor = this;
  35483. if (EventConstructor.eventPool.length) {
  35484. var instance = EventConstructor.eventPool.pop();
  35485. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  35486. return instance;
  35487. }
  35488. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  35489. }
  35490. function releasePooledEvent(event) {
  35491. var EventConstructor = this;
  35492. (function () {
  35493. if (!(event instanceof EventConstructor)) {
  35494. {
  35495. throw ReactError(Error('Trying to release an event instance into a pool of a different type.'));
  35496. }
  35497. }
  35498. })();
  35499. event.destructor();
  35500. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  35501. EventConstructor.eventPool.push(event);
  35502. }
  35503. }
  35504. function addEventPoolingTo(EventConstructor) {
  35505. EventConstructor.eventPool = [];
  35506. EventConstructor.getPooled = getPooledEvent;
  35507. EventConstructor.release = releasePooledEvent;
  35508. }
  35509. /**
  35510. * @interface Event
  35511. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  35512. */
  35513. var SyntheticCompositionEvent = SyntheticEvent.extend({
  35514. data: null
  35515. });
  35516. /**
  35517. * @interface Event
  35518. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  35519. * /#events-inputevents
  35520. */
  35521. var SyntheticInputEvent = SyntheticEvent.extend({
  35522. data: null
  35523. });
  35524. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  35525. var START_KEYCODE = 229;
  35526. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  35527. var documentMode = null;
  35528. if (canUseDOM && 'documentMode' in document) {
  35529. documentMode = document.documentMode;
  35530. }
  35531. // Webkit offers a very useful `textInput` event that can be used to
  35532. // directly represent `beforeInput`. The IE `textinput` event is not as
  35533. // useful, so we don't use it.
  35534. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  35535. // In IE9+, we have access to composition events, but the data supplied
  35536. // by the native compositionend event may be incorrect. Japanese ideographic
  35537. // spaces, for instance (\u3000) are not recorded correctly.
  35538. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  35539. var SPACEBAR_CODE = 32;
  35540. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  35541. // Events and their corresponding property names.
  35542. var eventTypes = {
  35543. beforeInput: {
  35544. phasedRegistrationNames: {
  35545. bubbled: 'onBeforeInput',
  35546. captured: 'onBeforeInputCapture'
  35547. },
  35548. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  35549. },
  35550. compositionEnd: {
  35551. phasedRegistrationNames: {
  35552. bubbled: 'onCompositionEnd',
  35553. captured: 'onCompositionEndCapture'
  35554. },
  35555. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35556. },
  35557. compositionStart: {
  35558. phasedRegistrationNames: {
  35559. bubbled: 'onCompositionStart',
  35560. captured: 'onCompositionStartCapture'
  35561. },
  35562. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35563. },
  35564. compositionUpdate: {
  35565. phasedRegistrationNames: {
  35566. bubbled: 'onCompositionUpdate',
  35567. captured: 'onCompositionUpdateCapture'
  35568. },
  35569. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35570. }
  35571. };
  35572. // Track whether we've ever handled a keypress on the space key.
  35573. var hasSpaceKeypress = false;
  35574. /**
  35575. * Return whether a native keypress event is assumed to be a command.
  35576. * This is required because Firefox fires `keypress` events for key commands
  35577. * (cut, copy, select-all, etc.) even though no character is inserted.
  35578. */
  35579. function isKeypressCommand(nativeEvent) {
  35580. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  35581. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  35582. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  35583. }
  35584. /**
  35585. * Translate native top level events into event types.
  35586. *
  35587. * @param {string} topLevelType
  35588. * @return {object}
  35589. */
  35590. function getCompositionEventType(topLevelType) {
  35591. switch (topLevelType) {
  35592. case TOP_COMPOSITION_START:
  35593. return eventTypes.compositionStart;
  35594. case TOP_COMPOSITION_END:
  35595. return eventTypes.compositionEnd;
  35596. case TOP_COMPOSITION_UPDATE:
  35597. return eventTypes.compositionUpdate;
  35598. }
  35599. }
  35600. /**
  35601. * Does our fallback best-guess model think this event signifies that
  35602. * composition has begun?
  35603. *
  35604. * @param {string} topLevelType
  35605. * @param {object} nativeEvent
  35606. * @return {boolean}
  35607. */
  35608. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  35609. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  35610. }
  35611. /**
  35612. * Does our fallback mode think that this event is the end of composition?
  35613. *
  35614. * @param {string} topLevelType
  35615. * @param {object} nativeEvent
  35616. * @return {boolean}
  35617. */
  35618. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  35619. switch (topLevelType) {
  35620. case TOP_KEY_UP:
  35621. // Command keys insert or clear IME input.
  35622. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  35623. case TOP_KEY_DOWN:
  35624. // Expect IME keyCode on each keydown. If we get any other
  35625. // code we must have exited earlier.
  35626. return nativeEvent.keyCode !== START_KEYCODE;
  35627. case TOP_KEY_PRESS:
  35628. case TOP_MOUSE_DOWN:
  35629. case TOP_BLUR:
  35630. // Events are not possible without cancelling IME.
  35631. return true;
  35632. default:
  35633. return false;
  35634. }
  35635. }
  35636. /**
  35637. * Google Input Tools provides composition data via a CustomEvent,
  35638. * with the `data` property populated in the `detail` object. If this
  35639. * is available on the event object, use it. If not, this is a plain
  35640. * composition event and we have nothing special to extract.
  35641. *
  35642. * @param {object} nativeEvent
  35643. * @return {?string}
  35644. */
  35645. function getDataFromCustomEvent(nativeEvent) {
  35646. var detail = nativeEvent.detail;
  35647. if (typeof detail === 'object' && 'data' in detail) {
  35648. return detail.data;
  35649. }
  35650. return null;
  35651. }
  35652. /**
  35653. * Check if a composition event was triggered by Korean IME.
  35654. * Our fallback mode does not work well with IE's Korean IME,
  35655. * so just use native composition events when Korean IME is used.
  35656. * Although CompositionEvent.locale property is deprecated,
  35657. * it is available in IE, where our fallback mode is enabled.
  35658. *
  35659. * @param {object} nativeEvent
  35660. * @return {boolean}
  35661. */
  35662. function isUsingKoreanIME(nativeEvent) {
  35663. return nativeEvent.locale === 'ko';
  35664. }
  35665. // Track the current IME composition status, if any.
  35666. var isComposing = false;
  35667. /**
  35668. * @return {?object} A SyntheticCompositionEvent.
  35669. */
  35670. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35671. var eventType = void 0;
  35672. var fallbackData = void 0;
  35673. if (canUseCompositionEvent) {
  35674. eventType = getCompositionEventType(topLevelType);
  35675. } else if (!isComposing) {
  35676. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  35677. eventType = eventTypes.compositionStart;
  35678. }
  35679. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35680. eventType = eventTypes.compositionEnd;
  35681. }
  35682. if (!eventType) {
  35683. return null;
  35684. }
  35685. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  35686. // The current composition is stored statically and must not be
  35687. // overwritten while composition continues.
  35688. if (!isComposing && eventType === eventTypes.compositionStart) {
  35689. isComposing = initialize(nativeEventTarget);
  35690. } else if (eventType === eventTypes.compositionEnd) {
  35691. if (isComposing) {
  35692. fallbackData = getData();
  35693. }
  35694. }
  35695. }
  35696. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  35697. if (fallbackData) {
  35698. // Inject data generated from fallback path into the synthetic event.
  35699. // This matches the property of native CompositionEventInterface.
  35700. event.data = fallbackData;
  35701. } else {
  35702. var customData = getDataFromCustomEvent(nativeEvent);
  35703. if (customData !== null) {
  35704. event.data = customData;
  35705. }
  35706. }
  35707. accumulateTwoPhaseDispatches(event);
  35708. return event;
  35709. }
  35710. /**
  35711. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  35712. * @param {object} nativeEvent Native browser event.
  35713. * @return {?string} The string corresponding to this `beforeInput` event.
  35714. */
  35715. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  35716. switch (topLevelType) {
  35717. case TOP_COMPOSITION_END:
  35718. return getDataFromCustomEvent(nativeEvent);
  35719. case TOP_KEY_PRESS:
  35720. /**
  35721. * If native `textInput` events are available, our goal is to make
  35722. * use of them. However, there is a special case: the spacebar key.
  35723. * In Webkit, preventing default on a spacebar `textInput` event
  35724. * cancels character insertion, but it *also* causes the browser
  35725. * to fall back to its default spacebar behavior of scrolling the
  35726. * page.
  35727. *
  35728. * Tracking at:
  35729. * https://code.google.com/p/chromium/issues/detail?id=355103
  35730. *
  35731. * To avoid this issue, use the keypress event as if no `textInput`
  35732. * event is available.
  35733. */
  35734. var which = nativeEvent.which;
  35735. if (which !== SPACEBAR_CODE) {
  35736. return null;
  35737. }
  35738. hasSpaceKeypress = true;
  35739. return SPACEBAR_CHAR;
  35740. case TOP_TEXT_INPUT:
  35741. // Record the characters to be added to the DOM.
  35742. var chars = nativeEvent.data;
  35743. // If it's a spacebar character, assume that we have already handled
  35744. // it at the keypress level and bail immediately. Android Chrome
  35745. // doesn't give us keycodes, so we need to ignore it.
  35746. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  35747. return null;
  35748. }
  35749. return chars;
  35750. default:
  35751. // For other native event types, do nothing.
  35752. return null;
  35753. }
  35754. }
  35755. /**
  35756. * For browsers that do not provide the `textInput` event, extract the
  35757. * appropriate string to use for SyntheticInputEvent.
  35758. *
  35759. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  35760. * @param {object} nativeEvent Native browser event.
  35761. * @return {?string} The fallback string for this `beforeInput` event.
  35762. */
  35763. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  35764. // If we are currently composing (IME) and using a fallback to do so,
  35765. // try to extract the composed characters from the fallback object.
  35766. // If composition event is available, we extract a string only at
  35767. // compositionevent, otherwise extract it at fallback events.
  35768. if (isComposing) {
  35769. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35770. var chars = getData();
  35771. reset();
  35772. isComposing = false;
  35773. return chars;
  35774. }
  35775. return null;
  35776. }
  35777. switch (topLevelType) {
  35778. case TOP_PASTE:
  35779. // If a paste event occurs after a keypress, throw out the input
  35780. // chars. Paste events should not lead to BeforeInput events.
  35781. return null;
  35782. case TOP_KEY_PRESS:
  35783. /**
  35784. * As of v27, Firefox may fire keypress events even when no character
  35785. * will be inserted. A few possibilities:
  35786. *
  35787. * - `which` is `0`. Arrow keys, Esc key, etc.
  35788. *
  35789. * - `which` is the pressed key code, but no char is available.
  35790. * Ex: 'AltGr + d` in Polish. There is no modified character for
  35791. * this key combination and no character is inserted into the
  35792. * document, but FF fires the keypress for char code `100` anyway.
  35793. * No `input` event will occur.
  35794. *
  35795. * - `which` is the pressed key code, but a command combination is
  35796. * being used. Ex: `Cmd+C`. No character is inserted, and no
  35797. * `input` event will occur.
  35798. */
  35799. if (!isKeypressCommand(nativeEvent)) {
  35800. // IE fires the `keypress` event when a user types an emoji via
  35801. // Touch keyboard of Windows. In such a case, the `char` property
  35802. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  35803. // is 2, the property `which` does not represent an emoji correctly.
  35804. // In such a case, we directly return the `char` property instead of
  35805. // using `which`.
  35806. if (nativeEvent.char && nativeEvent.char.length > 1) {
  35807. return nativeEvent.char;
  35808. } else if (nativeEvent.which) {
  35809. return String.fromCharCode(nativeEvent.which);
  35810. }
  35811. }
  35812. return null;
  35813. case TOP_COMPOSITION_END:
  35814. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  35815. default:
  35816. return null;
  35817. }
  35818. }
  35819. /**
  35820. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  35821. * `textInput` or fallback behavior.
  35822. *
  35823. * @return {?object} A SyntheticInputEvent.
  35824. */
  35825. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35826. var chars = void 0;
  35827. if (canUseTextInputEvent) {
  35828. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  35829. } else {
  35830. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  35831. }
  35832. // If no characters are being inserted, no BeforeInput event should
  35833. // be fired.
  35834. if (!chars) {
  35835. return null;
  35836. }
  35837. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  35838. event.data = chars;
  35839. accumulateTwoPhaseDispatches(event);
  35840. return event;
  35841. }
  35842. /**
  35843. * Create an `onBeforeInput` event to match
  35844. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  35845. *
  35846. * This event plugin is based on the native `textInput` event
  35847. * available in Chrome, Safari, Opera, and IE. This event fires after
  35848. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  35849. *
  35850. * `beforeInput` is spec'd but not implemented in any browsers, and
  35851. * the `input` event does not provide any useful information about what has
  35852. * actually been added, contrary to the spec. Thus, `textInput` is the best
  35853. * available event to identify the characters that have actually been inserted
  35854. * into the target node.
  35855. *
  35856. * This plugin is also responsible for emitting `composition` events, thus
  35857. * allowing us to share composition fallback code for both `beforeInput` and
  35858. * `composition` event types.
  35859. */
  35860. var BeforeInputEventPlugin = {
  35861. eventTypes: eventTypes,
  35862. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35863. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35864. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35865. if (composition === null) {
  35866. return beforeInput;
  35867. }
  35868. if (beforeInput === null) {
  35869. return composition;
  35870. }
  35871. return [composition, beforeInput];
  35872. }
  35873. };
  35874. // Use to restore controlled state after a change event has fired.
  35875. var restoreImpl = null;
  35876. var restoreTarget = null;
  35877. var restoreQueue = null;
  35878. function restoreStateOfTarget(target) {
  35879. // We perform this translation at the end of the event loop so that we
  35880. // always receive the correct fiber here
  35881. var internalInstance = getInstanceFromNode(target);
  35882. if (!internalInstance) {
  35883. // Unmounted
  35884. return;
  35885. }
  35886. (function () {
  35887. if (!(typeof restoreImpl === 'function')) {
  35888. {
  35889. 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.'));
  35890. }
  35891. }
  35892. })();
  35893. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  35894. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  35895. }
  35896. function setRestoreImplementation(impl) {
  35897. restoreImpl = impl;
  35898. }
  35899. function enqueueStateRestore(target) {
  35900. if (restoreTarget) {
  35901. if (restoreQueue) {
  35902. restoreQueue.push(target);
  35903. } else {
  35904. restoreQueue = [target];
  35905. }
  35906. } else {
  35907. restoreTarget = target;
  35908. }
  35909. }
  35910. function needsStateRestore() {
  35911. return restoreTarget !== null || restoreQueue !== null;
  35912. }
  35913. function restoreStateIfNeeded() {
  35914. if (!restoreTarget) {
  35915. return;
  35916. }
  35917. var target = restoreTarget;
  35918. var queuedTargets = restoreQueue;
  35919. restoreTarget = null;
  35920. restoreQueue = null;
  35921. restoreStateOfTarget(target);
  35922. if (queuedTargets) {
  35923. for (var i = 0; i < queuedTargets.length; i++) {
  35924. restoreStateOfTarget(queuedTargets[i]);
  35925. }
  35926. }
  35927. }
  35928. var enableUserTimingAPI = true;
  35929. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  35930. var debugRenderPhaseSideEffects = false;
  35931. // In some cases, StrictMode should also double-render lifecycles.
  35932. // This can be confusing for tests though,
  35933. // And it can be bad for performance in production.
  35934. // This feature flag can be used to control the behavior:
  35935. var debugRenderPhaseSideEffectsForStrictMode = true;
  35936. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  35937. // replay the begin phase of a failed component inside invokeGuardedCallback.
  35938. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  35939. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  35940. var warnAboutDeprecatedLifecycles = true;
  35941. // Gather advanced timing metrics for Profiler subtrees.
  35942. var enableProfilerTimer = true;
  35943. // Trace which interactions trigger each commit.
  35944. var enableSchedulerTracing = true;
  35945. // Only used in www builds.
  35946. var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
  35947. // Only used in www builds.
  35948. // Only used in www builds.
  35949. // Disable javascript: URL strings in href for XSS protection.
  35950. var disableJavaScriptURLs = false;
  35951. // React Fire: prevent the value and checked attributes from syncing
  35952. // with their related DOM properties
  35953. var disableInputAttributeSyncing = false;
  35954. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  35955. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  35956. var enableStableConcurrentModeAPIs = false;
  35957. var warnAboutShorthandPropertyCollision = false;
  35958. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  35959. // This is a flag so we can fix warnings in RN core before turning it on
  35960. // Experimental React Flare event system and event components support.
  35961. var enableFlareAPI = false;
  35962. // Experimental Host Component support.
  35963. var enableFundamentalAPI = false;
  35964. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  35965. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  35966. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  35967. var warnAboutUnmockedScheduler = false;
  35968. // Temporary flag to revert the fix in #15650
  35969. var revertPassiveEffectsChange = false;
  35970. // For tests, we flush suspense fallbacks in an act scope;
  35971. // *except* in some of our own tests, where we test incremental loading states.
  35972. var flushSuspenseFallbacksInTests = true;
  35973. // Changes priority of some events like mousemove to user-blocking priority,
  35974. // but without making them discrete. The flag exists in case it causes
  35975. // starvation problems.
  35976. var enableUserBlockingEvents = false;
  35977. // Add a callback property to suspense to notify which promises are currently
  35978. // in the update queue. This allows reporting and tracing of what is causing
  35979. // the user to see a loading state.
  35980. var enableSuspenseCallback = false;
  35981. // Part of the simplification of React.createElement so we can eventually move
  35982. // from React.createElement to React.jsx
  35983. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  35984. var warnAboutDefaultPropsOnFunctionComponents = false;
  35985. var disableLegacyContext = false;
  35986. var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
  35987. // Used as a way to call batchedUpdates when we don't have a reference to
  35988. // the renderer. Such as when we're dispatching events or if third party
  35989. // libraries need to call batchedUpdates. Eventually, this API will go away when
  35990. // everything is batched by default. We'll then have a similar API to opt-out of
  35991. // scheduled work and instead do synchronous work.
  35992. // Defaults
  35993. var batchedUpdatesImpl = function (fn, bookkeeping) {
  35994. return fn(bookkeeping);
  35995. };
  35996. var discreteUpdatesImpl = function (fn, a, b, c) {
  35997. return fn(a, b, c);
  35998. };
  35999. var flushDiscreteUpdatesImpl = function () {};
  36000. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  36001. var isInsideEventHandler = false;
  36002. function finishEventHandler() {
  36003. // Here we wait until all updates have propagated, which is important
  36004. // when using controlled components within layers:
  36005. // https://github.com/facebook/react/issues/1698
  36006. // Then we restore state of any controlled component.
  36007. var controlledComponentsHavePendingUpdates = needsStateRestore();
  36008. if (controlledComponentsHavePendingUpdates) {
  36009. // If a controlled event was fired, we may need to restore the state of
  36010. // the DOM node back to the controlled value. This is necessary when React
  36011. // bails out of the update without touching the DOM.
  36012. flushDiscreteUpdatesImpl();
  36013. restoreStateIfNeeded();
  36014. }
  36015. }
  36016. function batchedUpdates(fn, bookkeeping) {
  36017. if (isInsideEventHandler) {
  36018. // If we are currently inside another batch, we need to wait until it
  36019. // fully completes before restoring state.
  36020. return fn(bookkeeping);
  36021. }
  36022. isInsideEventHandler = true;
  36023. try {
  36024. return batchedUpdatesImpl(fn, bookkeeping);
  36025. } finally {
  36026. isInsideEventHandler = false;
  36027. finishEventHandler();
  36028. }
  36029. }
  36030. function batchedEventUpdates(fn, a, b) {
  36031. if (isInsideEventHandler) {
  36032. // If we are currently inside another batch, we need to wait until it
  36033. // fully completes before restoring state.
  36034. return fn(a, b);
  36035. }
  36036. isInsideEventHandler = true;
  36037. try {
  36038. return batchedEventUpdatesImpl(fn, a, b);
  36039. } finally {
  36040. isInsideEventHandler = false;
  36041. finishEventHandler();
  36042. }
  36043. }
  36044. function discreteUpdates(fn, a, b, c) {
  36045. var prevIsInsideEventHandler = isInsideEventHandler;
  36046. isInsideEventHandler = true;
  36047. try {
  36048. return discreteUpdatesImpl(fn, a, b, c);
  36049. } finally {
  36050. isInsideEventHandler = prevIsInsideEventHandler;
  36051. if (!isInsideEventHandler) {
  36052. finishEventHandler();
  36053. }
  36054. }
  36055. }
  36056. var lastFlushedEventTimeStamp = 0;
  36057. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  36058. // event.timeStamp isn't overly reliable due to inconsistencies in
  36059. // how different browsers have historically provided the time stamp.
  36060. // Some browsers provide high-resolution time stamps for all events,
  36061. // some provide low-resolution time stamps for all events. FF < 52
  36062. // even mixes both time stamps together. Some browsers even report
  36063. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  36064. // Given we are only comparing two time stamps with equality (!==),
  36065. // we are safe from the resolution differences. If the time stamp is 0
  36066. // we bail-out of preventing the flush, which can affect semantics,
  36067. // such as if an earlier flush removes or adds event listeners that
  36068. // are fired in the subsequent flush. However, this is the same
  36069. // behaviour as we had before this change, so the risks are low.
  36070. if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
  36071. lastFlushedEventTimeStamp = timeStamp;
  36072. flushDiscreteUpdatesImpl();
  36073. }
  36074. }
  36075. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  36076. batchedUpdatesImpl = _batchedUpdatesImpl;
  36077. discreteUpdatesImpl = _discreteUpdatesImpl;
  36078. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  36079. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  36080. }
  36081. /**
  36082. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  36083. */
  36084. var supportedInputTypes = {
  36085. color: true,
  36086. date: true,
  36087. datetime: true,
  36088. 'datetime-local': true,
  36089. email: true,
  36090. month: true,
  36091. number: true,
  36092. password: true,
  36093. range: true,
  36094. search: true,
  36095. tel: true,
  36096. text: true,
  36097. time: true,
  36098. url: true,
  36099. week: true
  36100. };
  36101. function isTextInputElement(elem) {
  36102. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  36103. if (nodeName === 'input') {
  36104. return !!supportedInputTypes[elem.type];
  36105. }
  36106. if (nodeName === 'textarea') {
  36107. return true;
  36108. }
  36109. return false;
  36110. }
  36111. /**
  36112. * HTML nodeType values that represent the type of the node
  36113. */
  36114. var ELEMENT_NODE = 1;
  36115. var TEXT_NODE = 3;
  36116. var COMMENT_NODE = 8;
  36117. var DOCUMENT_NODE = 9;
  36118. var DOCUMENT_FRAGMENT_NODE = 11;
  36119. /**
  36120. * Gets the target node from a native browser event by accounting for
  36121. * inconsistencies in browser DOM APIs.
  36122. *
  36123. * @param {object} nativeEvent Native browser event.
  36124. * @return {DOMEventTarget} Target node.
  36125. */
  36126. function getEventTarget(nativeEvent) {
  36127. // Fallback to nativeEvent.srcElement for IE9
  36128. // https://github.com/facebook/react/issues/12506
  36129. var target = nativeEvent.target || nativeEvent.srcElement || window;
  36130. // Normalize SVG <use> element events #4963
  36131. if (target.correspondingUseElement) {
  36132. target = target.correspondingUseElement;
  36133. }
  36134. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  36135. // @see http://www.quirksmode.org/js/events_properties.html
  36136. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  36137. }
  36138. /**
  36139. * Checks if an event is supported in the current execution environment.
  36140. *
  36141. * NOTE: This will not work correctly for non-generic events such as `change`,
  36142. * `reset`, `load`, `error`, and `select`.
  36143. *
  36144. * Borrows from Modernizr.
  36145. *
  36146. * @param {string} eventNameSuffix Event name, e.g. "click".
  36147. * @return {boolean} True if the event is supported.
  36148. * @internal
  36149. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  36150. */
  36151. function isEventSupported(eventNameSuffix) {
  36152. if (!canUseDOM) {
  36153. return false;
  36154. }
  36155. var eventName = 'on' + eventNameSuffix;
  36156. var isSupported = eventName in document;
  36157. if (!isSupported) {
  36158. var element = document.createElement('div');
  36159. element.setAttribute(eventName, 'return;');
  36160. isSupported = typeof element[eventName] === 'function';
  36161. }
  36162. return isSupported;
  36163. }
  36164. function isCheckable(elem) {
  36165. var type = elem.type;
  36166. var nodeName = elem.nodeName;
  36167. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  36168. }
  36169. function getTracker(node) {
  36170. return node._valueTracker;
  36171. }
  36172. function detachTracker(node) {
  36173. node._valueTracker = null;
  36174. }
  36175. function getValueFromNode(node) {
  36176. var value = '';
  36177. if (!node) {
  36178. return value;
  36179. }
  36180. if (isCheckable(node)) {
  36181. value = node.checked ? 'true' : 'false';
  36182. } else {
  36183. value = node.value;
  36184. }
  36185. return value;
  36186. }
  36187. function trackValueOnNode(node) {
  36188. var valueField = isCheckable(node) ? 'checked' : 'value';
  36189. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  36190. var currentValue = '' + node[valueField];
  36191. // if someone has already defined a value or Safari, then bail
  36192. // and don't track value will cause over reporting of changes,
  36193. // but it's better then a hard failure
  36194. // (needed for certain tests that spyOn input values and Safari)
  36195. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  36196. return;
  36197. }
  36198. var get = descriptor.get,
  36199. set = descriptor.set;
  36200. Object.defineProperty(node, valueField, {
  36201. configurable: true,
  36202. get: function () {
  36203. return get.call(this);
  36204. },
  36205. set: function (value) {
  36206. currentValue = '' + value;
  36207. set.call(this, value);
  36208. }
  36209. });
  36210. // We could've passed this the first time
  36211. // but it triggers a bug in IE11 and Edge 14/15.
  36212. // Calling defineProperty() again should be equivalent.
  36213. // https://github.com/facebook/react/issues/11768
  36214. Object.defineProperty(node, valueField, {
  36215. enumerable: descriptor.enumerable
  36216. });
  36217. var tracker = {
  36218. getValue: function () {
  36219. return currentValue;
  36220. },
  36221. setValue: function (value) {
  36222. currentValue = '' + value;
  36223. },
  36224. stopTracking: function () {
  36225. detachTracker(node);
  36226. delete node[valueField];
  36227. }
  36228. };
  36229. return tracker;
  36230. }
  36231. function track(node) {
  36232. if (getTracker(node)) {
  36233. return;
  36234. }
  36235. // TODO: Once it's just Fiber we can move this to node._wrapperState
  36236. node._valueTracker = trackValueOnNode(node);
  36237. }
  36238. function updateValueIfChanged(node) {
  36239. if (!node) {
  36240. return false;
  36241. }
  36242. var tracker = getTracker(node);
  36243. // if there is no tracker at this point it's unlikely
  36244. // that trying again will succeed
  36245. if (!tracker) {
  36246. return true;
  36247. }
  36248. var lastValue = tracker.getValue();
  36249. var nextValue = getValueFromNode(node);
  36250. if (nextValue !== lastValue) {
  36251. tracker.setValue(nextValue);
  36252. return true;
  36253. }
  36254. return false;
  36255. }
  36256. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  36257. // Prevent newer renderers from RTE when used with older react package versions.
  36258. // Current owner and dispatcher used to share the same ref,
  36259. // but PR #14548 split them out to better support the react-debug-tools package.
  36260. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  36261. ReactSharedInternals.ReactCurrentDispatcher = {
  36262. current: null
  36263. };
  36264. }
  36265. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  36266. ReactSharedInternals.ReactCurrentBatchConfig = {
  36267. suspense: null
  36268. };
  36269. }
  36270. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  36271. var describeComponentFrame = function (name, source, ownerName) {
  36272. var sourceInfo = '';
  36273. if (source) {
  36274. var path = source.fileName;
  36275. var fileName = path.replace(BEFORE_SLASH_RE, '');
  36276. {
  36277. // In DEV, include code for a common special case:
  36278. // prefer "folder/index.js" instead of just "index.js".
  36279. if (/^index\./.test(fileName)) {
  36280. var match = path.match(BEFORE_SLASH_RE);
  36281. if (match) {
  36282. var pathBeforeSlash = match[1];
  36283. if (pathBeforeSlash) {
  36284. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  36285. fileName = folderName + '/' + fileName;
  36286. }
  36287. }
  36288. }
  36289. }
  36290. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  36291. } else if (ownerName) {
  36292. sourceInfo = ' (created by ' + ownerName + ')';
  36293. }
  36294. return '\n in ' + (name || 'Unknown') + sourceInfo;
  36295. };
  36296. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  36297. // nor polyfill, then a plain number is used for performance.
  36298. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  36299. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  36300. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  36301. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  36302. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  36303. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  36304. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  36305. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  36306. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  36307. // (unstable) APIs that have been removed. Can we remove the symbols?
  36308. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  36309. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  36310. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  36311. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  36312. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  36313. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  36314. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  36315. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  36316. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  36317. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  36318. function getIteratorFn(maybeIterable) {
  36319. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  36320. return null;
  36321. }
  36322. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  36323. if (typeof maybeIterator === 'function') {
  36324. return maybeIterator;
  36325. }
  36326. return null;
  36327. }
  36328. var Pending = 0;
  36329. var Resolved = 1;
  36330. var Rejected = 2;
  36331. function refineResolvedLazyComponent(lazyComponent) {
  36332. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  36333. }
  36334. function getWrappedName(outerType, innerType, wrapperName) {
  36335. var functionName = innerType.displayName || innerType.name || '';
  36336. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  36337. }
  36338. function getComponentName(type) {
  36339. if (type == null) {
  36340. // Host root, text node or just invalid type.
  36341. return null;
  36342. }
  36343. {
  36344. if (typeof type.tag === 'number') {
  36345. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  36346. }
  36347. }
  36348. if (typeof type === 'function') {
  36349. return type.displayName || type.name || null;
  36350. }
  36351. if (typeof type === 'string') {
  36352. return type;
  36353. }
  36354. switch (type) {
  36355. case REACT_FRAGMENT_TYPE:
  36356. return 'Fragment';
  36357. case REACT_PORTAL_TYPE:
  36358. return 'Portal';
  36359. case REACT_PROFILER_TYPE:
  36360. return 'Profiler';
  36361. case REACT_STRICT_MODE_TYPE:
  36362. return 'StrictMode';
  36363. case REACT_SUSPENSE_TYPE:
  36364. return 'Suspense';
  36365. case REACT_SUSPENSE_LIST_TYPE:
  36366. return 'SuspenseList';
  36367. }
  36368. if (typeof type === 'object') {
  36369. switch (type.$$typeof) {
  36370. case REACT_CONTEXT_TYPE:
  36371. return 'Context.Consumer';
  36372. case REACT_PROVIDER_TYPE:
  36373. return 'Context.Provider';
  36374. case REACT_FORWARD_REF_TYPE:
  36375. return getWrappedName(type, type.render, 'ForwardRef');
  36376. case REACT_MEMO_TYPE:
  36377. return getComponentName(type.type);
  36378. case REACT_LAZY_TYPE:
  36379. {
  36380. var thenable = type;
  36381. var resolvedThenable = refineResolvedLazyComponent(thenable);
  36382. if (resolvedThenable) {
  36383. return getComponentName(resolvedThenable);
  36384. }
  36385. break;
  36386. }
  36387. }
  36388. }
  36389. return null;
  36390. }
  36391. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36392. function describeFiber(fiber) {
  36393. switch (fiber.tag) {
  36394. case HostRoot:
  36395. case HostPortal:
  36396. case HostText:
  36397. case Fragment:
  36398. case ContextProvider:
  36399. case ContextConsumer:
  36400. return '';
  36401. default:
  36402. var owner = fiber._debugOwner;
  36403. var source = fiber._debugSource;
  36404. var name = getComponentName(fiber.type);
  36405. var ownerName = null;
  36406. if (owner) {
  36407. ownerName = getComponentName(owner.type);
  36408. }
  36409. return describeComponentFrame(name, source, ownerName);
  36410. }
  36411. }
  36412. function getStackByFiberInDevAndProd(workInProgress) {
  36413. var info = '';
  36414. var node = workInProgress;
  36415. do {
  36416. info += describeFiber(node);
  36417. node = node.return;
  36418. } while (node);
  36419. return info;
  36420. }
  36421. var current = null;
  36422. var phase = null;
  36423. function getCurrentFiberOwnerNameInDevOrNull() {
  36424. {
  36425. if (current === null) {
  36426. return null;
  36427. }
  36428. var owner = current._debugOwner;
  36429. if (owner !== null && typeof owner !== 'undefined') {
  36430. return getComponentName(owner.type);
  36431. }
  36432. }
  36433. return null;
  36434. }
  36435. function getCurrentFiberStackInDev() {
  36436. {
  36437. if (current === null) {
  36438. return '';
  36439. }
  36440. // Safe because if current fiber exists, we are reconciling,
  36441. // and it is guaranteed to be the work-in-progress version.
  36442. return getStackByFiberInDevAndProd(current);
  36443. }
  36444. return '';
  36445. }
  36446. function resetCurrentFiber() {
  36447. {
  36448. ReactDebugCurrentFrame.getCurrentStack = null;
  36449. current = null;
  36450. phase = null;
  36451. }
  36452. }
  36453. function setCurrentFiber(fiber) {
  36454. {
  36455. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  36456. current = fiber;
  36457. phase = null;
  36458. }
  36459. }
  36460. function setCurrentPhase(lifeCyclePhase) {
  36461. {
  36462. phase = lifeCyclePhase;
  36463. }
  36464. }
  36465. /**
  36466. * Similar to invariant but only logs a warning if the condition is not met.
  36467. * This can be used to log issues in development environments in critical
  36468. * paths. Removing the logging code for production environments will keep the
  36469. * same logic and follow the same code paths.
  36470. */
  36471. var warning = warningWithoutStack$1;
  36472. {
  36473. warning = function (condition, format) {
  36474. if (condition) {
  36475. return;
  36476. }
  36477. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36478. var stack = ReactDebugCurrentFrame.getStackAddendum();
  36479. // eslint-disable-next-line react-internal/warning-and-invariant-args
  36480. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  36481. args[_key - 2] = arguments[_key];
  36482. }
  36483. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  36484. };
  36485. }
  36486. var warning$1 = warning;
  36487. // A reserved attribute.
  36488. // It is handled by React separately and shouldn't be written to the DOM.
  36489. var RESERVED = 0;
  36490. // A simple string attribute.
  36491. // Attributes that aren't in the whitelist are presumed to have this type.
  36492. var STRING = 1;
  36493. // A string attribute that accepts booleans in React. In HTML, these are called
  36494. // "enumerated" attributes with "true" and "false" as possible values.
  36495. // When true, it should be set to a "true" string.
  36496. // When false, it should be set to a "false" string.
  36497. var BOOLEANISH_STRING = 2;
  36498. // A real boolean attribute.
  36499. // When true, it should be present (set either to an empty string or its name).
  36500. // When false, it should be omitted.
  36501. var BOOLEAN = 3;
  36502. // An attribute that can be used as a flag as well as with a value.
  36503. // When true, it should be present (set either to an empty string or its name).
  36504. // When false, it should be omitted.
  36505. // For any other value, should be present with that value.
  36506. var OVERLOADED_BOOLEAN = 4;
  36507. // An attribute that must be numeric or parse as a numeric.
  36508. // When falsy, it should be removed.
  36509. var NUMERIC = 5;
  36510. // An attribute that must be positive numeric or parse as a positive numeric.
  36511. // When falsy, it should be removed.
  36512. var POSITIVE_NUMERIC = 6;
  36513. /* eslint-disable max-len */
  36514. 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';
  36515. /* eslint-enable max-len */
  36516. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  36517. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  36518. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  36519. var hasOwnProperty = Object.prototype.hasOwnProperty;
  36520. var illegalAttributeNameCache = {};
  36521. var validatedAttributeNameCache = {};
  36522. function isAttributeNameSafe(attributeName) {
  36523. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  36524. return true;
  36525. }
  36526. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  36527. return false;
  36528. }
  36529. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  36530. validatedAttributeNameCache[attributeName] = true;
  36531. return true;
  36532. }
  36533. illegalAttributeNameCache[attributeName] = true;
  36534. {
  36535. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  36536. }
  36537. return false;
  36538. }
  36539. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  36540. if (propertyInfo !== null) {
  36541. return propertyInfo.type === RESERVED;
  36542. }
  36543. if (isCustomComponentTag) {
  36544. return false;
  36545. }
  36546. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  36547. return true;
  36548. }
  36549. return false;
  36550. }
  36551. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  36552. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  36553. return false;
  36554. }
  36555. switch (typeof value) {
  36556. case 'function':
  36557. // $FlowIssue symbol is perfectly valid here
  36558. case 'symbol':
  36559. // eslint-disable-line
  36560. return true;
  36561. case 'boolean':
  36562. {
  36563. if (isCustomComponentTag) {
  36564. return false;
  36565. }
  36566. if (propertyInfo !== null) {
  36567. return !propertyInfo.acceptsBooleans;
  36568. } else {
  36569. var prefix = name.toLowerCase().slice(0, 5);
  36570. return prefix !== 'data-' && prefix !== 'aria-';
  36571. }
  36572. }
  36573. default:
  36574. return false;
  36575. }
  36576. }
  36577. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  36578. if (value === null || typeof value === 'undefined') {
  36579. return true;
  36580. }
  36581. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  36582. return true;
  36583. }
  36584. if (isCustomComponentTag) {
  36585. return false;
  36586. }
  36587. if (propertyInfo !== null) {
  36588. switch (propertyInfo.type) {
  36589. case BOOLEAN:
  36590. return !value;
  36591. case OVERLOADED_BOOLEAN:
  36592. return value === false;
  36593. case NUMERIC:
  36594. return isNaN(value);
  36595. case POSITIVE_NUMERIC:
  36596. return isNaN(value) || value < 1;
  36597. }
  36598. }
  36599. return false;
  36600. }
  36601. function getPropertyInfo(name) {
  36602. return properties.hasOwnProperty(name) ? properties[name] : null;
  36603. }
  36604. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  36605. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  36606. this.attributeName = attributeName;
  36607. this.attributeNamespace = attributeNamespace;
  36608. this.mustUseProperty = mustUseProperty;
  36609. this.propertyName = name;
  36610. this.type = type;
  36611. this.sanitizeURL = sanitizeURL;
  36612. }
  36613. // When adding attributes to this list, be sure to also add them to
  36614. // the `possibleStandardNames` module to ensure casing and incorrect
  36615. // name warnings.
  36616. var properties = {};
  36617. // These props are reserved by React. They shouldn't be written to the DOM.
  36618. ['children', 'dangerouslySetInnerHTML',
  36619. // TODO: This prevents the assignment of defaultValue to regular
  36620. // elements (not just inputs). Now that ReactDOMInput assigns to the
  36621. // defaultValue property -- do we need this?
  36622. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  36623. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  36624. name, // attributeName
  36625. null, // attributeNamespace
  36626. false);
  36627. } // sanitizeURL
  36628. );
  36629. // A few React string attributes have a different name.
  36630. // This is a mapping from React prop names to the attribute names.
  36631. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  36632. var name = _ref[0],
  36633. attributeName = _ref[1];
  36634. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36635. attributeName, // attributeName
  36636. null, // attributeNamespace
  36637. false);
  36638. } // sanitizeURL
  36639. );
  36640. // These are "enumerated" HTML attributes that accept "true" and "false".
  36641. // In React, we let users pass `true` and `false` even though technically
  36642. // these aren't boolean attributes (they are coerced to strings).
  36643. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  36644. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36645. name.toLowerCase(), // attributeName
  36646. null, // attributeNamespace
  36647. false);
  36648. } // sanitizeURL
  36649. );
  36650. // These are "enumerated" SVG attributes that accept "true" and "false".
  36651. // In React, we let users pass `true` and `false` even though technically
  36652. // these aren't boolean attributes (they are coerced to strings).
  36653. // Since these are SVG attributes, their attribute names are case-sensitive.
  36654. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  36655. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36656. name, // attributeName
  36657. null, // attributeNamespace
  36658. false);
  36659. } // sanitizeURL
  36660. );
  36661. // These are HTML boolean attributes.
  36662. ['allowFullScreen', 'async',
  36663. // Note: there is a special case that prevents it from being written to the DOM
  36664. // on the client side because the browsers are inconsistent. Instead we call focus().
  36665. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  36666. // Microdata
  36667. 'itemScope'].forEach(function (name) {
  36668. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  36669. name.toLowerCase(), // attributeName
  36670. null, // attributeNamespace
  36671. false);
  36672. } // sanitizeURL
  36673. );
  36674. // These are the few React props that we set as DOM properties
  36675. // rather than attributes. These are all booleans.
  36676. ['checked',
  36677. // Note: `option.selected` is not updated if `select.multiple` is
  36678. // disabled with `removeAttribute`. We have special logic for handling this.
  36679. 'multiple', 'muted', 'selected'].forEach(function (name) {
  36680. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  36681. name, // attributeName
  36682. null, // attributeNamespace
  36683. false);
  36684. } // sanitizeURL
  36685. );
  36686. // These are HTML attributes that are "overloaded booleans": they behave like
  36687. // booleans, but can also accept a string value.
  36688. ['capture', 'download'].forEach(function (name) {
  36689. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  36690. name, // attributeName
  36691. null, // attributeNamespace
  36692. false);
  36693. } // sanitizeURL
  36694. );
  36695. // These are HTML attributes that must be positive numbers.
  36696. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  36697. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  36698. name, // attributeName
  36699. null, // attributeNamespace
  36700. false);
  36701. } // sanitizeURL
  36702. );
  36703. // These are HTML attributes that must be numbers.
  36704. ['rowSpan', 'start'].forEach(function (name) {
  36705. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  36706. name.toLowerCase(), // attributeName
  36707. null, // attributeNamespace
  36708. false);
  36709. } // sanitizeURL
  36710. );
  36711. var CAMELIZE = /[\-\:]([a-z])/g;
  36712. var capitalize = function (token) {
  36713. return token[1].toUpperCase();
  36714. };
  36715. // This is a list of all SVG attributes that need special casing, namespacing,
  36716. // or boolean value assignment. Regular attributes that just accept strings
  36717. // and have the same names are omitted, just like in the HTML whitelist.
  36718. // Some of these attributes can be hard to find. This list was created by
  36719. // scrapping the MDN documentation.
  36720. ['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) {
  36721. var name = attributeName.replace(CAMELIZE, capitalize);
  36722. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36723. attributeName, null, // attributeNamespace
  36724. false);
  36725. } // sanitizeURL
  36726. );
  36727. // String SVG attributes with the xlink namespace.
  36728. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  36729. var name = attributeName.replace(CAMELIZE, capitalize);
  36730. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36731. attributeName, 'http://www.w3.org/1999/xlink', false);
  36732. } // sanitizeURL
  36733. );
  36734. // String SVG attributes with the xml namespace.
  36735. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  36736. var name = attributeName.replace(CAMELIZE, capitalize);
  36737. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36738. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  36739. } // sanitizeURL
  36740. );
  36741. // These attribute exists both in HTML and SVG.
  36742. // The attribute name is case-sensitive in SVG so we can't just use
  36743. // the React name like we do for attributes that exist only in HTML.
  36744. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  36745. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  36746. attributeName.toLowerCase(), // attributeName
  36747. null, // attributeNamespace
  36748. false);
  36749. } // sanitizeURL
  36750. );
  36751. // These attributes accept URLs. These must not allow javascript: URLS.
  36752. // These will also need to accept Trusted Types object in the future.
  36753. var xlinkHref = 'xlinkHref';
  36754. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  36755. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  36756. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  36757. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  36758. attributeName.toLowerCase(), // attributeName
  36759. null, // attributeNamespace
  36760. true);
  36761. } // sanitizeURL
  36762. );
  36763. var ReactDebugCurrentFrame$1 = null;
  36764. {
  36765. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  36766. }
  36767. // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  36768. // and any newline or tab are filtered out as if they're not part of the URL.
  36769. // https://url.spec.whatwg.org/#url-parsing
  36770. // Tab or newline are defined as \r\n\t:
  36771. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  36772. // A C0 control is a code point in the range \u0000 NULL to \u001F
  36773. // INFORMATION SEPARATOR ONE, inclusive:
  36774. // https://infra.spec.whatwg.org/#c0-control-or-space
  36775. /* eslint-disable max-len */
  36776. 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;
  36777. var didWarn = false;
  36778. function sanitizeURL(url) {
  36779. if (disableJavaScriptURLs) {
  36780. (function () {
  36781. if (!!isJavaScriptProtocol.test(url)) {
  36782. {
  36783. throw ReactError(Error('React has blocked a javascript: URL as a security precaution.' + (ReactDebugCurrentFrame$1.getStackAddendum())));
  36784. }
  36785. }
  36786. })();
  36787. } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {
  36788. didWarn = true;
  36789. 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));
  36790. }
  36791. }
  36792. /**
  36793. * Get the value for a property on a node. Only used in DEV for SSR validation.
  36794. * The "expected" argument is used as a hint of what the expected value is.
  36795. * Some properties have multiple equivalent values.
  36796. */
  36797. function getValueForProperty(node, name, expected, propertyInfo) {
  36798. {
  36799. if (propertyInfo.mustUseProperty) {
  36800. var propertyName = propertyInfo.propertyName;
  36801. return node[propertyName];
  36802. } else {
  36803. if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
  36804. // If we haven't fully disabled javascript: URLs, and if
  36805. // the hydration is successful of a javascript: URL, we
  36806. // still want to warn on the client.
  36807. sanitizeURL('' + expected);
  36808. }
  36809. var attributeName = propertyInfo.attributeName;
  36810. var stringValue = null;
  36811. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  36812. if (node.hasAttribute(attributeName)) {
  36813. var value = node.getAttribute(attributeName);
  36814. if (value === '') {
  36815. return true;
  36816. }
  36817. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36818. return value;
  36819. }
  36820. if (value === '' + expected) {
  36821. return expected;
  36822. }
  36823. return value;
  36824. }
  36825. } else if (node.hasAttribute(attributeName)) {
  36826. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36827. // We had an attribute but shouldn't have had one, so read it
  36828. // for the error message.
  36829. return node.getAttribute(attributeName);
  36830. }
  36831. if (propertyInfo.type === BOOLEAN) {
  36832. // If this was a boolean, it doesn't matter what the value is
  36833. // the fact that we have it is the same as the expected.
  36834. return expected;
  36835. }
  36836. // Even if this property uses a namespace we use getAttribute
  36837. // because we assume its namespaced name is the same as our config.
  36838. // To use getAttributeNS we need the local name which we don't have
  36839. // in our config atm.
  36840. stringValue = node.getAttribute(attributeName);
  36841. }
  36842. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36843. return stringValue === null ? expected : stringValue;
  36844. } else if (stringValue === '' + expected) {
  36845. return expected;
  36846. } else {
  36847. return stringValue;
  36848. }
  36849. }
  36850. }
  36851. }
  36852. /**
  36853. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  36854. * The third argument is used as a hint of what the expected value is. Some
  36855. * attributes have multiple equivalent values.
  36856. */
  36857. function getValueForAttribute(node, name, expected) {
  36858. {
  36859. if (!isAttributeNameSafe(name)) {
  36860. return;
  36861. }
  36862. if (!node.hasAttribute(name)) {
  36863. return expected === undefined ? undefined : null;
  36864. }
  36865. var value = node.getAttribute(name);
  36866. if (value === '' + expected) {
  36867. return expected;
  36868. }
  36869. return value;
  36870. }
  36871. }
  36872. /**
  36873. * Sets the value for a property on a node.
  36874. *
  36875. * @param {DOMElement} node
  36876. * @param {string} name
  36877. * @param {*} value
  36878. */
  36879. function setValueForProperty(node, name, value, isCustomComponentTag) {
  36880. var propertyInfo = getPropertyInfo(name);
  36881. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  36882. return;
  36883. }
  36884. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  36885. value = null;
  36886. }
  36887. // If the prop isn't in the special list, treat it as a simple attribute.
  36888. if (isCustomComponentTag || propertyInfo === null) {
  36889. if (isAttributeNameSafe(name)) {
  36890. var _attributeName = name;
  36891. if (value === null) {
  36892. node.removeAttribute(_attributeName);
  36893. } else {
  36894. node.setAttribute(_attributeName, '' + value);
  36895. }
  36896. }
  36897. return;
  36898. }
  36899. var mustUseProperty = propertyInfo.mustUseProperty;
  36900. if (mustUseProperty) {
  36901. var propertyName = propertyInfo.propertyName;
  36902. if (value === null) {
  36903. var type = propertyInfo.type;
  36904. node[propertyName] = type === BOOLEAN ? false : '';
  36905. } else {
  36906. // Contrary to `setAttribute`, object properties are properly
  36907. // `toString`ed by IE8/9.
  36908. node[propertyName] = value;
  36909. }
  36910. return;
  36911. }
  36912. // The rest are treated as attributes with special cases.
  36913. var attributeName = propertyInfo.attributeName,
  36914. attributeNamespace = propertyInfo.attributeNamespace;
  36915. if (value === null) {
  36916. node.removeAttribute(attributeName);
  36917. } else {
  36918. var _type = propertyInfo.type;
  36919. var attributeValue = void 0;
  36920. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  36921. attributeValue = '';
  36922. } else {
  36923. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  36924. // ('' + value) makes it output the correct toString()-value.
  36925. attributeValue = '' + value;
  36926. if (propertyInfo.sanitizeURL) {
  36927. sanitizeURL(attributeValue);
  36928. }
  36929. }
  36930. if (attributeNamespace) {
  36931. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  36932. } else {
  36933. node.setAttribute(attributeName, attributeValue);
  36934. }
  36935. }
  36936. }
  36937. // Flow does not allow string concatenation of most non-string types. To work
  36938. // around this limitation, we use an opaque type that can only be obtained by
  36939. // passing the value through getToStringValue first.
  36940. function toString(value) {
  36941. return '' + value;
  36942. }
  36943. function getToStringValue(value) {
  36944. switch (typeof value) {
  36945. case 'boolean':
  36946. case 'number':
  36947. case 'object':
  36948. case 'string':
  36949. case 'undefined':
  36950. return value;
  36951. default:
  36952. // function, symbol are assigned as empty strings
  36953. return '';
  36954. }
  36955. }
  36956. var ReactDebugCurrentFrame$2 = null;
  36957. var ReactControlledValuePropTypes = {
  36958. checkPropTypes: null
  36959. };
  36960. {
  36961. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  36962. var hasReadOnlyValue = {
  36963. button: true,
  36964. checkbox: true,
  36965. image: true,
  36966. hidden: true,
  36967. radio: true,
  36968. reset: true,
  36969. submit: true
  36970. };
  36971. var propTypes = {
  36972. value: function (props, propName, componentName) {
  36973. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  36974. return null;
  36975. }
  36976. 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`.');
  36977. },
  36978. checked: function (props, propName, componentName) {
  36979. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  36980. return null;
  36981. }
  36982. 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`.');
  36983. }
  36984. };
  36985. /**
  36986. * Provide a linked `value` attribute for controlled forms. You should not use
  36987. * this outside of the ReactDOM controlled form components.
  36988. */
  36989. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  36990. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  36991. };
  36992. }
  36993. // TODO: direct imports like some-package/src/* are bad. Fix me.
  36994. var didWarnValueDefaultValue = false;
  36995. var didWarnCheckedDefaultChecked = false;
  36996. var didWarnControlledToUncontrolled = false;
  36997. var didWarnUncontrolledToControlled = false;
  36998. function isControlled(props) {
  36999. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  37000. return usesChecked ? props.checked != null : props.value != null;
  37001. }
  37002. /**
  37003. * Implements an <input> host component that allows setting these optional
  37004. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  37005. *
  37006. * If `checked` or `value` are not supplied (or null/undefined), user actions
  37007. * that affect the checked state or value will trigger updates to the element.
  37008. *
  37009. * If they are supplied (and not null/undefined), the rendered element will not
  37010. * trigger updates to the element. Instead, the props must change in order for
  37011. * the rendered element to be updated.
  37012. *
  37013. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  37014. * with an empty value (or `defaultValue`).
  37015. *
  37016. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  37017. */
  37018. function getHostProps(element, props) {
  37019. var node = element;
  37020. var checked = props.checked;
  37021. var hostProps = _assign({}, props, {
  37022. defaultChecked: undefined,
  37023. defaultValue: undefined,
  37024. value: undefined,
  37025. checked: checked != null ? checked : node._wrapperState.initialChecked
  37026. });
  37027. return hostProps;
  37028. }
  37029. function initWrapperState(element, props) {
  37030. {
  37031. ReactControlledValuePropTypes.checkPropTypes('input', props);
  37032. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  37033. 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);
  37034. didWarnCheckedDefaultChecked = true;
  37035. }
  37036. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  37037. 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);
  37038. didWarnValueDefaultValue = true;
  37039. }
  37040. }
  37041. var node = element;
  37042. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  37043. node._wrapperState = {
  37044. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  37045. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  37046. controlled: isControlled(props)
  37047. };
  37048. }
  37049. function updateChecked(element, props) {
  37050. var node = element;
  37051. var checked = props.checked;
  37052. if (checked != null) {
  37053. setValueForProperty(node, 'checked', checked, false);
  37054. }
  37055. }
  37056. function updateWrapper(element, props) {
  37057. var node = element;
  37058. {
  37059. var _controlled = isControlled(props);
  37060. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  37061. 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);
  37062. didWarnUncontrolledToControlled = true;
  37063. }
  37064. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  37065. 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);
  37066. didWarnControlledToUncontrolled = true;
  37067. }
  37068. }
  37069. updateChecked(element, props);
  37070. var value = getToStringValue(props.value);
  37071. var type = props.type;
  37072. if (value != null) {
  37073. if (type === 'number') {
  37074. if (value === 0 && node.value === '' ||
  37075. // We explicitly want to coerce to number here if possible.
  37076. // eslint-disable-next-line
  37077. node.value != value) {
  37078. node.value = toString(value);
  37079. }
  37080. } else if (node.value !== toString(value)) {
  37081. node.value = toString(value);
  37082. }
  37083. } else if (type === 'submit' || type === 'reset') {
  37084. // Submit/reset inputs need the attribute removed completely to avoid
  37085. // blank-text buttons.
  37086. node.removeAttribute('value');
  37087. return;
  37088. }
  37089. if (disableInputAttributeSyncing) {
  37090. // When not syncing the value attribute, React only assigns a new value
  37091. // whenever the defaultValue React prop has changed. When not present,
  37092. // React does nothing
  37093. if (props.hasOwnProperty('defaultValue')) {
  37094. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  37095. }
  37096. } else {
  37097. // When syncing the value attribute, the value comes from a cascade of
  37098. // properties:
  37099. // 1. The value React property
  37100. // 2. The defaultValue React property
  37101. // 3. Otherwise there should be no change
  37102. if (props.hasOwnProperty('value')) {
  37103. setDefaultValue(node, props.type, value);
  37104. } else if (props.hasOwnProperty('defaultValue')) {
  37105. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  37106. }
  37107. }
  37108. if (disableInputAttributeSyncing) {
  37109. // When not syncing the checked attribute, the attribute is directly
  37110. // controllable from the defaultValue React property. It needs to be
  37111. // updated as new props come in.
  37112. if (props.defaultChecked == null) {
  37113. node.removeAttribute('checked');
  37114. } else {
  37115. node.defaultChecked = !!props.defaultChecked;
  37116. }
  37117. } else {
  37118. // When syncing the checked attribute, it only changes when it needs
  37119. // to be removed, such as transitioning from a checkbox into a text input
  37120. if (props.checked == null && props.defaultChecked != null) {
  37121. node.defaultChecked = !!props.defaultChecked;
  37122. }
  37123. }
  37124. }
  37125. function postMountWrapper(element, props, isHydrating) {
  37126. var node = element;
  37127. // Do not assign value if it is already set. This prevents user text input
  37128. // from being lost during SSR hydration.
  37129. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  37130. var type = props.type;
  37131. var isButton = type === 'submit' || type === 'reset';
  37132. // Avoid setting value attribute on submit/reset inputs as it overrides the
  37133. // default value provided by the browser. See: #12872
  37134. if (isButton && (props.value === undefined || props.value === null)) {
  37135. return;
  37136. }
  37137. var _initialValue = toString(node._wrapperState.initialValue);
  37138. // Do not assign value if it is already set. This prevents user text input
  37139. // from being lost during SSR hydration.
  37140. if (!isHydrating) {
  37141. if (disableInputAttributeSyncing) {
  37142. var value = getToStringValue(props.value);
  37143. // When not syncing the value attribute, the value property points
  37144. // directly to the React prop. Only assign it if it exists.
  37145. if (value != null) {
  37146. // Always assign on buttons so that it is possible to assign an
  37147. // empty string to clear button text.
  37148. //
  37149. // Otherwise, do not re-assign the value property if is empty. This
  37150. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  37151. // prematurely marking required inputs as invalid. Equality is compared
  37152. // to the current value in case the browser provided value is not an
  37153. // empty string.
  37154. if (isButton || value !== node.value) {
  37155. node.value = toString(value);
  37156. }
  37157. }
  37158. } else {
  37159. // When syncing the value attribute, the value property should use
  37160. // the wrapperState._initialValue property. This uses:
  37161. //
  37162. // 1. The value React property when present
  37163. // 2. The defaultValue React property when present
  37164. // 3. An empty string
  37165. if (_initialValue !== node.value) {
  37166. node.value = _initialValue;
  37167. }
  37168. }
  37169. }
  37170. if (disableInputAttributeSyncing) {
  37171. // When not syncing the value attribute, assign the value attribute
  37172. // directly from the defaultValue React property (when present)
  37173. var defaultValue = getToStringValue(props.defaultValue);
  37174. if (defaultValue != null) {
  37175. node.defaultValue = toString(defaultValue);
  37176. }
  37177. } else {
  37178. // Otherwise, the value attribute is synchronized to the property,
  37179. // so we assign defaultValue to the same thing as the value property
  37180. // assignment step above.
  37181. node.defaultValue = _initialValue;
  37182. }
  37183. }
  37184. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  37185. // this is needed to work around a chrome bug where setting defaultChecked
  37186. // will sometimes influence the value of checked (even after detachment).
  37187. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  37188. // We need to temporarily unset name to avoid disrupting radio button groups.
  37189. var name = node.name;
  37190. if (name !== '') {
  37191. node.name = '';
  37192. }
  37193. if (disableInputAttributeSyncing) {
  37194. // When not syncing the checked attribute, the checked property
  37195. // never gets assigned. It must be manually set. We don't want
  37196. // to do this when hydrating so that existing user input isn't
  37197. // modified
  37198. if (!isHydrating) {
  37199. updateChecked(element, props);
  37200. }
  37201. // Only assign the checked attribute if it is defined. This saves
  37202. // a DOM write when controlling the checked attribute isn't needed
  37203. // (text inputs, submit/reset)
  37204. if (props.hasOwnProperty('defaultChecked')) {
  37205. node.defaultChecked = !node.defaultChecked;
  37206. node.defaultChecked = !!props.defaultChecked;
  37207. }
  37208. } else {
  37209. // When syncing the checked attribute, both the checked property and
  37210. // attribute are assigned at the same time using defaultChecked. This uses:
  37211. //
  37212. // 1. The checked React property when present
  37213. // 2. The defaultChecked React property when present
  37214. // 3. Otherwise, false
  37215. node.defaultChecked = !node.defaultChecked;
  37216. node.defaultChecked = !!node._wrapperState.initialChecked;
  37217. }
  37218. if (name !== '') {
  37219. node.name = name;
  37220. }
  37221. }
  37222. function restoreControlledState(element, props) {
  37223. var node = element;
  37224. updateWrapper(node, props);
  37225. updateNamedCousins(node, props);
  37226. }
  37227. function updateNamedCousins(rootNode, props) {
  37228. var name = props.name;
  37229. if (props.type === 'radio' && name != null) {
  37230. var queryRoot = rootNode;
  37231. while (queryRoot.parentNode) {
  37232. queryRoot = queryRoot.parentNode;
  37233. }
  37234. // If `rootNode.form` was non-null, then we could try `form.elements`,
  37235. // but that sometimes behaves strangely in IE8. We could also try using
  37236. // `form.getElementsByName`, but that will only return direct children
  37237. // and won't include inputs that use the HTML5 `form=` attribute. Since
  37238. // the input might not even be in a form. It might not even be in the
  37239. // document. Let's just use the local `querySelectorAll` to ensure we don't
  37240. // miss anything.
  37241. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  37242. for (var i = 0; i < group.length; i++) {
  37243. var otherNode = group[i];
  37244. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  37245. continue;
  37246. }
  37247. // This will throw if radio buttons rendered by different copies of React
  37248. // and the same name are rendered into the same form (same as #1939).
  37249. // That's probably okay; we don't support it just as we don't support
  37250. // mixing React radio buttons with non-React ones.
  37251. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  37252. (function () {
  37253. if (!otherProps) {
  37254. {
  37255. throw ReactError(Error('ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.'));
  37256. }
  37257. }
  37258. })();
  37259. // We need update the tracked value on the named cousin since the value
  37260. // was changed but the input saw no event or value set
  37261. updateValueIfChanged(otherNode);
  37262. // If this is a controlled radio button group, forcing the input that
  37263. // was previously checked to update will cause it to be come re-checked
  37264. // as appropriate.
  37265. updateWrapper(otherNode, otherProps);
  37266. }
  37267. }
  37268. }
  37269. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  37270. // For number inputs, the display value loses trailing decimal points. For email inputs,
  37271. // Chrome raises "The specified value <x> is not a valid email address".
  37272. //
  37273. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  37274. // when the user is inputting text
  37275. //
  37276. // https://github.com/facebook/react/issues/7253
  37277. function setDefaultValue(node, type, value) {
  37278. if (
  37279. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  37280. type !== 'number' || node.ownerDocument.activeElement !== node) {
  37281. if (value == null) {
  37282. node.defaultValue = toString(node._wrapperState.initialValue);
  37283. } else if (node.defaultValue !== toString(value)) {
  37284. node.defaultValue = toString(value);
  37285. }
  37286. }
  37287. }
  37288. var eventTypes$1 = {
  37289. change: {
  37290. phasedRegistrationNames: {
  37291. bubbled: 'onChange',
  37292. captured: 'onChangeCapture'
  37293. },
  37294. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  37295. }
  37296. };
  37297. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  37298. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  37299. event.type = 'change';
  37300. // Flag this event loop as needing state restore.
  37301. enqueueStateRestore(target);
  37302. accumulateTwoPhaseDispatches(event);
  37303. return event;
  37304. }
  37305. /**
  37306. * For IE shims
  37307. */
  37308. var activeElement = null;
  37309. var activeElementInst = null;
  37310. /**
  37311. * SECTION: handle `change` event
  37312. */
  37313. function shouldUseChangeEvent(elem) {
  37314. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  37315. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  37316. }
  37317. function manualDispatchChangeEvent(nativeEvent) {
  37318. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  37319. // If change and propertychange bubbled, we'd just bind to it like all the
  37320. // other events and have it go through ReactBrowserEventEmitter. Since it
  37321. // doesn't, we manually listen for the events and so we have to enqueue and
  37322. // process the abstract event manually.
  37323. //
  37324. // Batching is necessary here in order to ensure that all event handlers run
  37325. // before the next rerender (including event handlers attached to ancestor
  37326. // elements instead of directly on the input). Without this, controlled
  37327. // components don't work properly in conjunction with event bubbling because
  37328. // the component is rerendered and the value reverted before all the event
  37329. // handlers can run. See https://github.com/facebook/react/issues/708.
  37330. batchedUpdates(runEventInBatch, event);
  37331. }
  37332. function runEventInBatch(event) {
  37333. runEventsInBatch(event);
  37334. }
  37335. function getInstIfValueChanged(targetInst) {
  37336. var targetNode = getNodeFromInstance$1(targetInst);
  37337. if (updateValueIfChanged(targetNode)) {
  37338. return targetInst;
  37339. }
  37340. }
  37341. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  37342. if (topLevelType === TOP_CHANGE) {
  37343. return targetInst;
  37344. }
  37345. }
  37346. /**
  37347. * SECTION: handle `input` event
  37348. */
  37349. var isInputEventSupported = false;
  37350. if (canUseDOM) {
  37351. // IE9 claims to support the input event but fails to trigger it when
  37352. // deleting text, so we ignore its input events.
  37353. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  37354. }
  37355. /**
  37356. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  37357. * and override the value property so that we can distinguish user events from
  37358. * value changes in JS.
  37359. */
  37360. function startWatchingForValueChange(target, targetInst) {
  37361. activeElement = target;
  37362. activeElementInst = targetInst;
  37363. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  37364. }
  37365. /**
  37366. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  37367. * if any exists.
  37368. */
  37369. function stopWatchingForValueChange() {
  37370. if (!activeElement) {
  37371. return;
  37372. }
  37373. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  37374. activeElement = null;
  37375. activeElementInst = null;
  37376. }
  37377. /**
  37378. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  37379. * the value of the active element has changed.
  37380. */
  37381. function handlePropertyChange(nativeEvent) {
  37382. if (nativeEvent.propertyName !== 'value') {
  37383. return;
  37384. }
  37385. if (getInstIfValueChanged(activeElementInst)) {
  37386. manualDispatchChangeEvent(nativeEvent);
  37387. }
  37388. }
  37389. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  37390. if (topLevelType === TOP_FOCUS) {
  37391. // In IE9, propertychange fires for most input events but is buggy and
  37392. // doesn't fire when text is deleted, but conveniently, selectionchange
  37393. // appears to fire in all of the remaining cases so we catch those and
  37394. // forward the event if the value has changed
  37395. // In either case, we don't want to call the event handler if the value
  37396. // is changed from JS so we redefine a setter for `.value` that updates
  37397. // our activeElementValue variable, allowing us to ignore those changes
  37398. //
  37399. // stopWatching() should be a noop here but we call it just in case we
  37400. // missed a blur event somehow.
  37401. stopWatchingForValueChange();
  37402. startWatchingForValueChange(target, targetInst);
  37403. } else if (topLevelType === TOP_BLUR) {
  37404. stopWatchingForValueChange();
  37405. }
  37406. }
  37407. // For IE8 and IE9.
  37408. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  37409. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  37410. // On the selectionchange event, the target is just document which isn't
  37411. // helpful for us so just check activeElement instead.
  37412. //
  37413. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  37414. // propertychange on the first input event after setting `value` from a
  37415. // script and fires only keydown, keypress, keyup. Catching keyup usually
  37416. // gets it and catching keydown lets us fire an event for the first
  37417. // keystroke if user does a key repeat (it'll be a little delayed: right
  37418. // before the second keystroke). Other input methods (e.g., paste) seem to
  37419. // fire selectionchange normally.
  37420. return getInstIfValueChanged(activeElementInst);
  37421. }
  37422. }
  37423. /**
  37424. * SECTION: handle `click` event
  37425. */
  37426. function shouldUseClickEvent(elem) {
  37427. // Use the `click` event to detect changes to checkbox and radio inputs.
  37428. // This approach works across all browsers, whereas `change` does not fire
  37429. // until `blur` in IE8.
  37430. var nodeName = elem.nodeName;
  37431. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  37432. }
  37433. function getTargetInstForClickEvent(topLevelType, targetInst) {
  37434. if (topLevelType === TOP_CLICK) {
  37435. return getInstIfValueChanged(targetInst);
  37436. }
  37437. }
  37438. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  37439. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  37440. return getInstIfValueChanged(targetInst);
  37441. }
  37442. }
  37443. function handleControlledInputBlur(node) {
  37444. var state = node._wrapperState;
  37445. if (!state || !state.controlled || node.type !== 'number') {
  37446. return;
  37447. }
  37448. if (!disableInputAttributeSyncing) {
  37449. // If controlled, assign the value attribute to the current value on blur
  37450. setDefaultValue(node, 'number', node.value);
  37451. }
  37452. }
  37453. /**
  37454. * This plugin creates an `onChange` event that normalizes change events
  37455. * across form elements. This event fires at a time when it's possible to
  37456. * change the element's value without seeing a flicker.
  37457. *
  37458. * Supported elements are:
  37459. * - input (see `isTextInputElement`)
  37460. * - textarea
  37461. * - select
  37462. */
  37463. var ChangeEventPlugin = {
  37464. eventTypes: eventTypes$1,
  37465. _isInputEventSupported: isInputEventSupported,
  37466. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37467. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  37468. var getTargetInstFunc = void 0,
  37469. handleEventFunc = void 0;
  37470. if (shouldUseChangeEvent(targetNode)) {
  37471. getTargetInstFunc = getTargetInstForChangeEvent;
  37472. } else if (isTextInputElement(targetNode)) {
  37473. if (isInputEventSupported) {
  37474. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  37475. } else {
  37476. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  37477. handleEventFunc = handleEventsForInputEventPolyfill;
  37478. }
  37479. } else if (shouldUseClickEvent(targetNode)) {
  37480. getTargetInstFunc = getTargetInstForClickEvent;
  37481. }
  37482. if (getTargetInstFunc) {
  37483. var inst = getTargetInstFunc(topLevelType, targetInst);
  37484. if (inst) {
  37485. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  37486. return event;
  37487. }
  37488. }
  37489. if (handleEventFunc) {
  37490. handleEventFunc(topLevelType, targetNode, targetInst);
  37491. }
  37492. // When blurring, set the value attribute for number inputs
  37493. if (topLevelType === TOP_BLUR) {
  37494. handleControlledInputBlur(targetNode);
  37495. }
  37496. }
  37497. };
  37498. /**
  37499. * Module that is injectable into `EventPluginHub`, that specifies a
  37500. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  37501. * plugins, without having to package every one of them. This is better than
  37502. * having plugins be ordered in the same order that they are injected because
  37503. * that ordering would be influenced by the packaging order.
  37504. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  37505. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  37506. */
  37507. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  37508. var SyntheticUIEvent = SyntheticEvent.extend({
  37509. view: null,
  37510. detail: null
  37511. });
  37512. var modifierKeyToProp = {
  37513. Alt: 'altKey',
  37514. Control: 'ctrlKey',
  37515. Meta: 'metaKey',
  37516. Shift: 'shiftKey'
  37517. };
  37518. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  37519. // getModifierState. If getModifierState is not supported, we map it to a set of
  37520. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  37521. /**
  37522. * Translation from modifier key to the associated property in the event.
  37523. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  37524. */
  37525. function modifierStateGetter(keyArg) {
  37526. var syntheticEvent = this;
  37527. var nativeEvent = syntheticEvent.nativeEvent;
  37528. if (nativeEvent.getModifierState) {
  37529. return nativeEvent.getModifierState(keyArg);
  37530. }
  37531. var keyProp = modifierKeyToProp[keyArg];
  37532. return keyProp ? !!nativeEvent[keyProp] : false;
  37533. }
  37534. function getEventModifierState(nativeEvent) {
  37535. return modifierStateGetter;
  37536. }
  37537. var previousScreenX = 0;
  37538. var previousScreenY = 0;
  37539. // Use flags to signal movementX/Y has already been set
  37540. var isMovementXSet = false;
  37541. var isMovementYSet = false;
  37542. /**
  37543. * @interface MouseEvent
  37544. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37545. */
  37546. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  37547. screenX: null,
  37548. screenY: null,
  37549. clientX: null,
  37550. clientY: null,
  37551. pageX: null,
  37552. pageY: null,
  37553. ctrlKey: null,
  37554. shiftKey: null,
  37555. altKey: null,
  37556. metaKey: null,
  37557. getModifierState: getEventModifierState,
  37558. button: null,
  37559. buttons: null,
  37560. relatedTarget: function (event) {
  37561. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  37562. },
  37563. movementX: function (event) {
  37564. if ('movementX' in event) {
  37565. return event.movementX;
  37566. }
  37567. var screenX = previousScreenX;
  37568. previousScreenX = event.screenX;
  37569. if (!isMovementXSet) {
  37570. isMovementXSet = true;
  37571. return 0;
  37572. }
  37573. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  37574. },
  37575. movementY: function (event) {
  37576. if ('movementY' in event) {
  37577. return event.movementY;
  37578. }
  37579. var screenY = previousScreenY;
  37580. previousScreenY = event.screenY;
  37581. if (!isMovementYSet) {
  37582. isMovementYSet = true;
  37583. return 0;
  37584. }
  37585. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  37586. }
  37587. });
  37588. /**
  37589. * @interface PointerEvent
  37590. * @see http://www.w3.org/TR/pointerevents/
  37591. */
  37592. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  37593. pointerId: null,
  37594. width: null,
  37595. height: null,
  37596. pressure: null,
  37597. tangentialPressure: null,
  37598. tiltX: null,
  37599. tiltY: null,
  37600. twist: null,
  37601. pointerType: null,
  37602. isPrimary: null
  37603. });
  37604. var eventTypes$2 = {
  37605. mouseEnter: {
  37606. registrationName: 'onMouseEnter',
  37607. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37608. },
  37609. mouseLeave: {
  37610. registrationName: 'onMouseLeave',
  37611. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37612. },
  37613. pointerEnter: {
  37614. registrationName: 'onPointerEnter',
  37615. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37616. },
  37617. pointerLeave: {
  37618. registrationName: 'onPointerLeave',
  37619. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37620. }
  37621. };
  37622. var EnterLeaveEventPlugin = {
  37623. eventTypes: eventTypes$2,
  37624. /**
  37625. * For almost every interaction we care about, there will be both a top-level
  37626. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  37627. * we do not extract duplicate events. However, moving the mouse into the
  37628. * browser from outside will not fire a `mouseout` event. In this case, we use
  37629. * the `mouseover` top-level event.
  37630. */
  37631. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37632. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  37633. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  37634. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  37635. return null;
  37636. }
  37637. if (!isOutEvent && !isOverEvent) {
  37638. // Must not be a mouse or pointer in or out - ignoring.
  37639. return null;
  37640. }
  37641. var win = void 0;
  37642. if (nativeEventTarget.window === nativeEventTarget) {
  37643. // `nativeEventTarget` is probably a window object.
  37644. win = nativeEventTarget;
  37645. } else {
  37646. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  37647. var doc = nativeEventTarget.ownerDocument;
  37648. if (doc) {
  37649. win = doc.defaultView || doc.parentWindow;
  37650. } else {
  37651. win = window;
  37652. }
  37653. }
  37654. var from = void 0;
  37655. var to = void 0;
  37656. if (isOutEvent) {
  37657. from = targetInst;
  37658. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  37659. to = related ? getClosestInstanceFromNode(related) : null;
  37660. } else {
  37661. // Moving to a node from outside the window.
  37662. from = null;
  37663. to = targetInst;
  37664. }
  37665. if (from === to) {
  37666. // Nothing pertains to our managed components.
  37667. return null;
  37668. }
  37669. var eventInterface = void 0,
  37670. leaveEventType = void 0,
  37671. enterEventType = void 0,
  37672. eventTypePrefix = void 0;
  37673. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  37674. eventInterface = SyntheticMouseEvent;
  37675. leaveEventType = eventTypes$2.mouseLeave;
  37676. enterEventType = eventTypes$2.mouseEnter;
  37677. eventTypePrefix = 'mouse';
  37678. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  37679. eventInterface = SyntheticPointerEvent;
  37680. leaveEventType = eventTypes$2.pointerLeave;
  37681. enterEventType = eventTypes$2.pointerEnter;
  37682. eventTypePrefix = 'pointer';
  37683. }
  37684. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  37685. var toNode = to == null ? win : getNodeFromInstance$1(to);
  37686. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  37687. leave.type = eventTypePrefix + 'leave';
  37688. leave.target = fromNode;
  37689. leave.relatedTarget = toNode;
  37690. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  37691. enter.type = eventTypePrefix + 'enter';
  37692. enter.target = toNode;
  37693. enter.relatedTarget = fromNode;
  37694. accumulateEnterLeaveDispatches(leave, enter, from, to);
  37695. return [leave, enter];
  37696. }
  37697. };
  37698. /**
  37699. * inlined Object.is polyfill to avoid requiring consumers ship their own
  37700. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  37701. */
  37702. function is(x, y) {
  37703. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  37704. ;
  37705. }
  37706. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  37707. /**
  37708. * Performs equality by iterating through keys on an object and returning false
  37709. * when any key has values which are not strictly equal between the arguments.
  37710. * Returns true when the values of all keys are strictly equal.
  37711. */
  37712. function shallowEqual(objA, objB) {
  37713. if (is(objA, objB)) {
  37714. return true;
  37715. }
  37716. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  37717. return false;
  37718. }
  37719. var keysA = Object.keys(objA);
  37720. var keysB = Object.keys(objB);
  37721. if (keysA.length !== keysB.length) {
  37722. return false;
  37723. }
  37724. // Test for A's keys different from B.
  37725. for (var i = 0; i < keysA.length; i++) {
  37726. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  37727. return false;
  37728. }
  37729. }
  37730. return true;
  37731. }
  37732. var PLUGIN_EVENT_SYSTEM = 1;
  37733. var RESPONDER_EVENT_SYSTEM = 1 << 1;
  37734. var IS_PASSIVE = 1 << 2;
  37735. var IS_ACTIVE = 1 << 3;
  37736. var PASSIVE_NOT_SUPPORTED = 1 << 4;
  37737. function createResponderListener(responder, props) {
  37738. var eventResponderListener = {
  37739. responder: responder,
  37740. props: props
  37741. };
  37742. {
  37743. Object.freeze(eventResponderListener);
  37744. }
  37745. return eventResponderListener;
  37746. }
  37747. function isFiberSuspenseAndTimedOut(fiber) {
  37748. return fiber.tag === SuspenseComponent && fiber.memoizedState !== null;
  37749. }
  37750. function getSuspenseFallbackChild(fiber) {
  37751. return fiber.child.sibling.child;
  37752. }
  37753. function createResponderInstance(responder, responderProps, responderState, target, fiber) {
  37754. return {
  37755. fiber: fiber,
  37756. props: responderProps,
  37757. responder: responder,
  37758. rootEventTypes: null,
  37759. state: responderState,
  37760. target: target
  37761. };
  37762. }
  37763. var DiscreteEvent = 0;
  37764. var UserBlockingEvent = 1;
  37765. var ContinuousEvent = 2;
  37766. // Intentionally not named imports because Rollup would use dynamic dispatch for
  37767. // CommonJS interop named imports.
  37768. var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority;
  37769. var runWithPriority$1 = Scheduler.unstable_runWithPriority;
  37770. var listenToResponderEventTypesImpl = void 0;
  37771. function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
  37772. listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
  37773. }
  37774. var activeTimeouts = new Map();
  37775. var rootEventTypesToEventResponderInstances = new Map();
  37776. var ownershipChangeListeners = new Set();
  37777. var globalOwner = null;
  37778. var currentTimeStamp = 0;
  37779. var currentTimers = new Map();
  37780. var currentInstance = null;
  37781. var currentEventQueue = null;
  37782. var currentEventQueuePriority = ContinuousEvent;
  37783. var currentTimerIDCounter = 0;
  37784. var currentDocument = null;
  37785. var eventResponderContext = {
  37786. dispatchEvent: function (eventValue, eventListener, eventPriority) {
  37787. validateResponderContext();
  37788. validateEventValue(eventValue);
  37789. if (eventPriority < currentEventQueuePriority) {
  37790. currentEventQueuePriority = eventPriority;
  37791. }
  37792. currentEventQueue.push(createEventQueueItem(eventValue, eventListener));
  37793. },
  37794. isTargetWithinResponder: function (target) {
  37795. validateResponderContext();
  37796. if (target != null) {
  37797. var fiber = getClosestInstanceFromNode(target);
  37798. var responderFiber = currentInstance.fiber;
  37799. while (fiber !== null) {
  37800. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  37801. return true;
  37802. }
  37803. fiber = fiber.return;
  37804. }
  37805. }
  37806. return false;
  37807. },
  37808. isTargetWithinResponderScope: function (target) {
  37809. validateResponderContext();
  37810. var componentInstance = currentInstance;
  37811. var responder = componentInstance.responder;
  37812. if (target != null) {
  37813. var fiber = getClosestInstanceFromNode(target);
  37814. var responderFiber = currentInstance.fiber;
  37815. while (fiber !== null) {
  37816. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  37817. return true;
  37818. }
  37819. if (doesFiberHaveResponder(fiber, responder)) {
  37820. return false;
  37821. }
  37822. fiber = fiber.return;
  37823. }
  37824. }
  37825. return false;
  37826. },
  37827. isTargetWithinNode: function (childTarget, parentTarget) {
  37828. validateResponderContext();
  37829. var childFiber = getClosestInstanceFromNode(childTarget);
  37830. var parentFiber = getClosestInstanceFromNode(parentTarget);
  37831. var parentAlternateFiber = parentFiber.alternate;
  37832. var node = childFiber;
  37833. while (node !== null) {
  37834. if (node === parentFiber || node === parentAlternateFiber) {
  37835. return true;
  37836. }
  37837. node = node.return;
  37838. }
  37839. return false;
  37840. },
  37841. addRootEventTypes: function (rootEventTypes) {
  37842. validateResponderContext();
  37843. var activeDocument = getActiveDocument();
  37844. listenToResponderEventTypesImpl(rootEventTypes, activeDocument);
  37845. for (var i = 0; i < rootEventTypes.length; i++) {
  37846. var rootEventType = rootEventTypes[i];
  37847. var eventResponderInstance = currentInstance;
  37848. registerRootEventType(rootEventType, eventResponderInstance);
  37849. }
  37850. },
  37851. removeRootEventTypes: function (rootEventTypes) {
  37852. validateResponderContext();
  37853. for (var i = 0; i < rootEventTypes.length; i++) {
  37854. var rootEventType = rootEventTypes[i];
  37855. var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
  37856. var rootEventTypesSet = currentInstance.rootEventTypes;
  37857. if (rootEventTypesSet !== null) {
  37858. rootEventTypesSet.delete(rootEventType);
  37859. }
  37860. if (rootEventResponders !== undefined) {
  37861. rootEventResponders.delete(currentInstance);
  37862. }
  37863. }
  37864. },
  37865. hasOwnership: function () {
  37866. validateResponderContext();
  37867. return globalOwner === currentInstance;
  37868. },
  37869. requestGlobalOwnership: function () {
  37870. validateResponderContext();
  37871. if (globalOwner !== null) {
  37872. return false;
  37873. }
  37874. globalOwner = currentInstance;
  37875. triggerOwnershipListeners();
  37876. return true;
  37877. },
  37878. releaseOwnership: function () {
  37879. validateResponderContext();
  37880. return releaseOwnershipForEventResponderInstance(currentInstance);
  37881. },
  37882. setTimeout: function (func, delay) {
  37883. validateResponderContext();
  37884. if (currentTimers === null) {
  37885. currentTimers = new Map();
  37886. }
  37887. var timeout = currentTimers.get(delay);
  37888. var timerId = currentTimerIDCounter++;
  37889. if (timeout === undefined) {
  37890. var _timers = new Map();
  37891. var _id = setTimeout(function () {
  37892. processTimers(_timers, delay);
  37893. }, delay);
  37894. timeout = {
  37895. id: _id,
  37896. timers: _timers
  37897. };
  37898. currentTimers.set(delay, timeout);
  37899. }
  37900. timeout.timers.set(timerId, {
  37901. instance: currentInstance,
  37902. func: func,
  37903. id: timerId,
  37904. timeStamp: currentTimeStamp
  37905. });
  37906. activeTimeouts.set(timerId, timeout);
  37907. return timerId;
  37908. },
  37909. clearTimeout: function (timerId) {
  37910. validateResponderContext();
  37911. var timeout = activeTimeouts.get(timerId);
  37912. if (timeout !== undefined) {
  37913. var _timers2 = timeout.timers;
  37914. _timers2.delete(timerId);
  37915. if (_timers2.size === 0) {
  37916. clearTimeout(timeout.id);
  37917. }
  37918. }
  37919. },
  37920. getFocusableElementsInScope: function (deep) {
  37921. validateResponderContext();
  37922. var focusableElements = [];
  37923. var eventResponderInstance = currentInstance;
  37924. var currentResponder = eventResponderInstance.responder;
  37925. var focusScopeFiber = eventResponderInstance.fiber;
  37926. if (deep) {
  37927. var deepNode = focusScopeFiber.return;
  37928. while (deepNode !== null) {
  37929. if (doesFiberHaveResponder(deepNode, currentResponder)) {
  37930. focusScopeFiber = deepNode;
  37931. }
  37932. deepNode = deepNode.return;
  37933. }
  37934. }
  37935. var child = focusScopeFiber.child;
  37936. if (child !== null) {
  37937. collectFocusableElements(child, focusableElements);
  37938. }
  37939. return focusableElements;
  37940. },
  37941. getActiveDocument: getActiveDocument,
  37942. objectAssign: _assign,
  37943. getTimeStamp: function () {
  37944. validateResponderContext();
  37945. return currentTimeStamp;
  37946. },
  37947. isTargetWithinHostComponent: function (target, elementType) {
  37948. validateResponderContext();
  37949. var fiber = getClosestInstanceFromNode(target);
  37950. while (fiber !== null) {
  37951. if (fiber.tag === HostComponent && fiber.type === elementType) {
  37952. return true;
  37953. }
  37954. fiber = fiber.return;
  37955. }
  37956. return false;
  37957. },
  37958. enqueueStateRestore: enqueueStateRestore
  37959. };
  37960. function validateEventValue(eventValue) {
  37961. if (typeof eventValue === 'object' && eventValue !== null) {
  37962. var target = eventValue.target,
  37963. type = eventValue.type,
  37964. _timeStamp = eventValue.timeStamp;
  37965. if (target == null || type == null || _timeStamp == null) {
  37966. throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
  37967. }
  37968. var showWarning = function (name) {
  37969. {
  37970. 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);
  37971. }
  37972. };
  37973. eventValue.preventDefault = function () {
  37974. {
  37975. showWarning('preventDefault()');
  37976. }
  37977. };
  37978. eventValue.stopPropagation = function () {
  37979. {
  37980. showWarning('stopPropagation()');
  37981. }
  37982. };
  37983. eventValue.isDefaultPrevented = function () {
  37984. {
  37985. showWarning('isDefaultPrevented()');
  37986. }
  37987. };
  37988. eventValue.isPropagationStopped = function () {
  37989. {
  37990. showWarning('isPropagationStopped()');
  37991. }
  37992. };
  37993. // $FlowFixMe: we don't need value, Flow thinks we do
  37994. Object.defineProperty(eventValue, 'nativeEvent', {
  37995. get: function () {
  37996. {
  37997. showWarning('nativeEvent');
  37998. }
  37999. }
  38000. });
  38001. }
  38002. }
  38003. function collectFocusableElements(node, focusableElements) {
  38004. if (isFiberSuspenseAndTimedOut(node)) {
  38005. var fallbackChild = getSuspenseFallbackChild(node);
  38006. if (fallbackChild !== null) {
  38007. collectFocusableElements(fallbackChild, focusableElements);
  38008. }
  38009. } else {
  38010. if (isFiberHostComponentFocusable(node)) {
  38011. focusableElements.push(node.stateNode);
  38012. } else {
  38013. var child = node.child;
  38014. if (child !== null) {
  38015. collectFocusableElements(child, focusableElements);
  38016. }
  38017. }
  38018. }
  38019. var sibling = node.sibling;
  38020. if (sibling !== null) {
  38021. collectFocusableElements(sibling, focusableElements);
  38022. }
  38023. }
  38024. function createEventQueueItem(value, listener) {
  38025. return {
  38026. value: value,
  38027. listener: listener
  38028. };
  38029. }
  38030. function doesFiberHaveResponder(fiber, responder) {
  38031. if (fiber.tag === HostComponent) {
  38032. var dependencies = fiber.dependencies;
  38033. if (dependencies !== null) {
  38034. var respondersMap = dependencies.responders;
  38035. if (respondersMap !== null && respondersMap.has(responder)) {
  38036. return true;
  38037. }
  38038. }
  38039. }
  38040. return false;
  38041. }
  38042. function getActiveDocument() {
  38043. return currentDocument;
  38044. }
  38045. function releaseOwnershipForEventResponderInstance(eventResponderInstance) {
  38046. if (globalOwner === eventResponderInstance) {
  38047. globalOwner = null;
  38048. triggerOwnershipListeners();
  38049. return true;
  38050. }
  38051. return false;
  38052. }
  38053. function isFiberHostComponentFocusable(fiber) {
  38054. if (fiber.tag !== HostComponent) {
  38055. return false;
  38056. }
  38057. var type = fiber.type,
  38058. memoizedProps = fiber.memoizedProps;
  38059. if (memoizedProps.tabIndex === -1 || memoizedProps.disabled) {
  38060. return false;
  38061. }
  38062. if (memoizedProps.tabIndex === 0 || memoizedProps.contentEditable === true) {
  38063. return true;
  38064. }
  38065. if (type === 'a' || type === 'area') {
  38066. return !!memoizedProps.href && memoizedProps.rel !== 'ignore';
  38067. }
  38068. if (type === 'input') {
  38069. return memoizedProps.type !== 'hidden' && memoizedProps.type !== 'file';
  38070. }
  38071. return type === 'button' || type === 'textarea' || type === 'object' || type === 'select' || type === 'iframe' || type === 'embed';
  38072. }
  38073. function processTimers(timers, delay) {
  38074. var timersArr = Array.from(timers.values());
  38075. currentEventQueuePriority = ContinuousEvent;
  38076. try {
  38077. for (var i = 0; i < timersArr.length; i++) {
  38078. var _timersArr$i = timersArr[i],
  38079. _instance = _timersArr$i.instance,
  38080. _func = _timersArr$i.func,
  38081. _id2 = _timersArr$i.id,
  38082. _timeStamp2 = _timersArr$i.timeStamp;
  38083. currentInstance = _instance;
  38084. currentEventQueue = [];
  38085. currentTimeStamp = _timeStamp2 + delay;
  38086. try {
  38087. _func();
  38088. } finally {
  38089. activeTimeouts.delete(_id2);
  38090. }
  38091. }
  38092. processEventQueue();
  38093. } finally {
  38094. currentTimers = null;
  38095. currentInstance = null;
  38096. currentEventQueue = null;
  38097. currentTimeStamp = 0;
  38098. }
  38099. }
  38100. function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
  38101. var _ref = nativeEvent,
  38102. pointerType = _ref.pointerType;
  38103. var eventPointerType = '';
  38104. var pointerId = null;
  38105. if (pointerType !== undefined) {
  38106. eventPointerType = pointerType;
  38107. pointerId = nativeEvent.pointerId;
  38108. } else if (nativeEvent.key !== undefined) {
  38109. eventPointerType = 'keyboard';
  38110. } else if (nativeEvent.button !== undefined) {
  38111. eventPointerType = 'mouse';
  38112. } else if (nativeEvent.changedTouches !== undefined) {
  38113. eventPointerType = 'touch';
  38114. }
  38115. return {
  38116. nativeEvent: nativeEvent,
  38117. passive: passive,
  38118. passiveSupported: passiveSupported,
  38119. pointerId: pointerId,
  38120. pointerType: eventPointerType,
  38121. responderTarget: null,
  38122. target: nativeEventTarget,
  38123. type: topLevelType
  38124. };
  38125. }
  38126. function processEvents(eventQueue) {
  38127. for (var i = 0, length = eventQueue.length; i < length; i++) {
  38128. var _eventQueue$i = eventQueue[i],
  38129. _value = _eventQueue$i.value,
  38130. _listener = _eventQueue$i.listener;
  38131. var type = typeof _value === 'object' && _value !== null ? _value.type : '';
  38132. invokeGuardedCallbackAndCatchFirstError(type, _listener, undefined, _value);
  38133. }
  38134. }
  38135. function processEventQueue() {
  38136. var eventQueue = currentEventQueue;
  38137. if (eventQueue.length === 0) {
  38138. return;
  38139. }
  38140. switch (currentEventQueuePriority) {
  38141. case DiscreteEvent:
  38142. {
  38143. flushDiscreteUpdatesIfNeeded(currentTimeStamp);
  38144. discreteUpdates(function () {
  38145. batchedEventUpdates(processEvents, eventQueue);
  38146. });
  38147. break;
  38148. }
  38149. case UserBlockingEvent:
  38150. {
  38151. if (enableUserBlockingEvents) {
  38152. runWithPriority$1(UserBlockingPriority$1, batchedEventUpdates.bind(null, processEvents, eventQueue));
  38153. } else {
  38154. batchedEventUpdates(processEvents, eventQueue);
  38155. }
  38156. break;
  38157. }
  38158. case ContinuousEvent:
  38159. {
  38160. batchedEventUpdates(processEvents, eventQueue);
  38161. break;
  38162. }
  38163. }
  38164. }
  38165. function responderEventTypesContainType(eventTypes, type) {
  38166. for (var i = 0, len = eventTypes.length; i < len; i++) {
  38167. if (eventTypes[i] === type) {
  38168. return true;
  38169. }
  38170. }
  38171. return false;
  38172. }
  38173. function validateResponderTargetEventTypes(eventType, responder) {
  38174. var targetEventTypes = responder.targetEventTypes;
  38175. // Validate the target event type exists on the responder
  38176. if (targetEventTypes !== null) {
  38177. return responderEventTypesContainType(targetEventTypes, eventType);
  38178. }
  38179. return false;
  38180. }
  38181. function validateOwnership(responderInstance) {
  38182. return globalOwner === null || globalOwner === responderInstance;
  38183. }
  38184. function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  38185. var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
  38186. var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
  38187. var isPassive = isPassiveEvent || !isPassiveSupported;
  38188. var eventType = isPassive ? topLevelType : topLevelType + '_active';
  38189. // Trigger event responders in this order:
  38190. // - Bubble target responder phase
  38191. // - Root responder phase
  38192. var visitedResponders = new Set();
  38193. var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
  38194. var node = targetFiber;
  38195. while (node !== null) {
  38196. var _node = node,
  38197. dependencies = _node.dependencies,
  38198. tag = _node.tag;
  38199. if (tag === HostComponent && dependencies !== null) {
  38200. var respondersMap = dependencies.responders;
  38201. if (respondersMap !== null) {
  38202. var responderInstances = Array.from(respondersMap.values());
  38203. for (var i = 0, length = responderInstances.length; i < length; i++) {
  38204. var responderInstance = responderInstances[i];
  38205. if (validateOwnership(responderInstance)) {
  38206. var props = responderInstance.props,
  38207. responder = responderInstance.responder,
  38208. state = responderInstance.state,
  38209. target = responderInstance.target;
  38210. if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder)) {
  38211. visitedResponders.add(responder);
  38212. var onEvent = responder.onEvent;
  38213. if (onEvent !== null) {
  38214. currentInstance = responderInstance;
  38215. responderEvent.responderTarget = target;
  38216. onEvent(responderEvent, eventResponderContext, props, state);
  38217. }
  38218. }
  38219. }
  38220. }
  38221. }
  38222. }
  38223. node = node.return;
  38224. }
  38225. // Root phase
  38226. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
  38227. if (rootEventResponderInstances !== undefined) {
  38228. var _responderInstances = Array.from(rootEventResponderInstances);
  38229. for (var _i = 0; _i < _responderInstances.length; _i++) {
  38230. var _responderInstance = _responderInstances[_i];
  38231. if (!validateOwnership(_responderInstance)) {
  38232. continue;
  38233. }
  38234. var _props = _responderInstance.props,
  38235. _responder = _responderInstance.responder,
  38236. _state = _responderInstance.state,
  38237. _target = _responderInstance.target;
  38238. var onRootEvent = _responder.onRootEvent;
  38239. if (onRootEvent !== null) {
  38240. currentInstance = _responderInstance;
  38241. responderEvent.responderTarget = _target;
  38242. onRootEvent(responderEvent, eventResponderContext, _props, _state);
  38243. }
  38244. }
  38245. }
  38246. }
  38247. function triggerOwnershipListeners() {
  38248. var listeningInstances = Array.from(ownershipChangeListeners);
  38249. var previousInstance = currentInstance;
  38250. var previousEventQueuePriority = currentEventQueuePriority;
  38251. var previousEventQueue = currentEventQueue;
  38252. try {
  38253. for (var i = 0; i < listeningInstances.length; i++) {
  38254. var _instance2 = listeningInstances[i];
  38255. var props = _instance2.props,
  38256. responder = _instance2.responder,
  38257. state = _instance2.state;
  38258. currentInstance = _instance2;
  38259. currentEventQueuePriority = ContinuousEvent;
  38260. currentEventQueue = [];
  38261. var onOwnershipChange = responder.onOwnershipChange;
  38262. if (onOwnershipChange !== null) {
  38263. onOwnershipChange(eventResponderContext, props, state);
  38264. }
  38265. }
  38266. processEventQueue();
  38267. } finally {
  38268. currentInstance = previousInstance;
  38269. currentEventQueue = previousEventQueue;
  38270. currentEventQueuePriority = previousEventQueuePriority;
  38271. }
  38272. }
  38273. function mountEventResponder(responder, responderInstance, props, state) {
  38274. if (responder.onOwnershipChange !== null) {
  38275. ownershipChangeListeners.add(responderInstance);
  38276. }
  38277. var onMount = responder.onMount;
  38278. if (onMount !== null) {
  38279. currentEventQueuePriority = ContinuousEvent;
  38280. currentInstance = responderInstance;
  38281. currentEventQueue = [];
  38282. try {
  38283. onMount(eventResponderContext, props, state);
  38284. processEventQueue();
  38285. } finally {
  38286. currentEventQueue = null;
  38287. currentInstance = null;
  38288. currentTimers = null;
  38289. }
  38290. }
  38291. }
  38292. function unmountEventResponder(responderInstance) {
  38293. var responder = responderInstance.responder;
  38294. var onUnmount = responder.onUnmount;
  38295. if (onUnmount !== null) {
  38296. var props = responderInstance.props,
  38297. state = responderInstance.state;
  38298. currentEventQueue = [];
  38299. currentEventQueuePriority = ContinuousEvent;
  38300. currentInstance = responderInstance;
  38301. try {
  38302. onUnmount(eventResponderContext, props, state);
  38303. processEventQueue();
  38304. } finally {
  38305. currentEventQueue = null;
  38306. currentInstance = null;
  38307. currentTimers = null;
  38308. }
  38309. }
  38310. releaseOwnershipForEventResponderInstance(responderInstance);
  38311. if (responder.onOwnershipChange !== null) {
  38312. ownershipChangeListeners.delete(responderInstance);
  38313. }
  38314. var rootEventTypesSet = responderInstance.rootEventTypes;
  38315. if (rootEventTypesSet !== null) {
  38316. var rootEventTypes = Array.from(rootEventTypesSet);
  38317. for (var i = 0; i < rootEventTypes.length; i++) {
  38318. var topLevelEventType = rootEventTypes[i];
  38319. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
  38320. if (rootEventResponderInstances !== undefined) {
  38321. rootEventResponderInstances.delete(responderInstance);
  38322. }
  38323. }
  38324. }
  38325. }
  38326. function validateResponderContext() {
  38327. (function () {
  38328. if (!(currentInstance !== null)) {
  38329. {
  38330. 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 .'));
  38331. }
  38332. }
  38333. })();
  38334. }
  38335. function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  38336. if (enableFlareAPI) {
  38337. var previousEventQueue = currentEventQueue;
  38338. var previousInstance = currentInstance;
  38339. var previousTimers = currentTimers;
  38340. var previousTimeStamp = currentTimeStamp;
  38341. var previousDocument = currentDocument;
  38342. var previousEventQueuePriority = currentEventQueuePriority;
  38343. currentTimers = null;
  38344. currentEventQueue = [];
  38345. currentEventQueuePriority = ContinuousEvent;
  38346. // nodeType 9 is DOCUMENT_NODE
  38347. currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument;
  38348. // We might want to control timeStamp another way here
  38349. currentTimeStamp = nativeEvent.timeStamp;
  38350. try {
  38351. traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
  38352. processEventQueue();
  38353. } finally {
  38354. currentTimers = previousTimers;
  38355. currentInstance = previousInstance;
  38356. currentEventQueue = previousEventQueue;
  38357. currentTimeStamp = previousTimeStamp;
  38358. currentDocument = previousDocument;
  38359. currentEventQueuePriority = previousEventQueuePriority;
  38360. }
  38361. }
  38362. }
  38363. function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
  38364. for (var i = 0; i < rootEventTypes.length; i++) {
  38365. var rootEventType = rootEventTypes[i];
  38366. registerRootEventType(rootEventType, responderInstance);
  38367. }
  38368. }
  38369. function registerRootEventType(rootEventType, eventResponderInstance) {
  38370. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
  38371. if (rootEventResponderInstances === undefined) {
  38372. rootEventResponderInstances = new Set();
  38373. rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
  38374. }
  38375. var rootEventTypesSet = eventResponderInstance.rootEventTypes;
  38376. if (rootEventTypesSet === null) {
  38377. rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
  38378. }
  38379. (function () {
  38380. if (!!rootEventTypesSet.has(rootEventType)) {
  38381. {
  38382. 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.'));
  38383. }
  38384. }
  38385. })();
  38386. rootEventTypesSet.add(rootEventType);
  38387. rootEventResponderInstances.add(eventResponderInstance);
  38388. }
  38389. /**
  38390. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  38391. * instance (key) and the internal representation (value). This allows public
  38392. * methods to accept the user facing instance as an argument and map them back
  38393. * to internal methods.
  38394. *
  38395. * Note that this module is currently shared and assumed to be stateless.
  38396. * If this becomes an actual Map, that will break.
  38397. */
  38398. /**
  38399. * This API should be called `delete` but we'd have to make sure to always
  38400. * transform these to strings for IE support. When this transform is fully
  38401. * supported we can rename it.
  38402. */
  38403. function get(key) {
  38404. return key._reactInternalFiber;
  38405. }
  38406. function has(key) {
  38407. return key._reactInternalFiber !== undefined;
  38408. }
  38409. function set(key, value) {
  38410. key._reactInternalFiber = value;
  38411. }
  38412. // Don't change these two values. They're used by React Dev Tools.
  38413. var NoEffect = /* */0;
  38414. var PerformedWork = /* */1;
  38415. // You can change the rest (and add more).
  38416. var Placement = /* */2;
  38417. var Update = /* */4;
  38418. var PlacementAndUpdate = /* */6;
  38419. var Deletion = /* */8;
  38420. var ContentReset = /* */16;
  38421. var Callback = /* */32;
  38422. var DidCapture = /* */64;
  38423. var Ref = /* */128;
  38424. var Snapshot = /* */256;
  38425. var Passive = /* */512;
  38426. // Passive & Update & Callback & Ref & Snapshot
  38427. var LifecycleEffectMask = /* */932;
  38428. // Union of all host effects
  38429. var HostEffectMask = /* */1023;
  38430. var Incomplete = /* */1024;
  38431. var ShouldCapture = /* */2048;
  38432. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  38433. var MOUNTING = 1;
  38434. var MOUNTED = 2;
  38435. var UNMOUNTED = 3;
  38436. function isFiberMountedImpl(fiber) {
  38437. var node = fiber;
  38438. if (!fiber.alternate) {
  38439. // If there is no alternate, this might be a new tree that isn't inserted
  38440. // yet. If it is, then it will have a pending insertion effect on it.
  38441. if ((node.effectTag & Placement) !== NoEffect) {
  38442. return MOUNTING;
  38443. }
  38444. while (node.return) {
  38445. node = node.return;
  38446. if ((node.effectTag & Placement) !== NoEffect) {
  38447. return MOUNTING;
  38448. }
  38449. }
  38450. } else {
  38451. while (node.return) {
  38452. node = node.return;
  38453. }
  38454. }
  38455. if (node.tag === HostRoot) {
  38456. // TODO: Check if this was a nested HostRoot when used with
  38457. // renderContainerIntoSubtree.
  38458. return MOUNTED;
  38459. }
  38460. // If we didn't hit the root, that means that we're in an disconnected tree
  38461. // that has been unmounted.
  38462. return UNMOUNTED;
  38463. }
  38464. function isFiberMounted(fiber) {
  38465. return isFiberMountedImpl(fiber) === MOUNTED;
  38466. }
  38467. function isMounted(component) {
  38468. {
  38469. var owner = ReactCurrentOwner$1.current;
  38470. if (owner !== null && owner.tag === ClassComponent) {
  38471. var ownerFiber = owner;
  38472. var instance = ownerFiber.stateNode;
  38473. !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;
  38474. instance._warnedAboutRefsInRender = true;
  38475. }
  38476. }
  38477. var fiber = get(component);
  38478. if (!fiber) {
  38479. return false;
  38480. }
  38481. return isFiberMountedImpl(fiber) === MOUNTED;
  38482. }
  38483. function assertIsMounted(fiber) {
  38484. (function () {
  38485. if (!(isFiberMountedImpl(fiber) === MOUNTED)) {
  38486. {
  38487. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38488. }
  38489. }
  38490. })();
  38491. }
  38492. function findCurrentFiberUsingSlowPath(fiber) {
  38493. var alternate = fiber.alternate;
  38494. if (!alternate) {
  38495. // If there is no alternate, then we only need to check if it is mounted.
  38496. var state = isFiberMountedImpl(fiber);
  38497. (function () {
  38498. if (!(state !== UNMOUNTED)) {
  38499. {
  38500. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38501. }
  38502. }
  38503. })();
  38504. if (state === MOUNTING) {
  38505. return null;
  38506. }
  38507. return fiber;
  38508. }
  38509. // If we have two possible branches, we'll walk backwards up to the root
  38510. // to see what path the root points to. On the way we may hit one of the
  38511. // special cases and we'll deal with them.
  38512. var a = fiber;
  38513. var b = alternate;
  38514. while (true) {
  38515. var parentA = a.return;
  38516. if (parentA === null) {
  38517. // We're at the root.
  38518. break;
  38519. }
  38520. var parentB = parentA.alternate;
  38521. if (parentB === null) {
  38522. // There is no alternate. This is an unusual case. Currently, it only
  38523. // happens when a Suspense component is hidden. An extra fragment fiber
  38524. // is inserted in between the Suspense fiber and its children. Skip
  38525. // over this extra fragment fiber and proceed to the next parent.
  38526. var nextParent = parentA.return;
  38527. if (nextParent !== null) {
  38528. a = b = nextParent;
  38529. continue;
  38530. }
  38531. // If there's no parent, we're at the root.
  38532. break;
  38533. }
  38534. // If both copies of the parent fiber point to the same child, we can
  38535. // assume that the child is current. This happens when we bailout on low
  38536. // priority: the bailed out fiber's child reuses the current child.
  38537. if (parentA.child === parentB.child) {
  38538. var child = parentA.child;
  38539. while (child) {
  38540. if (child === a) {
  38541. // We've determined that A is the current branch.
  38542. assertIsMounted(parentA);
  38543. return fiber;
  38544. }
  38545. if (child === b) {
  38546. // We've determined that B is the current branch.
  38547. assertIsMounted(parentA);
  38548. return alternate;
  38549. }
  38550. child = child.sibling;
  38551. }
  38552. // We should never have an alternate for any mounting node. So the only
  38553. // way this could possibly happen is if this was unmounted, if at all.
  38554. (function () {
  38555. {
  38556. {
  38557. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38558. }
  38559. }
  38560. })();
  38561. }
  38562. if (a.return !== b.return) {
  38563. // The return pointer of A and the return pointer of B point to different
  38564. // fibers. We assume that return pointers never criss-cross, so A must
  38565. // belong to the child set of A.return, and B must belong to the child
  38566. // set of B.return.
  38567. a = parentA;
  38568. b = parentB;
  38569. } else {
  38570. // The return pointers point to the same fiber. We'll have to use the
  38571. // default, slow path: scan the child sets of each parent alternate to see
  38572. // which child belongs to which set.
  38573. //
  38574. // Search parent A's child set
  38575. var didFindChild = false;
  38576. var _child = parentA.child;
  38577. while (_child) {
  38578. if (_child === a) {
  38579. didFindChild = true;
  38580. a = parentA;
  38581. b = parentB;
  38582. break;
  38583. }
  38584. if (_child === b) {
  38585. didFindChild = true;
  38586. b = parentA;
  38587. a = parentB;
  38588. break;
  38589. }
  38590. _child = _child.sibling;
  38591. }
  38592. if (!didFindChild) {
  38593. // Search parent B's child set
  38594. _child = parentB.child;
  38595. while (_child) {
  38596. if (_child === a) {
  38597. didFindChild = true;
  38598. a = parentB;
  38599. b = parentA;
  38600. break;
  38601. }
  38602. if (_child === b) {
  38603. didFindChild = true;
  38604. b = parentB;
  38605. a = parentA;
  38606. break;
  38607. }
  38608. _child = _child.sibling;
  38609. }
  38610. (function () {
  38611. if (!didFindChild) {
  38612. {
  38613. 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.'));
  38614. }
  38615. }
  38616. })();
  38617. }
  38618. }
  38619. (function () {
  38620. if (!(a.alternate === b)) {
  38621. {
  38622. 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.'));
  38623. }
  38624. }
  38625. })();
  38626. }
  38627. // If the root is not a host container, we're in a disconnected tree. I.e.
  38628. // unmounted.
  38629. (function () {
  38630. if (!(a.tag === HostRoot)) {
  38631. {
  38632. throw ReactError(Error('Unable to find node on an unmounted component.'));
  38633. }
  38634. }
  38635. })();
  38636. if (a.stateNode.current === a) {
  38637. // We've determined that A is the current branch.
  38638. return fiber;
  38639. }
  38640. // Otherwise B has to be current branch.
  38641. return alternate;
  38642. }
  38643. function findCurrentHostFiber(parent) {
  38644. var currentParent = findCurrentFiberUsingSlowPath(parent);
  38645. if (!currentParent) {
  38646. return null;
  38647. }
  38648. // Next we'll drill down this component to find the first HostComponent/Text.
  38649. var node = currentParent;
  38650. while (true) {
  38651. if (node.tag === HostComponent || node.tag === HostText) {
  38652. return node;
  38653. } else if (node.child) {
  38654. node.child.return = node;
  38655. node = node.child;
  38656. continue;
  38657. }
  38658. if (node === currentParent) {
  38659. return null;
  38660. }
  38661. while (!node.sibling) {
  38662. if (!node.return || node.return === currentParent) {
  38663. return null;
  38664. }
  38665. node = node.return;
  38666. }
  38667. node.sibling.return = node.return;
  38668. node = node.sibling;
  38669. }
  38670. // Flow needs the return null here, but ESLint complains about it.
  38671. // eslint-disable-next-line no-unreachable
  38672. return null;
  38673. }
  38674. function findCurrentHostFiberWithNoPortals(parent) {
  38675. var currentParent = findCurrentFiberUsingSlowPath(parent);
  38676. if (!currentParent) {
  38677. return null;
  38678. }
  38679. // Next we'll drill down this component to find the first HostComponent/Text.
  38680. var node = currentParent;
  38681. while (true) {
  38682. if (node.tag === HostComponent || node.tag === HostText || node.tag === FundamentalComponent) {
  38683. return node;
  38684. } else if (node.child && node.tag !== HostPortal) {
  38685. node.child.return = node;
  38686. node = node.child;
  38687. continue;
  38688. }
  38689. if (node === currentParent) {
  38690. return null;
  38691. }
  38692. while (!node.sibling) {
  38693. if (!node.return || node.return === currentParent) {
  38694. return null;
  38695. }
  38696. node = node.return;
  38697. }
  38698. node.sibling.return = node.return;
  38699. node = node.sibling;
  38700. }
  38701. // Flow needs the return null here, but ESLint complains about it.
  38702. // eslint-disable-next-line no-unreachable
  38703. return null;
  38704. }
  38705. function addEventBubbleListener(element, eventType, listener) {
  38706. element.addEventListener(eventType, listener, false);
  38707. }
  38708. function addEventCaptureListener(element, eventType, listener) {
  38709. element.addEventListener(eventType, listener, true);
  38710. }
  38711. function addEventCaptureListenerWithPassiveFlag(element, eventType, listener, passive) {
  38712. element.addEventListener(eventType, listener, {
  38713. capture: true,
  38714. passive: passive
  38715. });
  38716. }
  38717. /**
  38718. * @interface Event
  38719. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  38720. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  38721. */
  38722. var SyntheticAnimationEvent = SyntheticEvent.extend({
  38723. animationName: null,
  38724. elapsedTime: null,
  38725. pseudoElement: null
  38726. });
  38727. /**
  38728. * @interface Event
  38729. * @see http://www.w3.org/TR/clipboard-apis/
  38730. */
  38731. var SyntheticClipboardEvent = SyntheticEvent.extend({
  38732. clipboardData: function (event) {
  38733. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  38734. }
  38735. });
  38736. /**
  38737. * @interface FocusEvent
  38738. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38739. */
  38740. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  38741. relatedTarget: null
  38742. });
  38743. /**
  38744. * `charCode` represents the actual "character code" and is safe to use with
  38745. * `String.fromCharCode`. As such, only keys that correspond to printable
  38746. * characters produce a valid `charCode`, the only exception to this is Enter.
  38747. * The Tab-key is considered non-printable and does not have a `charCode`,
  38748. * presumably because it does not produce a tab-character in browsers.
  38749. *
  38750. * @param {object} nativeEvent Native browser event.
  38751. * @return {number} Normalized `charCode` property.
  38752. */
  38753. function getEventCharCode(nativeEvent) {
  38754. var charCode = void 0;
  38755. var keyCode = nativeEvent.keyCode;
  38756. if ('charCode' in nativeEvent) {
  38757. charCode = nativeEvent.charCode;
  38758. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  38759. if (charCode === 0 && keyCode === 13) {
  38760. charCode = 13;
  38761. }
  38762. } else {
  38763. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  38764. charCode = keyCode;
  38765. }
  38766. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  38767. // report Enter as charCode 10 when ctrl is pressed.
  38768. if (charCode === 10) {
  38769. charCode = 13;
  38770. }
  38771. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  38772. // Must not discard the (non-)printable Enter-key.
  38773. if (charCode >= 32 || charCode === 13) {
  38774. return charCode;
  38775. }
  38776. return 0;
  38777. }
  38778. /**
  38779. * Normalization of deprecated HTML5 `key` values
  38780. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  38781. */
  38782. var normalizeKey = {
  38783. Esc: 'Escape',
  38784. Spacebar: ' ',
  38785. Left: 'ArrowLeft',
  38786. Up: 'ArrowUp',
  38787. Right: 'ArrowRight',
  38788. Down: 'ArrowDown',
  38789. Del: 'Delete',
  38790. Win: 'OS',
  38791. Menu: 'ContextMenu',
  38792. Apps: 'ContextMenu',
  38793. Scroll: 'ScrollLock',
  38794. MozPrintableKey: 'Unidentified'
  38795. };
  38796. /**
  38797. * Translation from legacy `keyCode` to HTML5 `key`
  38798. * Only special keys supported, all others depend on keyboard layout or browser
  38799. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  38800. */
  38801. var translateToKey = {
  38802. '8': 'Backspace',
  38803. '9': 'Tab',
  38804. '12': 'Clear',
  38805. '13': 'Enter',
  38806. '16': 'Shift',
  38807. '17': 'Control',
  38808. '18': 'Alt',
  38809. '19': 'Pause',
  38810. '20': 'CapsLock',
  38811. '27': 'Escape',
  38812. '32': ' ',
  38813. '33': 'PageUp',
  38814. '34': 'PageDown',
  38815. '35': 'End',
  38816. '36': 'Home',
  38817. '37': 'ArrowLeft',
  38818. '38': 'ArrowUp',
  38819. '39': 'ArrowRight',
  38820. '40': 'ArrowDown',
  38821. '45': 'Insert',
  38822. '46': 'Delete',
  38823. '112': 'F1',
  38824. '113': 'F2',
  38825. '114': 'F3',
  38826. '115': 'F4',
  38827. '116': 'F5',
  38828. '117': 'F6',
  38829. '118': 'F7',
  38830. '119': 'F8',
  38831. '120': 'F9',
  38832. '121': 'F10',
  38833. '122': 'F11',
  38834. '123': 'F12',
  38835. '144': 'NumLock',
  38836. '145': 'ScrollLock',
  38837. '224': 'Meta'
  38838. };
  38839. /**
  38840. * @param {object} nativeEvent Native browser event.
  38841. * @return {string} Normalized `key` property.
  38842. */
  38843. function getEventKey(nativeEvent) {
  38844. if (nativeEvent.key) {
  38845. // Normalize inconsistent values reported by browsers due to
  38846. // implementations of a working draft specification.
  38847. // FireFox implements `key` but returns `MozPrintableKey` for all
  38848. // printable characters (normalized to `Unidentified`), ignore it.
  38849. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  38850. if (key !== 'Unidentified') {
  38851. return key;
  38852. }
  38853. }
  38854. // Browser does not implement `key`, polyfill as much of it as we can.
  38855. if (nativeEvent.type === 'keypress') {
  38856. var charCode = getEventCharCode(nativeEvent);
  38857. // The enter-key is technically both printable and non-printable and can
  38858. // thus be captured by `keypress`, no other non-printable key should.
  38859. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  38860. }
  38861. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  38862. // While user keyboard layout determines the actual meaning of each
  38863. // `keyCode` value, almost all function keys have a universal value.
  38864. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  38865. }
  38866. return '';
  38867. }
  38868. /**
  38869. * @interface KeyboardEvent
  38870. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38871. */
  38872. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  38873. key: getEventKey,
  38874. location: null,
  38875. ctrlKey: null,
  38876. shiftKey: null,
  38877. altKey: null,
  38878. metaKey: null,
  38879. repeat: null,
  38880. locale: null,
  38881. getModifierState: getEventModifierState,
  38882. // Legacy Interface
  38883. charCode: function (event) {
  38884. // `charCode` is the result of a KeyPress event and represents the value of
  38885. // the actual printable character.
  38886. // KeyPress is deprecated, but its replacement is not yet final and not
  38887. // implemented in any major browser. Only KeyPress has charCode.
  38888. if (event.type === 'keypress') {
  38889. return getEventCharCode(event);
  38890. }
  38891. return 0;
  38892. },
  38893. keyCode: function (event) {
  38894. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  38895. // physical keyboard key.
  38896. // The actual meaning of the value depends on the users' keyboard layout
  38897. // which cannot be detected. Assuming that it is a US keyboard layout
  38898. // provides a surprisingly accurate mapping for US and European users.
  38899. // Due to this, it is left to the user to implement at this time.
  38900. if (event.type === 'keydown' || event.type === 'keyup') {
  38901. return event.keyCode;
  38902. }
  38903. return 0;
  38904. },
  38905. which: function (event) {
  38906. // `which` is an alias for either `keyCode` or `charCode` depending on the
  38907. // type of the event.
  38908. if (event.type === 'keypress') {
  38909. return getEventCharCode(event);
  38910. }
  38911. if (event.type === 'keydown' || event.type === 'keyup') {
  38912. return event.keyCode;
  38913. }
  38914. return 0;
  38915. }
  38916. });
  38917. /**
  38918. * @interface DragEvent
  38919. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38920. */
  38921. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  38922. dataTransfer: null
  38923. });
  38924. /**
  38925. * @interface TouchEvent
  38926. * @see http://www.w3.org/TR/touch-events/
  38927. */
  38928. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  38929. touches: null,
  38930. targetTouches: null,
  38931. changedTouches: null,
  38932. altKey: null,
  38933. metaKey: null,
  38934. ctrlKey: null,
  38935. shiftKey: null,
  38936. getModifierState: getEventModifierState
  38937. });
  38938. /**
  38939. * @interface Event
  38940. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  38941. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  38942. */
  38943. var SyntheticTransitionEvent = SyntheticEvent.extend({
  38944. propertyName: null,
  38945. elapsedTime: null,
  38946. pseudoElement: null
  38947. });
  38948. /**
  38949. * @interface WheelEvent
  38950. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  38951. */
  38952. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  38953. deltaX: function (event) {
  38954. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  38955. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  38956. },
  38957. deltaY: function (event) {
  38958. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  38959. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  38960. 'wheelDelta' in event ? -event.wheelDelta : 0;
  38961. },
  38962. deltaZ: null,
  38963. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  38964. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  38965. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  38966. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  38967. deltaMode: null
  38968. });
  38969. /**
  38970. * Turns
  38971. * ['abort', ...]
  38972. * into
  38973. * eventTypes = {
  38974. * 'abort': {
  38975. * phasedRegistrationNames: {
  38976. * bubbled: 'onAbort',
  38977. * captured: 'onAbortCapture',
  38978. * },
  38979. * dependencies: [TOP_ABORT],
  38980. * },
  38981. * ...
  38982. * };
  38983. * topLevelEventsToDispatchConfig = new Map([
  38984. * [TOP_ABORT, { sameConfig }],
  38985. * ]);
  38986. */
  38987. var eventTuples = [
  38988. // Discrete events
  38989. [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],
  38990. // User-blocking events
  38991. [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],
  38992. // Continuous events
  38993. [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]];
  38994. var eventTypes$4 = {};
  38995. var topLevelEventsToDispatchConfig = {};
  38996. for (var i = 0; i < eventTuples.length; i++) {
  38997. var eventTuple = eventTuples[i];
  38998. var topEvent = eventTuple[0];
  38999. var event = eventTuple[1];
  39000. var eventPriority = eventTuple[2];
  39001. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  39002. var onEvent = 'on' + capitalizedEvent;
  39003. var config = {
  39004. phasedRegistrationNames: {
  39005. bubbled: onEvent,
  39006. captured: onEvent + 'Capture'
  39007. },
  39008. dependencies: [topEvent],
  39009. eventPriority: eventPriority
  39010. };
  39011. eventTypes$4[event] = config;
  39012. topLevelEventsToDispatchConfig[topEvent] = config;
  39013. }
  39014. // Only used in DEV for exhaustiveness validation.
  39015. 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];
  39016. var SimpleEventPlugin = {
  39017. eventTypes: eventTypes$4,
  39018. getEventPriority: function (topLevelType) {
  39019. var config = topLevelEventsToDispatchConfig[topLevelType];
  39020. return config !== undefined ? config.eventPriority : ContinuousEvent;
  39021. },
  39022. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  39023. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  39024. if (!dispatchConfig) {
  39025. return null;
  39026. }
  39027. var EventConstructor = void 0;
  39028. switch (topLevelType) {
  39029. case TOP_KEY_PRESS:
  39030. // Firefox creates a keypress event for function keys too. This removes
  39031. // the unwanted keypress events. Enter is however both printable and
  39032. // non-printable. One would expect Tab to be as well (but it isn't).
  39033. if (getEventCharCode(nativeEvent) === 0) {
  39034. return null;
  39035. }
  39036. /* falls through */
  39037. case TOP_KEY_DOWN:
  39038. case TOP_KEY_UP:
  39039. EventConstructor = SyntheticKeyboardEvent;
  39040. break;
  39041. case TOP_BLUR:
  39042. case TOP_FOCUS:
  39043. EventConstructor = SyntheticFocusEvent;
  39044. break;
  39045. case TOP_CLICK:
  39046. // Firefox creates a click event on right mouse clicks. This removes the
  39047. // unwanted click events.
  39048. if (nativeEvent.button === 2) {
  39049. return null;
  39050. }
  39051. /* falls through */
  39052. case TOP_AUX_CLICK:
  39053. case TOP_DOUBLE_CLICK:
  39054. case TOP_MOUSE_DOWN:
  39055. case TOP_MOUSE_MOVE:
  39056. case TOP_MOUSE_UP:
  39057. // TODO: Disabled elements should not respond to mouse events
  39058. /* falls through */
  39059. case TOP_MOUSE_OUT:
  39060. case TOP_MOUSE_OVER:
  39061. case TOP_CONTEXT_MENU:
  39062. EventConstructor = SyntheticMouseEvent;
  39063. break;
  39064. case TOP_DRAG:
  39065. case TOP_DRAG_END:
  39066. case TOP_DRAG_ENTER:
  39067. case TOP_DRAG_EXIT:
  39068. case TOP_DRAG_LEAVE:
  39069. case TOP_DRAG_OVER:
  39070. case TOP_DRAG_START:
  39071. case TOP_DROP:
  39072. EventConstructor = SyntheticDragEvent;
  39073. break;
  39074. case TOP_TOUCH_CANCEL:
  39075. case TOP_TOUCH_END:
  39076. case TOP_TOUCH_MOVE:
  39077. case TOP_TOUCH_START:
  39078. EventConstructor = SyntheticTouchEvent;
  39079. break;
  39080. case TOP_ANIMATION_END:
  39081. case TOP_ANIMATION_ITERATION:
  39082. case TOP_ANIMATION_START:
  39083. EventConstructor = SyntheticAnimationEvent;
  39084. break;
  39085. case TOP_TRANSITION_END:
  39086. EventConstructor = SyntheticTransitionEvent;
  39087. break;
  39088. case TOP_SCROLL:
  39089. EventConstructor = SyntheticUIEvent;
  39090. break;
  39091. case TOP_WHEEL:
  39092. EventConstructor = SyntheticWheelEvent;
  39093. break;
  39094. case TOP_COPY:
  39095. case TOP_CUT:
  39096. case TOP_PASTE:
  39097. EventConstructor = SyntheticClipboardEvent;
  39098. break;
  39099. case TOP_GOT_POINTER_CAPTURE:
  39100. case TOP_LOST_POINTER_CAPTURE:
  39101. case TOP_POINTER_CANCEL:
  39102. case TOP_POINTER_DOWN:
  39103. case TOP_POINTER_MOVE:
  39104. case TOP_POINTER_OUT:
  39105. case TOP_POINTER_OVER:
  39106. case TOP_POINTER_UP:
  39107. EventConstructor = SyntheticPointerEvent;
  39108. break;
  39109. default:
  39110. {
  39111. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  39112. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  39113. }
  39114. }
  39115. // HTML Events
  39116. // @see http://www.w3.org/TR/html5/index.html#events-0
  39117. EventConstructor = SyntheticEvent;
  39118. break;
  39119. }
  39120. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  39121. accumulateTwoPhaseDispatches(event);
  39122. return event;
  39123. }
  39124. };
  39125. var passiveBrowserEventsSupported = false;
  39126. // Check if browser support events with passive listeners
  39127. // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
  39128. if (enableFlareAPI && canUseDOM) {
  39129. try {
  39130. var options = {};
  39131. // $FlowFixMe: Ignore Flow complaining about needing a value
  39132. Object.defineProperty(options, 'passive', {
  39133. get: function () {
  39134. passiveBrowserEventsSupported = true;
  39135. }
  39136. });
  39137. window.addEventListener('test', options, options);
  39138. window.removeEventListener('test', options, options);
  39139. } catch (e) {
  39140. passiveBrowserEventsSupported = false;
  39141. }
  39142. }
  39143. // Intentionally not named imports because Rollup would use dynamic dispatch for
  39144. // CommonJS interop named imports.
  39145. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  39146. var runWithPriority = Scheduler.unstable_runWithPriority;
  39147. var getEventPriority = SimpleEventPlugin.getEventPriority;
  39148. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  39149. var callbackBookkeepingPool = [];
  39150. /**
  39151. * Find the deepest React component completely containing the root of the
  39152. * passed-in instance (for use when entire React trees are nested within each
  39153. * other). If React trees are not nested, returns null.
  39154. */
  39155. function findRootContainerNode(inst) {
  39156. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  39157. // traversal, but caching is difficult to do correctly without using a
  39158. // mutation observer to listen for all DOM changes.
  39159. while (inst.return) {
  39160. inst = inst.return;
  39161. }
  39162. if (inst.tag !== HostRoot) {
  39163. // This can happen if we're in a detached tree.
  39164. return null;
  39165. }
  39166. return inst.stateNode.containerInfo;
  39167. }
  39168. // Used to store ancestor hierarchy in top level callback
  39169. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  39170. if (callbackBookkeepingPool.length) {
  39171. var instance = callbackBookkeepingPool.pop();
  39172. instance.topLevelType = topLevelType;
  39173. instance.nativeEvent = nativeEvent;
  39174. instance.targetInst = targetInst;
  39175. return instance;
  39176. }
  39177. return {
  39178. topLevelType: topLevelType,
  39179. nativeEvent: nativeEvent,
  39180. targetInst: targetInst,
  39181. ancestors: []
  39182. };
  39183. }
  39184. function releaseTopLevelCallbackBookKeeping(instance) {
  39185. instance.topLevelType = null;
  39186. instance.nativeEvent = null;
  39187. instance.targetInst = null;
  39188. instance.ancestors.length = 0;
  39189. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  39190. callbackBookkeepingPool.push(instance);
  39191. }
  39192. }
  39193. function handleTopLevel(bookKeeping) {
  39194. var targetInst = bookKeeping.targetInst;
  39195. // Loop through the hierarchy, in case there's any nested components.
  39196. // It's important that we build the array of ancestors before calling any
  39197. // event handlers, because event handlers can modify the DOM, leading to
  39198. // inconsistencies with ReactMount's node cache. See #1105.
  39199. var ancestor = targetInst;
  39200. do {
  39201. if (!ancestor) {
  39202. var _ancestors = bookKeeping.ancestors;
  39203. _ancestors.push(ancestor);
  39204. break;
  39205. }
  39206. var root = findRootContainerNode(ancestor);
  39207. if (!root) {
  39208. break;
  39209. }
  39210. bookKeeping.ancestors.push(ancestor);
  39211. ancestor = getClosestInstanceFromNode(root);
  39212. } while (ancestor);
  39213. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  39214. targetInst = bookKeeping.ancestors[i];
  39215. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  39216. var _topLevelType = bookKeeping.topLevelType;
  39217. var _nativeEvent = bookKeeping.nativeEvent;
  39218. runExtractedPluginEventsInBatch(_topLevelType, targetInst, _nativeEvent, eventTarget);
  39219. }
  39220. }
  39221. // TODO: can we stop exporting these?
  39222. var _enabled = true;
  39223. function setEnabled(enabled) {
  39224. _enabled = !!enabled;
  39225. }
  39226. function isEnabled() {
  39227. return _enabled;
  39228. }
  39229. function trapBubbledEvent(topLevelType, element) {
  39230. trapEventForPluginEventSystem(element, topLevelType, false);
  39231. }
  39232. function trapCapturedEvent(topLevelType, element) {
  39233. trapEventForPluginEventSystem(element, topLevelType, true);
  39234. }
  39235. function trapEventForResponderEventSystem(element, topLevelType, passive) {
  39236. if (enableFlareAPI) {
  39237. var rawEventName = getRawEventName(topLevelType);
  39238. var eventFlags = RESPONDER_EVENT_SYSTEM;
  39239. // If passive option is not supported, then the event will be
  39240. // active and not passive, but we flag it as using not being
  39241. // supported too. This way the responder event plugins know,
  39242. // and can provide polyfills if needed.
  39243. if (passive) {
  39244. if (passiveBrowserEventsSupported) {
  39245. eventFlags |= IS_PASSIVE;
  39246. } else {
  39247. eventFlags |= IS_ACTIVE;
  39248. eventFlags |= PASSIVE_NOT_SUPPORTED;
  39249. passive = false;
  39250. }
  39251. } else {
  39252. eventFlags |= IS_ACTIVE;
  39253. }
  39254. // Check if interactive and wrap in discreteUpdates
  39255. var listener = dispatchEvent.bind(null, topLevelType, eventFlags);
  39256. if (passiveBrowserEventsSupported) {
  39257. addEventCaptureListenerWithPassiveFlag(element, rawEventName, listener, passive);
  39258. } else {
  39259. addEventCaptureListener(element, rawEventName, listener);
  39260. }
  39261. }
  39262. }
  39263. function trapEventForPluginEventSystem(element, topLevelType, capture) {
  39264. var listener = void 0;
  39265. switch (getEventPriority(topLevelType)) {
  39266. case DiscreteEvent:
  39267. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39268. break;
  39269. case UserBlockingEvent:
  39270. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39271. break;
  39272. case ContinuousEvent:
  39273. default:
  39274. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  39275. break;
  39276. }
  39277. var rawEventName = getRawEventName(topLevelType);
  39278. if (capture) {
  39279. addEventCaptureListener(element, rawEventName, listener);
  39280. } else {
  39281. addEventBubbleListener(element, rawEventName, listener);
  39282. }
  39283. }
  39284. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
  39285. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  39286. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);
  39287. }
  39288. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, nativeEvent) {
  39289. if (enableUserBlockingEvents) {
  39290. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, nativeEvent));
  39291. } else {
  39292. dispatchEvent(topLevelType, eventSystemFlags, nativeEvent);
  39293. }
  39294. }
  39295. function dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  39296. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  39297. try {
  39298. // Event queue being processed in the same cycle allows
  39299. // `preventDefault`.
  39300. batchedEventUpdates(handleTopLevel, bookKeeping);
  39301. } finally {
  39302. releaseTopLevelCallbackBookKeeping(bookKeeping);
  39303. }
  39304. }
  39305. function dispatchEvent(topLevelType, eventSystemFlags, nativeEvent) {
  39306. if (!_enabled) {
  39307. return;
  39308. }
  39309. var nativeEventTarget = getEventTarget(nativeEvent);
  39310. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  39311. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  39312. // If we get an event (ex: img onload) before committing that
  39313. // component's mount, ignore it for now (that is, treat it as if it was an
  39314. // event on a non-React tree). We might also consider queueing events and
  39315. // dispatching them after the mount.
  39316. targetInst = null;
  39317. }
  39318. if (enableFlareAPI) {
  39319. if (eventSystemFlags === PLUGIN_EVENT_SYSTEM) {
  39320. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  39321. } else {
  39322. // React Flare event system
  39323. dispatchEventForResponderEventSystem(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  39324. }
  39325. } else {
  39326. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  39327. }
  39328. }
  39329. /**
  39330. * Summary of `ReactBrowserEventEmitter` event handling:
  39331. *
  39332. * - Top-level delegation is used to trap most native browser events. This
  39333. * may only occur in the main thread and is the responsibility of
  39334. * ReactDOMEventListener, which is injected and can therefore support
  39335. * pluggable event sources. This is the only work that occurs in the main
  39336. * thread.
  39337. *
  39338. * - We normalize and de-duplicate events to account for browser quirks. This
  39339. * may be done in the worker thread.
  39340. *
  39341. * - Forward these native events (with the associated top-level type used to
  39342. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  39343. * to extract any synthetic events.
  39344. *
  39345. * - The `EventPluginHub` will then process each event by annotating them with
  39346. * "dispatches", a sequence of listeners and IDs that care about that event.
  39347. *
  39348. * - The `EventPluginHub` then dispatches the events.
  39349. *
  39350. * Overview of React and the event system:
  39351. *
  39352. * +------------+ .
  39353. * | DOM | .
  39354. * +------------+ .
  39355. * | .
  39356. * v .
  39357. * +------------+ .
  39358. * | ReactEvent | .
  39359. * | Listener | .
  39360. * +------------+ . +-----------+
  39361. * | . +--------+|SimpleEvent|
  39362. * | . | |Plugin |
  39363. * +-----|------+ . v +-----------+
  39364. * | | | . +--------------+ +------------+
  39365. * | +-----------.--->|EventPluginHub| | Event |
  39366. * | | . | | +-----------+ | Propagators|
  39367. * | ReactEvent | . | | |TapEvent | |------------|
  39368. * | Emitter | . | |<---+|Plugin | |other plugin|
  39369. * | | . | | +-----------+ | utilities |
  39370. * | +-----------.--->| | +------------+
  39371. * | | | . +--------------+
  39372. * +-----|------+ . ^ +-----------+
  39373. * | . | |Enter/Leave|
  39374. * + . +-------+|Plugin |
  39375. * +-------------+ . +-----------+
  39376. * | application | .
  39377. * |-------------| .
  39378. * | | .
  39379. * | | .
  39380. * +-------------+ .
  39381. * .
  39382. * React Core . General Purpose Event Plugin System
  39383. */
  39384. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  39385. var elementListeningSets = new PossiblyWeakMap();
  39386. function getListeningSetForElement(element) {
  39387. var listeningSet = elementListeningSets.get(element);
  39388. if (listeningSet === undefined) {
  39389. listeningSet = new Set();
  39390. elementListeningSets.set(element, listeningSet);
  39391. }
  39392. return listeningSet;
  39393. }
  39394. /**
  39395. * We listen for bubbled touch events on the document object.
  39396. *
  39397. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  39398. * mounting `onmousemove` events at some node that was not the document
  39399. * element. The symptoms were that if your mouse is not moving over something
  39400. * contained within that mount point (for example on the background) the
  39401. * top-level listeners for `onmousemove` won't be called. However, if you
  39402. * register the `mousemove` on the document object, then it will of course
  39403. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  39404. * top-level listeners to the document object only, at least for these
  39405. * movement types of events and possibly all events.
  39406. *
  39407. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  39408. *
  39409. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  39410. * they bubble to document.
  39411. *
  39412. * @param {string} registrationName Name of listener (e.g. `onClick`).
  39413. * @param {object} mountAt Container where to mount the listener
  39414. */
  39415. function listenTo(registrationName, mountAt) {
  39416. var listeningSet = getListeningSetForElement(mountAt);
  39417. var dependencies = registrationNameDependencies[registrationName];
  39418. for (var i = 0; i < dependencies.length; i++) {
  39419. var dependency = dependencies[i];
  39420. if (!listeningSet.has(dependency)) {
  39421. switch (dependency) {
  39422. case TOP_SCROLL:
  39423. trapCapturedEvent(TOP_SCROLL, mountAt);
  39424. break;
  39425. case TOP_FOCUS:
  39426. case TOP_BLUR:
  39427. trapCapturedEvent(TOP_FOCUS, mountAt);
  39428. trapCapturedEvent(TOP_BLUR, mountAt);
  39429. // We set the flag for a single dependency later in this function,
  39430. // but this ensures we mark both as attached rather than just one.
  39431. listeningSet.add(TOP_BLUR);
  39432. listeningSet.add(TOP_FOCUS);
  39433. break;
  39434. case TOP_CANCEL:
  39435. case TOP_CLOSE:
  39436. if (isEventSupported(getRawEventName(dependency))) {
  39437. trapCapturedEvent(dependency, mountAt);
  39438. }
  39439. break;
  39440. case TOP_INVALID:
  39441. case TOP_SUBMIT:
  39442. case TOP_RESET:
  39443. // We listen to them on the target DOM elements.
  39444. // Some of them bubble so we don't want them to fire twice.
  39445. break;
  39446. default:
  39447. // By default, listen on the top level to all non-media events.
  39448. // Media events don't bubble so adding the listener wouldn't do anything.
  39449. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  39450. if (!isMediaEvent) {
  39451. trapBubbledEvent(dependency, mountAt);
  39452. }
  39453. break;
  39454. }
  39455. listeningSet.add(dependency);
  39456. }
  39457. }
  39458. }
  39459. function isListeningToAllDependencies(registrationName, mountAt) {
  39460. var listeningSet = getListeningSetForElement(mountAt);
  39461. var dependencies = registrationNameDependencies[registrationName];
  39462. for (var i = 0; i < dependencies.length; i++) {
  39463. var dependency = dependencies[i];
  39464. if (!listeningSet.has(dependency)) {
  39465. return false;
  39466. }
  39467. }
  39468. return true;
  39469. }
  39470. function getActiveElement(doc) {
  39471. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  39472. if (typeof doc === 'undefined') {
  39473. return null;
  39474. }
  39475. try {
  39476. return doc.activeElement || doc.body;
  39477. } catch (e) {
  39478. return doc.body;
  39479. }
  39480. }
  39481. /**
  39482. * Given any node return the first leaf node without children.
  39483. *
  39484. * @param {DOMElement|DOMTextNode} node
  39485. * @return {DOMElement|DOMTextNode}
  39486. */
  39487. function getLeafNode(node) {
  39488. while (node && node.firstChild) {
  39489. node = node.firstChild;
  39490. }
  39491. return node;
  39492. }
  39493. /**
  39494. * Get the next sibling within a container. This will walk up the
  39495. * DOM if a node's siblings have been exhausted.
  39496. *
  39497. * @param {DOMElement|DOMTextNode} node
  39498. * @return {?DOMElement|DOMTextNode}
  39499. */
  39500. function getSiblingNode(node) {
  39501. while (node) {
  39502. if (node.nextSibling) {
  39503. return node.nextSibling;
  39504. }
  39505. node = node.parentNode;
  39506. }
  39507. }
  39508. /**
  39509. * Get object describing the nodes which contain characters at offset.
  39510. *
  39511. * @param {DOMElement|DOMTextNode} root
  39512. * @param {number} offset
  39513. * @return {?object}
  39514. */
  39515. function getNodeForCharacterOffset(root, offset) {
  39516. var node = getLeafNode(root);
  39517. var nodeStart = 0;
  39518. var nodeEnd = 0;
  39519. while (node) {
  39520. if (node.nodeType === TEXT_NODE) {
  39521. nodeEnd = nodeStart + node.textContent.length;
  39522. if (nodeStart <= offset && nodeEnd >= offset) {
  39523. return {
  39524. node: node,
  39525. offset: offset - nodeStart
  39526. };
  39527. }
  39528. nodeStart = nodeEnd;
  39529. }
  39530. node = getLeafNode(getSiblingNode(node));
  39531. }
  39532. }
  39533. /**
  39534. * @param {DOMElement} outerNode
  39535. * @return {?object}
  39536. */
  39537. function getOffsets(outerNode) {
  39538. var ownerDocument = outerNode.ownerDocument;
  39539. var win = ownerDocument && ownerDocument.defaultView || window;
  39540. var selection = win.getSelection && win.getSelection();
  39541. if (!selection || selection.rangeCount === 0) {
  39542. return null;
  39543. }
  39544. var anchorNode = selection.anchorNode,
  39545. anchorOffset = selection.anchorOffset,
  39546. focusNode = selection.focusNode,
  39547. focusOffset = selection.focusOffset;
  39548. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  39549. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  39550. // expose properties, triggering a "Permission denied error" if any of its
  39551. // properties are accessed. The only seemingly possible way to avoid erroring
  39552. // is to access a property that typically works for non-anonymous divs and
  39553. // catch any error that may otherwise arise. See
  39554. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  39555. try {
  39556. /* eslint-disable no-unused-expressions */
  39557. anchorNode.nodeType;
  39558. focusNode.nodeType;
  39559. /* eslint-enable no-unused-expressions */
  39560. } catch (e) {
  39561. return null;
  39562. }
  39563. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  39564. }
  39565. /**
  39566. * Returns {start, end} where `start` is the character/codepoint index of
  39567. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  39568. * `end` is the index of (focusNode, focusOffset).
  39569. *
  39570. * Returns null if you pass in garbage input but we should probably just crash.
  39571. *
  39572. * Exported only for testing.
  39573. */
  39574. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  39575. var length = 0;
  39576. var start = -1;
  39577. var end = -1;
  39578. var indexWithinAnchor = 0;
  39579. var indexWithinFocus = 0;
  39580. var node = outerNode;
  39581. var parentNode = null;
  39582. outer: while (true) {
  39583. var next = null;
  39584. while (true) {
  39585. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  39586. start = length + anchorOffset;
  39587. }
  39588. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  39589. end = length + focusOffset;
  39590. }
  39591. if (node.nodeType === TEXT_NODE) {
  39592. length += node.nodeValue.length;
  39593. }
  39594. if ((next = node.firstChild) === null) {
  39595. break;
  39596. }
  39597. // Moving from `node` to its first child `next`.
  39598. parentNode = node;
  39599. node = next;
  39600. }
  39601. while (true) {
  39602. if (node === outerNode) {
  39603. // If `outerNode` has children, this is always the second time visiting
  39604. // it. If it has no children, this is still the first loop, and the only
  39605. // valid selection is anchorNode and focusNode both equal to this node
  39606. // and both offsets 0, in which case we will have handled above.
  39607. break outer;
  39608. }
  39609. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  39610. start = length;
  39611. }
  39612. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  39613. end = length;
  39614. }
  39615. if ((next = node.nextSibling) !== null) {
  39616. break;
  39617. }
  39618. node = parentNode;
  39619. parentNode = node.parentNode;
  39620. }
  39621. // Moving from `node` to its next sibling `next`.
  39622. node = next;
  39623. }
  39624. if (start === -1 || end === -1) {
  39625. // This should never happen. (Would happen if the anchor/focus nodes aren't
  39626. // actually inside the passed-in node.)
  39627. return null;
  39628. }
  39629. return {
  39630. start: start,
  39631. end: end
  39632. };
  39633. }
  39634. /**
  39635. * In modern non-IE browsers, we can support both forward and backward
  39636. * selections.
  39637. *
  39638. * Note: IE10+ supports the Selection object, but it does not support
  39639. * the `extend` method, which means that even in modern IE, it's not possible
  39640. * to programmatically create a backward selection. Thus, for all IE
  39641. * versions, we use the old IE API to create our selections.
  39642. *
  39643. * @param {DOMElement|DOMTextNode} node
  39644. * @param {object} offsets
  39645. */
  39646. function setOffsets(node, offsets) {
  39647. var doc = node.ownerDocument || document;
  39648. var win = doc && doc.defaultView || window;
  39649. // Edge fails with "Object expected" in some scenarios.
  39650. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  39651. // fails when pasting 100+ items)
  39652. if (!win.getSelection) {
  39653. return;
  39654. }
  39655. var selection = win.getSelection();
  39656. var length = node.textContent.length;
  39657. var start = Math.min(offsets.start, length);
  39658. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  39659. // IE 11 uses modern selection, but doesn't support the extend method.
  39660. // Flip backward selections, so we can set with a single range.
  39661. if (!selection.extend && start > end) {
  39662. var temp = end;
  39663. end = start;
  39664. start = temp;
  39665. }
  39666. var startMarker = getNodeForCharacterOffset(node, start);
  39667. var endMarker = getNodeForCharacterOffset(node, end);
  39668. if (startMarker && endMarker) {
  39669. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  39670. return;
  39671. }
  39672. var range = doc.createRange();
  39673. range.setStart(startMarker.node, startMarker.offset);
  39674. selection.removeAllRanges();
  39675. if (start > end) {
  39676. selection.addRange(range);
  39677. selection.extend(endMarker.node, endMarker.offset);
  39678. } else {
  39679. range.setEnd(endMarker.node, endMarker.offset);
  39680. selection.addRange(range);
  39681. }
  39682. }
  39683. }
  39684. function isTextNode(node) {
  39685. return node && node.nodeType === TEXT_NODE;
  39686. }
  39687. function containsNode(outerNode, innerNode) {
  39688. if (!outerNode || !innerNode) {
  39689. return false;
  39690. } else if (outerNode === innerNode) {
  39691. return true;
  39692. } else if (isTextNode(outerNode)) {
  39693. return false;
  39694. } else if (isTextNode(innerNode)) {
  39695. return containsNode(outerNode, innerNode.parentNode);
  39696. } else if ('contains' in outerNode) {
  39697. return outerNode.contains(innerNode);
  39698. } else if (outerNode.compareDocumentPosition) {
  39699. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  39700. } else {
  39701. return false;
  39702. }
  39703. }
  39704. function isInDocument(node) {
  39705. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  39706. }
  39707. function isSameOriginFrame(iframe) {
  39708. try {
  39709. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  39710. // to throw, e.g. if it has a cross-origin src attribute.
  39711. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  39712. // iframe.contentDocument.defaultView;
  39713. // A safety way is to access one of the cross origin properties: Window or Location
  39714. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  39715. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  39716. return typeof iframe.contentWindow.location.href === 'string';
  39717. } catch (err) {
  39718. return false;
  39719. }
  39720. }
  39721. function getActiveElementDeep() {
  39722. var win = window;
  39723. var element = getActiveElement();
  39724. while (element instanceof win.HTMLIFrameElement) {
  39725. if (isSameOriginFrame(element)) {
  39726. win = element.contentWindow;
  39727. } else {
  39728. return element;
  39729. }
  39730. element = getActiveElement(win.document);
  39731. }
  39732. return element;
  39733. }
  39734. /**
  39735. * @ReactInputSelection: React input selection module. Based on Selection.js,
  39736. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  39737. * assume buttons have range selections allowed).
  39738. * Input selection module for React.
  39739. */
  39740. /**
  39741. * @hasSelectionCapabilities: we get the element types that support selection
  39742. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  39743. * and `selectionEnd` rows.
  39744. */
  39745. function hasSelectionCapabilities(elem) {
  39746. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  39747. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  39748. }
  39749. function getSelectionInformation() {
  39750. var focusedElem = getActiveElementDeep();
  39751. return {
  39752. focusedElem: focusedElem,
  39753. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  39754. };
  39755. }
  39756. /**
  39757. * @restoreSelection: If any selection information was potentially lost,
  39758. * restore it. This is useful when performing operations that could remove dom
  39759. * nodes and place them back in, resulting in focus being lost.
  39760. */
  39761. function restoreSelection(priorSelectionInformation) {
  39762. var curFocusedElem = getActiveElementDeep();
  39763. var priorFocusedElem = priorSelectionInformation.focusedElem;
  39764. var priorSelectionRange = priorSelectionInformation.selectionRange;
  39765. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  39766. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  39767. setSelection(priorFocusedElem, priorSelectionRange);
  39768. }
  39769. // Focusing a node can change the scroll position, which is undesirable
  39770. var ancestors = [];
  39771. var ancestor = priorFocusedElem;
  39772. while (ancestor = ancestor.parentNode) {
  39773. if (ancestor.nodeType === ELEMENT_NODE) {
  39774. ancestors.push({
  39775. element: ancestor,
  39776. left: ancestor.scrollLeft,
  39777. top: ancestor.scrollTop
  39778. });
  39779. }
  39780. }
  39781. if (typeof priorFocusedElem.focus === 'function') {
  39782. priorFocusedElem.focus();
  39783. }
  39784. for (var i = 0; i < ancestors.length; i++) {
  39785. var info = ancestors[i];
  39786. info.element.scrollLeft = info.left;
  39787. info.element.scrollTop = info.top;
  39788. }
  39789. }
  39790. }
  39791. /**
  39792. * @getSelection: Gets the selection bounds of a focused textarea, input or
  39793. * contentEditable node.
  39794. * -@input: Look up selection bounds of this input
  39795. * -@return {start: selectionStart, end: selectionEnd}
  39796. */
  39797. function getSelection$1(input) {
  39798. var selection = void 0;
  39799. if ('selectionStart' in input) {
  39800. // Modern browser with input or textarea.
  39801. selection = {
  39802. start: input.selectionStart,
  39803. end: input.selectionEnd
  39804. };
  39805. } else {
  39806. // Content editable or old IE textarea.
  39807. selection = getOffsets(input);
  39808. }
  39809. return selection || { start: 0, end: 0 };
  39810. }
  39811. /**
  39812. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  39813. * the input.
  39814. * -@input Set selection bounds of this input or textarea
  39815. * -@offsets Object of same form that is returned from get*
  39816. */
  39817. function setSelection(input, offsets) {
  39818. var start = offsets.start,
  39819. end = offsets.end;
  39820. if (end === undefined) {
  39821. end = start;
  39822. }
  39823. if ('selectionStart' in input) {
  39824. input.selectionStart = start;
  39825. input.selectionEnd = Math.min(end, input.value.length);
  39826. } else {
  39827. setOffsets(input, offsets);
  39828. }
  39829. }
  39830. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  39831. var eventTypes$3 = {
  39832. select: {
  39833. phasedRegistrationNames: {
  39834. bubbled: 'onSelect',
  39835. captured: 'onSelectCapture'
  39836. },
  39837. 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]
  39838. }
  39839. };
  39840. var activeElement$1 = null;
  39841. var activeElementInst$1 = null;
  39842. var lastSelection = null;
  39843. var mouseDown = false;
  39844. /**
  39845. * Get an object which is a unique representation of the current selection.
  39846. *
  39847. * The return value will not be consistent across nodes or browsers, but
  39848. * two identical selections on the same node will return identical objects.
  39849. *
  39850. * @param {DOMElement} node
  39851. * @return {object}
  39852. */
  39853. function getSelection(node) {
  39854. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  39855. return {
  39856. start: node.selectionStart,
  39857. end: node.selectionEnd
  39858. };
  39859. } else {
  39860. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  39861. var selection = win.getSelection();
  39862. return {
  39863. anchorNode: selection.anchorNode,
  39864. anchorOffset: selection.anchorOffset,
  39865. focusNode: selection.focusNode,
  39866. focusOffset: selection.focusOffset
  39867. };
  39868. }
  39869. }
  39870. /**
  39871. * Get document associated with the event target.
  39872. *
  39873. * @param {object} nativeEventTarget
  39874. * @return {Document}
  39875. */
  39876. function getEventTargetDocument(eventTarget) {
  39877. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  39878. }
  39879. /**
  39880. * Poll selection to see whether it's changed.
  39881. *
  39882. * @param {object} nativeEvent
  39883. * @param {object} nativeEventTarget
  39884. * @return {?SyntheticEvent}
  39885. */
  39886. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  39887. // Ensure we have the right element, and that the user is not dragging a
  39888. // selection (this matches native `select` event behavior). In HTML5, select
  39889. // fires only on input and textarea thus if there's no focused element we
  39890. // won't dispatch.
  39891. var doc = getEventTargetDocument(nativeEventTarget);
  39892. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  39893. return null;
  39894. }
  39895. // Only fire when selection has actually changed.
  39896. var currentSelection = getSelection(activeElement$1);
  39897. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  39898. lastSelection = currentSelection;
  39899. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  39900. syntheticEvent.type = 'select';
  39901. syntheticEvent.target = activeElement$1;
  39902. accumulateTwoPhaseDispatches(syntheticEvent);
  39903. return syntheticEvent;
  39904. }
  39905. return null;
  39906. }
  39907. /**
  39908. * This plugin creates an `onSelect` event that normalizes select events
  39909. * across form elements.
  39910. *
  39911. * Supported elements are:
  39912. * - input (see `isTextInputElement`)
  39913. * - textarea
  39914. * - contentEditable
  39915. *
  39916. * This differs from native browser implementations in the following ways:
  39917. * - Fires on contentEditable fields as well as inputs.
  39918. * - Fires for collapsed selection.
  39919. * - Fires after user input.
  39920. */
  39921. var SelectEventPlugin = {
  39922. eventTypes: eventTypes$3,
  39923. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  39924. var doc = getEventTargetDocument(nativeEventTarget);
  39925. // Track whether all listeners exists for this plugin. If none exist, we do
  39926. // not extract events. See #3639.
  39927. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  39928. return null;
  39929. }
  39930. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  39931. switch (topLevelType) {
  39932. // Track the input node that has focus.
  39933. case TOP_FOCUS:
  39934. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  39935. activeElement$1 = targetNode;
  39936. activeElementInst$1 = targetInst;
  39937. lastSelection = null;
  39938. }
  39939. break;
  39940. case TOP_BLUR:
  39941. activeElement$1 = null;
  39942. activeElementInst$1 = null;
  39943. lastSelection = null;
  39944. break;
  39945. // Don't fire the event while the user is dragging. This matches the
  39946. // semantics of the native select event.
  39947. case TOP_MOUSE_DOWN:
  39948. mouseDown = true;
  39949. break;
  39950. case TOP_CONTEXT_MENU:
  39951. case TOP_MOUSE_UP:
  39952. case TOP_DRAG_END:
  39953. mouseDown = false;
  39954. return constructSelectEvent(nativeEvent, nativeEventTarget);
  39955. // Chrome and IE fire non-standard event when selection is changed (and
  39956. // sometimes when it hasn't). IE's event fires out of order with respect
  39957. // to key and input events on deletion, so we discard it.
  39958. //
  39959. // Firefox doesn't support selectionchange, so check selection status
  39960. // after each key entry. The selection changes after keydown and before
  39961. // keyup, but we check on keydown as well in the case of holding down a
  39962. // key, when multiple keydown events are fired but only one keyup is.
  39963. // This is also our approach for IE handling, for the reason above.
  39964. case TOP_SELECTION_CHANGE:
  39965. if (skipSelectionChangeEvent) {
  39966. break;
  39967. }
  39968. // falls through
  39969. case TOP_KEY_DOWN:
  39970. case TOP_KEY_UP:
  39971. return constructSelectEvent(nativeEvent, nativeEventTarget);
  39972. }
  39973. return null;
  39974. }
  39975. };
  39976. /**
  39977. * Inject modules for resolving DOM hierarchy and plugin ordering.
  39978. */
  39979. injection.injectEventPluginOrder(DOMEventPluginOrder);
  39980. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  39981. /**
  39982. * Some important event plugins included by default (without having to require
  39983. * them).
  39984. */
  39985. injection.injectEventPluginsByName({
  39986. SimpleEventPlugin: SimpleEventPlugin,
  39987. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  39988. ChangeEventPlugin: ChangeEventPlugin,
  39989. SelectEventPlugin: SelectEventPlugin,
  39990. BeforeInputEventPlugin: BeforeInputEventPlugin
  39991. });
  39992. function endsWith(subject, search) {
  39993. var length = subject.length;
  39994. return subject.substring(length - search.length, length) === search;
  39995. }
  39996. var didWarnSelectedSetOnOption = false;
  39997. var didWarnInvalidChild = false;
  39998. function flattenChildren(children) {
  39999. var content = '';
  40000. // Flatten children. We'll warn if they are invalid
  40001. // during validateProps() which runs for hydration too.
  40002. // Note that this would throw on non-element objects.
  40003. // Elements are stringified (which is normally irrelevant
  40004. // but matters for <fbt>).
  40005. React.Children.forEach(children, function (child) {
  40006. if (child == null) {
  40007. return;
  40008. }
  40009. content += child;
  40010. // Note: we don't warn about invalid children here.
  40011. // Instead, this is done separately below so that
  40012. // it happens during the hydration codepath too.
  40013. });
  40014. return content;
  40015. }
  40016. /**
  40017. * Implements an <option> host component that warns when `selected` is set.
  40018. */
  40019. function validateProps(element, props) {
  40020. {
  40021. // This mirrors the codepath above, but runs for hydration too.
  40022. // Warn about invalid children here so that client and hydration are consistent.
  40023. // TODO: this seems like it could cause a DEV-only throw for hydration
  40024. // if children contains a non-element object. We should try to avoid that.
  40025. if (typeof props.children === 'object' && props.children !== null) {
  40026. React.Children.forEach(props.children, function (child) {
  40027. if (child == null) {
  40028. return;
  40029. }
  40030. if (typeof child === 'string' || typeof child === 'number') {
  40031. return;
  40032. }
  40033. if (typeof child.type !== 'string') {
  40034. return;
  40035. }
  40036. if (!didWarnInvalidChild) {
  40037. didWarnInvalidChild = true;
  40038. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  40039. }
  40040. });
  40041. }
  40042. // TODO: Remove support for `selected` in <option>.
  40043. if (props.selected != null && !didWarnSelectedSetOnOption) {
  40044. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  40045. didWarnSelectedSetOnOption = true;
  40046. }
  40047. }
  40048. }
  40049. function postMountWrapper$1(element, props) {
  40050. // value="" should make a value attribute (#6219)
  40051. if (props.value != null) {
  40052. element.setAttribute('value', toString(getToStringValue(props.value)));
  40053. }
  40054. }
  40055. function getHostProps$1(element, props) {
  40056. var hostProps = _assign({ children: undefined }, props);
  40057. var content = flattenChildren(props.children);
  40058. if (content) {
  40059. hostProps.children = content;
  40060. }
  40061. return hostProps;
  40062. }
  40063. // TODO: direct imports like some-package/src/* are bad. Fix me.
  40064. var didWarnValueDefaultValue$1 = void 0;
  40065. {
  40066. didWarnValueDefaultValue$1 = false;
  40067. }
  40068. function getDeclarationErrorAddendum() {
  40069. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  40070. if (ownerName) {
  40071. return '\n\nCheck the render method of `' + ownerName + '`.';
  40072. }
  40073. return '';
  40074. }
  40075. var valuePropNames = ['value', 'defaultValue'];
  40076. /**
  40077. * Validation function for `value` and `defaultValue`.
  40078. */
  40079. function checkSelectPropTypes(props) {
  40080. ReactControlledValuePropTypes.checkPropTypes('select', props);
  40081. for (var i = 0; i < valuePropNames.length; i++) {
  40082. var propName = valuePropNames[i];
  40083. if (props[propName] == null) {
  40084. continue;
  40085. }
  40086. var isArray = Array.isArray(props[propName]);
  40087. if (props.multiple && !isArray) {
  40088. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  40089. } else if (!props.multiple && isArray) {
  40090. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  40091. }
  40092. }
  40093. }
  40094. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  40095. var options = node.options;
  40096. if (multiple) {
  40097. var selectedValues = propValue;
  40098. var selectedValue = {};
  40099. for (var i = 0; i < selectedValues.length; i++) {
  40100. // Prefix to avoid chaos with special keys.
  40101. selectedValue['$' + selectedValues[i]] = true;
  40102. }
  40103. for (var _i = 0; _i < options.length; _i++) {
  40104. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  40105. if (options[_i].selected !== selected) {
  40106. options[_i].selected = selected;
  40107. }
  40108. if (selected && setDefaultSelected) {
  40109. options[_i].defaultSelected = true;
  40110. }
  40111. }
  40112. } else {
  40113. // Do not set `select.value` as exact behavior isn't consistent across all
  40114. // browsers for all cases.
  40115. var _selectedValue = toString(getToStringValue(propValue));
  40116. var defaultSelected = null;
  40117. for (var _i2 = 0; _i2 < options.length; _i2++) {
  40118. if (options[_i2].value === _selectedValue) {
  40119. options[_i2].selected = true;
  40120. if (setDefaultSelected) {
  40121. options[_i2].defaultSelected = true;
  40122. }
  40123. return;
  40124. }
  40125. if (defaultSelected === null && !options[_i2].disabled) {
  40126. defaultSelected = options[_i2];
  40127. }
  40128. }
  40129. if (defaultSelected !== null) {
  40130. defaultSelected.selected = true;
  40131. }
  40132. }
  40133. }
  40134. /**
  40135. * Implements a <select> host component that allows optionally setting the
  40136. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  40137. * stringable. If `multiple` is true, the prop must be an array of stringables.
  40138. *
  40139. * If `value` is not supplied (or null/undefined), user actions that change the
  40140. * selected option will trigger updates to the rendered options.
  40141. *
  40142. * If it is supplied (and not null/undefined), the rendered options will not
  40143. * update in response to user actions. Instead, the `value` prop must change in
  40144. * order for the rendered options to update.
  40145. *
  40146. * If `defaultValue` is provided, any options with the supplied values will be
  40147. * selected.
  40148. */
  40149. function getHostProps$2(element, props) {
  40150. return _assign({}, props, {
  40151. value: undefined
  40152. });
  40153. }
  40154. function initWrapperState$1(element, props) {
  40155. var node = element;
  40156. {
  40157. checkSelectPropTypes(props);
  40158. }
  40159. node._wrapperState = {
  40160. wasMultiple: !!props.multiple
  40161. };
  40162. {
  40163. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  40164. 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');
  40165. didWarnValueDefaultValue$1 = true;
  40166. }
  40167. }
  40168. }
  40169. function postMountWrapper$2(element, props) {
  40170. var node = element;
  40171. node.multiple = !!props.multiple;
  40172. var value = props.value;
  40173. if (value != null) {
  40174. updateOptions(node, !!props.multiple, value, false);
  40175. } else if (props.defaultValue != null) {
  40176. updateOptions(node, !!props.multiple, props.defaultValue, true);
  40177. }
  40178. }
  40179. function postUpdateWrapper(element, props) {
  40180. var node = element;
  40181. var wasMultiple = node._wrapperState.wasMultiple;
  40182. node._wrapperState.wasMultiple = !!props.multiple;
  40183. var value = props.value;
  40184. if (value != null) {
  40185. updateOptions(node, !!props.multiple, value, false);
  40186. } else if (wasMultiple !== !!props.multiple) {
  40187. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  40188. if (props.defaultValue != null) {
  40189. updateOptions(node, !!props.multiple, props.defaultValue, true);
  40190. } else {
  40191. // Revert the select back to its default unselected state.
  40192. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  40193. }
  40194. }
  40195. }
  40196. function restoreControlledState$2(element, props) {
  40197. var node = element;
  40198. var value = props.value;
  40199. if (value != null) {
  40200. updateOptions(node, !!props.multiple, value, false);
  40201. }
  40202. }
  40203. var didWarnValDefaultVal = false;
  40204. /**
  40205. * Implements a <textarea> host component that allows setting `value`, and
  40206. * `defaultValue`. This differs from the traditional DOM API because value is
  40207. * usually set as PCDATA children.
  40208. *
  40209. * If `value` is not supplied (or null/undefined), user actions that affect the
  40210. * value will trigger updates to the element.
  40211. *
  40212. * If `value` is supplied (and not null/undefined), the rendered element will
  40213. * not trigger updates to the element. Instead, the `value` prop must change in
  40214. * order for the rendered element to be updated.
  40215. *
  40216. * The rendered element will be initialized with an empty value, the prop
  40217. * `defaultValue` if specified, or the children content (deprecated).
  40218. */
  40219. function getHostProps$3(element, props) {
  40220. var node = element;
  40221. (function () {
  40222. if (!(props.dangerouslySetInnerHTML == null)) {
  40223. {
  40224. throw ReactError(Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.'));
  40225. }
  40226. }
  40227. })();
  40228. // Always set children to the same thing. In IE9, the selection range will
  40229. // get reset if `textContent` is mutated. We could add a check in setTextContent
  40230. // to only set the value if/when the value differs from the node value (which would
  40231. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  40232. // solution. The value can be a boolean or object so that's why it's forced
  40233. // to be a string.
  40234. var hostProps = _assign({}, props, {
  40235. value: undefined,
  40236. defaultValue: undefined,
  40237. children: toString(node._wrapperState.initialValue)
  40238. });
  40239. return hostProps;
  40240. }
  40241. function initWrapperState$2(element, props) {
  40242. var node = element;
  40243. {
  40244. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  40245. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  40246. 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');
  40247. didWarnValDefaultVal = true;
  40248. }
  40249. }
  40250. var initialValue = props.value;
  40251. // Only bother fetching default value if we're going to use it
  40252. if (initialValue == null) {
  40253. var defaultValue = props.defaultValue;
  40254. // TODO (yungsters): Remove support for children content in <textarea>.
  40255. var children = props.children;
  40256. if (children != null) {
  40257. {
  40258. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  40259. }
  40260. (function () {
  40261. if (!(defaultValue == null)) {
  40262. {
  40263. throw ReactError(Error('If you supply `defaultValue` on a <textarea>, do not pass children.'));
  40264. }
  40265. }
  40266. })();
  40267. if (Array.isArray(children)) {
  40268. (function () {
  40269. if (!(children.length <= 1)) {
  40270. {
  40271. throw ReactError(Error('<textarea> can only have at most one child.'));
  40272. }
  40273. }
  40274. })();
  40275. children = children[0];
  40276. }
  40277. defaultValue = children;
  40278. }
  40279. if (defaultValue == null) {
  40280. defaultValue = '';
  40281. }
  40282. initialValue = defaultValue;
  40283. }
  40284. node._wrapperState = {
  40285. initialValue: getToStringValue(initialValue)
  40286. };
  40287. }
  40288. function updateWrapper$1(element, props) {
  40289. var node = element;
  40290. var value = getToStringValue(props.value);
  40291. var defaultValue = getToStringValue(props.defaultValue);
  40292. if (value != null) {
  40293. // Cast `value` to a string to ensure the value is set correctly. While
  40294. // browsers typically do this as necessary, jsdom doesn't.
  40295. var newValue = toString(value);
  40296. // To avoid side effects (such as losing text selection), only set value if changed
  40297. if (newValue !== node.value) {
  40298. node.value = newValue;
  40299. }
  40300. if (props.defaultValue == null && node.defaultValue !== newValue) {
  40301. node.defaultValue = newValue;
  40302. }
  40303. }
  40304. if (defaultValue != null) {
  40305. node.defaultValue = toString(defaultValue);
  40306. }
  40307. }
  40308. function postMountWrapper$3(element, props) {
  40309. var node = element;
  40310. // This is in postMount because we need access to the DOM node, which is not
  40311. // available until after the component has mounted.
  40312. var textContent = node.textContent;
  40313. // Only set node.value if textContent is equal to the expected
  40314. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  40315. // will populate textContent as well.
  40316. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  40317. if (textContent === node._wrapperState.initialValue) {
  40318. node.value = textContent;
  40319. }
  40320. }
  40321. function restoreControlledState$3(element, props) {
  40322. // DOM component is still mounted; update
  40323. updateWrapper$1(element, props);
  40324. }
  40325. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  40326. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  40327. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  40328. var Namespaces = {
  40329. html: HTML_NAMESPACE$1,
  40330. mathml: MATH_NAMESPACE,
  40331. svg: SVG_NAMESPACE
  40332. };
  40333. // Assumes there is no parent namespace.
  40334. function getIntrinsicNamespace(type) {
  40335. switch (type) {
  40336. case 'svg':
  40337. return SVG_NAMESPACE;
  40338. case 'math':
  40339. return MATH_NAMESPACE;
  40340. default:
  40341. return HTML_NAMESPACE$1;
  40342. }
  40343. }
  40344. function getChildNamespace(parentNamespace, type) {
  40345. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  40346. // No (or default) parent namespace: potential entry point.
  40347. return getIntrinsicNamespace(type);
  40348. }
  40349. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  40350. // We're leaving SVG.
  40351. return HTML_NAMESPACE$1;
  40352. }
  40353. // By default, pass namespace below.
  40354. return parentNamespace;
  40355. }
  40356. /* globals MSApp */
  40357. /**
  40358. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  40359. */
  40360. var createMicrosoftUnsafeLocalFunction = function (func) {
  40361. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  40362. return function (arg0, arg1, arg2, arg3) {
  40363. MSApp.execUnsafeLocalFunction(function () {
  40364. return func(arg0, arg1, arg2, arg3);
  40365. });
  40366. };
  40367. } else {
  40368. return func;
  40369. }
  40370. };
  40371. // SVG temp container for IE lacking innerHTML
  40372. var reusableSVGContainer = void 0;
  40373. /**
  40374. * Set the innerHTML property of a node
  40375. *
  40376. * @param {DOMElement} node
  40377. * @param {string} html
  40378. * @internal
  40379. */
  40380. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  40381. // IE does not have innerHTML for SVG nodes, so instead we inject the
  40382. // new markup in a temp node and then move the child nodes across into
  40383. // the target node
  40384. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  40385. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  40386. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  40387. var svgNode = reusableSVGContainer.firstChild;
  40388. while (node.firstChild) {
  40389. node.removeChild(node.firstChild);
  40390. }
  40391. while (svgNode.firstChild) {
  40392. node.appendChild(svgNode.firstChild);
  40393. }
  40394. } else {
  40395. node.innerHTML = html;
  40396. }
  40397. });
  40398. /**
  40399. * Set the textContent property of a node. For text updates, it's faster
  40400. * to set the `nodeValue` of the Text node directly instead of using
  40401. * `.textContent` which will remove the existing node and create a new one.
  40402. *
  40403. * @param {DOMElement} node
  40404. * @param {string} text
  40405. * @internal
  40406. */
  40407. var setTextContent = function (node, text) {
  40408. if (text) {
  40409. var firstChild = node.firstChild;
  40410. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  40411. firstChild.nodeValue = text;
  40412. return;
  40413. }
  40414. }
  40415. node.textContent = text;
  40416. };
  40417. // List derived from Gecko source code:
  40418. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  40419. var shorthandToLonghand = {
  40420. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  40421. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  40422. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  40423. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  40424. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  40425. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  40426. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  40427. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  40428. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  40429. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  40430. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  40431. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  40432. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  40433. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  40434. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  40435. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  40436. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  40437. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  40438. columns: ['columnCount', 'columnWidth'],
  40439. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  40440. flexFlow: ['flexDirection', 'flexWrap'],
  40441. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  40442. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  40443. gap: ['columnGap', 'rowGap'],
  40444. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  40445. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  40446. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  40447. gridColumnGap: ['columnGap'],
  40448. gridGap: ['columnGap', 'rowGap'],
  40449. gridRow: ['gridRowEnd', 'gridRowStart'],
  40450. gridRowGap: ['rowGap'],
  40451. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  40452. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  40453. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  40454. marker: ['markerEnd', 'markerMid', 'markerStart'],
  40455. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  40456. maskPosition: ['maskPositionX', 'maskPositionY'],
  40457. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  40458. overflow: ['overflowX', 'overflowY'],
  40459. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  40460. placeContent: ['alignContent', 'justifyContent'],
  40461. placeItems: ['alignItems', 'justifyItems'],
  40462. placeSelf: ['alignSelf', 'justifySelf'],
  40463. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  40464. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  40465. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  40466. wordWrap: ['overflowWrap']
  40467. };
  40468. /**
  40469. * CSS properties which accept numbers but are not in units of "px".
  40470. */
  40471. var isUnitlessNumber = {
  40472. animationIterationCount: true,
  40473. borderImageOutset: true,
  40474. borderImageSlice: true,
  40475. borderImageWidth: true,
  40476. boxFlex: true,
  40477. boxFlexGroup: true,
  40478. boxOrdinalGroup: true,
  40479. columnCount: true,
  40480. columns: true,
  40481. flex: true,
  40482. flexGrow: true,
  40483. flexPositive: true,
  40484. flexShrink: true,
  40485. flexNegative: true,
  40486. flexOrder: true,
  40487. gridArea: true,
  40488. gridRow: true,
  40489. gridRowEnd: true,
  40490. gridRowSpan: true,
  40491. gridRowStart: true,
  40492. gridColumn: true,
  40493. gridColumnEnd: true,
  40494. gridColumnSpan: true,
  40495. gridColumnStart: true,
  40496. fontWeight: true,
  40497. lineClamp: true,
  40498. lineHeight: true,
  40499. opacity: true,
  40500. order: true,
  40501. orphans: true,
  40502. tabSize: true,
  40503. widows: true,
  40504. zIndex: true,
  40505. zoom: true,
  40506. // SVG-related properties
  40507. fillOpacity: true,
  40508. floodOpacity: true,
  40509. stopOpacity: true,
  40510. strokeDasharray: true,
  40511. strokeDashoffset: true,
  40512. strokeMiterlimit: true,
  40513. strokeOpacity: true,
  40514. strokeWidth: true
  40515. };
  40516. /**
  40517. * @param {string} prefix vendor-specific prefix, eg: Webkit
  40518. * @param {string} key style name, eg: transitionDuration
  40519. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  40520. * WebkitTransitionDuration
  40521. */
  40522. function prefixKey(prefix, key) {
  40523. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  40524. }
  40525. /**
  40526. * Support style names that may come passed in prefixed by adding permutations
  40527. * of vendor prefixes.
  40528. */
  40529. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  40530. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  40531. // infinite loop, because it iterates over the newly added props too.
  40532. Object.keys(isUnitlessNumber).forEach(function (prop) {
  40533. prefixes.forEach(function (prefix) {
  40534. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  40535. });
  40536. });
  40537. /**
  40538. * Convert a value into the proper css writable value. The style name `name`
  40539. * should be logical (no hyphens), as specified
  40540. * in `CSSProperty.isUnitlessNumber`.
  40541. *
  40542. * @param {string} name CSS property name such as `topMargin`.
  40543. * @param {*} value CSS property value such as `10px`.
  40544. * @return {string} Normalized style value with dimensions applied.
  40545. */
  40546. function dangerousStyleValue(name, value, isCustomProperty) {
  40547. // Note that we've removed escapeTextForBrowser() calls here since the
  40548. // whole string will be escaped when the attribute is injected into
  40549. // the markup. If you provide unsafe user data here they can inject
  40550. // arbitrary CSS which may be problematic (I couldn't repro this):
  40551. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  40552. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  40553. // This is not an XSS hole but instead a potential CSS injection issue
  40554. // which has lead to a greater discussion about how we're going to
  40555. // trust URLs moving forward. See #2115901
  40556. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  40557. if (isEmpty) {
  40558. return '';
  40559. }
  40560. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  40561. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  40562. }
  40563. return ('' + value).trim();
  40564. }
  40565. var uppercasePattern = /([A-Z])/g;
  40566. var msPattern = /^ms-/;
  40567. /**
  40568. * Hyphenates a camelcased CSS property name, for example:
  40569. *
  40570. * > hyphenateStyleName('backgroundColor')
  40571. * < "background-color"
  40572. * > hyphenateStyleName('MozTransition')
  40573. * < "-moz-transition"
  40574. * > hyphenateStyleName('msTransition')
  40575. * < "-ms-transition"
  40576. *
  40577. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  40578. * is converted to `-ms-`.
  40579. */
  40580. function hyphenateStyleName(name) {
  40581. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  40582. }
  40583. var warnValidStyle = function () {};
  40584. {
  40585. // 'msTransform' is correct, but the other prefixes should be capitalized
  40586. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  40587. var msPattern$1 = /^-ms-/;
  40588. var hyphenPattern = /-(.)/g;
  40589. // style values shouldn't contain a semicolon
  40590. var badStyleValueWithSemicolonPattern = /;\s*$/;
  40591. var warnedStyleNames = {};
  40592. var warnedStyleValues = {};
  40593. var warnedForNaNValue = false;
  40594. var warnedForInfinityValue = false;
  40595. var camelize = function (string) {
  40596. return string.replace(hyphenPattern, function (_, character) {
  40597. return character.toUpperCase();
  40598. });
  40599. };
  40600. var warnHyphenatedStyleName = function (name) {
  40601. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  40602. return;
  40603. }
  40604. warnedStyleNames[name] = true;
  40605. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  40606. // As Andi Smith suggests
  40607. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  40608. // is converted to lowercase `ms`.
  40609. camelize(name.replace(msPattern$1, 'ms-')));
  40610. };
  40611. var warnBadVendoredStyleName = function (name) {
  40612. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  40613. return;
  40614. }
  40615. warnedStyleNames[name] = true;
  40616. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  40617. };
  40618. var warnStyleValueWithSemicolon = function (name, value) {
  40619. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  40620. return;
  40621. }
  40622. warnedStyleValues[value] = true;
  40623. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  40624. };
  40625. var warnStyleValueIsNaN = function (name, value) {
  40626. if (warnedForNaNValue) {
  40627. return;
  40628. }
  40629. warnedForNaNValue = true;
  40630. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  40631. };
  40632. var warnStyleValueIsInfinity = function (name, value) {
  40633. if (warnedForInfinityValue) {
  40634. return;
  40635. }
  40636. warnedForInfinityValue = true;
  40637. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  40638. };
  40639. warnValidStyle = function (name, value) {
  40640. if (name.indexOf('-') > -1) {
  40641. warnHyphenatedStyleName(name);
  40642. } else if (badVendoredStyleNamePattern.test(name)) {
  40643. warnBadVendoredStyleName(name);
  40644. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  40645. warnStyleValueWithSemicolon(name, value);
  40646. }
  40647. if (typeof value === 'number') {
  40648. if (isNaN(value)) {
  40649. warnStyleValueIsNaN(name, value);
  40650. } else if (!isFinite(value)) {
  40651. warnStyleValueIsInfinity(name, value);
  40652. }
  40653. }
  40654. };
  40655. }
  40656. var warnValidStyle$1 = warnValidStyle;
  40657. /**
  40658. * Operations for dealing with CSS properties.
  40659. */
  40660. /**
  40661. * This creates a string that is expected to be equivalent to the style
  40662. * attribute generated by server-side rendering. It by-passes warnings and
  40663. * security checks so it's not safe to use this value for anything other than
  40664. * comparison. It is only used in DEV for SSR validation.
  40665. */
  40666. function createDangerousStringForStyles(styles) {
  40667. {
  40668. var serialized = '';
  40669. var delimiter = '';
  40670. for (var styleName in styles) {
  40671. if (!styles.hasOwnProperty(styleName)) {
  40672. continue;
  40673. }
  40674. var styleValue = styles[styleName];
  40675. if (styleValue != null) {
  40676. var isCustomProperty = styleName.indexOf('--') === 0;
  40677. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  40678. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  40679. delimiter = ';';
  40680. }
  40681. }
  40682. return serialized || null;
  40683. }
  40684. }
  40685. /**
  40686. * Sets the value for multiple styles on a node. If a value is specified as
  40687. * '' (empty string), the corresponding style property will be unset.
  40688. *
  40689. * @param {DOMElement} node
  40690. * @param {object} styles
  40691. */
  40692. function setValueForStyles(node, styles) {
  40693. var style = node.style;
  40694. for (var styleName in styles) {
  40695. if (!styles.hasOwnProperty(styleName)) {
  40696. continue;
  40697. }
  40698. var isCustomProperty = styleName.indexOf('--') === 0;
  40699. {
  40700. if (!isCustomProperty) {
  40701. warnValidStyle$1(styleName, styles[styleName]);
  40702. }
  40703. }
  40704. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  40705. if (styleName === 'float') {
  40706. styleName = 'cssFloat';
  40707. }
  40708. if (isCustomProperty) {
  40709. style.setProperty(styleName, styleValue);
  40710. } else {
  40711. style[styleName] = styleValue;
  40712. }
  40713. }
  40714. }
  40715. function isValueEmpty(value) {
  40716. return value == null || typeof value === 'boolean' || value === '';
  40717. }
  40718. /**
  40719. * Given {color: 'red', overflow: 'hidden'} returns {
  40720. * color: 'color',
  40721. * overflowX: 'overflow',
  40722. * overflowY: 'overflow',
  40723. * }. This can be read as "the overflowY property was set by the overflow
  40724. * shorthand". That is, the values are the property that each was derived from.
  40725. */
  40726. function expandShorthandMap(styles) {
  40727. var expanded = {};
  40728. for (var key in styles) {
  40729. var longhands = shorthandToLonghand[key] || [key];
  40730. for (var i = 0; i < longhands.length; i++) {
  40731. expanded[longhands[i]] = key;
  40732. }
  40733. }
  40734. return expanded;
  40735. }
  40736. /**
  40737. * When mixing shorthand and longhand property names, we warn during updates if
  40738. * we expect an incorrect result to occur. In particular, we warn for:
  40739. *
  40740. * Updating a shorthand property (longhand gets overwritten):
  40741. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  40742. * becomes .style.font = 'baz'
  40743. * Removing a shorthand property (longhand gets lost too):
  40744. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  40745. * becomes .style.font = ''
  40746. * Removing a longhand property (should revert to shorthand; doesn't):
  40747. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  40748. * becomes .style.fontVariant = ''
  40749. */
  40750. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  40751. if (!warnAboutShorthandPropertyCollision) {
  40752. return;
  40753. }
  40754. if (!nextStyles) {
  40755. return;
  40756. }
  40757. var expandedUpdates = expandShorthandMap(styleUpdates);
  40758. var expandedStyles = expandShorthandMap(nextStyles);
  40759. var warnedAbout = {};
  40760. for (var key in expandedUpdates) {
  40761. var originalKey = expandedUpdates[key];
  40762. var correctOriginalKey = expandedStyles[key];
  40763. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  40764. var warningKey = originalKey + ',' + correctOriginalKey;
  40765. if (warnedAbout[warningKey]) {
  40766. continue;
  40767. }
  40768. warnedAbout[warningKey] = true;
  40769. 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);
  40770. }
  40771. }
  40772. }
  40773. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  40774. // those special-case tags.
  40775. var omittedCloseTags = {
  40776. area: true,
  40777. base: true,
  40778. br: true,
  40779. col: true,
  40780. embed: true,
  40781. hr: true,
  40782. img: true,
  40783. input: true,
  40784. keygen: true,
  40785. link: true,
  40786. meta: true,
  40787. param: true,
  40788. source: true,
  40789. track: true,
  40790. wbr: true
  40791. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  40792. };
  40793. // For HTML, certain tags cannot have children. This has the same purpose as
  40794. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  40795. var voidElementTags = _assign({
  40796. menuitem: true
  40797. }, omittedCloseTags);
  40798. // TODO: We can remove this if we add invariantWithStack()
  40799. // or add stack by default to invariants where possible.
  40800. var HTML$1 = '__html';
  40801. var ReactDebugCurrentFrame$3 = null;
  40802. {
  40803. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  40804. }
  40805. function assertValidProps(tag, props) {
  40806. if (!props) {
  40807. return;
  40808. }
  40809. // Note the use of `==` which checks for null or undefined.
  40810. if (voidElementTags[tag]) {
  40811. (function () {
  40812. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  40813. {
  40814. throw ReactError(Error(tag + ' is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  40815. }
  40816. }
  40817. })();
  40818. }
  40819. if (props.dangerouslySetInnerHTML != null) {
  40820. (function () {
  40821. if (!(props.children == null)) {
  40822. {
  40823. throw ReactError(Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.'));
  40824. }
  40825. }
  40826. })();
  40827. (function () {
  40828. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML)) {
  40829. {
  40830. 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.'));
  40831. }
  40832. }
  40833. })();
  40834. }
  40835. {
  40836. !(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;
  40837. }
  40838. (function () {
  40839. if (!(props.style == null || typeof props.style === 'object')) {
  40840. {
  40841. 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())));
  40842. }
  40843. }
  40844. })();
  40845. }
  40846. function isCustomComponent(tagName, props) {
  40847. if (tagName.indexOf('-') === -1) {
  40848. return typeof props.is === 'string';
  40849. }
  40850. switch (tagName) {
  40851. // These are reserved SVG and MathML elements.
  40852. // We don't mind this whitelist too much because we expect it to never grow.
  40853. // The alternative is to track the namespace in a few places which is convoluted.
  40854. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  40855. case 'annotation-xml':
  40856. case 'color-profile':
  40857. case 'font-face':
  40858. case 'font-face-src':
  40859. case 'font-face-uri':
  40860. case 'font-face-format':
  40861. case 'font-face-name':
  40862. case 'missing-glyph':
  40863. return false;
  40864. default:
  40865. return true;
  40866. }
  40867. }
  40868. // When adding attributes to the HTML or SVG whitelist, be sure to
  40869. // also add them to this module to ensure casing and incorrect name
  40870. // warnings.
  40871. var possibleStandardNames = {
  40872. // HTML
  40873. accept: 'accept',
  40874. acceptcharset: 'acceptCharset',
  40875. 'accept-charset': 'acceptCharset',
  40876. accesskey: 'accessKey',
  40877. action: 'action',
  40878. allowfullscreen: 'allowFullScreen',
  40879. alt: 'alt',
  40880. as: 'as',
  40881. async: 'async',
  40882. autocapitalize: 'autoCapitalize',
  40883. autocomplete: 'autoComplete',
  40884. autocorrect: 'autoCorrect',
  40885. autofocus: 'autoFocus',
  40886. autoplay: 'autoPlay',
  40887. autosave: 'autoSave',
  40888. capture: 'capture',
  40889. cellpadding: 'cellPadding',
  40890. cellspacing: 'cellSpacing',
  40891. challenge: 'challenge',
  40892. charset: 'charSet',
  40893. checked: 'checked',
  40894. children: 'children',
  40895. cite: 'cite',
  40896. class: 'className',
  40897. classid: 'classID',
  40898. classname: 'className',
  40899. cols: 'cols',
  40900. colspan: 'colSpan',
  40901. content: 'content',
  40902. contenteditable: 'contentEditable',
  40903. contextmenu: 'contextMenu',
  40904. controls: 'controls',
  40905. controlslist: 'controlsList',
  40906. coords: 'coords',
  40907. crossorigin: 'crossOrigin',
  40908. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  40909. data: 'data',
  40910. datetime: 'dateTime',
  40911. default: 'default',
  40912. defaultchecked: 'defaultChecked',
  40913. defaultvalue: 'defaultValue',
  40914. defer: 'defer',
  40915. dir: 'dir',
  40916. disabled: 'disabled',
  40917. disablepictureinpicture: 'disablePictureInPicture',
  40918. download: 'download',
  40919. draggable: 'draggable',
  40920. enctype: 'encType',
  40921. for: 'htmlFor',
  40922. form: 'form',
  40923. formmethod: 'formMethod',
  40924. formaction: 'formAction',
  40925. formenctype: 'formEncType',
  40926. formnovalidate: 'formNoValidate',
  40927. formtarget: 'formTarget',
  40928. frameborder: 'frameBorder',
  40929. headers: 'headers',
  40930. height: 'height',
  40931. hidden: 'hidden',
  40932. high: 'high',
  40933. href: 'href',
  40934. hreflang: 'hrefLang',
  40935. htmlfor: 'htmlFor',
  40936. httpequiv: 'httpEquiv',
  40937. 'http-equiv': 'httpEquiv',
  40938. icon: 'icon',
  40939. id: 'id',
  40940. innerhtml: 'innerHTML',
  40941. inputmode: 'inputMode',
  40942. integrity: 'integrity',
  40943. is: 'is',
  40944. itemid: 'itemID',
  40945. itemprop: 'itemProp',
  40946. itemref: 'itemRef',
  40947. itemscope: 'itemScope',
  40948. itemtype: 'itemType',
  40949. keyparams: 'keyParams',
  40950. keytype: 'keyType',
  40951. kind: 'kind',
  40952. label: 'label',
  40953. lang: 'lang',
  40954. list: 'list',
  40955. loop: 'loop',
  40956. low: 'low',
  40957. manifest: 'manifest',
  40958. marginwidth: 'marginWidth',
  40959. marginheight: 'marginHeight',
  40960. max: 'max',
  40961. maxlength: 'maxLength',
  40962. media: 'media',
  40963. mediagroup: 'mediaGroup',
  40964. method: 'method',
  40965. min: 'min',
  40966. minlength: 'minLength',
  40967. multiple: 'multiple',
  40968. muted: 'muted',
  40969. name: 'name',
  40970. nomodule: 'noModule',
  40971. nonce: 'nonce',
  40972. novalidate: 'noValidate',
  40973. open: 'open',
  40974. optimum: 'optimum',
  40975. pattern: 'pattern',
  40976. placeholder: 'placeholder',
  40977. playsinline: 'playsInline',
  40978. poster: 'poster',
  40979. preload: 'preload',
  40980. profile: 'profile',
  40981. radiogroup: 'radioGroup',
  40982. readonly: 'readOnly',
  40983. referrerpolicy: 'referrerPolicy',
  40984. rel: 'rel',
  40985. required: 'required',
  40986. reversed: 'reversed',
  40987. role: 'role',
  40988. rows: 'rows',
  40989. rowspan: 'rowSpan',
  40990. sandbox: 'sandbox',
  40991. scope: 'scope',
  40992. scoped: 'scoped',
  40993. scrolling: 'scrolling',
  40994. seamless: 'seamless',
  40995. selected: 'selected',
  40996. shape: 'shape',
  40997. size: 'size',
  40998. sizes: 'sizes',
  40999. span: 'span',
  41000. spellcheck: 'spellCheck',
  41001. src: 'src',
  41002. srcdoc: 'srcDoc',
  41003. srclang: 'srcLang',
  41004. srcset: 'srcSet',
  41005. start: 'start',
  41006. step: 'step',
  41007. style: 'style',
  41008. summary: 'summary',
  41009. tabindex: 'tabIndex',
  41010. target: 'target',
  41011. title: 'title',
  41012. type: 'type',
  41013. usemap: 'useMap',
  41014. value: 'value',
  41015. width: 'width',
  41016. wmode: 'wmode',
  41017. wrap: 'wrap',
  41018. // SVG
  41019. about: 'about',
  41020. accentheight: 'accentHeight',
  41021. 'accent-height': 'accentHeight',
  41022. accumulate: 'accumulate',
  41023. additive: 'additive',
  41024. alignmentbaseline: 'alignmentBaseline',
  41025. 'alignment-baseline': 'alignmentBaseline',
  41026. allowreorder: 'allowReorder',
  41027. alphabetic: 'alphabetic',
  41028. amplitude: 'amplitude',
  41029. arabicform: 'arabicForm',
  41030. 'arabic-form': 'arabicForm',
  41031. ascent: 'ascent',
  41032. attributename: 'attributeName',
  41033. attributetype: 'attributeType',
  41034. autoreverse: 'autoReverse',
  41035. azimuth: 'azimuth',
  41036. basefrequency: 'baseFrequency',
  41037. baselineshift: 'baselineShift',
  41038. 'baseline-shift': 'baselineShift',
  41039. baseprofile: 'baseProfile',
  41040. bbox: 'bbox',
  41041. begin: 'begin',
  41042. bias: 'bias',
  41043. by: 'by',
  41044. calcmode: 'calcMode',
  41045. capheight: 'capHeight',
  41046. 'cap-height': 'capHeight',
  41047. clip: 'clip',
  41048. clippath: 'clipPath',
  41049. 'clip-path': 'clipPath',
  41050. clippathunits: 'clipPathUnits',
  41051. cliprule: 'clipRule',
  41052. 'clip-rule': 'clipRule',
  41053. color: 'color',
  41054. colorinterpolation: 'colorInterpolation',
  41055. 'color-interpolation': 'colorInterpolation',
  41056. colorinterpolationfilters: 'colorInterpolationFilters',
  41057. 'color-interpolation-filters': 'colorInterpolationFilters',
  41058. colorprofile: 'colorProfile',
  41059. 'color-profile': 'colorProfile',
  41060. colorrendering: 'colorRendering',
  41061. 'color-rendering': 'colorRendering',
  41062. contentscripttype: 'contentScriptType',
  41063. contentstyletype: 'contentStyleType',
  41064. cursor: 'cursor',
  41065. cx: 'cx',
  41066. cy: 'cy',
  41067. d: 'd',
  41068. datatype: 'datatype',
  41069. decelerate: 'decelerate',
  41070. descent: 'descent',
  41071. diffuseconstant: 'diffuseConstant',
  41072. direction: 'direction',
  41073. display: 'display',
  41074. divisor: 'divisor',
  41075. dominantbaseline: 'dominantBaseline',
  41076. 'dominant-baseline': 'dominantBaseline',
  41077. dur: 'dur',
  41078. dx: 'dx',
  41079. dy: 'dy',
  41080. edgemode: 'edgeMode',
  41081. elevation: 'elevation',
  41082. enablebackground: 'enableBackground',
  41083. 'enable-background': 'enableBackground',
  41084. end: 'end',
  41085. exponent: 'exponent',
  41086. externalresourcesrequired: 'externalResourcesRequired',
  41087. fill: 'fill',
  41088. fillopacity: 'fillOpacity',
  41089. 'fill-opacity': 'fillOpacity',
  41090. fillrule: 'fillRule',
  41091. 'fill-rule': 'fillRule',
  41092. filter: 'filter',
  41093. filterres: 'filterRes',
  41094. filterunits: 'filterUnits',
  41095. floodopacity: 'floodOpacity',
  41096. 'flood-opacity': 'floodOpacity',
  41097. floodcolor: 'floodColor',
  41098. 'flood-color': 'floodColor',
  41099. focusable: 'focusable',
  41100. fontfamily: 'fontFamily',
  41101. 'font-family': 'fontFamily',
  41102. fontsize: 'fontSize',
  41103. 'font-size': 'fontSize',
  41104. fontsizeadjust: 'fontSizeAdjust',
  41105. 'font-size-adjust': 'fontSizeAdjust',
  41106. fontstretch: 'fontStretch',
  41107. 'font-stretch': 'fontStretch',
  41108. fontstyle: 'fontStyle',
  41109. 'font-style': 'fontStyle',
  41110. fontvariant: 'fontVariant',
  41111. 'font-variant': 'fontVariant',
  41112. fontweight: 'fontWeight',
  41113. 'font-weight': 'fontWeight',
  41114. format: 'format',
  41115. from: 'from',
  41116. fx: 'fx',
  41117. fy: 'fy',
  41118. g1: 'g1',
  41119. g2: 'g2',
  41120. glyphname: 'glyphName',
  41121. 'glyph-name': 'glyphName',
  41122. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  41123. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  41124. glyphorientationvertical: 'glyphOrientationVertical',
  41125. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  41126. glyphref: 'glyphRef',
  41127. gradienttransform: 'gradientTransform',
  41128. gradientunits: 'gradientUnits',
  41129. hanging: 'hanging',
  41130. horizadvx: 'horizAdvX',
  41131. 'horiz-adv-x': 'horizAdvX',
  41132. horizoriginx: 'horizOriginX',
  41133. 'horiz-origin-x': 'horizOriginX',
  41134. ideographic: 'ideographic',
  41135. imagerendering: 'imageRendering',
  41136. 'image-rendering': 'imageRendering',
  41137. in2: 'in2',
  41138. in: 'in',
  41139. inlist: 'inlist',
  41140. intercept: 'intercept',
  41141. k1: 'k1',
  41142. k2: 'k2',
  41143. k3: 'k3',
  41144. k4: 'k4',
  41145. k: 'k',
  41146. kernelmatrix: 'kernelMatrix',
  41147. kernelunitlength: 'kernelUnitLength',
  41148. kerning: 'kerning',
  41149. keypoints: 'keyPoints',
  41150. keysplines: 'keySplines',
  41151. keytimes: 'keyTimes',
  41152. lengthadjust: 'lengthAdjust',
  41153. letterspacing: 'letterSpacing',
  41154. 'letter-spacing': 'letterSpacing',
  41155. lightingcolor: 'lightingColor',
  41156. 'lighting-color': 'lightingColor',
  41157. limitingconeangle: 'limitingConeAngle',
  41158. local: 'local',
  41159. markerend: 'markerEnd',
  41160. 'marker-end': 'markerEnd',
  41161. markerheight: 'markerHeight',
  41162. markermid: 'markerMid',
  41163. 'marker-mid': 'markerMid',
  41164. markerstart: 'markerStart',
  41165. 'marker-start': 'markerStart',
  41166. markerunits: 'markerUnits',
  41167. markerwidth: 'markerWidth',
  41168. mask: 'mask',
  41169. maskcontentunits: 'maskContentUnits',
  41170. maskunits: 'maskUnits',
  41171. mathematical: 'mathematical',
  41172. mode: 'mode',
  41173. numoctaves: 'numOctaves',
  41174. offset: 'offset',
  41175. opacity: 'opacity',
  41176. operator: 'operator',
  41177. order: 'order',
  41178. orient: 'orient',
  41179. orientation: 'orientation',
  41180. origin: 'origin',
  41181. overflow: 'overflow',
  41182. overlineposition: 'overlinePosition',
  41183. 'overline-position': 'overlinePosition',
  41184. overlinethickness: 'overlineThickness',
  41185. 'overline-thickness': 'overlineThickness',
  41186. paintorder: 'paintOrder',
  41187. 'paint-order': 'paintOrder',
  41188. panose1: 'panose1',
  41189. 'panose-1': 'panose1',
  41190. pathlength: 'pathLength',
  41191. patterncontentunits: 'patternContentUnits',
  41192. patterntransform: 'patternTransform',
  41193. patternunits: 'patternUnits',
  41194. pointerevents: 'pointerEvents',
  41195. 'pointer-events': 'pointerEvents',
  41196. points: 'points',
  41197. pointsatx: 'pointsAtX',
  41198. pointsaty: 'pointsAtY',
  41199. pointsatz: 'pointsAtZ',
  41200. prefix: 'prefix',
  41201. preservealpha: 'preserveAlpha',
  41202. preserveaspectratio: 'preserveAspectRatio',
  41203. primitiveunits: 'primitiveUnits',
  41204. property: 'property',
  41205. r: 'r',
  41206. radius: 'radius',
  41207. refx: 'refX',
  41208. refy: 'refY',
  41209. renderingintent: 'renderingIntent',
  41210. 'rendering-intent': 'renderingIntent',
  41211. repeatcount: 'repeatCount',
  41212. repeatdur: 'repeatDur',
  41213. requiredextensions: 'requiredExtensions',
  41214. requiredfeatures: 'requiredFeatures',
  41215. resource: 'resource',
  41216. restart: 'restart',
  41217. result: 'result',
  41218. results: 'results',
  41219. rotate: 'rotate',
  41220. rx: 'rx',
  41221. ry: 'ry',
  41222. scale: 'scale',
  41223. security: 'security',
  41224. seed: 'seed',
  41225. shaperendering: 'shapeRendering',
  41226. 'shape-rendering': 'shapeRendering',
  41227. slope: 'slope',
  41228. spacing: 'spacing',
  41229. specularconstant: 'specularConstant',
  41230. specularexponent: 'specularExponent',
  41231. speed: 'speed',
  41232. spreadmethod: 'spreadMethod',
  41233. startoffset: 'startOffset',
  41234. stddeviation: 'stdDeviation',
  41235. stemh: 'stemh',
  41236. stemv: 'stemv',
  41237. stitchtiles: 'stitchTiles',
  41238. stopcolor: 'stopColor',
  41239. 'stop-color': 'stopColor',
  41240. stopopacity: 'stopOpacity',
  41241. 'stop-opacity': 'stopOpacity',
  41242. strikethroughposition: 'strikethroughPosition',
  41243. 'strikethrough-position': 'strikethroughPosition',
  41244. strikethroughthickness: 'strikethroughThickness',
  41245. 'strikethrough-thickness': 'strikethroughThickness',
  41246. string: 'string',
  41247. stroke: 'stroke',
  41248. strokedasharray: 'strokeDasharray',
  41249. 'stroke-dasharray': 'strokeDasharray',
  41250. strokedashoffset: 'strokeDashoffset',
  41251. 'stroke-dashoffset': 'strokeDashoffset',
  41252. strokelinecap: 'strokeLinecap',
  41253. 'stroke-linecap': 'strokeLinecap',
  41254. strokelinejoin: 'strokeLinejoin',
  41255. 'stroke-linejoin': 'strokeLinejoin',
  41256. strokemiterlimit: 'strokeMiterlimit',
  41257. 'stroke-miterlimit': 'strokeMiterlimit',
  41258. strokewidth: 'strokeWidth',
  41259. 'stroke-width': 'strokeWidth',
  41260. strokeopacity: 'strokeOpacity',
  41261. 'stroke-opacity': 'strokeOpacity',
  41262. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  41263. suppresshydrationwarning: 'suppressHydrationWarning',
  41264. surfacescale: 'surfaceScale',
  41265. systemlanguage: 'systemLanguage',
  41266. tablevalues: 'tableValues',
  41267. targetx: 'targetX',
  41268. targety: 'targetY',
  41269. textanchor: 'textAnchor',
  41270. 'text-anchor': 'textAnchor',
  41271. textdecoration: 'textDecoration',
  41272. 'text-decoration': 'textDecoration',
  41273. textlength: 'textLength',
  41274. textrendering: 'textRendering',
  41275. 'text-rendering': 'textRendering',
  41276. to: 'to',
  41277. transform: 'transform',
  41278. typeof: 'typeof',
  41279. u1: 'u1',
  41280. u2: 'u2',
  41281. underlineposition: 'underlinePosition',
  41282. 'underline-position': 'underlinePosition',
  41283. underlinethickness: 'underlineThickness',
  41284. 'underline-thickness': 'underlineThickness',
  41285. unicode: 'unicode',
  41286. unicodebidi: 'unicodeBidi',
  41287. 'unicode-bidi': 'unicodeBidi',
  41288. unicoderange: 'unicodeRange',
  41289. 'unicode-range': 'unicodeRange',
  41290. unitsperem: 'unitsPerEm',
  41291. 'units-per-em': 'unitsPerEm',
  41292. unselectable: 'unselectable',
  41293. valphabetic: 'vAlphabetic',
  41294. 'v-alphabetic': 'vAlphabetic',
  41295. values: 'values',
  41296. vectoreffect: 'vectorEffect',
  41297. 'vector-effect': 'vectorEffect',
  41298. version: 'version',
  41299. vertadvy: 'vertAdvY',
  41300. 'vert-adv-y': 'vertAdvY',
  41301. vertoriginx: 'vertOriginX',
  41302. 'vert-origin-x': 'vertOriginX',
  41303. vertoriginy: 'vertOriginY',
  41304. 'vert-origin-y': 'vertOriginY',
  41305. vhanging: 'vHanging',
  41306. 'v-hanging': 'vHanging',
  41307. videographic: 'vIdeographic',
  41308. 'v-ideographic': 'vIdeographic',
  41309. viewbox: 'viewBox',
  41310. viewtarget: 'viewTarget',
  41311. visibility: 'visibility',
  41312. vmathematical: 'vMathematical',
  41313. 'v-mathematical': 'vMathematical',
  41314. vocab: 'vocab',
  41315. widths: 'widths',
  41316. wordspacing: 'wordSpacing',
  41317. 'word-spacing': 'wordSpacing',
  41318. writingmode: 'writingMode',
  41319. 'writing-mode': 'writingMode',
  41320. x1: 'x1',
  41321. x2: 'x2',
  41322. x: 'x',
  41323. xchannelselector: 'xChannelSelector',
  41324. xheight: 'xHeight',
  41325. 'x-height': 'xHeight',
  41326. xlinkactuate: 'xlinkActuate',
  41327. 'xlink:actuate': 'xlinkActuate',
  41328. xlinkarcrole: 'xlinkArcrole',
  41329. 'xlink:arcrole': 'xlinkArcrole',
  41330. xlinkhref: 'xlinkHref',
  41331. 'xlink:href': 'xlinkHref',
  41332. xlinkrole: 'xlinkRole',
  41333. 'xlink:role': 'xlinkRole',
  41334. xlinkshow: 'xlinkShow',
  41335. 'xlink:show': 'xlinkShow',
  41336. xlinktitle: 'xlinkTitle',
  41337. 'xlink:title': 'xlinkTitle',
  41338. xlinktype: 'xlinkType',
  41339. 'xlink:type': 'xlinkType',
  41340. xmlbase: 'xmlBase',
  41341. 'xml:base': 'xmlBase',
  41342. xmllang: 'xmlLang',
  41343. 'xml:lang': 'xmlLang',
  41344. xmlns: 'xmlns',
  41345. 'xml:space': 'xmlSpace',
  41346. xmlnsxlink: 'xmlnsXlink',
  41347. 'xmlns:xlink': 'xmlnsXlink',
  41348. xmlspace: 'xmlSpace',
  41349. y1: 'y1',
  41350. y2: 'y2',
  41351. y: 'y',
  41352. ychannelselector: 'yChannelSelector',
  41353. z: 'z',
  41354. zoomandpan: 'zoomAndPan'
  41355. };
  41356. var ariaProperties = {
  41357. 'aria-current': 0, // state
  41358. 'aria-details': 0,
  41359. 'aria-disabled': 0, // state
  41360. 'aria-hidden': 0, // state
  41361. 'aria-invalid': 0, // state
  41362. 'aria-keyshortcuts': 0,
  41363. 'aria-label': 0,
  41364. 'aria-roledescription': 0,
  41365. // Widget Attributes
  41366. 'aria-autocomplete': 0,
  41367. 'aria-checked': 0,
  41368. 'aria-expanded': 0,
  41369. 'aria-haspopup': 0,
  41370. 'aria-level': 0,
  41371. 'aria-modal': 0,
  41372. 'aria-multiline': 0,
  41373. 'aria-multiselectable': 0,
  41374. 'aria-orientation': 0,
  41375. 'aria-placeholder': 0,
  41376. 'aria-pressed': 0,
  41377. 'aria-readonly': 0,
  41378. 'aria-required': 0,
  41379. 'aria-selected': 0,
  41380. 'aria-sort': 0,
  41381. 'aria-valuemax': 0,
  41382. 'aria-valuemin': 0,
  41383. 'aria-valuenow': 0,
  41384. 'aria-valuetext': 0,
  41385. // Live Region Attributes
  41386. 'aria-atomic': 0,
  41387. 'aria-busy': 0,
  41388. 'aria-live': 0,
  41389. 'aria-relevant': 0,
  41390. // Drag-and-Drop Attributes
  41391. 'aria-dropeffect': 0,
  41392. 'aria-grabbed': 0,
  41393. // Relationship Attributes
  41394. 'aria-activedescendant': 0,
  41395. 'aria-colcount': 0,
  41396. 'aria-colindex': 0,
  41397. 'aria-colspan': 0,
  41398. 'aria-controls': 0,
  41399. 'aria-describedby': 0,
  41400. 'aria-errormessage': 0,
  41401. 'aria-flowto': 0,
  41402. 'aria-labelledby': 0,
  41403. 'aria-owns': 0,
  41404. 'aria-posinset': 0,
  41405. 'aria-rowcount': 0,
  41406. 'aria-rowindex': 0,
  41407. 'aria-rowspan': 0,
  41408. 'aria-setsize': 0
  41409. };
  41410. var warnedProperties = {};
  41411. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  41412. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  41413. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  41414. function validateProperty(tagName, name) {
  41415. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  41416. return true;
  41417. }
  41418. if (rARIACamel.test(name)) {
  41419. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  41420. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  41421. // If this is an aria-* attribute, but is not listed in the known DOM
  41422. // DOM properties, then it is an invalid aria-* attribute.
  41423. if (correctName == null) {
  41424. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  41425. warnedProperties[name] = true;
  41426. return true;
  41427. }
  41428. // aria-* attributes should be lowercase; suggest the lowercase version.
  41429. if (name !== correctName) {
  41430. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  41431. warnedProperties[name] = true;
  41432. return true;
  41433. }
  41434. }
  41435. if (rARIA.test(name)) {
  41436. var lowerCasedName = name.toLowerCase();
  41437. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  41438. // If this is an aria-* attribute, but is not listed in the known DOM
  41439. // DOM properties, then it is an invalid aria-* attribute.
  41440. if (standardName == null) {
  41441. warnedProperties[name] = true;
  41442. return false;
  41443. }
  41444. // aria-* attributes should be lowercase; suggest the lowercase version.
  41445. if (name !== standardName) {
  41446. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  41447. warnedProperties[name] = true;
  41448. return true;
  41449. }
  41450. }
  41451. return true;
  41452. }
  41453. function warnInvalidARIAProps(type, props) {
  41454. var invalidProps = [];
  41455. for (var key in props) {
  41456. var isValid = validateProperty(type, key);
  41457. if (!isValid) {
  41458. invalidProps.push(key);
  41459. }
  41460. }
  41461. var unknownPropString = invalidProps.map(function (prop) {
  41462. return '`' + prop + '`';
  41463. }).join(', ');
  41464. if (invalidProps.length === 1) {
  41465. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  41466. } else if (invalidProps.length > 1) {
  41467. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  41468. }
  41469. }
  41470. function validateProperties(type, props) {
  41471. if (isCustomComponent(type, props)) {
  41472. return;
  41473. }
  41474. warnInvalidARIAProps(type, props);
  41475. }
  41476. var didWarnValueNull = false;
  41477. function validateProperties$1(type, props) {
  41478. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  41479. return;
  41480. }
  41481. if (props != null && props.value === null && !didWarnValueNull) {
  41482. didWarnValueNull = true;
  41483. if (type === 'select' && props.multiple) {
  41484. 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);
  41485. } else {
  41486. 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);
  41487. }
  41488. }
  41489. }
  41490. var validateProperty$1 = function () {};
  41491. {
  41492. var warnedProperties$1 = {};
  41493. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  41494. var EVENT_NAME_REGEX = /^on./;
  41495. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  41496. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  41497. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  41498. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  41499. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  41500. return true;
  41501. }
  41502. var lowerCasedName = name.toLowerCase();
  41503. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  41504. 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.');
  41505. warnedProperties$1[name] = true;
  41506. return true;
  41507. }
  41508. // We can't rely on the event system being injected on the server.
  41509. if (canUseEventSystem) {
  41510. if (registrationNameModules.hasOwnProperty(name)) {
  41511. return true;
  41512. }
  41513. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  41514. if (registrationName != null) {
  41515. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  41516. warnedProperties$1[name] = true;
  41517. return true;
  41518. }
  41519. if (EVENT_NAME_REGEX.test(name)) {
  41520. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  41521. warnedProperties$1[name] = true;
  41522. return true;
  41523. }
  41524. } else if (EVENT_NAME_REGEX.test(name)) {
  41525. // If no event plugins have been injected, we are in a server environment.
  41526. // So we can't tell if the event name is correct for sure, but we can filter
  41527. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  41528. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  41529. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  41530. }
  41531. warnedProperties$1[name] = true;
  41532. return true;
  41533. }
  41534. // Let the ARIA attribute hook validate ARIA attributes
  41535. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  41536. return true;
  41537. }
  41538. if (lowerCasedName === 'innerhtml') {
  41539. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  41540. warnedProperties$1[name] = true;
  41541. return true;
  41542. }
  41543. if (lowerCasedName === 'aria') {
  41544. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  41545. warnedProperties$1[name] = true;
  41546. return true;
  41547. }
  41548. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  41549. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  41550. warnedProperties$1[name] = true;
  41551. return true;
  41552. }
  41553. if (typeof value === 'number' && isNaN(value)) {
  41554. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  41555. warnedProperties$1[name] = true;
  41556. return true;
  41557. }
  41558. var propertyInfo = getPropertyInfo(name);
  41559. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  41560. // Known attributes should match the casing specified in the property config.
  41561. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  41562. var standardName = possibleStandardNames[lowerCasedName];
  41563. if (standardName !== name) {
  41564. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  41565. warnedProperties$1[name] = true;
  41566. return true;
  41567. }
  41568. } else if (!isReserved && name !== lowerCasedName) {
  41569. // Unknown attributes should have lowercase casing since that's how they
  41570. // will be cased anyway with server rendering.
  41571. 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);
  41572. warnedProperties$1[name] = true;
  41573. return true;
  41574. }
  41575. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  41576. if (value) {
  41577. 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);
  41578. } else {
  41579. 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);
  41580. }
  41581. warnedProperties$1[name] = true;
  41582. return true;
  41583. }
  41584. // Now that we've validated casing, do not validate
  41585. // data types for reserved props
  41586. if (isReserved) {
  41587. return true;
  41588. }
  41589. // Warn when a known attribute is a bad type
  41590. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  41591. warnedProperties$1[name] = true;
  41592. return false;
  41593. }
  41594. // Warn when passing the strings 'false' or 'true' into a boolean prop
  41595. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  41596. 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);
  41597. warnedProperties$1[name] = true;
  41598. return true;
  41599. }
  41600. return true;
  41601. };
  41602. }
  41603. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  41604. var unknownProps = [];
  41605. for (var key in props) {
  41606. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  41607. if (!isValid) {
  41608. unknownProps.push(key);
  41609. }
  41610. }
  41611. var unknownPropString = unknownProps.map(function (prop) {
  41612. return '`' + prop + '`';
  41613. }).join(', ');
  41614. if (unknownProps.length === 1) {
  41615. 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);
  41616. } else if (unknownProps.length > 1) {
  41617. 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);
  41618. }
  41619. };
  41620. function validateProperties$2(type, props, canUseEventSystem) {
  41621. if (isCustomComponent(type, props)) {
  41622. return;
  41623. }
  41624. warnUnknownProperties(type, props, canUseEventSystem);
  41625. }
  41626. // TODO: direct imports like some-package/src/* are bad. Fix me.
  41627. var didWarnInvalidHydration = false;
  41628. var didWarnShadyDOM = false;
  41629. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  41630. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  41631. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  41632. var AUTOFOCUS = 'autoFocus';
  41633. var CHILDREN = 'children';
  41634. var STYLE$1 = 'style';
  41635. var HTML = '__html';
  41636. var LISTENERS = 'listeners';
  41637. var HTML_NAMESPACE = Namespaces.html;
  41638. var warnedUnknownTags = void 0;
  41639. var suppressHydrationWarning = void 0;
  41640. var validatePropertiesInDevelopment = void 0;
  41641. var warnForTextDifference = void 0;
  41642. var warnForPropDifference = void 0;
  41643. var warnForExtraAttributes = void 0;
  41644. var warnForInvalidEventListener = void 0;
  41645. var canDiffStyleForHydrationWarning = void 0;
  41646. var normalizeMarkupForTextOrAttribute = void 0;
  41647. var normalizeHTML = void 0;
  41648. {
  41649. warnedUnknownTags = {
  41650. // Chrome is the only major browser not shipping <time>. But as of July
  41651. // 2017 it intends to ship it due to widespread usage. We intentionally
  41652. // *don't* warn for <time> even if it's unrecognized by Chrome because
  41653. // it soon will be, and many apps have been using it anyway.
  41654. time: true,
  41655. // There are working polyfills for <dialog>. Let people use it.
  41656. dialog: true,
  41657. // Electron ships a custom <webview> tag to display external web content in
  41658. // an isolated frame and process.
  41659. // This tag is not present in non Electron environments such as JSDom which
  41660. // is often used for testing purposes.
  41661. // @see https://electronjs.org/docs/api/webview-tag
  41662. webview: true
  41663. };
  41664. validatePropertiesInDevelopment = function (type, props) {
  41665. validateProperties(type, props);
  41666. validateProperties$1(type, props);
  41667. validateProperties$2(type, props, /* canUseEventSystem */true);
  41668. };
  41669. // IE 11 parses & normalizes the style attribute as opposed to other
  41670. // browsers. It adds spaces and sorts the properties in some
  41671. // non-alphabetical order. Handling that would require sorting CSS
  41672. // properties in the client & server versions or applying
  41673. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  41674. // normalized. Since it only affects IE, we're skipping style warnings
  41675. // in that browser completely in favor of doing all that work.
  41676. // See https://github.com/facebook/react/issues/11807
  41677. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  41678. // HTML parsing normalizes CR and CRLF to LF.
  41679. // It also can turn \u0000 into \uFFFD inside attributes.
  41680. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  41681. // If we have a mismatch, it might be caused by that.
  41682. // We will still patch up in this case but not fire the warning.
  41683. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  41684. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  41685. normalizeMarkupForTextOrAttribute = function (markup) {
  41686. var markupString = typeof markup === 'string' ? markup : '' + markup;
  41687. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  41688. };
  41689. warnForTextDifference = function (serverText, clientText) {
  41690. if (didWarnInvalidHydration) {
  41691. return;
  41692. }
  41693. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  41694. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  41695. if (normalizedServerText === normalizedClientText) {
  41696. return;
  41697. }
  41698. didWarnInvalidHydration = true;
  41699. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  41700. };
  41701. warnForPropDifference = function (propName, serverValue, clientValue) {
  41702. if (didWarnInvalidHydration) {
  41703. return;
  41704. }
  41705. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  41706. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  41707. if (normalizedServerValue === normalizedClientValue) {
  41708. return;
  41709. }
  41710. didWarnInvalidHydration = true;
  41711. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  41712. };
  41713. warnForExtraAttributes = function (attributeNames) {
  41714. if (didWarnInvalidHydration) {
  41715. return;
  41716. }
  41717. didWarnInvalidHydration = true;
  41718. var names = [];
  41719. attributeNames.forEach(function (name) {
  41720. names.push(name);
  41721. });
  41722. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  41723. };
  41724. warnForInvalidEventListener = function (registrationName, listener) {
  41725. if (listener === false) {
  41726. 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);
  41727. } else {
  41728. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  41729. }
  41730. };
  41731. // Parse the HTML and read it back to normalize the HTML string so that it
  41732. // can be used for comparison.
  41733. normalizeHTML = function (parent, html) {
  41734. // We could have created a separate document here to avoid
  41735. // re-initializing custom elements if they exist. But this breaks
  41736. // how <noscript> is being handled. So we use the same document.
  41737. // See the discussion in https://github.com/facebook/react/pull/11157.
  41738. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  41739. testElement.innerHTML = html;
  41740. return testElement.innerHTML;
  41741. };
  41742. }
  41743. function ensureListeningTo(rootContainerElement, registrationName) {
  41744. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  41745. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  41746. listenTo(registrationName, doc);
  41747. }
  41748. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  41749. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  41750. }
  41751. function noop() {}
  41752. function trapClickOnNonInteractiveElement(node) {
  41753. // Mobile Safari does not fire properly bubble click events on
  41754. // non-interactive elements, which means delegated click listeners do not
  41755. // fire. The workaround for this bug involves attaching an empty click
  41756. // listener on the target node.
  41757. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  41758. // Just set it using the onclick property so that we don't have to manage any
  41759. // bookkeeping for it. Not sure if we need to clear it when the listener is
  41760. // removed.
  41761. // TODO: Only do this for the relevant Safaris maybe?
  41762. node.onclick = noop;
  41763. }
  41764. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  41765. for (var propKey in nextProps) {
  41766. if (!nextProps.hasOwnProperty(propKey)) {
  41767. continue;
  41768. }
  41769. var nextProp = nextProps[propKey];
  41770. if (propKey === STYLE$1) {
  41771. {
  41772. if (nextProp) {
  41773. // Freeze the next style object so that we can assume it won't be
  41774. // mutated. We have already warned for this in the past.
  41775. Object.freeze(nextProp);
  41776. }
  41777. }
  41778. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  41779. setValueForStyles(domElement, nextProp);
  41780. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41781. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  41782. if (nextHtml != null) {
  41783. setInnerHTML(domElement, nextHtml);
  41784. }
  41785. } else if (propKey === CHILDREN) {
  41786. if (typeof nextProp === 'string') {
  41787. // Avoid setting initial textContent when the text is empty. In IE11 setting
  41788. // textContent on a <textarea> will cause the placeholder to not
  41789. // show within the <textarea> until it has been focused and blurred again.
  41790. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  41791. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  41792. if (canSetTextContent) {
  41793. setTextContent(domElement, nextProp);
  41794. }
  41795. } else if (typeof nextProp === 'number') {
  41796. setTextContent(domElement, '' + nextProp);
  41797. }
  41798. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  41799. // Noop
  41800. } else if (propKey === AUTOFOCUS) {
  41801. // We polyfill it separately on the client during commit.
  41802. // We could have excluded it in the property list instead of
  41803. // adding a special case here, but then it wouldn't be emitted
  41804. // on server rendering (but we *do* want to emit it in SSR).
  41805. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  41806. if (nextProp != null) {
  41807. if ( true && typeof nextProp !== 'function') {
  41808. warnForInvalidEventListener(propKey, nextProp);
  41809. }
  41810. ensureListeningTo(rootContainerElement, propKey);
  41811. }
  41812. } else if (nextProp != null) {
  41813. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  41814. }
  41815. }
  41816. }
  41817. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  41818. // TODO: Handle wasCustomComponentTag
  41819. for (var i = 0; i < updatePayload.length; i += 2) {
  41820. var propKey = updatePayload[i];
  41821. var propValue = updatePayload[i + 1];
  41822. if (propKey === STYLE$1) {
  41823. setValueForStyles(domElement, propValue);
  41824. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41825. setInnerHTML(domElement, propValue);
  41826. } else if (propKey === CHILDREN) {
  41827. setTextContent(domElement, propValue);
  41828. } else {
  41829. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  41830. }
  41831. }
  41832. }
  41833. function createElement(type, props, rootContainerElement, parentNamespace) {
  41834. var isCustomComponentTag = void 0;
  41835. // We create tags in the namespace of their parent container, except HTML
  41836. // tags get no namespace.
  41837. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  41838. var domElement = void 0;
  41839. var namespaceURI = parentNamespace;
  41840. if (namespaceURI === HTML_NAMESPACE) {
  41841. namespaceURI = getIntrinsicNamespace(type);
  41842. }
  41843. if (namespaceURI === HTML_NAMESPACE) {
  41844. {
  41845. isCustomComponentTag = isCustomComponent(type, props);
  41846. // Should this check be gated by parent namespace? Not sure we want to
  41847. // allow <SVG> or <mATH>.
  41848. !(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;
  41849. }
  41850. if (type === 'script') {
  41851. // Create the script via .innerHTML so its "parser-inserted" flag is
  41852. // set to true and it does not execute
  41853. var div = ownerDocument.createElement('div');
  41854. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  41855. // This is guaranteed to yield a script element.
  41856. var firstChild = div.firstChild;
  41857. domElement = div.removeChild(firstChild);
  41858. } else if (typeof props.is === 'string') {
  41859. // $FlowIssue `createElement` should be updated for Web Components
  41860. domElement = ownerDocument.createElement(type, { is: props.is });
  41861. } else {
  41862. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  41863. // See discussion in https://github.com/facebook/react/pull/6896
  41864. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  41865. domElement = ownerDocument.createElement(type);
  41866. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  41867. // attributes on `select`s needs to be added before `option`s are inserted.
  41868. // This prevents:
  41869. // - a bug where the `select` does not scroll to the correct option because singular
  41870. // `select` elements automatically pick the first item #13222
  41871. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  41872. // See https://github.com/facebook/react/issues/13222
  41873. // and https://github.com/facebook/react/issues/14239
  41874. if (type === 'select') {
  41875. var node = domElement;
  41876. if (props.multiple) {
  41877. node.multiple = true;
  41878. } else if (props.size) {
  41879. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  41880. // it is possible that no option is selected.
  41881. //
  41882. // This is only necessary when a select in "single selection mode".
  41883. node.size = props.size;
  41884. }
  41885. }
  41886. }
  41887. } else {
  41888. domElement = ownerDocument.createElementNS(namespaceURI, type);
  41889. }
  41890. {
  41891. if (namespaceURI === HTML_NAMESPACE) {
  41892. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  41893. warnedUnknownTags[type] = true;
  41894. 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);
  41895. }
  41896. }
  41897. }
  41898. return domElement;
  41899. }
  41900. function createTextNode(text, rootContainerElement) {
  41901. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  41902. }
  41903. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  41904. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  41905. {
  41906. validatePropertiesInDevelopment(tag, rawProps);
  41907. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  41908. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  41909. didWarnShadyDOM = true;
  41910. }
  41911. }
  41912. // TODO: Make sure that we check isMounted before firing any of these events.
  41913. var props = void 0;
  41914. switch (tag) {
  41915. case 'iframe':
  41916. case 'object':
  41917. case 'embed':
  41918. trapBubbledEvent(TOP_LOAD, domElement);
  41919. props = rawProps;
  41920. break;
  41921. case 'video':
  41922. case 'audio':
  41923. // Create listener for each media event
  41924. for (var i = 0; i < mediaEventTypes.length; i++) {
  41925. trapBubbledEvent(mediaEventTypes[i], domElement);
  41926. }
  41927. props = rawProps;
  41928. break;
  41929. case 'source':
  41930. trapBubbledEvent(TOP_ERROR, domElement);
  41931. props = rawProps;
  41932. break;
  41933. case 'img':
  41934. case 'image':
  41935. case 'link':
  41936. trapBubbledEvent(TOP_ERROR, domElement);
  41937. trapBubbledEvent(TOP_LOAD, domElement);
  41938. props = rawProps;
  41939. break;
  41940. case 'form':
  41941. trapBubbledEvent(TOP_RESET, domElement);
  41942. trapBubbledEvent(TOP_SUBMIT, domElement);
  41943. props = rawProps;
  41944. break;
  41945. case 'details':
  41946. trapBubbledEvent(TOP_TOGGLE, domElement);
  41947. props = rawProps;
  41948. break;
  41949. case 'input':
  41950. initWrapperState(domElement, rawProps);
  41951. props = getHostProps(domElement, rawProps);
  41952. trapBubbledEvent(TOP_INVALID, domElement);
  41953. // For controlled components we always need to ensure we're listening
  41954. // to onChange. Even if there is no listener.
  41955. ensureListeningTo(rootContainerElement, 'onChange');
  41956. break;
  41957. case 'option':
  41958. validateProps(domElement, rawProps);
  41959. props = getHostProps$1(domElement, rawProps);
  41960. break;
  41961. case 'select':
  41962. initWrapperState$1(domElement, rawProps);
  41963. props = getHostProps$2(domElement, rawProps);
  41964. trapBubbledEvent(TOP_INVALID, domElement);
  41965. // For controlled components we always need to ensure we're listening
  41966. // to onChange. Even if there is no listener.
  41967. ensureListeningTo(rootContainerElement, 'onChange');
  41968. break;
  41969. case 'textarea':
  41970. initWrapperState$2(domElement, rawProps);
  41971. props = getHostProps$3(domElement, rawProps);
  41972. trapBubbledEvent(TOP_INVALID, domElement);
  41973. // For controlled components we always need to ensure we're listening
  41974. // to onChange. Even if there is no listener.
  41975. ensureListeningTo(rootContainerElement, 'onChange');
  41976. break;
  41977. default:
  41978. props = rawProps;
  41979. }
  41980. assertValidProps(tag, props);
  41981. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  41982. switch (tag) {
  41983. case 'input':
  41984. // TODO: Make sure we check if this is still unmounted or do any clean
  41985. // up necessary since we never stop tracking anymore.
  41986. track(domElement);
  41987. postMountWrapper(domElement, rawProps, false);
  41988. break;
  41989. case 'textarea':
  41990. // TODO: Make sure we check if this is still unmounted or do any clean
  41991. // up necessary since we never stop tracking anymore.
  41992. track(domElement);
  41993. postMountWrapper$3(domElement, rawProps);
  41994. break;
  41995. case 'option':
  41996. postMountWrapper$1(domElement, rawProps);
  41997. break;
  41998. case 'select':
  41999. postMountWrapper$2(domElement, rawProps);
  42000. break;
  42001. default:
  42002. if (typeof props.onClick === 'function') {
  42003. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42004. trapClickOnNonInteractiveElement(domElement);
  42005. }
  42006. break;
  42007. }
  42008. }
  42009. // Calculate the diff between the two objects.
  42010. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  42011. {
  42012. validatePropertiesInDevelopment(tag, nextRawProps);
  42013. }
  42014. var updatePayload = null;
  42015. var lastProps = void 0;
  42016. var nextProps = void 0;
  42017. switch (tag) {
  42018. case 'input':
  42019. lastProps = getHostProps(domElement, lastRawProps);
  42020. nextProps = getHostProps(domElement, nextRawProps);
  42021. updatePayload = [];
  42022. break;
  42023. case 'option':
  42024. lastProps = getHostProps$1(domElement, lastRawProps);
  42025. nextProps = getHostProps$1(domElement, nextRawProps);
  42026. updatePayload = [];
  42027. break;
  42028. case 'select':
  42029. lastProps = getHostProps$2(domElement, lastRawProps);
  42030. nextProps = getHostProps$2(domElement, nextRawProps);
  42031. updatePayload = [];
  42032. break;
  42033. case 'textarea':
  42034. lastProps = getHostProps$3(domElement, lastRawProps);
  42035. nextProps = getHostProps$3(domElement, nextRawProps);
  42036. updatePayload = [];
  42037. break;
  42038. default:
  42039. lastProps = lastRawProps;
  42040. nextProps = nextRawProps;
  42041. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  42042. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42043. trapClickOnNonInteractiveElement(domElement);
  42044. }
  42045. break;
  42046. }
  42047. assertValidProps(tag, nextProps);
  42048. var propKey = void 0;
  42049. var styleName = void 0;
  42050. var styleUpdates = null;
  42051. for (propKey in lastProps) {
  42052. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  42053. continue;
  42054. }
  42055. if (propKey === STYLE$1) {
  42056. var lastStyle = lastProps[propKey];
  42057. for (styleName in lastStyle) {
  42058. if (lastStyle.hasOwnProperty(styleName)) {
  42059. if (!styleUpdates) {
  42060. styleUpdates = {};
  42061. }
  42062. styleUpdates[styleName] = '';
  42063. }
  42064. }
  42065. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  42066. // Noop. This is handled by the clear text mechanism.
  42067. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  42068. // Noop
  42069. } else if (propKey === AUTOFOCUS) {
  42070. // Noop. It doesn't work on updates anyway.
  42071. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42072. // This is a special case. If any listener updates we need to ensure
  42073. // that the "current" fiber pointer gets updated so we need a commit
  42074. // to update this element.
  42075. if (!updatePayload) {
  42076. updatePayload = [];
  42077. }
  42078. } else {
  42079. // For all other deleted properties we add it to the queue. We use
  42080. // the whitelist in the commit phase instead.
  42081. (updatePayload = updatePayload || []).push(propKey, null);
  42082. }
  42083. }
  42084. for (propKey in nextProps) {
  42085. var nextProp = nextProps[propKey];
  42086. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  42087. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  42088. continue;
  42089. }
  42090. if (propKey === STYLE$1) {
  42091. {
  42092. if (nextProp) {
  42093. // Freeze the next style object so that we can assume it won't be
  42094. // mutated. We have already warned for this in the past.
  42095. Object.freeze(nextProp);
  42096. }
  42097. }
  42098. if (lastProp) {
  42099. // Unset styles on `lastProp` but not on `nextProp`.
  42100. for (styleName in lastProp) {
  42101. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  42102. if (!styleUpdates) {
  42103. styleUpdates = {};
  42104. }
  42105. styleUpdates[styleName] = '';
  42106. }
  42107. }
  42108. // Update styles that changed since `lastProp`.
  42109. for (styleName in nextProp) {
  42110. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  42111. if (!styleUpdates) {
  42112. styleUpdates = {};
  42113. }
  42114. styleUpdates[styleName] = nextProp[styleName];
  42115. }
  42116. }
  42117. } else {
  42118. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  42119. if (!styleUpdates) {
  42120. if (!updatePayload) {
  42121. updatePayload = [];
  42122. }
  42123. updatePayload.push(propKey, styleUpdates);
  42124. }
  42125. styleUpdates = nextProp;
  42126. }
  42127. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  42128. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  42129. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  42130. if (nextHtml != null) {
  42131. if (lastHtml !== nextHtml) {
  42132. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  42133. }
  42134. } else {
  42135. // TODO: It might be too late to clear this if we have children
  42136. // inserted already.
  42137. }
  42138. } else if (propKey === CHILDREN) {
  42139. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  42140. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  42141. }
  42142. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  42143. // Noop
  42144. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42145. if (nextProp != null) {
  42146. // We eagerly listen to this even though we haven't committed yet.
  42147. if ( true && typeof nextProp !== 'function') {
  42148. warnForInvalidEventListener(propKey, nextProp);
  42149. }
  42150. ensureListeningTo(rootContainerElement, propKey);
  42151. }
  42152. if (!updatePayload && lastProp !== nextProp) {
  42153. // This is a special case. If any listener updates we need to ensure
  42154. // that the "current" props pointer gets updated so we need a commit
  42155. // to update this element.
  42156. updatePayload = [];
  42157. }
  42158. } else {
  42159. // For any other property we always add it to the queue and then we
  42160. // filter it out using the whitelist during the commit.
  42161. (updatePayload = updatePayload || []).push(propKey, nextProp);
  42162. }
  42163. }
  42164. if (styleUpdates) {
  42165. {
  42166. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);
  42167. }
  42168. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  42169. }
  42170. return updatePayload;
  42171. }
  42172. // Apply the diff.
  42173. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  42174. // Update checked *before* name.
  42175. // In the middle of an update, it is possible to have multiple checked.
  42176. // When a checked radio tries to change name, browser makes another radio's checked false.
  42177. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  42178. updateChecked(domElement, nextRawProps);
  42179. }
  42180. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  42181. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  42182. // Apply the diff.
  42183. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  42184. // TODO: Ensure that an update gets scheduled if any of the special props
  42185. // changed.
  42186. switch (tag) {
  42187. case 'input':
  42188. // Update the wrapper around inputs *after* updating props. This has to
  42189. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  42190. // raise warnings and prevent the new value from being assigned.
  42191. updateWrapper(domElement, nextRawProps);
  42192. break;
  42193. case 'textarea':
  42194. updateWrapper$1(domElement, nextRawProps);
  42195. break;
  42196. case 'select':
  42197. // <select> value update needs to occur after <option> children
  42198. // reconciliation
  42199. postUpdateWrapper(domElement, nextRawProps);
  42200. break;
  42201. }
  42202. }
  42203. function getPossibleStandardName(propName) {
  42204. {
  42205. var lowerCasedName = propName.toLowerCase();
  42206. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  42207. return null;
  42208. }
  42209. return possibleStandardNames[lowerCasedName] || null;
  42210. }
  42211. return null;
  42212. }
  42213. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  42214. var isCustomComponentTag = void 0;
  42215. var extraAttributeNames = void 0;
  42216. {
  42217. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  42218. isCustomComponentTag = isCustomComponent(tag, rawProps);
  42219. validatePropertiesInDevelopment(tag, rawProps);
  42220. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  42221. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  42222. didWarnShadyDOM = true;
  42223. }
  42224. }
  42225. // TODO: Make sure that we check isMounted before firing any of these events.
  42226. switch (tag) {
  42227. case 'iframe':
  42228. case 'object':
  42229. case 'embed':
  42230. trapBubbledEvent(TOP_LOAD, domElement);
  42231. break;
  42232. case 'video':
  42233. case 'audio':
  42234. // Create listener for each media event
  42235. for (var i = 0; i < mediaEventTypes.length; i++) {
  42236. trapBubbledEvent(mediaEventTypes[i], domElement);
  42237. }
  42238. break;
  42239. case 'source':
  42240. trapBubbledEvent(TOP_ERROR, domElement);
  42241. break;
  42242. case 'img':
  42243. case 'image':
  42244. case 'link':
  42245. trapBubbledEvent(TOP_ERROR, domElement);
  42246. trapBubbledEvent(TOP_LOAD, domElement);
  42247. break;
  42248. case 'form':
  42249. trapBubbledEvent(TOP_RESET, domElement);
  42250. trapBubbledEvent(TOP_SUBMIT, domElement);
  42251. break;
  42252. case 'details':
  42253. trapBubbledEvent(TOP_TOGGLE, domElement);
  42254. break;
  42255. case 'input':
  42256. initWrapperState(domElement, rawProps);
  42257. trapBubbledEvent(TOP_INVALID, domElement);
  42258. // For controlled components we always need to ensure we're listening
  42259. // to onChange. Even if there is no listener.
  42260. ensureListeningTo(rootContainerElement, 'onChange');
  42261. break;
  42262. case 'option':
  42263. validateProps(domElement, rawProps);
  42264. break;
  42265. case 'select':
  42266. initWrapperState$1(domElement, rawProps);
  42267. trapBubbledEvent(TOP_INVALID, domElement);
  42268. // For controlled components we always need to ensure we're listening
  42269. // to onChange. Even if there is no listener.
  42270. ensureListeningTo(rootContainerElement, 'onChange');
  42271. break;
  42272. case 'textarea':
  42273. initWrapperState$2(domElement, rawProps);
  42274. trapBubbledEvent(TOP_INVALID, domElement);
  42275. // For controlled components we always need to ensure we're listening
  42276. // to onChange. Even if there is no listener.
  42277. ensureListeningTo(rootContainerElement, 'onChange');
  42278. break;
  42279. }
  42280. assertValidProps(tag, rawProps);
  42281. {
  42282. extraAttributeNames = new Set();
  42283. var attributes = domElement.attributes;
  42284. for (var _i = 0; _i < attributes.length; _i++) {
  42285. var name = attributes[_i].name.toLowerCase();
  42286. switch (name) {
  42287. // Built-in SSR attribute is whitelisted
  42288. case 'data-reactroot':
  42289. break;
  42290. // Controlled attributes are not validated
  42291. // TODO: Only ignore them on controlled tags.
  42292. case 'value':
  42293. break;
  42294. case 'checked':
  42295. break;
  42296. case 'selected':
  42297. break;
  42298. default:
  42299. // Intentionally use the original name.
  42300. // See discussion in https://github.com/facebook/react/pull/10676.
  42301. extraAttributeNames.add(attributes[_i].name);
  42302. }
  42303. }
  42304. }
  42305. var updatePayload = null;
  42306. for (var propKey in rawProps) {
  42307. if (!rawProps.hasOwnProperty(propKey)) {
  42308. continue;
  42309. }
  42310. var nextProp = rawProps[propKey];
  42311. if (propKey === CHILDREN) {
  42312. // For text content children we compare against textContent. This
  42313. // might match additional HTML that is hidden when we read it using
  42314. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  42315. // satisfies our requirement. Our requirement is not to produce perfect
  42316. // HTML and attributes. Ideally we should preserve structure but it's
  42317. // ok not to if the visible content is still enough to indicate what
  42318. // even listeners these nodes might be wired up to.
  42319. // TODO: Warn if there is more than a single textNode as a child.
  42320. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  42321. if (typeof nextProp === 'string') {
  42322. if (domElement.textContent !== nextProp) {
  42323. if ( true && !suppressHydrationWarning) {
  42324. warnForTextDifference(domElement.textContent, nextProp);
  42325. }
  42326. updatePayload = [CHILDREN, nextProp];
  42327. }
  42328. } else if (typeof nextProp === 'number') {
  42329. if (domElement.textContent !== '' + nextProp) {
  42330. if ( true && !suppressHydrationWarning) {
  42331. warnForTextDifference(domElement.textContent, nextProp);
  42332. }
  42333. updatePayload = [CHILDREN, '' + nextProp];
  42334. }
  42335. }
  42336. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  42337. if (nextProp != null) {
  42338. if ( true && typeof nextProp !== 'function') {
  42339. warnForInvalidEventListener(propKey, nextProp);
  42340. }
  42341. ensureListeningTo(rootContainerElement, propKey);
  42342. }
  42343. } else if ( true &&
  42344. // Convince Flow we've calculated it (it's DEV-only in this method.)
  42345. typeof isCustomComponentTag === 'boolean') {
  42346. // Validate that the properties correspond to their expected values.
  42347. var serverValue = void 0;
  42348. var propertyInfo = getPropertyInfo(propKey);
  42349. if (suppressHydrationWarning) {
  42350. // Don't bother comparing. We're ignoring all these warnings.
  42351. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  42352. // Controlled attributes are not validated
  42353. // TODO: Only ignore them on controlled tags.
  42354. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  42355. // Noop
  42356. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  42357. var serverHTML = domElement.innerHTML;
  42358. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  42359. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  42360. if (expectedHTML !== serverHTML) {
  42361. warnForPropDifference(propKey, serverHTML, expectedHTML);
  42362. }
  42363. } else if (propKey === STYLE$1) {
  42364. // $FlowFixMe - Should be inferred as not undefined.
  42365. extraAttributeNames.delete(propKey);
  42366. if (canDiffStyleForHydrationWarning) {
  42367. var expectedStyle = createDangerousStringForStyles(nextProp);
  42368. serverValue = domElement.getAttribute('style');
  42369. if (expectedStyle !== serverValue) {
  42370. warnForPropDifference(propKey, serverValue, expectedStyle);
  42371. }
  42372. }
  42373. } else if (isCustomComponentTag) {
  42374. // $FlowFixMe - Should be inferred as not undefined.
  42375. extraAttributeNames.delete(propKey.toLowerCase());
  42376. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  42377. if (nextProp !== serverValue) {
  42378. warnForPropDifference(propKey, serverValue, nextProp);
  42379. }
  42380. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  42381. var isMismatchDueToBadCasing = false;
  42382. if (propertyInfo !== null) {
  42383. // $FlowFixMe - Should be inferred as not undefined.
  42384. extraAttributeNames.delete(propertyInfo.attributeName);
  42385. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  42386. } else {
  42387. var ownNamespace = parentNamespace;
  42388. if (ownNamespace === HTML_NAMESPACE) {
  42389. ownNamespace = getIntrinsicNamespace(tag);
  42390. }
  42391. if (ownNamespace === HTML_NAMESPACE) {
  42392. // $FlowFixMe - Should be inferred as not undefined.
  42393. extraAttributeNames.delete(propKey.toLowerCase());
  42394. } else {
  42395. var standardName = getPossibleStandardName(propKey);
  42396. if (standardName !== null && standardName !== propKey) {
  42397. // If an SVG prop is supplied with bad casing, it will
  42398. // be successfully parsed from HTML, but will produce a mismatch
  42399. // (and would be incorrectly rendered on the client).
  42400. // However, we already warn about bad casing elsewhere.
  42401. // So we'll skip the misleading extra mismatch warning in this case.
  42402. isMismatchDueToBadCasing = true;
  42403. // $FlowFixMe - Should be inferred as not undefined.
  42404. extraAttributeNames.delete(standardName);
  42405. }
  42406. // $FlowFixMe - Should be inferred as not undefined.
  42407. extraAttributeNames.delete(propKey);
  42408. }
  42409. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  42410. }
  42411. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  42412. warnForPropDifference(propKey, serverValue, nextProp);
  42413. }
  42414. }
  42415. }
  42416. }
  42417. {
  42418. // $FlowFixMe - Should be inferred as not undefined.
  42419. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  42420. // $FlowFixMe - Should be inferred as not undefined.
  42421. warnForExtraAttributes(extraAttributeNames);
  42422. }
  42423. }
  42424. switch (tag) {
  42425. case 'input':
  42426. // TODO: Make sure we check if this is still unmounted or do any clean
  42427. // up necessary since we never stop tracking anymore.
  42428. track(domElement);
  42429. postMountWrapper(domElement, rawProps, true);
  42430. break;
  42431. case 'textarea':
  42432. // TODO: Make sure we check if this is still unmounted or do any clean
  42433. // up necessary since we never stop tracking anymore.
  42434. track(domElement);
  42435. postMountWrapper$3(domElement, rawProps);
  42436. break;
  42437. case 'select':
  42438. case 'option':
  42439. // For input and textarea we current always set the value property at
  42440. // post mount to force it to diverge from attributes. However, for
  42441. // option and select we don't quite do the same thing and select
  42442. // is not resilient to the DOM state changing so we don't do that here.
  42443. // TODO: Consider not doing this for input and textarea.
  42444. break;
  42445. default:
  42446. if (typeof rawProps.onClick === 'function') {
  42447. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  42448. trapClickOnNonInteractiveElement(domElement);
  42449. }
  42450. break;
  42451. }
  42452. return updatePayload;
  42453. }
  42454. function diffHydratedText(textNode, text) {
  42455. var isDifferent = textNode.nodeValue !== text;
  42456. return isDifferent;
  42457. }
  42458. function warnForUnmatchedText(textNode, text) {
  42459. {
  42460. warnForTextDifference(textNode.nodeValue, text);
  42461. }
  42462. }
  42463. function warnForDeletedHydratableElement(parentNode, child) {
  42464. {
  42465. if (didWarnInvalidHydration) {
  42466. return;
  42467. }
  42468. didWarnInvalidHydration = true;
  42469. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  42470. }
  42471. }
  42472. function warnForDeletedHydratableText(parentNode, child) {
  42473. {
  42474. if (didWarnInvalidHydration) {
  42475. return;
  42476. }
  42477. didWarnInvalidHydration = true;
  42478. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  42479. }
  42480. }
  42481. function warnForInsertedHydratedElement(parentNode, tag, props) {
  42482. {
  42483. if (didWarnInvalidHydration) {
  42484. return;
  42485. }
  42486. didWarnInvalidHydration = true;
  42487. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  42488. }
  42489. }
  42490. function warnForInsertedHydratedText(parentNode, text) {
  42491. {
  42492. if (text === '') {
  42493. // We expect to insert empty text nodes since they're not represented in
  42494. // the HTML.
  42495. // TODO: Remove this special case if we can just avoid inserting empty
  42496. // text nodes.
  42497. return;
  42498. }
  42499. if (didWarnInvalidHydration) {
  42500. return;
  42501. }
  42502. didWarnInvalidHydration = true;
  42503. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  42504. }
  42505. }
  42506. function restoreControlledState$1(domElement, tag, props) {
  42507. switch (tag) {
  42508. case 'input':
  42509. restoreControlledState(domElement, props);
  42510. return;
  42511. case 'textarea':
  42512. restoreControlledState$3(domElement, props);
  42513. return;
  42514. case 'select':
  42515. restoreControlledState$2(domElement, props);
  42516. return;
  42517. }
  42518. }
  42519. function listenToEventResponderEventTypes(eventTypes, element) {
  42520. if (enableFlareAPI) {
  42521. // Get the listening Set for this element. We use this to track
  42522. // what events we're listening to.
  42523. var listeningSet = getListeningSetForElement(element);
  42524. // Go through each target event type of the event responder
  42525. for (var i = 0, length = eventTypes.length; i < length; ++i) {
  42526. var eventType = eventTypes[i];
  42527. var isPassive = !endsWith(eventType, '_active');
  42528. var eventKey = isPassive ? eventType + '_passive' : eventType;
  42529. var targetEventType = isPassive ? eventType : eventType.substring(0, eventType.length - 7);
  42530. if (!listeningSet.has(eventKey)) {
  42531. trapEventForResponderEventSystem(element, targetEventType, isPassive);
  42532. listeningSet.add(eventKey);
  42533. }
  42534. }
  42535. }
  42536. }
  42537. // We can remove this once the event API is stable and out of a flag
  42538. if (enableFlareAPI) {
  42539. setListenToResponderEventTypes(listenToEventResponderEventTypes);
  42540. }
  42541. // TODO: direct imports like some-package/src/* are bad. Fix me.
  42542. var validateDOMNesting = function () {};
  42543. var updatedAncestorInfo = function () {};
  42544. {
  42545. // This validation code was written based on the HTML5 parsing spec:
  42546. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  42547. //
  42548. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  42549. // not clear what practical benefit doing so provides); instead, we warn only
  42550. // for cases where the parser will give a parse tree differing from what React
  42551. // intended. For example, <b><div></div></b> is invalid but we don't warn
  42552. // because it still parses correctly; we do warn for other cases like nested
  42553. // <p> tags where the beginning of the second element implicitly closes the
  42554. // first, causing a confusing mess.
  42555. // https://html.spec.whatwg.org/multipage/syntax.html#special
  42556. 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'];
  42557. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  42558. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  42559. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  42560. // TODO: Distinguish by namespace here -- for <title>, including it here
  42561. // errs on the side of fewer warnings
  42562. 'foreignObject', 'desc', 'title'];
  42563. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  42564. var buttonScopeTags = inScopeTags.concat(['button']);
  42565. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  42566. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  42567. var emptyAncestorInfo = {
  42568. current: null,
  42569. formTag: null,
  42570. aTagInScope: null,
  42571. buttonTagInScope: null,
  42572. nobrTagInScope: null,
  42573. pTagInButtonScope: null,
  42574. listItemTagAutoclosing: null,
  42575. dlItemTagAutoclosing: null
  42576. };
  42577. updatedAncestorInfo = function (oldInfo, tag) {
  42578. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  42579. var info = { tag: tag };
  42580. if (inScopeTags.indexOf(tag) !== -1) {
  42581. ancestorInfo.aTagInScope = null;
  42582. ancestorInfo.buttonTagInScope = null;
  42583. ancestorInfo.nobrTagInScope = null;
  42584. }
  42585. if (buttonScopeTags.indexOf(tag) !== -1) {
  42586. ancestorInfo.pTagInButtonScope = null;
  42587. }
  42588. // See rules for 'li', 'dd', 'dt' start tags in
  42589. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  42590. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  42591. ancestorInfo.listItemTagAutoclosing = null;
  42592. ancestorInfo.dlItemTagAutoclosing = null;
  42593. }
  42594. ancestorInfo.current = info;
  42595. if (tag === 'form') {
  42596. ancestorInfo.formTag = info;
  42597. }
  42598. if (tag === 'a') {
  42599. ancestorInfo.aTagInScope = info;
  42600. }
  42601. if (tag === 'button') {
  42602. ancestorInfo.buttonTagInScope = info;
  42603. }
  42604. if (tag === 'nobr') {
  42605. ancestorInfo.nobrTagInScope = info;
  42606. }
  42607. if (tag === 'p') {
  42608. ancestorInfo.pTagInButtonScope = info;
  42609. }
  42610. if (tag === 'li') {
  42611. ancestorInfo.listItemTagAutoclosing = info;
  42612. }
  42613. if (tag === 'dd' || tag === 'dt') {
  42614. ancestorInfo.dlItemTagAutoclosing = info;
  42615. }
  42616. return ancestorInfo;
  42617. };
  42618. /**
  42619. * Returns whether
  42620. */
  42621. var isTagValidWithParent = function (tag, parentTag) {
  42622. // First, let's check if we're in an unusual parsing mode...
  42623. switch (parentTag) {
  42624. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  42625. case 'select':
  42626. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  42627. case 'optgroup':
  42628. return tag === 'option' || tag === '#text';
  42629. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  42630. // but
  42631. case 'option':
  42632. return tag === '#text';
  42633. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  42634. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  42635. // No special behavior since these rules fall back to "in body" mode for
  42636. // all except special table nodes which cause bad parsing behavior anyway.
  42637. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  42638. case 'tr':
  42639. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  42640. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  42641. case 'tbody':
  42642. case 'thead':
  42643. case 'tfoot':
  42644. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  42645. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  42646. case 'colgroup':
  42647. return tag === 'col' || tag === 'template';
  42648. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  42649. case 'table':
  42650. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  42651. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  42652. case 'head':
  42653. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  42654. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  42655. case 'html':
  42656. return tag === 'head' || tag === 'body' || tag === 'frameset';
  42657. case 'frameset':
  42658. return tag === 'frame';
  42659. case '#document':
  42660. return tag === 'html';
  42661. }
  42662. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  42663. // where the parsing rules cause implicit opens or closes to be added.
  42664. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  42665. switch (tag) {
  42666. case 'h1':
  42667. case 'h2':
  42668. case 'h3':
  42669. case 'h4':
  42670. case 'h5':
  42671. case 'h6':
  42672. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  42673. case 'rp':
  42674. case 'rt':
  42675. return impliedEndTags.indexOf(parentTag) === -1;
  42676. case 'body':
  42677. case 'caption':
  42678. case 'col':
  42679. case 'colgroup':
  42680. case 'frameset':
  42681. case 'frame':
  42682. case 'head':
  42683. case 'html':
  42684. case 'tbody':
  42685. case 'td':
  42686. case 'tfoot':
  42687. case 'th':
  42688. case 'thead':
  42689. case 'tr':
  42690. // These tags are only valid with a few parents that have special child
  42691. // parsing rules -- if we're down here, then none of those matched and
  42692. // so we allow it only if we don't know what the parent is, as all other
  42693. // cases are invalid.
  42694. return parentTag == null;
  42695. }
  42696. return true;
  42697. };
  42698. /**
  42699. * Returns whether
  42700. */
  42701. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  42702. switch (tag) {
  42703. case 'address':
  42704. case 'article':
  42705. case 'aside':
  42706. case 'blockquote':
  42707. case 'center':
  42708. case 'details':
  42709. case 'dialog':
  42710. case 'dir':
  42711. case 'div':
  42712. case 'dl':
  42713. case 'fieldset':
  42714. case 'figcaption':
  42715. case 'figure':
  42716. case 'footer':
  42717. case 'header':
  42718. case 'hgroup':
  42719. case 'main':
  42720. case 'menu':
  42721. case 'nav':
  42722. case 'ol':
  42723. case 'p':
  42724. case 'section':
  42725. case 'summary':
  42726. case 'ul':
  42727. case 'pre':
  42728. case 'listing':
  42729. case 'table':
  42730. case 'hr':
  42731. case 'xmp':
  42732. case 'h1':
  42733. case 'h2':
  42734. case 'h3':
  42735. case 'h4':
  42736. case 'h5':
  42737. case 'h6':
  42738. return ancestorInfo.pTagInButtonScope;
  42739. case 'form':
  42740. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  42741. case 'li':
  42742. return ancestorInfo.listItemTagAutoclosing;
  42743. case 'dd':
  42744. case 'dt':
  42745. return ancestorInfo.dlItemTagAutoclosing;
  42746. case 'button':
  42747. return ancestorInfo.buttonTagInScope;
  42748. case 'a':
  42749. // Spec says something about storing a list of markers, but it sounds
  42750. // equivalent to this check.
  42751. return ancestorInfo.aTagInScope;
  42752. case 'nobr':
  42753. return ancestorInfo.nobrTagInScope;
  42754. }
  42755. return null;
  42756. };
  42757. var didWarn$1 = {};
  42758. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  42759. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  42760. var parentInfo = ancestorInfo.current;
  42761. var parentTag = parentInfo && parentInfo.tag;
  42762. if (childText != null) {
  42763. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  42764. childTag = '#text';
  42765. }
  42766. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  42767. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  42768. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  42769. if (!invalidParentOrAncestor) {
  42770. return;
  42771. }
  42772. var ancestorTag = invalidParentOrAncestor.tag;
  42773. var addendum = getCurrentFiberStackInDev();
  42774. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  42775. if (didWarn$1[warnKey]) {
  42776. return;
  42777. }
  42778. didWarn$1[warnKey] = true;
  42779. var tagDisplayName = childTag;
  42780. var whitespaceInfo = '';
  42781. if (childTag === '#text') {
  42782. if (/\S/.test(childText)) {
  42783. tagDisplayName = 'Text nodes';
  42784. } else {
  42785. tagDisplayName = 'Whitespace text nodes';
  42786. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  42787. }
  42788. } else {
  42789. tagDisplayName = '<' + childTag + '>';
  42790. }
  42791. if (invalidParent) {
  42792. var info = '';
  42793. if (ancestorTag === 'table' && childTag === 'tr') {
  42794. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  42795. }
  42796. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  42797. } else {
  42798. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  42799. }
  42800. };
  42801. }
  42802. // Renderers that don't support persistence
  42803. // can re-export everything from this module.
  42804. function shim() {
  42805. (function () {
  42806. {
  42807. {
  42808. throw ReactError(Error('The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.'));
  42809. }
  42810. }
  42811. })();
  42812. }
  42813. // Persistence (when unsupported)
  42814. var supportsPersistence = false;
  42815. var cloneInstance = shim;
  42816. var cloneFundamentalInstance = shim;
  42817. var createContainerChildSet = shim;
  42818. var appendChildToContainerChildSet = shim;
  42819. var finalizeContainerChildren = shim;
  42820. var replaceContainerChildren = shim;
  42821. var cloneHiddenInstance = shim;
  42822. var cloneHiddenTextInstance = shim;
  42823. var SUPPRESS_HYDRATION_WARNING = void 0;
  42824. {
  42825. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  42826. }
  42827. var SUSPENSE_START_DATA = '$';
  42828. var SUSPENSE_END_DATA = '/$';
  42829. var SUSPENSE_PENDING_START_DATA = '$?';
  42830. var SUSPENSE_FALLBACK_START_DATA = '$!';
  42831. var STYLE = 'style';
  42832. var eventsEnabled = null;
  42833. var selectionInformation = null;
  42834. function shouldAutoFocusHostComponent(type, props) {
  42835. switch (type) {
  42836. case 'button':
  42837. case 'input':
  42838. case 'select':
  42839. case 'textarea':
  42840. return !!props.autoFocus;
  42841. }
  42842. return false;
  42843. }
  42844. function getRootHostContext(rootContainerInstance) {
  42845. var type = void 0;
  42846. var namespace = void 0;
  42847. var nodeType = rootContainerInstance.nodeType;
  42848. switch (nodeType) {
  42849. case DOCUMENT_NODE:
  42850. case DOCUMENT_FRAGMENT_NODE:
  42851. {
  42852. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  42853. var root = rootContainerInstance.documentElement;
  42854. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  42855. break;
  42856. }
  42857. default:
  42858. {
  42859. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  42860. var ownNamespace = container.namespaceURI || null;
  42861. type = container.tagName;
  42862. namespace = getChildNamespace(ownNamespace, type);
  42863. break;
  42864. }
  42865. }
  42866. {
  42867. var validatedTag = type.toLowerCase();
  42868. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  42869. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  42870. }
  42871. return namespace;
  42872. }
  42873. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  42874. {
  42875. var parentHostContextDev = parentHostContext;
  42876. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  42877. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  42878. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  42879. }
  42880. var parentNamespace = parentHostContext;
  42881. return getChildNamespace(parentNamespace, type);
  42882. }
  42883. function getPublicInstance(instance) {
  42884. return instance;
  42885. }
  42886. function prepareForCommit(containerInfo) {
  42887. eventsEnabled = isEnabled();
  42888. selectionInformation = getSelectionInformation();
  42889. setEnabled(false);
  42890. }
  42891. function resetAfterCommit(containerInfo) {
  42892. restoreSelection(selectionInformation);
  42893. selectionInformation = null;
  42894. setEnabled(eventsEnabled);
  42895. eventsEnabled = null;
  42896. }
  42897. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  42898. var parentNamespace = void 0;
  42899. {
  42900. // TODO: take namespace into account when validating.
  42901. var hostContextDev = hostContext;
  42902. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  42903. if (typeof props.children === 'string' || typeof props.children === 'number') {
  42904. var string = '' + props.children;
  42905. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  42906. validateDOMNesting(null, string, ownAncestorInfo);
  42907. }
  42908. parentNamespace = hostContextDev.namespace;
  42909. }
  42910. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  42911. precacheFiberNode(internalInstanceHandle, domElement);
  42912. updateFiberProps(domElement, props);
  42913. return domElement;
  42914. }
  42915. function appendInitialChild(parentInstance, child) {
  42916. parentInstance.appendChild(child);
  42917. }
  42918. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  42919. setInitialProperties(domElement, type, props, rootContainerInstance);
  42920. return shouldAutoFocusHostComponent(type, props);
  42921. }
  42922. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  42923. {
  42924. var hostContextDev = hostContext;
  42925. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  42926. var string = '' + newProps.children;
  42927. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  42928. validateDOMNesting(null, string, ownAncestorInfo);
  42929. }
  42930. }
  42931. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  42932. }
  42933. function shouldSetTextContent(type, props) {
  42934. 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;
  42935. }
  42936. function shouldDeprioritizeSubtree(type, props) {
  42937. return !!props.hidden;
  42938. }
  42939. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  42940. {
  42941. var hostContextDev = hostContext;
  42942. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  42943. }
  42944. var textNode = createTextNode(text, rootContainerInstance);
  42945. precacheFiberNode(internalInstanceHandle, textNode);
  42946. return textNode;
  42947. }
  42948. var isPrimaryRenderer = true;
  42949. var warnsIfNotActing = true;
  42950. // This initialization code may run even on server environments
  42951. // if a component just imports ReactDOM (e.g. for findDOMNode).
  42952. // Some environments might not have setTimeout or clearTimeout.
  42953. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  42954. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  42955. var noTimeout = -1;
  42956. // -------------------
  42957. // Mutation
  42958. // -------------------
  42959. var supportsMutation = true;
  42960. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  42961. // Despite the naming that might imply otherwise, this method only
  42962. // fires if there is an `Update` effect scheduled during mounting.
  42963. // This happens if `finalizeInitialChildren` returns `true` (which it
  42964. // does to implement the `autoFocus` attribute on the client). But
  42965. // there are also other cases when this might happen (such as patching
  42966. // up text content during hydration mismatch). So we'll check this again.
  42967. if (shouldAutoFocusHostComponent(type, newProps)) {
  42968. domElement.focus();
  42969. }
  42970. }
  42971. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  42972. // Update the props handle so that we know which props are the ones with
  42973. // with current event handlers.
  42974. updateFiberProps(domElement, newProps);
  42975. // Apply the diff to the DOM node.
  42976. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  42977. }
  42978. function resetTextContent(domElement) {
  42979. setTextContent(domElement, '');
  42980. }
  42981. function commitTextUpdate(textInstance, oldText, newText) {
  42982. textInstance.nodeValue = newText;
  42983. }
  42984. function appendChild(parentInstance, child) {
  42985. parentInstance.appendChild(child);
  42986. }
  42987. function appendChildToContainer(container, child) {
  42988. var parentNode = void 0;
  42989. if (container.nodeType === COMMENT_NODE) {
  42990. parentNode = container.parentNode;
  42991. parentNode.insertBefore(child, container);
  42992. } else {
  42993. parentNode = container;
  42994. parentNode.appendChild(child);
  42995. }
  42996. // This container might be used for a portal.
  42997. // If something inside a portal is clicked, that click should bubble
  42998. // through the React tree. However, on Mobile Safari the click would
  42999. // never bubble through the *DOM* tree unless an ancestor with onclick
  43000. // event exists. So we wouldn't see it and dispatch it.
  43001. // This is why we ensure that non React root containers have inline onclick
  43002. // defined.
  43003. // https://github.com/facebook/react/issues/11918
  43004. var reactRootContainer = container._reactRootContainer;
  43005. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  43006. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  43007. trapClickOnNonInteractiveElement(parentNode);
  43008. }
  43009. }
  43010. function insertBefore(parentInstance, child, beforeChild) {
  43011. parentInstance.insertBefore(child, beforeChild);
  43012. }
  43013. function insertInContainerBefore(container, child, beforeChild) {
  43014. if (container.nodeType === COMMENT_NODE) {
  43015. container.parentNode.insertBefore(child, beforeChild);
  43016. } else {
  43017. container.insertBefore(child, beforeChild);
  43018. }
  43019. }
  43020. function removeChild(parentInstance, child) {
  43021. parentInstance.removeChild(child);
  43022. }
  43023. function removeChildFromContainer(container, child) {
  43024. if (container.nodeType === COMMENT_NODE) {
  43025. container.parentNode.removeChild(child);
  43026. } else {
  43027. container.removeChild(child);
  43028. }
  43029. }
  43030. function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  43031. var node = suspenseInstance;
  43032. // Delete all nodes within this suspense boundary.
  43033. // There might be nested nodes so we need to keep track of how
  43034. // deep we are and only break out when we're back on top.
  43035. var depth = 0;
  43036. do {
  43037. var nextNode = node.nextSibling;
  43038. parentInstance.removeChild(node);
  43039. if (nextNode && nextNode.nodeType === COMMENT_NODE) {
  43040. var data = nextNode.data;
  43041. if (data === SUSPENSE_END_DATA) {
  43042. if (depth === 0) {
  43043. parentInstance.removeChild(nextNode);
  43044. return;
  43045. } else {
  43046. depth--;
  43047. }
  43048. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
  43049. depth++;
  43050. }
  43051. }
  43052. node = nextNode;
  43053. } while (node);
  43054. // TODO: Warn, we didn't find the end comment boundary.
  43055. }
  43056. function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  43057. if (container.nodeType === COMMENT_NODE) {
  43058. clearSuspenseBoundary(container.parentNode, suspenseInstance);
  43059. } else if (container.nodeType === ELEMENT_NODE) {
  43060. clearSuspenseBoundary(container, suspenseInstance);
  43061. } else {
  43062. // Document nodes should never contain suspense boundaries.
  43063. }
  43064. }
  43065. function hideInstance(instance) {
  43066. // TODO: Does this work for all element types? What about MathML? Should we
  43067. // pass host context to this method?
  43068. instance = instance;
  43069. var style = instance.style;
  43070. if (typeof style.setProperty === 'function') {
  43071. style.setProperty('display', 'none', 'important');
  43072. } else {
  43073. style.display = 'none';
  43074. }
  43075. }
  43076. function hideTextInstance(textInstance) {
  43077. textInstance.nodeValue = '';
  43078. }
  43079. function unhideInstance(instance, props) {
  43080. instance = instance;
  43081. var styleProp = props[STYLE];
  43082. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  43083. instance.style.display = dangerousStyleValue('display', display);
  43084. }
  43085. function unhideTextInstance(textInstance, text) {
  43086. textInstance.nodeValue = text;
  43087. }
  43088. // -------------------
  43089. // Hydration
  43090. // -------------------
  43091. var supportsHydration = true;
  43092. function canHydrateInstance(instance, type, props) {
  43093. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  43094. return null;
  43095. }
  43096. // This has now been refined to an element node.
  43097. return instance;
  43098. }
  43099. function canHydrateTextInstance(instance, text) {
  43100. if (text === '' || instance.nodeType !== TEXT_NODE) {
  43101. // Empty strings are not parsed by HTML so there won't be a correct match here.
  43102. return null;
  43103. }
  43104. // This has now been refined to a text node.
  43105. return instance;
  43106. }
  43107. function canHydrateSuspenseInstance(instance) {
  43108. if (instance.nodeType !== COMMENT_NODE) {
  43109. // Empty strings are not parsed by HTML so there won't be a correct match here.
  43110. return null;
  43111. }
  43112. // This has now been refined to a suspense node.
  43113. return instance;
  43114. }
  43115. function isSuspenseInstancePending(instance) {
  43116. return instance.data === SUSPENSE_PENDING_START_DATA;
  43117. }
  43118. function isSuspenseInstanceFallback(instance) {
  43119. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  43120. }
  43121. function registerSuspenseInstanceRetry(instance, callback) {
  43122. instance._reactRetry = callback;
  43123. }
  43124. function getNextHydratable(node) {
  43125. // Skip non-hydratable nodes.
  43126. for (; node != null; node = node.nextSibling) {
  43127. var nodeType = node.nodeType;
  43128. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  43129. break;
  43130. }
  43131. if (enableSuspenseServerRenderer) {
  43132. if (nodeType === COMMENT_NODE) {
  43133. break;
  43134. }
  43135. var nodeData = node.data;
  43136. if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
  43137. break;
  43138. }
  43139. }
  43140. }
  43141. return node;
  43142. }
  43143. function getNextHydratableSibling(instance) {
  43144. return getNextHydratable(instance.nextSibling);
  43145. }
  43146. function getFirstHydratableChild(parentInstance) {
  43147. return getNextHydratable(parentInstance.firstChild);
  43148. }
  43149. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  43150. precacheFiberNode(internalInstanceHandle, instance);
  43151. // TODO: Possibly defer this until the commit phase where all the events
  43152. // get attached.
  43153. updateFiberProps(instance, props);
  43154. var parentNamespace = void 0;
  43155. {
  43156. var hostContextDev = hostContext;
  43157. parentNamespace = hostContextDev.namespace;
  43158. }
  43159. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  43160. }
  43161. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  43162. precacheFiberNode(internalInstanceHandle, textInstance);
  43163. return diffHydratedText(textInstance, text);
  43164. }
  43165. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  43166. var node = suspenseInstance.nextSibling;
  43167. // Skip past all nodes within this suspense boundary.
  43168. // There might be nested nodes so we need to keep track of how
  43169. // deep we are and only break out when we're back on top.
  43170. var depth = 0;
  43171. while (node) {
  43172. if (node.nodeType === COMMENT_NODE) {
  43173. var data = node.data;
  43174. if (data === SUSPENSE_END_DATA) {
  43175. if (depth === 0) {
  43176. return getNextHydratableSibling(node);
  43177. } else {
  43178. depth--;
  43179. }
  43180. } else if (data === SUSPENSE_START_DATA) {
  43181. depth++;
  43182. }
  43183. }
  43184. node = node.nextSibling;
  43185. }
  43186. // TODO: Warn, we didn't find the end comment boundary.
  43187. return null;
  43188. }
  43189. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  43190. {
  43191. warnForUnmatchedText(textInstance, text);
  43192. }
  43193. }
  43194. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  43195. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43196. warnForUnmatchedText(textInstance, text);
  43197. }
  43198. }
  43199. function didNotHydrateContainerInstance(parentContainer, instance) {
  43200. {
  43201. if (instance.nodeType === ELEMENT_NODE) {
  43202. warnForDeletedHydratableElement(parentContainer, instance);
  43203. } else if (instance.nodeType === COMMENT_NODE) {
  43204. // TODO: warnForDeletedHydratableSuspenseBoundary
  43205. } else {
  43206. warnForDeletedHydratableText(parentContainer, instance);
  43207. }
  43208. }
  43209. }
  43210. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  43211. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43212. if (instance.nodeType === ELEMENT_NODE) {
  43213. warnForDeletedHydratableElement(parentInstance, instance);
  43214. } else if (instance.nodeType === COMMENT_NODE) {
  43215. // TODO: warnForDeletedHydratableSuspenseBoundary
  43216. } else {
  43217. warnForDeletedHydratableText(parentInstance, instance);
  43218. }
  43219. }
  43220. }
  43221. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  43222. {
  43223. warnForInsertedHydratedElement(parentContainer, type, props);
  43224. }
  43225. }
  43226. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  43227. {
  43228. warnForInsertedHydratedText(parentContainer, text);
  43229. }
  43230. }
  43231. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  43232. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43233. warnForInsertedHydratedElement(parentInstance, type, props);
  43234. }
  43235. }
  43236. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  43237. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43238. warnForInsertedHydratedText(parentInstance, text);
  43239. }
  43240. }
  43241. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  43242. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  43243. // TODO: warnForInsertedHydratedSuspense(parentInstance);
  43244. }
  43245. }
  43246. function mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance) {
  43247. // Listen to events
  43248. var doc = rootContainerInstance.ownerDocument;
  43249. var documentBody = doc.body || doc;
  43250. var _ref = responder,
  43251. rootEventTypes = _ref.rootEventTypes,
  43252. targetEventTypes = _ref.targetEventTypes;
  43253. if (targetEventTypes !== null) {
  43254. listenToEventResponderEventTypes(targetEventTypes, documentBody);
  43255. }
  43256. if (rootEventTypes !== null) {
  43257. addRootEventTypesForResponderInstance(responderInstance, rootEventTypes);
  43258. listenToEventResponderEventTypes(rootEventTypes, documentBody);
  43259. }
  43260. mountEventResponder(responder, responderInstance, responderProps, responderState);
  43261. return responderInstance;
  43262. }
  43263. function unmountResponderInstance(responderInstance) {
  43264. if (enableFlareAPI) {
  43265. // TODO stop listening to targetEventTypes
  43266. unmountEventResponder(responderInstance);
  43267. }
  43268. }
  43269. function getFundamentalComponentInstance(fundamentalInstance) {
  43270. if (enableFundamentalAPI) {
  43271. var currentFiber = fundamentalInstance.currentFiber,
  43272. impl = fundamentalInstance.impl,
  43273. _props = fundamentalInstance.props,
  43274. state = fundamentalInstance.state;
  43275. var instance = impl.getInstance(null, _props, state);
  43276. precacheFiberNode(currentFiber, instance);
  43277. return instance;
  43278. }
  43279. // Because of the flag above, this gets around the Flow error;
  43280. return null;
  43281. }
  43282. function mountFundamentalComponent(fundamentalInstance) {
  43283. if (enableFundamentalAPI) {
  43284. var impl = fundamentalInstance.impl,
  43285. instance = fundamentalInstance.instance,
  43286. _props2 = fundamentalInstance.props,
  43287. state = fundamentalInstance.state;
  43288. var onMount = impl.onMount;
  43289. if (onMount !== undefined) {
  43290. onMount(null, instance, _props2, state);
  43291. }
  43292. }
  43293. }
  43294. function shouldUpdateFundamentalComponent(fundamentalInstance) {
  43295. if (enableFundamentalAPI) {
  43296. var impl = fundamentalInstance.impl,
  43297. prevProps = fundamentalInstance.prevProps,
  43298. _props3 = fundamentalInstance.props,
  43299. state = fundamentalInstance.state;
  43300. var shouldUpdate = impl.shouldUpdate;
  43301. if (shouldUpdate !== undefined) {
  43302. return shouldUpdate(null, prevProps, _props3, state);
  43303. }
  43304. }
  43305. return true;
  43306. }
  43307. function updateFundamentalComponent(fundamentalInstance) {
  43308. if (enableFundamentalAPI) {
  43309. var impl = fundamentalInstance.impl,
  43310. instance = fundamentalInstance.instance,
  43311. prevProps = fundamentalInstance.prevProps,
  43312. _props4 = fundamentalInstance.props,
  43313. state = fundamentalInstance.state;
  43314. var onUpdate = impl.onUpdate;
  43315. if (onUpdate !== undefined) {
  43316. onUpdate(null, instance, prevProps, _props4, state);
  43317. }
  43318. }
  43319. }
  43320. function unmountFundamentalComponent(fundamentalInstance) {
  43321. if (enableFundamentalAPI) {
  43322. var impl = fundamentalInstance.impl,
  43323. instance = fundamentalInstance.instance,
  43324. _props5 = fundamentalInstance.props,
  43325. state = fundamentalInstance.state;
  43326. var onUnmount = impl.onUnmount;
  43327. if (onUnmount !== undefined) {
  43328. onUnmount(null, instance, _props5, state);
  43329. }
  43330. }
  43331. }
  43332. // Prefix measurements so that it's possible to filter them.
  43333. // Longer prefixes are hard to read in DevTools.
  43334. var reactEmoji = '\u269B';
  43335. var warningEmoji = '\u26D4';
  43336. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  43337. // Keep track of current fiber so that we know the path to unwind on pause.
  43338. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  43339. var currentFiber = null;
  43340. // If we're in the middle of user code, which fiber and method is it?
  43341. // Reusing `currentFiber` would be confusing for this because user code fiber
  43342. // can change during commit phase too, but we don't need to unwind it (since
  43343. // lifecycles in the commit phase don't resemble a tree).
  43344. var currentPhase = null;
  43345. var currentPhaseFiber = null;
  43346. // Did lifecycle hook schedule an update? This is often a performance problem,
  43347. // so we will keep track of it, and include it in the report.
  43348. // Track commits caused by cascading updates.
  43349. var isCommitting = false;
  43350. var hasScheduledUpdateInCurrentCommit = false;
  43351. var hasScheduledUpdateInCurrentPhase = false;
  43352. var commitCountInCurrentWorkLoop = 0;
  43353. var effectCountInCurrentCommit = 0;
  43354. var isWaitingForCallback = false;
  43355. // During commits, we only show a measurement once per method name
  43356. // to avoid stretch the commit phase with measurement overhead.
  43357. var labelsInCurrentCommit = new Set();
  43358. var formatMarkName = function (markName) {
  43359. return reactEmoji + ' ' + markName;
  43360. };
  43361. var formatLabel = function (label, warning) {
  43362. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  43363. var suffix = warning ? ' Warning: ' + warning : '';
  43364. return '' + prefix + label + suffix;
  43365. };
  43366. var beginMark = function (markName) {
  43367. performance.mark(formatMarkName(markName));
  43368. };
  43369. var clearMark = function (markName) {
  43370. performance.clearMarks(formatMarkName(markName));
  43371. };
  43372. var endMark = function (label, markName, warning) {
  43373. var formattedMarkName = formatMarkName(markName);
  43374. var formattedLabel = formatLabel(label, warning);
  43375. try {
  43376. performance.measure(formattedLabel, formattedMarkName);
  43377. } catch (err) {}
  43378. // If previous mark was missing for some reason, this will throw.
  43379. // This could only happen if React crashed in an unexpected place earlier.
  43380. // Don't pile on with more errors.
  43381. // Clear marks immediately to avoid growing buffer.
  43382. performance.clearMarks(formattedMarkName);
  43383. performance.clearMeasures(formattedLabel);
  43384. };
  43385. var getFiberMarkName = function (label, debugID) {
  43386. return label + ' (#' + debugID + ')';
  43387. };
  43388. var getFiberLabel = function (componentName, isMounted, phase) {
  43389. if (phase === null) {
  43390. // These are composite component total time measurements.
  43391. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  43392. } else {
  43393. // Composite component methods.
  43394. return componentName + '.' + phase;
  43395. }
  43396. };
  43397. var beginFiberMark = function (fiber, phase) {
  43398. var componentName = getComponentName(fiber.type) || 'Unknown';
  43399. var debugID = fiber._debugID;
  43400. var isMounted = fiber.alternate !== null;
  43401. var label = getFiberLabel(componentName, isMounted, phase);
  43402. if (isCommitting && labelsInCurrentCommit.has(label)) {
  43403. // During the commit phase, we don't show duplicate labels because
  43404. // there is a fixed overhead for every measurement, and we don't
  43405. // want to stretch the commit phase beyond necessary.
  43406. return false;
  43407. }
  43408. labelsInCurrentCommit.add(label);
  43409. var markName = getFiberMarkName(label, debugID);
  43410. beginMark(markName);
  43411. return true;
  43412. };
  43413. var clearFiberMark = function (fiber, phase) {
  43414. var componentName = getComponentName(fiber.type) || 'Unknown';
  43415. var debugID = fiber._debugID;
  43416. var isMounted = fiber.alternate !== null;
  43417. var label = getFiberLabel(componentName, isMounted, phase);
  43418. var markName = getFiberMarkName(label, debugID);
  43419. clearMark(markName);
  43420. };
  43421. var endFiberMark = function (fiber, phase, warning) {
  43422. var componentName = getComponentName(fiber.type) || 'Unknown';
  43423. var debugID = fiber._debugID;
  43424. var isMounted = fiber.alternate !== null;
  43425. var label = getFiberLabel(componentName, isMounted, phase);
  43426. var markName = getFiberMarkName(label, debugID);
  43427. endMark(label, markName, warning);
  43428. };
  43429. var shouldIgnoreFiber = function (fiber) {
  43430. // Host components should be skipped in the timeline.
  43431. // We could check typeof fiber.type, but does this work with RN?
  43432. switch (fiber.tag) {
  43433. case HostRoot:
  43434. case HostComponent:
  43435. case HostText:
  43436. case HostPortal:
  43437. case Fragment:
  43438. case ContextProvider:
  43439. case ContextConsumer:
  43440. case Mode:
  43441. return true;
  43442. default:
  43443. return false;
  43444. }
  43445. };
  43446. var clearPendingPhaseMeasurement = function () {
  43447. if (currentPhase !== null && currentPhaseFiber !== null) {
  43448. clearFiberMark(currentPhaseFiber, currentPhase);
  43449. }
  43450. currentPhaseFiber = null;
  43451. currentPhase = null;
  43452. hasScheduledUpdateInCurrentPhase = false;
  43453. };
  43454. var pauseTimers = function () {
  43455. // Stops all currently active measurements so that they can be resumed
  43456. // if we continue in a later deferred loop from the same unit of work.
  43457. var fiber = currentFiber;
  43458. while (fiber) {
  43459. if (fiber._debugIsCurrentlyTiming) {
  43460. endFiberMark(fiber, null, null);
  43461. }
  43462. fiber = fiber.return;
  43463. }
  43464. };
  43465. var resumeTimersRecursively = function (fiber) {
  43466. if (fiber.return !== null) {
  43467. resumeTimersRecursively(fiber.return);
  43468. }
  43469. if (fiber._debugIsCurrentlyTiming) {
  43470. beginFiberMark(fiber, null);
  43471. }
  43472. };
  43473. var resumeTimers = function () {
  43474. // Resumes all measurements that were active during the last deferred loop.
  43475. if (currentFiber !== null) {
  43476. resumeTimersRecursively(currentFiber);
  43477. }
  43478. };
  43479. function recordEffect() {
  43480. if (enableUserTimingAPI) {
  43481. effectCountInCurrentCommit++;
  43482. }
  43483. }
  43484. function recordScheduleUpdate() {
  43485. if (enableUserTimingAPI) {
  43486. if (isCommitting) {
  43487. hasScheduledUpdateInCurrentCommit = true;
  43488. }
  43489. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  43490. hasScheduledUpdateInCurrentPhase = true;
  43491. }
  43492. }
  43493. }
  43494. function startRequestCallbackTimer() {
  43495. if (enableUserTimingAPI) {
  43496. if (supportsUserTiming && !isWaitingForCallback) {
  43497. isWaitingForCallback = true;
  43498. beginMark('(Waiting for async callback...)');
  43499. }
  43500. }
  43501. }
  43502. function stopRequestCallbackTimer(didExpire) {
  43503. if (enableUserTimingAPI) {
  43504. if (supportsUserTiming) {
  43505. isWaitingForCallback = false;
  43506. var warning = didExpire ? 'Update expired; will flush synchronously' : null;
  43507. endMark('(Waiting for async callback...)', '(Waiting for async callback...)', warning);
  43508. }
  43509. }
  43510. }
  43511. function startWorkTimer(fiber) {
  43512. if (enableUserTimingAPI) {
  43513. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43514. return;
  43515. }
  43516. // If we pause, this is the fiber to unwind from.
  43517. currentFiber = fiber;
  43518. if (!beginFiberMark(fiber, null)) {
  43519. return;
  43520. }
  43521. fiber._debugIsCurrentlyTiming = true;
  43522. }
  43523. }
  43524. function cancelWorkTimer(fiber) {
  43525. if (enableUserTimingAPI) {
  43526. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43527. return;
  43528. }
  43529. // Remember we shouldn't complete measurement for this fiber.
  43530. // Otherwise flamechart will be deep even for small updates.
  43531. fiber._debugIsCurrentlyTiming = false;
  43532. clearFiberMark(fiber, null);
  43533. }
  43534. }
  43535. function stopWorkTimer(fiber) {
  43536. if (enableUserTimingAPI) {
  43537. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43538. return;
  43539. }
  43540. // If we pause, its parent is the fiber to unwind from.
  43541. currentFiber = fiber.return;
  43542. if (!fiber._debugIsCurrentlyTiming) {
  43543. return;
  43544. }
  43545. fiber._debugIsCurrentlyTiming = false;
  43546. endFiberMark(fiber, null, null);
  43547. }
  43548. }
  43549. function stopFailedWorkTimer(fiber) {
  43550. if (enableUserTimingAPI) {
  43551. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  43552. return;
  43553. }
  43554. // If we pause, its parent is the fiber to unwind from.
  43555. currentFiber = fiber.return;
  43556. if (!fiber._debugIsCurrentlyTiming) {
  43557. return;
  43558. }
  43559. fiber._debugIsCurrentlyTiming = false;
  43560. var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  43561. endFiberMark(fiber, null, warning);
  43562. }
  43563. }
  43564. function startPhaseTimer(fiber, phase) {
  43565. if (enableUserTimingAPI) {
  43566. if (!supportsUserTiming) {
  43567. return;
  43568. }
  43569. clearPendingPhaseMeasurement();
  43570. if (!beginFiberMark(fiber, phase)) {
  43571. return;
  43572. }
  43573. currentPhaseFiber = fiber;
  43574. currentPhase = phase;
  43575. }
  43576. }
  43577. function stopPhaseTimer() {
  43578. if (enableUserTimingAPI) {
  43579. if (!supportsUserTiming) {
  43580. return;
  43581. }
  43582. if (currentPhase !== null && currentPhaseFiber !== null) {
  43583. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  43584. endFiberMark(currentPhaseFiber, currentPhase, warning);
  43585. }
  43586. currentPhase = null;
  43587. currentPhaseFiber = null;
  43588. }
  43589. }
  43590. function startWorkLoopTimer(nextUnitOfWork) {
  43591. if (enableUserTimingAPI) {
  43592. currentFiber = nextUnitOfWork;
  43593. if (!supportsUserTiming) {
  43594. return;
  43595. }
  43596. commitCountInCurrentWorkLoop = 0;
  43597. // This is top level call.
  43598. // Any other measurements are performed within.
  43599. beginMark('(React Tree Reconciliation)');
  43600. // Resume any measurements that were in progress during the last loop.
  43601. resumeTimers();
  43602. }
  43603. }
  43604. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  43605. if (enableUserTimingAPI) {
  43606. if (!supportsUserTiming) {
  43607. return;
  43608. }
  43609. var warning = null;
  43610. if (interruptedBy !== null) {
  43611. if (interruptedBy.tag === HostRoot) {
  43612. warning = 'A top-level update interrupted the previous render';
  43613. } else {
  43614. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  43615. warning = 'An update to ' + componentName + ' interrupted the previous render';
  43616. }
  43617. } else if (commitCountInCurrentWorkLoop > 1) {
  43618. warning = 'There were cascading updates';
  43619. }
  43620. commitCountInCurrentWorkLoop = 0;
  43621. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  43622. // Pause any measurements until the next loop.
  43623. pauseTimers();
  43624. endMark(label, '(React Tree Reconciliation)', warning);
  43625. }
  43626. }
  43627. function startCommitTimer() {
  43628. if (enableUserTimingAPI) {
  43629. if (!supportsUserTiming) {
  43630. return;
  43631. }
  43632. isCommitting = true;
  43633. hasScheduledUpdateInCurrentCommit = false;
  43634. labelsInCurrentCommit.clear();
  43635. beginMark('(Committing Changes)');
  43636. }
  43637. }
  43638. function stopCommitTimer() {
  43639. if (enableUserTimingAPI) {
  43640. if (!supportsUserTiming) {
  43641. return;
  43642. }
  43643. var warning = null;
  43644. if (hasScheduledUpdateInCurrentCommit) {
  43645. warning = 'Lifecycle hook scheduled a cascading update';
  43646. } else if (commitCountInCurrentWorkLoop > 0) {
  43647. warning = 'Caused by a cascading update in earlier commit';
  43648. }
  43649. hasScheduledUpdateInCurrentCommit = false;
  43650. commitCountInCurrentWorkLoop++;
  43651. isCommitting = false;
  43652. labelsInCurrentCommit.clear();
  43653. endMark('(Committing Changes)', '(Committing Changes)', warning);
  43654. }
  43655. }
  43656. function startCommitSnapshotEffectsTimer() {
  43657. if (enableUserTimingAPI) {
  43658. if (!supportsUserTiming) {
  43659. return;
  43660. }
  43661. effectCountInCurrentCommit = 0;
  43662. beginMark('(Committing Snapshot Effects)');
  43663. }
  43664. }
  43665. function stopCommitSnapshotEffectsTimer() {
  43666. if (enableUserTimingAPI) {
  43667. if (!supportsUserTiming) {
  43668. return;
  43669. }
  43670. var count = effectCountInCurrentCommit;
  43671. effectCountInCurrentCommit = 0;
  43672. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  43673. }
  43674. }
  43675. function startCommitHostEffectsTimer() {
  43676. if (enableUserTimingAPI) {
  43677. if (!supportsUserTiming) {
  43678. return;
  43679. }
  43680. effectCountInCurrentCommit = 0;
  43681. beginMark('(Committing Host Effects)');
  43682. }
  43683. }
  43684. function stopCommitHostEffectsTimer() {
  43685. if (enableUserTimingAPI) {
  43686. if (!supportsUserTiming) {
  43687. return;
  43688. }
  43689. var count = effectCountInCurrentCommit;
  43690. effectCountInCurrentCommit = 0;
  43691. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  43692. }
  43693. }
  43694. function startCommitLifeCyclesTimer() {
  43695. if (enableUserTimingAPI) {
  43696. if (!supportsUserTiming) {
  43697. return;
  43698. }
  43699. effectCountInCurrentCommit = 0;
  43700. beginMark('(Calling Lifecycle Methods)');
  43701. }
  43702. }
  43703. function stopCommitLifeCyclesTimer() {
  43704. if (enableUserTimingAPI) {
  43705. if (!supportsUserTiming) {
  43706. return;
  43707. }
  43708. var count = effectCountInCurrentCommit;
  43709. effectCountInCurrentCommit = 0;
  43710. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  43711. }
  43712. }
  43713. var valueStack = [];
  43714. var fiberStack = void 0;
  43715. {
  43716. fiberStack = [];
  43717. }
  43718. var index = -1;
  43719. function createCursor(defaultValue) {
  43720. return {
  43721. current: defaultValue
  43722. };
  43723. }
  43724. function pop(cursor, fiber) {
  43725. if (index < 0) {
  43726. {
  43727. warningWithoutStack$1(false, 'Unexpected pop.');
  43728. }
  43729. return;
  43730. }
  43731. {
  43732. if (fiber !== fiberStack[index]) {
  43733. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  43734. }
  43735. }
  43736. cursor.current = valueStack[index];
  43737. valueStack[index] = null;
  43738. {
  43739. fiberStack[index] = null;
  43740. }
  43741. index--;
  43742. }
  43743. function push(cursor, value, fiber) {
  43744. index++;
  43745. valueStack[index] = cursor.current;
  43746. {
  43747. fiberStack[index] = fiber;
  43748. }
  43749. cursor.current = value;
  43750. }
  43751. var warnedAboutMissingGetChildContext = void 0;
  43752. {
  43753. warnedAboutMissingGetChildContext = {};
  43754. }
  43755. var emptyContextObject = {};
  43756. {
  43757. Object.freeze(emptyContextObject);
  43758. }
  43759. // A cursor to the current merged context object on the stack.
  43760. var contextStackCursor = createCursor(emptyContextObject);
  43761. // A cursor to a boolean indicating whether the context has changed.
  43762. var didPerformWorkStackCursor = createCursor(false);
  43763. // Keep track of the previous context object that was on the stack.
  43764. // We use this to get access to the parent context after we have already
  43765. // pushed the next context provider, and now need to merge their contexts.
  43766. var previousContext = emptyContextObject;
  43767. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  43768. if (disableLegacyContext) {
  43769. return emptyContextObject;
  43770. } else {
  43771. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  43772. // If the fiber is a context provider itself, when we read its context
  43773. // we may have already pushed its own child context on the stack. A context
  43774. // provider should not "see" its own child context. Therefore we read the
  43775. // previous (parent) context instead for a context provider.
  43776. return previousContext;
  43777. }
  43778. return contextStackCursor.current;
  43779. }
  43780. }
  43781. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  43782. if (disableLegacyContext) {
  43783. return;
  43784. } else {
  43785. var instance = workInProgress.stateNode;
  43786. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  43787. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  43788. }
  43789. }
  43790. function getMaskedContext(workInProgress, unmaskedContext) {
  43791. if (disableLegacyContext) {
  43792. return emptyContextObject;
  43793. } else {
  43794. var type = workInProgress.type;
  43795. var contextTypes = type.contextTypes;
  43796. if (!contextTypes) {
  43797. return emptyContextObject;
  43798. }
  43799. // Avoid recreating masked context unless unmasked context has changed.
  43800. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  43801. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  43802. var instance = workInProgress.stateNode;
  43803. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  43804. return instance.__reactInternalMemoizedMaskedChildContext;
  43805. }
  43806. var context = {};
  43807. for (var key in contextTypes) {
  43808. context[key] = unmaskedContext[key];
  43809. }
  43810. {
  43811. var name = getComponentName(type) || 'Unknown';
  43812. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  43813. }
  43814. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  43815. // Context is created before the class component is instantiated so check for instance.
  43816. if (instance) {
  43817. cacheContext(workInProgress, unmaskedContext, context);
  43818. }
  43819. return context;
  43820. }
  43821. }
  43822. function hasContextChanged() {
  43823. if (disableLegacyContext) {
  43824. return false;
  43825. } else {
  43826. return didPerformWorkStackCursor.current;
  43827. }
  43828. }
  43829. function isContextProvider(type) {
  43830. if (disableLegacyContext) {
  43831. return false;
  43832. } else {
  43833. var childContextTypes = type.childContextTypes;
  43834. return childContextTypes !== null && childContextTypes !== undefined;
  43835. }
  43836. }
  43837. function popContext(fiber) {
  43838. if (disableLegacyContext) {
  43839. return;
  43840. } else {
  43841. pop(didPerformWorkStackCursor, fiber);
  43842. pop(contextStackCursor, fiber);
  43843. }
  43844. }
  43845. function popTopLevelContextObject(fiber) {
  43846. if (disableLegacyContext) {
  43847. return;
  43848. } else {
  43849. pop(didPerformWorkStackCursor, fiber);
  43850. pop(contextStackCursor, fiber);
  43851. }
  43852. }
  43853. function pushTopLevelContextObject(fiber, context, didChange) {
  43854. if (disableLegacyContext) {
  43855. return;
  43856. } else {
  43857. (function () {
  43858. if (!(contextStackCursor.current === emptyContextObject)) {
  43859. {
  43860. throw ReactError(Error('Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.'));
  43861. }
  43862. }
  43863. })();
  43864. push(contextStackCursor, context, fiber);
  43865. push(didPerformWorkStackCursor, didChange, fiber);
  43866. }
  43867. }
  43868. function processChildContext(fiber, type, parentContext) {
  43869. if (disableLegacyContext) {
  43870. return parentContext;
  43871. } else {
  43872. var instance = fiber.stateNode;
  43873. var childContextTypes = type.childContextTypes;
  43874. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  43875. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  43876. if (typeof instance.getChildContext !== 'function') {
  43877. {
  43878. var componentName = getComponentName(type) || 'Unknown';
  43879. if (!warnedAboutMissingGetChildContext[componentName]) {
  43880. warnedAboutMissingGetChildContext[componentName] = true;
  43881. 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);
  43882. }
  43883. }
  43884. return parentContext;
  43885. }
  43886. var childContext = void 0;
  43887. {
  43888. setCurrentPhase('getChildContext');
  43889. }
  43890. startPhaseTimer(fiber, 'getChildContext');
  43891. childContext = instance.getChildContext();
  43892. stopPhaseTimer();
  43893. {
  43894. setCurrentPhase(null);
  43895. }
  43896. for (var contextKey in childContext) {
  43897. (function () {
  43898. if (!(contextKey in childContextTypes)) {
  43899. {
  43900. throw ReactError(Error((getComponentName(type) || 'Unknown') + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'));
  43901. }
  43902. }
  43903. })();
  43904. }
  43905. {
  43906. var name = getComponentName(type) || 'Unknown';
  43907. checkPropTypes(childContextTypes, childContext, 'child context', name,
  43908. // In practice, there is one case in which we won't get a stack. It's when
  43909. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  43910. // context from the parent component instance. The stack will be missing
  43911. // because it's outside of the reconciliation, and so the pointer has not
  43912. // been set. This is rare and doesn't matter. We'll also remove that API.
  43913. getCurrentFiberStackInDev);
  43914. }
  43915. return _assign({}, parentContext, childContext);
  43916. }
  43917. }
  43918. function pushContextProvider(workInProgress) {
  43919. if (disableLegacyContext) {
  43920. return false;
  43921. } else {
  43922. var instance = workInProgress.stateNode;
  43923. // We push the context as early as possible to ensure stack integrity.
  43924. // If the instance does not exist yet, we will push null at first,
  43925. // and replace it on the stack later when invalidating the context.
  43926. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  43927. // Remember the parent context so we can merge with it later.
  43928. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  43929. previousContext = contextStackCursor.current;
  43930. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  43931. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  43932. return true;
  43933. }
  43934. }
  43935. function invalidateContextProvider(workInProgress, type, didChange) {
  43936. if (disableLegacyContext) {
  43937. return;
  43938. } else {
  43939. var instance = workInProgress.stateNode;
  43940. (function () {
  43941. if (!instance) {
  43942. {
  43943. 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.'));
  43944. }
  43945. }
  43946. })();
  43947. if (didChange) {
  43948. // Merge parent and own context.
  43949. // Skip this if we're not updating due to sCU.
  43950. // This avoids unnecessarily recomputing memoized values.
  43951. var mergedContext = processChildContext(workInProgress, type, previousContext);
  43952. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  43953. // Replace the old (or empty) context with the new one.
  43954. // It is important to unwind the context in the reverse order.
  43955. pop(didPerformWorkStackCursor, workInProgress);
  43956. pop(contextStackCursor, workInProgress);
  43957. // Now push the new context and mark that it has changed.
  43958. push(contextStackCursor, mergedContext, workInProgress);
  43959. push(didPerformWorkStackCursor, didChange, workInProgress);
  43960. } else {
  43961. pop(didPerformWorkStackCursor, workInProgress);
  43962. push(didPerformWorkStackCursor, didChange, workInProgress);
  43963. }
  43964. }
  43965. }
  43966. function findCurrentUnmaskedContext(fiber) {
  43967. if (disableLegacyContext) {
  43968. return emptyContextObject;
  43969. } else {
  43970. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  43971. // makes sense elsewhere
  43972. (function () {
  43973. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  43974. {
  43975. 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.'));
  43976. }
  43977. }
  43978. })();
  43979. var node = fiber;
  43980. do {
  43981. switch (node.tag) {
  43982. case HostRoot:
  43983. return node.stateNode.context;
  43984. case ClassComponent:
  43985. {
  43986. var Component = node.type;
  43987. if (isContextProvider(Component)) {
  43988. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  43989. }
  43990. break;
  43991. }
  43992. }
  43993. node = node.return;
  43994. } while (node !== null);
  43995. (function () {
  43996. {
  43997. {
  43998. throw ReactError(Error('Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.'));
  43999. }
  44000. }
  44001. })();
  44002. }
  44003. }
  44004. var LegacyRoot = 0;
  44005. var BatchedRoot = 1;
  44006. var ConcurrentRoot = 2;
  44007. // Intentionally not named imports because Rollup would use dynamic dispatch for
  44008. // CommonJS interop named imports.
  44009. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority;
  44010. var Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback;
  44011. var Scheduler_cancelCallback = Scheduler.unstable_cancelCallback;
  44012. var Scheduler_shouldYield = Scheduler.unstable_shouldYield;
  44013. var Scheduler_requestPaint = Scheduler.unstable_requestPaint;
  44014. var Scheduler_now = Scheduler.unstable_now;
  44015. var Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
  44016. var Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority;
  44017. var Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  44018. var Scheduler_NormalPriority = Scheduler.unstable_NormalPriority;
  44019. var Scheduler_LowPriority = Scheduler.unstable_LowPriority;
  44020. var Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  44021. if (enableSchedulerTracing) {
  44022. // Provide explicit error message when production+profiling bundle of e.g.
  44023. // react-dom is used with production (non-profiling) bundle of
  44024. // scheduler/tracing
  44025. (function () {
  44026. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  44027. {
  44028. 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'));
  44029. }
  44030. }
  44031. })();
  44032. }
  44033. var fakeCallbackNode = {};
  44034. // Except for NoPriority, these correspond to Scheduler priorities. We use
  44035. // ascending numbers so we can compare them like numbers. They start at 90 to
  44036. // avoid clashing with Scheduler's priorities.
  44037. var ImmediatePriority = 99;
  44038. var UserBlockingPriority$2 = 98;
  44039. var NormalPriority = 97;
  44040. var LowPriority = 96;
  44041. var IdlePriority = 95;
  44042. // NoPriority is the absence of priority. Also React-only.
  44043. var NoPriority = 90;
  44044. var shouldYield = Scheduler_shouldYield;
  44045. var requestPaint =
  44046. // Fall back gracefully if we're running an older version of Scheduler.
  44047. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  44048. var syncQueue = null;
  44049. var immediateQueueCallbackNode = null;
  44050. var isFlushingSyncQueue = false;
  44051. var initialTimeMs = Scheduler_now();
  44052. // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  44053. // This will be the case for modern browsers that support `performance.now`. In
  44054. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  44055. // timestamp. In that case, subtract the module initialization time to simulate
  44056. // the behavior of performance.now and keep our times small enough to fit
  44057. // within 32 bits.
  44058. // TODO: Consider lifting this into Scheduler.
  44059. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  44060. return Scheduler_now() - initialTimeMs;
  44061. };
  44062. function getCurrentPriorityLevel() {
  44063. switch (Scheduler_getCurrentPriorityLevel()) {
  44064. case Scheduler_ImmediatePriority:
  44065. return ImmediatePriority;
  44066. case Scheduler_UserBlockingPriority:
  44067. return UserBlockingPriority$2;
  44068. case Scheduler_NormalPriority:
  44069. return NormalPriority;
  44070. case Scheduler_LowPriority:
  44071. return LowPriority;
  44072. case Scheduler_IdlePriority:
  44073. return IdlePriority;
  44074. default:
  44075. (function () {
  44076. {
  44077. {
  44078. throw ReactError(Error('Unknown priority level.'));
  44079. }
  44080. }
  44081. })();
  44082. }
  44083. }
  44084. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  44085. switch (reactPriorityLevel) {
  44086. case ImmediatePriority:
  44087. return Scheduler_ImmediatePriority;
  44088. case UserBlockingPriority$2:
  44089. return Scheduler_UserBlockingPriority;
  44090. case NormalPriority:
  44091. return Scheduler_NormalPriority;
  44092. case LowPriority:
  44093. return Scheduler_LowPriority;
  44094. case IdlePriority:
  44095. return Scheduler_IdlePriority;
  44096. default:
  44097. (function () {
  44098. {
  44099. {
  44100. throw ReactError(Error('Unknown priority level.'));
  44101. }
  44102. }
  44103. })();
  44104. }
  44105. }
  44106. function runWithPriority$2(reactPriorityLevel, fn) {
  44107. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  44108. return Scheduler_runWithPriority(priorityLevel, fn);
  44109. }
  44110. function scheduleCallback(reactPriorityLevel, callback, options) {
  44111. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  44112. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  44113. }
  44114. function scheduleSyncCallback(callback) {
  44115. // Push this callback into an internal queue. We'll flush these either in
  44116. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  44117. if (syncQueue === null) {
  44118. syncQueue = [callback];
  44119. // Flush the queue in the next tick, at the earliest.
  44120. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  44121. } else {
  44122. // Push onto existing queue. Don't need to schedule a callback because
  44123. // we already scheduled one when we created the queue.
  44124. syncQueue.push(callback);
  44125. }
  44126. return fakeCallbackNode;
  44127. }
  44128. function cancelCallback(callbackNode) {
  44129. if (callbackNode !== fakeCallbackNode) {
  44130. Scheduler_cancelCallback(callbackNode);
  44131. }
  44132. }
  44133. function flushSyncCallbackQueue() {
  44134. if (immediateQueueCallbackNode !== null) {
  44135. Scheduler_cancelCallback(immediateQueueCallbackNode);
  44136. }
  44137. flushSyncCallbackQueueImpl();
  44138. }
  44139. function flushSyncCallbackQueueImpl() {
  44140. if (!isFlushingSyncQueue && syncQueue !== null) {
  44141. // Prevent re-entrancy.
  44142. isFlushingSyncQueue = true;
  44143. var i = 0;
  44144. try {
  44145. var _isSync = true;
  44146. var queue = syncQueue;
  44147. runWithPriority$2(ImmediatePriority, function () {
  44148. for (; i < queue.length; i++) {
  44149. var callback = queue[i];
  44150. do {
  44151. callback = callback(_isSync);
  44152. } while (callback !== null);
  44153. }
  44154. });
  44155. syncQueue = null;
  44156. } catch (error) {
  44157. // If something throws, leave the remaining callbacks on the queue.
  44158. if (syncQueue !== null) {
  44159. syncQueue = syncQueue.slice(i + 1);
  44160. }
  44161. // Resume flushing in the next tick
  44162. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  44163. throw error;
  44164. } finally {
  44165. isFlushingSyncQueue = false;
  44166. }
  44167. }
  44168. }
  44169. var NoMode = 0;
  44170. var StrictMode = 1;
  44171. // TODO: Remove BatchedMode and ConcurrentMode by reading from the root
  44172. // tag instead
  44173. var BatchedMode = 2;
  44174. var ConcurrentMode = 4;
  44175. var ProfileMode = 8;
  44176. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  44177. // Math.pow(2, 30) - 1
  44178. // 0b111111111111111111111111111111
  44179. var MAX_SIGNED_31_BIT_INT = 1073741823;
  44180. var NoWork = 0;
  44181. var Never = 1;
  44182. var Sync = MAX_SIGNED_31_BIT_INT;
  44183. var Batched = Sync - 1;
  44184. var UNIT_SIZE = 10;
  44185. var MAGIC_NUMBER_OFFSET = Batched - 1;
  44186. // 1 unit of expiration time represents 10ms.
  44187. function msToExpirationTime(ms) {
  44188. // Always add an offset so that we don't clash with the magic number for NoWork.
  44189. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  44190. }
  44191. function expirationTimeToMs(expirationTime) {
  44192. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  44193. }
  44194. function ceiling(num, precision) {
  44195. return ((num / precision | 0) + 1) * precision;
  44196. }
  44197. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  44198. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  44199. }
  44200. // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  44201. // the names to reflect.
  44202. var LOW_PRIORITY_EXPIRATION = 5000;
  44203. var LOW_PRIORITY_BATCH_SIZE = 250;
  44204. function computeAsyncExpiration(currentTime) {
  44205. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  44206. }
  44207. function computeSuspenseExpiration(currentTime, timeoutMs) {
  44208. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  44209. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  44210. }
  44211. // We intentionally set a higher expiration time for interactive updates in
  44212. // dev than in production.
  44213. //
  44214. // If the main thread is being blocked so long that you hit the expiration,
  44215. // it's a problem that could be solved with better scheduling.
  44216. //
  44217. // People will be more likely to notice this and fix it with the long
  44218. // expiration time in development.
  44219. //
  44220. // In production we opt for better UX at the risk of masking scheduling
  44221. // problems, by expiring fast.
  44222. var HIGH_PRIORITY_EXPIRATION = 500;
  44223. var HIGH_PRIORITY_BATCH_SIZE = 100;
  44224. function computeInteractiveExpiration(currentTime) {
  44225. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  44226. }
  44227. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  44228. if (expirationTime === Sync) {
  44229. return ImmediatePriority;
  44230. }
  44231. if (expirationTime === Never) {
  44232. return IdlePriority;
  44233. }
  44234. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  44235. if (msUntil <= 0) {
  44236. return ImmediatePriority;
  44237. }
  44238. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  44239. return UserBlockingPriority$2;
  44240. }
  44241. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  44242. return NormalPriority;
  44243. }
  44244. // TODO: Handle LowPriority
  44245. // Assume anything lower has idle priority
  44246. return IdlePriority;
  44247. }
  44248. /**
  44249. * Forked from fbjs/warning:
  44250. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  44251. *
  44252. * Only change is we use console.warn instead of console.error,
  44253. * and do nothing when 'console' is not supported.
  44254. * This really simplifies the code.
  44255. * ---
  44256. * Similar to invariant but only logs a warning if the condition is not met.
  44257. * This can be used to log issues in development environments in critical
  44258. * paths. Removing the logging code for production environments will keep the
  44259. * same logic and follow the same code paths.
  44260. */
  44261. var lowPriorityWarning = function () {};
  44262. {
  44263. var printWarning = function (format) {
  44264. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  44265. args[_key - 1] = arguments[_key];
  44266. }
  44267. var argIndex = 0;
  44268. var message = 'Warning: ' + format.replace(/%s/g, function () {
  44269. return args[argIndex++];
  44270. });
  44271. if (typeof console !== 'undefined') {
  44272. console.warn(message);
  44273. }
  44274. try {
  44275. // --- Welcome to debugging React ---
  44276. // This error was thrown as a convenience so that you can use this stack
  44277. // to find the callsite that caused this warning to fire.
  44278. throw new Error(message);
  44279. } catch (x) {}
  44280. };
  44281. lowPriorityWarning = function (condition, format) {
  44282. if (format === undefined) {
  44283. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  44284. }
  44285. if (!condition) {
  44286. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  44287. args[_key2 - 2] = arguments[_key2];
  44288. }
  44289. printWarning.apply(undefined, [format].concat(args));
  44290. }
  44291. };
  44292. }
  44293. var lowPriorityWarning$1 = lowPriorityWarning;
  44294. var ReactStrictModeWarnings = {
  44295. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  44296. flushPendingUnsafeLifecycleWarnings: function () {},
  44297. recordLegacyContextWarning: function (fiber, instance) {},
  44298. flushLegacyContextWarning: function () {},
  44299. discardPendingWarnings: function () {}
  44300. };
  44301. {
  44302. var findStrictRoot = function (fiber) {
  44303. var maybeStrictRoot = null;
  44304. var node = fiber;
  44305. while (node !== null) {
  44306. if (node.mode & StrictMode) {
  44307. maybeStrictRoot = node;
  44308. }
  44309. node = node.return;
  44310. }
  44311. return maybeStrictRoot;
  44312. };
  44313. var setToSortedString = function (set) {
  44314. var array = [];
  44315. set.forEach(function (value) {
  44316. array.push(value);
  44317. });
  44318. return array.sort().join(', ');
  44319. };
  44320. var pendingComponentWillMountWarnings = [];
  44321. var pendingUNSAFE_ComponentWillMountWarnings = [];
  44322. var pendingComponentWillReceivePropsWarnings = [];
  44323. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44324. var pendingComponentWillUpdateWarnings = [];
  44325. var pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44326. // Tracks components we have already warned about.
  44327. var didWarnAboutUnsafeLifecycles = new Set();
  44328. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  44329. // Dedup strategy: Warn once per component.
  44330. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  44331. return;
  44332. }
  44333. if (typeof instance.componentWillMount === 'function' &&
  44334. // Don't warn about react-lifecycles-compat polyfilled components.
  44335. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  44336. pendingComponentWillMountWarnings.push(fiber);
  44337. }
  44338. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  44339. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  44340. }
  44341. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  44342. pendingComponentWillReceivePropsWarnings.push(fiber);
  44343. }
  44344. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  44345. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  44346. }
  44347. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  44348. pendingComponentWillUpdateWarnings.push(fiber);
  44349. }
  44350. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  44351. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  44352. }
  44353. };
  44354. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  44355. // We do an initial pass to gather component names
  44356. var componentWillMountUniqueNames = new Set();
  44357. if (pendingComponentWillMountWarnings.length > 0) {
  44358. pendingComponentWillMountWarnings.forEach(function (fiber) {
  44359. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44360. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44361. });
  44362. pendingComponentWillMountWarnings = [];
  44363. }
  44364. var UNSAFE_componentWillMountUniqueNames = new Set();
  44365. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  44366. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  44367. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44368. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44369. });
  44370. pendingUNSAFE_ComponentWillMountWarnings = [];
  44371. }
  44372. var componentWillReceivePropsUniqueNames = new Set();
  44373. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  44374. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  44375. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44376. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44377. });
  44378. pendingComponentWillReceivePropsWarnings = [];
  44379. }
  44380. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  44381. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  44382. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  44383. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44384. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44385. });
  44386. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44387. }
  44388. var componentWillUpdateUniqueNames = new Set();
  44389. if (pendingComponentWillUpdateWarnings.length > 0) {
  44390. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  44391. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44392. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44393. });
  44394. pendingComponentWillUpdateWarnings = [];
  44395. }
  44396. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  44397. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  44398. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  44399. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  44400. didWarnAboutUnsafeLifecycles.add(fiber.type);
  44401. });
  44402. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44403. }
  44404. // Finally, we flush all the warnings
  44405. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  44406. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  44407. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  44408. 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);
  44409. }
  44410. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  44411. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  44412. 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);
  44413. }
  44414. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  44415. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  44416. 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);
  44417. }
  44418. if (componentWillMountUniqueNames.size > 0) {
  44419. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  44420. 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);
  44421. }
  44422. if (componentWillReceivePropsUniqueNames.size > 0) {
  44423. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  44424. 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);
  44425. }
  44426. if (componentWillUpdateUniqueNames.size > 0) {
  44427. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  44428. 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);
  44429. }
  44430. };
  44431. var pendingLegacyContextWarning = new Map();
  44432. // Tracks components we have already warned about.
  44433. var didWarnAboutLegacyContext = new Set();
  44434. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  44435. var strictRoot = findStrictRoot(fiber);
  44436. if (strictRoot === null) {
  44437. 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.');
  44438. return;
  44439. }
  44440. // Dedup strategy: Warn once per component.
  44441. if (didWarnAboutLegacyContext.has(fiber.type)) {
  44442. return;
  44443. }
  44444. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  44445. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  44446. if (warningsForRoot === undefined) {
  44447. warningsForRoot = [];
  44448. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  44449. }
  44450. warningsForRoot.push(fiber);
  44451. }
  44452. };
  44453. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  44454. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  44455. var uniqueNames = new Set();
  44456. fiberArray.forEach(function (fiber) {
  44457. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  44458. didWarnAboutLegacyContext.add(fiber.type);
  44459. });
  44460. var sortedNames = setToSortedString(uniqueNames);
  44461. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  44462. 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);
  44463. });
  44464. };
  44465. ReactStrictModeWarnings.discardPendingWarnings = function () {
  44466. pendingComponentWillMountWarnings = [];
  44467. pendingUNSAFE_ComponentWillMountWarnings = [];
  44468. pendingComponentWillReceivePropsWarnings = [];
  44469. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  44470. pendingComponentWillUpdateWarnings = [];
  44471. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  44472. pendingLegacyContextWarning = new Map();
  44473. };
  44474. }
  44475. // Resolves type to a family.
  44476. // Used by React Refresh runtime through DevTools Global Hook.
  44477. var resolveFamily = null;
  44478. // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  44479. var failedBoundaries = null;
  44480. var setRefreshHandler = function (handler) {
  44481. {
  44482. resolveFamily = handler;
  44483. }
  44484. };
  44485. function resolveFunctionForHotReloading(type) {
  44486. {
  44487. if (resolveFamily === null) {
  44488. // Hot reloading is disabled.
  44489. return type;
  44490. }
  44491. var family = resolveFamily(type);
  44492. if (family === undefined) {
  44493. return type;
  44494. }
  44495. // Use the latest known implementation.
  44496. return family.current;
  44497. }
  44498. }
  44499. function resolveClassForHotReloading(type) {
  44500. // No implementation differences.
  44501. return resolveFunctionForHotReloading(type);
  44502. }
  44503. function resolveForwardRefForHotReloading(type) {
  44504. {
  44505. if (resolveFamily === null) {
  44506. // Hot reloading is disabled.
  44507. return type;
  44508. }
  44509. var family = resolveFamily(type);
  44510. if (family === undefined) {
  44511. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  44512. if (type !== null && type !== undefined && typeof type.render === 'function') {
  44513. // ForwardRef is special because its resolved .type is an object,
  44514. // but it's possible that we only have its inner render function in the map.
  44515. // If that inner render function is different, we'll build a new forwardRef type.
  44516. var currentRender = resolveFunctionForHotReloading(type.render);
  44517. if (type.render !== currentRender) {
  44518. var syntheticType = {
  44519. $$typeof: REACT_FORWARD_REF_TYPE,
  44520. render: currentRender
  44521. };
  44522. if (type.displayName !== undefined) {
  44523. syntheticType.displayName = type.displayName;
  44524. }
  44525. return syntheticType;
  44526. }
  44527. }
  44528. return type;
  44529. }
  44530. // Use the latest known implementation.
  44531. return family.current;
  44532. }
  44533. }
  44534. function isCompatibleFamilyForHotReloading(fiber, element) {
  44535. {
  44536. if (resolveFamily === null) {
  44537. // Hot reloading is disabled.
  44538. return false;
  44539. }
  44540. var prevType = fiber.elementType;
  44541. var nextType = element.type;
  44542. // If we got here, we know types aren't === equal.
  44543. var needsCompareFamilies = false;
  44544. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  44545. switch (fiber.tag) {
  44546. case ClassComponent:
  44547. {
  44548. if (typeof nextType === 'function') {
  44549. needsCompareFamilies = true;
  44550. }
  44551. break;
  44552. }
  44553. case FunctionComponent:
  44554. {
  44555. if (typeof nextType === 'function') {
  44556. needsCompareFamilies = true;
  44557. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44558. // We don't know the inner type yet.
  44559. // We're going to assume that the lazy inner type is stable,
  44560. // and so it is sufficient to avoid reconciling it away.
  44561. // We're not going to unwrap or actually use the new lazy type.
  44562. needsCompareFamilies = true;
  44563. }
  44564. break;
  44565. }
  44566. case ForwardRef:
  44567. {
  44568. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  44569. needsCompareFamilies = true;
  44570. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44571. needsCompareFamilies = true;
  44572. }
  44573. break;
  44574. }
  44575. case MemoComponent:
  44576. case SimpleMemoComponent:
  44577. {
  44578. if ($$typeofNextType === REACT_MEMO_TYPE) {
  44579. // TODO: if it was but can no longer be simple,
  44580. // we shouldn't set this.
  44581. needsCompareFamilies = true;
  44582. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  44583. needsCompareFamilies = true;
  44584. }
  44585. break;
  44586. }
  44587. default:
  44588. return false;
  44589. }
  44590. // Check if both types have a family and it's the same one.
  44591. if (needsCompareFamilies) {
  44592. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  44593. // This means both of them need to be registered to preserve state.
  44594. // If we unwrapped and compared the inner types for wrappers instead,
  44595. // then we would risk falsely saying two separate memo(Foo)
  44596. // calls are equivalent because they wrap the same Foo function.
  44597. var prevFamily = resolveFamily(prevType);
  44598. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  44599. return true;
  44600. }
  44601. }
  44602. return false;
  44603. }
  44604. }
  44605. function markFailedErrorBoundaryForHotReloading(fiber) {
  44606. {
  44607. if (resolveFamily === null) {
  44608. // Hot reloading is disabled.
  44609. return;
  44610. }
  44611. if (typeof WeakSet !== 'function') {
  44612. return;
  44613. }
  44614. if (failedBoundaries === null) {
  44615. failedBoundaries = new WeakSet();
  44616. }
  44617. failedBoundaries.add(fiber);
  44618. }
  44619. }
  44620. var scheduleRefresh = function (root, update) {
  44621. {
  44622. if (resolveFamily === null) {
  44623. // Hot reloading is disabled.
  44624. return;
  44625. }
  44626. var _staleFamilies = update.staleFamilies,
  44627. _updatedFamilies = update.updatedFamilies;
  44628. flushPassiveEffects();
  44629. flushSync(function () {
  44630. scheduleFibersWithFamiliesRecursively(root.current, _updatedFamilies, _staleFamilies);
  44631. });
  44632. }
  44633. };
  44634. var scheduleRoot = function (root, element) {
  44635. {
  44636. if (root.context !== emptyContextObject) {
  44637. // Super edge case: root has a legacy _renderSubtree context
  44638. // but we don't know the parentComponent so we can't pass it.
  44639. // Just ignore. We'll delete this with _renderSubtree code path later.
  44640. return;
  44641. }
  44642. flushPassiveEffects();
  44643. updateContainerAtExpirationTime(element, root, null, Sync, null);
  44644. }
  44645. };
  44646. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  44647. {
  44648. var alternate = fiber.alternate,
  44649. child = fiber.child,
  44650. sibling = fiber.sibling,
  44651. tag = fiber.tag,
  44652. type = fiber.type;
  44653. var candidateType = null;
  44654. switch (tag) {
  44655. case FunctionComponent:
  44656. case SimpleMemoComponent:
  44657. case ClassComponent:
  44658. candidateType = type;
  44659. break;
  44660. case ForwardRef:
  44661. candidateType = type.render;
  44662. break;
  44663. default:
  44664. break;
  44665. }
  44666. if (resolveFamily === null) {
  44667. throw new Error('Expected resolveFamily to be set during hot reload.');
  44668. }
  44669. var needsRender = false;
  44670. var needsRemount = false;
  44671. if (candidateType !== null) {
  44672. var family = resolveFamily(candidateType);
  44673. if (family !== undefined) {
  44674. if (staleFamilies.has(family)) {
  44675. needsRemount = true;
  44676. } else if (updatedFamilies.has(family)) {
  44677. needsRender = true;
  44678. }
  44679. }
  44680. }
  44681. if (failedBoundaries !== null) {
  44682. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  44683. needsRemount = true;
  44684. }
  44685. }
  44686. if (needsRemount) {
  44687. fiber._debugNeedsRemount = true;
  44688. }
  44689. if (needsRemount || needsRender) {
  44690. scheduleWork(fiber, Sync);
  44691. }
  44692. if (child !== null && !needsRemount) {
  44693. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  44694. }
  44695. if (sibling !== null) {
  44696. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  44697. }
  44698. }
  44699. }
  44700. var findHostInstancesForRefresh = function (root, families) {
  44701. {
  44702. var hostInstances = new Set();
  44703. var types = new Set(families.map(function (family) {
  44704. return family.current;
  44705. }));
  44706. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  44707. return hostInstances;
  44708. }
  44709. };
  44710. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  44711. {
  44712. var child = fiber.child,
  44713. sibling = fiber.sibling,
  44714. tag = fiber.tag,
  44715. type = fiber.type;
  44716. var candidateType = null;
  44717. switch (tag) {
  44718. case FunctionComponent:
  44719. case SimpleMemoComponent:
  44720. case ClassComponent:
  44721. candidateType = type;
  44722. break;
  44723. case ForwardRef:
  44724. candidateType = type.render;
  44725. break;
  44726. default:
  44727. break;
  44728. }
  44729. var didMatch = false;
  44730. if (candidateType !== null) {
  44731. if (types.has(candidateType)) {
  44732. didMatch = true;
  44733. }
  44734. }
  44735. if (didMatch) {
  44736. // We have a match. This only drills down to the closest host components.
  44737. // There's no need to search deeper because for the purpose of giving
  44738. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  44739. findHostInstancesForFiberShallowly(fiber, hostInstances);
  44740. } else {
  44741. // If there's no match, maybe there will be one further down in the child tree.
  44742. if (child !== null) {
  44743. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  44744. }
  44745. }
  44746. if (sibling !== null) {
  44747. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  44748. }
  44749. }
  44750. }
  44751. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  44752. {
  44753. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  44754. if (foundHostInstances) {
  44755. return;
  44756. }
  44757. // If we didn't find any host children, fallback to closest host parent.
  44758. var node = fiber;
  44759. while (true) {
  44760. switch (node.tag) {
  44761. case HostComponent:
  44762. hostInstances.add(node.stateNode);
  44763. return;
  44764. case HostPortal:
  44765. hostInstances.add(node.stateNode.containerInfo);
  44766. return;
  44767. case HostRoot:
  44768. hostInstances.add(node.stateNode.containerInfo);
  44769. return;
  44770. }
  44771. if (node.return === null) {
  44772. throw new Error('Expected to reach root first.');
  44773. }
  44774. node = node.return;
  44775. }
  44776. }
  44777. }
  44778. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  44779. {
  44780. var node = fiber;
  44781. var foundHostInstances = false;
  44782. while (true) {
  44783. if (node.tag === HostComponent) {
  44784. // We got a match.
  44785. foundHostInstances = true;
  44786. hostInstances.add(node.stateNode);
  44787. // There may still be more, so keep searching.
  44788. } else if (node.child !== null) {
  44789. node.child.return = node;
  44790. node = node.child;
  44791. continue;
  44792. }
  44793. if (node === fiber) {
  44794. return foundHostInstances;
  44795. }
  44796. while (node.sibling === null) {
  44797. if (node.return === null || node.return === fiber) {
  44798. return foundHostInstances;
  44799. }
  44800. node = node.return;
  44801. }
  44802. node.sibling.return = node.return;
  44803. node = node.sibling;
  44804. }
  44805. }
  44806. return false;
  44807. }
  44808. function resolveDefaultProps(Component, baseProps) {
  44809. if (Component && Component.defaultProps) {
  44810. // Resolve default props. Taken from ReactElement
  44811. var props = _assign({}, baseProps);
  44812. var defaultProps = Component.defaultProps;
  44813. for (var propName in defaultProps) {
  44814. if (props[propName] === undefined) {
  44815. props[propName] = defaultProps[propName];
  44816. }
  44817. }
  44818. return props;
  44819. }
  44820. return baseProps;
  44821. }
  44822. function readLazyComponentType(lazyComponent) {
  44823. var status = lazyComponent._status;
  44824. var result = lazyComponent._result;
  44825. switch (status) {
  44826. case Resolved:
  44827. {
  44828. var Component = result;
  44829. return Component;
  44830. }
  44831. case Rejected:
  44832. {
  44833. var error = result;
  44834. throw error;
  44835. }
  44836. case Pending:
  44837. {
  44838. var thenable = result;
  44839. throw thenable;
  44840. }
  44841. default:
  44842. {
  44843. lazyComponent._status = Pending;
  44844. var ctor = lazyComponent._ctor;
  44845. var _thenable = ctor();
  44846. _thenable.then(function (moduleObject) {
  44847. if (lazyComponent._status === Pending) {
  44848. var defaultExport = moduleObject.default;
  44849. {
  44850. if (defaultExport === undefined) {
  44851. 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);
  44852. }
  44853. }
  44854. lazyComponent._status = Resolved;
  44855. lazyComponent._result = defaultExport;
  44856. }
  44857. }, function (error) {
  44858. if (lazyComponent._status === Pending) {
  44859. lazyComponent._status = Rejected;
  44860. lazyComponent._result = error;
  44861. }
  44862. });
  44863. // Handle synchronous thenables.
  44864. switch (lazyComponent._status) {
  44865. case Resolved:
  44866. return lazyComponent._result;
  44867. case Rejected:
  44868. throw lazyComponent._result;
  44869. }
  44870. lazyComponent._result = _thenable;
  44871. throw _thenable;
  44872. }
  44873. }
  44874. }
  44875. var valueCursor = createCursor(null);
  44876. var rendererSigil = void 0;
  44877. {
  44878. // Use this to detect multiple renderers using the same context
  44879. rendererSigil = {};
  44880. }
  44881. var currentlyRenderingFiber = null;
  44882. var lastContextDependency = null;
  44883. var lastContextWithAllBitsObserved = null;
  44884. var isDisallowedContextReadInDEV = false;
  44885. function resetContextDependencies() {
  44886. // This is called right before React yields execution, to ensure `readContext`
  44887. // cannot be called outside the render phase.
  44888. currentlyRenderingFiber = null;
  44889. lastContextDependency = null;
  44890. lastContextWithAllBitsObserved = null;
  44891. {
  44892. isDisallowedContextReadInDEV = false;
  44893. }
  44894. }
  44895. function enterDisallowedContextReadInDEV() {
  44896. {
  44897. isDisallowedContextReadInDEV = true;
  44898. }
  44899. }
  44900. function exitDisallowedContextReadInDEV() {
  44901. {
  44902. isDisallowedContextReadInDEV = false;
  44903. }
  44904. }
  44905. function pushProvider(providerFiber, nextValue) {
  44906. var context = providerFiber.type._context;
  44907. if (isPrimaryRenderer) {
  44908. push(valueCursor, context._currentValue, providerFiber);
  44909. context._currentValue = nextValue;
  44910. {
  44911. !(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;
  44912. context._currentRenderer = rendererSigil;
  44913. }
  44914. } else {
  44915. push(valueCursor, context._currentValue2, providerFiber);
  44916. context._currentValue2 = nextValue;
  44917. {
  44918. !(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;
  44919. context._currentRenderer2 = rendererSigil;
  44920. }
  44921. }
  44922. }
  44923. function popProvider(providerFiber) {
  44924. var currentValue = valueCursor.current;
  44925. pop(valueCursor, providerFiber);
  44926. var context = providerFiber.type._context;
  44927. if (isPrimaryRenderer) {
  44928. context._currentValue = currentValue;
  44929. } else {
  44930. context._currentValue2 = currentValue;
  44931. }
  44932. }
  44933. function calculateChangedBits(context, newValue, oldValue) {
  44934. if (is(oldValue, newValue)) {
  44935. // No change
  44936. return 0;
  44937. } else {
  44938. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  44939. {
  44940. !((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;
  44941. }
  44942. return changedBits | 0;
  44943. }
  44944. }
  44945. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  44946. // Update the child expiration time of all the ancestors, including
  44947. // the alternates.
  44948. var node = parent;
  44949. while (node !== null) {
  44950. var alternate = node.alternate;
  44951. if (node.childExpirationTime < renderExpirationTime) {
  44952. node.childExpirationTime = renderExpirationTime;
  44953. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44954. alternate.childExpirationTime = renderExpirationTime;
  44955. }
  44956. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44957. alternate.childExpirationTime = renderExpirationTime;
  44958. } else {
  44959. // Neither alternate was updated, which means the rest of the
  44960. // ancestor path already has sufficient priority.
  44961. break;
  44962. }
  44963. node = node.return;
  44964. }
  44965. }
  44966. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  44967. var fiber = workInProgress.child;
  44968. if (fiber !== null) {
  44969. // Set the return pointer of the child to the work-in-progress fiber.
  44970. fiber.return = workInProgress;
  44971. }
  44972. while (fiber !== null) {
  44973. var nextFiber = void 0;
  44974. // Visit this fiber.
  44975. var list = fiber.dependencies;
  44976. if (list !== null) {
  44977. nextFiber = fiber.child;
  44978. var dependency = list.firstContext;
  44979. while (dependency !== null) {
  44980. // Check if the context matches.
  44981. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  44982. // Match! Schedule an update on this fiber.
  44983. if (fiber.tag === ClassComponent) {
  44984. // Schedule a force update on the work-in-progress.
  44985. var update = createUpdate(renderExpirationTime, null);
  44986. update.tag = ForceUpdate;
  44987. // TODO: Because we don't have a work-in-progress, this will add the
  44988. // update to the current fiber, too, which means it will persist even if
  44989. // this render is thrown away. Since it's a race condition, not sure it's
  44990. // worth fixing.
  44991. enqueueUpdate(fiber, update);
  44992. }
  44993. if (fiber.expirationTime < renderExpirationTime) {
  44994. fiber.expirationTime = renderExpirationTime;
  44995. }
  44996. var alternate = fiber.alternate;
  44997. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  44998. alternate.expirationTime = renderExpirationTime;
  44999. }
  45000. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  45001. // Mark the expiration time on the list, too.
  45002. if (list.expirationTime < renderExpirationTime) {
  45003. list.expirationTime = renderExpirationTime;
  45004. }
  45005. // Since we already found a match, we can stop traversing the
  45006. // dependency list.
  45007. break;
  45008. }
  45009. dependency = dependency.next;
  45010. }
  45011. } else if (fiber.tag === ContextProvider) {
  45012. // Don't scan deeper if this is a matching provider
  45013. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  45014. } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {
  45015. // If a dehydrated suspense component is in this subtree, we don't know
  45016. // if it will have any context consumers in it. The best we can do is
  45017. // mark it as having updates on its children.
  45018. if (fiber.expirationTime < renderExpirationTime) {
  45019. fiber.expirationTime = renderExpirationTime;
  45020. }
  45021. var _alternate = fiber.alternate;
  45022. if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {
  45023. _alternate.expirationTime = renderExpirationTime;
  45024. }
  45025. // This is intentionally passing this fiber as the parent
  45026. // because we want to schedule this fiber as having work
  45027. // on its children. We'll use the childExpirationTime on
  45028. // this fiber to indicate that a context has changed.
  45029. scheduleWorkOnParentPath(fiber, renderExpirationTime);
  45030. nextFiber = fiber.sibling;
  45031. } else {
  45032. // Traverse down.
  45033. nextFiber = fiber.child;
  45034. }
  45035. if (nextFiber !== null) {
  45036. // Set the return pointer of the child to the work-in-progress fiber.
  45037. nextFiber.return = fiber;
  45038. } else {
  45039. // No child. Traverse to next sibling.
  45040. nextFiber = fiber;
  45041. while (nextFiber !== null) {
  45042. if (nextFiber === workInProgress) {
  45043. // We're back to the root of this subtree. Exit.
  45044. nextFiber = null;
  45045. break;
  45046. }
  45047. var sibling = nextFiber.sibling;
  45048. if (sibling !== null) {
  45049. // Set the return pointer of the sibling to the work-in-progress fiber.
  45050. sibling.return = nextFiber.return;
  45051. nextFiber = sibling;
  45052. break;
  45053. }
  45054. // No more siblings. Traverse up.
  45055. nextFiber = nextFiber.return;
  45056. }
  45057. }
  45058. fiber = nextFiber;
  45059. }
  45060. }
  45061. function prepareToReadContext(workInProgress, renderExpirationTime) {
  45062. currentlyRenderingFiber = workInProgress;
  45063. lastContextDependency = null;
  45064. lastContextWithAllBitsObserved = null;
  45065. var dependencies = workInProgress.dependencies;
  45066. if (dependencies !== null) {
  45067. var firstContext = dependencies.firstContext;
  45068. if (firstContext !== null) {
  45069. if (dependencies.expirationTime >= renderExpirationTime) {
  45070. // Context list has a pending update. Mark that this fiber performed work.
  45071. markWorkInProgressReceivedUpdate();
  45072. }
  45073. // Reset the work-in-progress list
  45074. dependencies.firstContext = null;
  45075. }
  45076. }
  45077. }
  45078. function readContext(context, observedBits) {
  45079. {
  45080. // This warning would fire if you read context inside a Hook like useMemo.
  45081. // Unlike the class check below, it's not enforced in production for perf.
  45082. !!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;
  45083. }
  45084. if (lastContextWithAllBitsObserved === context) {
  45085. // Nothing to do. We already observe everything in this context.
  45086. } else if (observedBits === false || observedBits === 0) {
  45087. // Do not observe any updates.
  45088. } else {
  45089. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  45090. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  45091. // Observe all updates.
  45092. lastContextWithAllBitsObserved = context;
  45093. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  45094. } else {
  45095. resolvedObservedBits = observedBits;
  45096. }
  45097. var contextItem = {
  45098. context: context,
  45099. observedBits: resolvedObservedBits,
  45100. next: null
  45101. };
  45102. if (lastContextDependency === null) {
  45103. (function () {
  45104. if (!(currentlyRenderingFiber !== null)) {
  45105. {
  45106. 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().'));
  45107. }
  45108. }
  45109. })();
  45110. // This is the first dependency for this component. Create a new list.
  45111. lastContextDependency = contextItem;
  45112. currentlyRenderingFiber.dependencies = {
  45113. expirationTime: NoWork,
  45114. firstContext: contextItem,
  45115. responders: null
  45116. };
  45117. } else {
  45118. // Append a new context item.
  45119. lastContextDependency = lastContextDependency.next = contextItem;
  45120. }
  45121. }
  45122. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  45123. }
  45124. // UpdateQueue is a linked list of prioritized updates.
  45125. //
  45126. // Like fibers, update queues come in pairs: a current queue, which represents
  45127. // the visible state of the screen, and a work-in-progress queue, which can be
  45128. // mutated and processed asynchronously before it is committed — a form of
  45129. // double buffering. If a work-in-progress render is discarded before finishing,
  45130. // we create a new work-in-progress by cloning the current queue.
  45131. //
  45132. // Both queues share a persistent, singly-linked list structure. To schedule an
  45133. // update, we append it to the end of both queues. Each queue maintains a
  45134. // pointer to first update in the persistent list that hasn't been processed.
  45135. // The work-in-progress pointer always has a position equal to or greater than
  45136. // the current queue, since we always work on that one. The current queue's
  45137. // pointer is only updated during the commit phase, when we swap in the
  45138. // work-in-progress.
  45139. //
  45140. // For example:
  45141. //
  45142. // Current pointer: A - B - C - D - E - F
  45143. // Work-in-progress pointer: D - E - F
  45144. // ^
  45145. // The work-in-progress queue has
  45146. // processed more updates than current.
  45147. //
  45148. // The reason we append to both queues is because otherwise we might drop
  45149. // updates without ever processing them. For example, if we only add updates to
  45150. // the work-in-progress queue, some updates could be lost whenever a work-in
  45151. // -progress render restarts by cloning from current. Similarly, if we only add
  45152. // updates to the current queue, the updates will be lost whenever an already
  45153. // in-progress queue commits and swaps with the current queue. However, by
  45154. // adding to both queues, we guarantee that the update will be part of the next
  45155. // work-in-progress. (And because the work-in-progress queue becomes the
  45156. // current queue once it commits, there's no danger of applying the same
  45157. // update twice.)
  45158. //
  45159. // Prioritization
  45160. // --------------
  45161. //
  45162. // Updates are not sorted by priority, but by insertion; new updates are always
  45163. // appended to the end of the list.
  45164. //
  45165. // The priority is still important, though. When processing the update queue
  45166. // during the render phase, only the updates with sufficient priority are
  45167. // included in the result. If we skip an update because it has insufficient
  45168. // priority, it remains in the queue to be processed later, during a lower
  45169. // priority render. Crucially, all updates subsequent to a skipped update also
  45170. // remain in the queue *regardless of their priority*. That means high priority
  45171. // updates are sometimes processed twice, at two separate priorities. We also
  45172. // keep track of a base state, that represents the state before the first
  45173. // update in the queue is applied.
  45174. //
  45175. // For example:
  45176. //
  45177. // Given a base state of '', and the following queue of updates
  45178. //
  45179. // A1 - B2 - C1 - D2
  45180. //
  45181. // where the number indicates the priority, and the update is applied to the
  45182. // previous state by appending a letter, React will process these updates as
  45183. // two separate renders, one per distinct priority level:
  45184. //
  45185. // First render, at priority 1:
  45186. // Base state: ''
  45187. // Updates: [A1, C1]
  45188. // Result state: 'AC'
  45189. //
  45190. // Second render, at priority 2:
  45191. // Base state: 'A' <- The base state does not include C1,
  45192. // because B2 was skipped.
  45193. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  45194. // Result state: 'ABCD'
  45195. //
  45196. // Because we process updates in insertion order, and rebase high priority
  45197. // updates when preceding updates are skipped, the final result is deterministic
  45198. // regardless of priority. Intermediate state may vary according to system
  45199. // resources, but the final state is always the same.
  45200. var UpdateState = 0;
  45201. var ReplaceState = 1;
  45202. var ForceUpdate = 2;
  45203. var CaptureUpdate = 3;
  45204. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  45205. // It should only be read right after calling `processUpdateQueue`, via
  45206. // `checkHasForceUpdateAfterProcessing`.
  45207. var hasForceUpdate = false;
  45208. var didWarnUpdateInsideUpdate = void 0;
  45209. var currentlyProcessingQueue = void 0;
  45210. {
  45211. didWarnUpdateInsideUpdate = false;
  45212. currentlyProcessingQueue = null;
  45213. }
  45214. function createUpdateQueue(baseState) {
  45215. var queue = {
  45216. baseState: baseState,
  45217. firstUpdate: null,
  45218. lastUpdate: null,
  45219. firstCapturedUpdate: null,
  45220. lastCapturedUpdate: null,
  45221. firstEffect: null,
  45222. lastEffect: null,
  45223. firstCapturedEffect: null,
  45224. lastCapturedEffect: null
  45225. };
  45226. return queue;
  45227. }
  45228. function cloneUpdateQueue(currentQueue) {
  45229. var queue = {
  45230. baseState: currentQueue.baseState,
  45231. firstUpdate: currentQueue.firstUpdate,
  45232. lastUpdate: currentQueue.lastUpdate,
  45233. // TODO: With resuming, if we bail out and resuse the child tree, we should
  45234. // keep these effects.
  45235. firstCapturedUpdate: null,
  45236. lastCapturedUpdate: null,
  45237. firstEffect: null,
  45238. lastEffect: null,
  45239. firstCapturedEffect: null,
  45240. lastCapturedEffect: null
  45241. };
  45242. return queue;
  45243. }
  45244. function createUpdate(expirationTime, suspenseConfig) {
  45245. var update = {
  45246. expirationTime: expirationTime,
  45247. suspenseConfig: suspenseConfig,
  45248. tag: UpdateState,
  45249. payload: null,
  45250. callback: null,
  45251. next: null,
  45252. nextEffect: null
  45253. };
  45254. {
  45255. update.priority = getCurrentPriorityLevel();
  45256. }
  45257. return update;
  45258. }
  45259. function appendUpdateToQueue(queue, update) {
  45260. // Append the update to the end of the list.
  45261. if (queue.lastUpdate === null) {
  45262. // Queue is empty
  45263. queue.firstUpdate = queue.lastUpdate = update;
  45264. } else {
  45265. queue.lastUpdate.next = update;
  45266. queue.lastUpdate = update;
  45267. }
  45268. }
  45269. function enqueueUpdate(fiber, update) {
  45270. // Update queues are created lazily.
  45271. var alternate = fiber.alternate;
  45272. var queue1 = void 0;
  45273. var queue2 = void 0;
  45274. if (alternate === null) {
  45275. // There's only one fiber.
  45276. queue1 = fiber.updateQueue;
  45277. queue2 = null;
  45278. if (queue1 === null) {
  45279. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  45280. }
  45281. } else {
  45282. // There are two owners.
  45283. queue1 = fiber.updateQueue;
  45284. queue2 = alternate.updateQueue;
  45285. if (queue1 === null) {
  45286. if (queue2 === null) {
  45287. // Neither fiber has an update queue. Create new ones.
  45288. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  45289. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  45290. } else {
  45291. // Only one fiber has an update queue. Clone to create a new one.
  45292. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  45293. }
  45294. } else {
  45295. if (queue2 === null) {
  45296. // Only one fiber has an update queue. Clone to create a new one.
  45297. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  45298. } else {
  45299. // Both owners have an update queue.
  45300. }
  45301. }
  45302. }
  45303. if (queue2 === null || queue1 === queue2) {
  45304. // There's only a single queue.
  45305. appendUpdateToQueue(queue1, update);
  45306. } else {
  45307. // There are two queues. We need to append the update to both queues,
  45308. // while accounting for the persistent structure of the list — we don't
  45309. // want the same update to be added multiple times.
  45310. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  45311. // One of the queues is not empty. We must add the update to both queues.
  45312. appendUpdateToQueue(queue1, update);
  45313. appendUpdateToQueue(queue2, update);
  45314. } else {
  45315. // Both queues are non-empty. The last update is the same in both lists,
  45316. // because of structural sharing. So, only append to one of the lists.
  45317. appendUpdateToQueue(queue1, update);
  45318. // But we still need to update the `lastUpdate` pointer of queue2.
  45319. queue2.lastUpdate = update;
  45320. }
  45321. }
  45322. {
  45323. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  45324. 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.');
  45325. didWarnUpdateInsideUpdate = true;
  45326. }
  45327. }
  45328. }
  45329. function enqueueCapturedUpdate(workInProgress, update) {
  45330. // Captured updates go into a separate list, and only on the work-in-
  45331. // progress queue.
  45332. var workInProgressQueue = workInProgress.updateQueue;
  45333. if (workInProgressQueue === null) {
  45334. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  45335. } else {
  45336. // TODO: I put this here rather than createWorkInProgress so that we don't
  45337. // clone the queue unnecessarily. There's probably a better way to
  45338. // structure this.
  45339. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  45340. }
  45341. // Append the update to the end of the list.
  45342. if (workInProgressQueue.lastCapturedUpdate === null) {
  45343. // This is the first render phase update
  45344. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  45345. } else {
  45346. workInProgressQueue.lastCapturedUpdate.next = update;
  45347. workInProgressQueue.lastCapturedUpdate = update;
  45348. }
  45349. }
  45350. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  45351. var current = workInProgress.alternate;
  45352. if (current !== null) {
  45353. // If the work-in-progress queue is equal to the current queue,
  45354. // we need to clone it first.
  45355. if (queue === current.updateQueue) {
  45356. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  45357. }
  45358. }
  45359. return queue;
  45360. }
  45361. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  45362. switch (update.tag) {
  45363. case ReplaceState:
  45364. {
  45365. var _payload = update.payload;
  45366. if (typeof _payload === 'function') {
  45367. // Updater function
  45368. {
  45369. enterDisallowedContextReadInDEV();
  45370. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45371. _payload.call(instance, prevState, nextProps);
  45372. }
  45373. }
  45374. var nextState = _payload.call(instance, prevState, nextProps);
  45375. {
  45376. exitDisallowedContextReadInDEV();
  45377. }
  45378. return nextState;
  45379. }
  45380. // State object
  45381. return _payload;
  45382. }
  45383. case CaptureUpdate:
  45384. {
  45385. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  45386. }
  45387. // Intentional fallthrough
  45388. case UpdateState:
  45389. {
  45390. var _payload2 = update.payload;
  45391. var partialState = void 0;
  45392. if (typeof _payload2 === 'function') {
  45393. // Updater function
  45394. {
  45395. enterDisallowedContextReadInDEV();
  45396. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45397. _payload2.call(instance, prevState, nextProps);
  45398. }
  45399. }
  45400. partialState = _payload2.call(instance, prevState, nextProps);
  45401. {
  45402. exitDisallowedContextReadInDEV();
  45403. }
  45404. } else {
  45405. // Partial state object
  45406. partialState = _payload2;
  45407. }
  45408. if (partialState === null || partialState === undefined) {
  45409. // Null and undefined are treated as no-ops.
  45410. return prevState;
  45411. }
  45412. // Merge the partial state and the previous state.
  45413. return _assign({}, prevState, partialState);
  45414. }
  45415. case ForceUpdate:
  45416. {
  45417. hasForceUpdate = true;
  45418. return prevState;
  45419. }
  45420. }
  45421. return prevState;
  45422. }
  45423. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  45424. hasForceUpdate = false;
  45425. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  45426. {
  45427. currentlyProcessingQueue = queue;
  45428. }
  45429. // These values may change as we process the queue.
  45430. var newBaseState = queue.baseState;
  45431. var newFirstUpdate = null;
  45432. var newExpirationTime = NoWork;
  45433. // Iterate through the list of updates to compute the result.
  45434. var update = queue.firstUpdate;
  45435. var resultState = newBaseState;
  45436. while (update !== null) {
  45437. var updateExpirationTime = update.expirationTime;
  45438. if (updateExpirationTime < renderExpirationTime) {
  45439. // This update does not have sufficient priority. Skip it.
  45440. if (newFirstUpdate === null) {
  45441. // This is the first skipped update. It will be the first update in
  45442. // the new list.
  45443. newFirstUpdate = update;
  45444. // Since this is the first update that was skipped, the current result
  45445. // is the new base state.
  45446. newBaseState = resultState;
  45447. }
  45448. // Since this update will remain in the list, update the remaining
  45449. // expiration time.
  45450. if (newExpirationTime < updateExpirationTime) {
  45451. newExpirationTime = updateExpirationTime;
  45452. }
  45453. } else {
  45454. // This update does have sufficient priority.
  45455. // Mark the event time of this update as relevant to this render pass.
  45456. // TODO: This should ideally use the true event time of this update rather than
  45457. // its priority which is a derived and not reverseable value.
  45458. // TODO: We should skip this update if it was already committed but currently
  45459. // we have no way of detecting the difference between a committed and suspended
  45460. // update here.
  45461. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig);
  45462. // Process it and compute a new result.
  45463. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  45464. var _callback = update.callback;
  45465. if (_callback !== null) {
  45466. workInProgress.effectTag |= Callback;
  45467. // Set this to null, in case it was mutated during an aborted render.
  45468. update.nextEffect = null;
  45469. if (queue.lastEffect === null) {
  45470. queue.firstEffect = queue.lastEffect = update;
  45471. } else {
  45472. queue.lastEffect.nextEffect = update;
  45473. queue.lastEffect = update;
  45474. }
  45475. }
  45476. }
  45477. // Continue to the next update.
  45478. update = update.next;
  45479. }
  45480. // Separately, iterate though the list of captured updates.
  45481. var newFirstCapturedUpdate = null;
  45482. update = queue.firstCapturedUpdate;
  45483. while (update !== null) {
  45484. var _updateExpirationTime = update.expirationTime;
  45485. if (_updateExpirationTime < renderExpirationTime) {
  45486. // This update does not have sufficient priority. Skip it.
  45487. if (newFirstCapturedUpdate === null) {
  45488. // This is the first skipped captured update. It will be the first
  45489. // update in the new list.
  45490. newFirstCapturedUpdate = update;
  45491. // If this is the first update that was skipped, the current result is
  45492. // the new base state.
  45493. if (newFirstUpdate === null) {
  45494. newBaseState = resultState;
  45495. }
  45496. }
  45497. // Since this update will remain in the list, update the remaining
  45498. // expiration time.
  45499. if (newExpirationTime < _updateExpirationTime) {
  45500. newExpirationTime = _updateExpirationTime;
  45501. }
  45502. } else {
  45503. // This update does have sufficient priority. Process it and compute
  45504. // a new result.
  45505. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  45506. var _callback2 = update.callback;
  45507. if (_callback2 !== null) {
  45508. workInProgress.effectTag |= Callback;
  45509. // Set this to null, in case it was mutated during an aborted render.
  45510. update.nextEffect = null;
  45511. if (queue.lastCapturedEffect === null) {
  45512. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  45513. } else {
  45514. queue.lastCapturedEffect.nextEffect = update;
  45515. queue.lastCapturedEffect = update;
  45516. }
  45517. }
  45518. }
  45519. update = update.next;
  45520. }
  45521. if (newFirstUpdate === null) {
  45522. queue.lastUpdate = null;
  45523. }
  45524. if (newFirstCapturedUpdate === null) {
  45525. queue.lastCapturedUpdate = null;
  45526. } else {
  45527. workInProgress.effectTag |= Callback;
  45528. }
  45529. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  45530. // We processed every update, without skipping. That means the new base
  45531. // state is the same as the result state.
  45532. newBaseState = resultState;
  45533. }
  45534. queue.baseState = newBaseState;
  45535. queue.firstUpdate = newFirstUpdate;
  45536. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  45537. // Set the remaining expiration time to be whatever is remaining in the queue.
  45538. // This should be fine because the only two other things that contribute to
  45539. // expiration time are props and context. We're already in the middle of the
  45540. // begin phase by the time we start processing the queue, so we've already
  45541. // dealt with the props. Context in components that specify
  45542. // shouldComponentUpdate is tricky; but we'll have to account for
  45543. // that regardless.
  45544. workInProgress.expirationTime = newExpirationTime;
  45545. workInProgress.memoizedState = resultState;
  45546. {
  45547. currentlyProcessingQueue = null;
  45548. }
  45549. }
  45550. function callCallback(callback, context) {
  45551. (function () {
  45552. if (!(typeof callback === 'function')) {
  45553. {
  45554. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + callback));
  45555. }
  45556. }
  45557. })();
  45558. callback.call(context);
  45559. }
  45560. function resetHasForceUpdateBeforeProcessing() {
  45561. hasForceUpdate = false;
  45562. }
  45563. function checkHasForceUpdateAfterProcessing() {
  45564. return hasForceUpdate;
  45565. }
  45566. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  45567. // If the finished render included captured updates, and there are still
  45568. // lower priority updates left over, we need to keep the captured updates
  45569. // in the queue so that they are rebased and not dropped once we process the
  45570. // queue again at the lower priority.
  45571. if (finishedQueue.firstCapturedUpdate !== null) {
  45572. // Join the captured update list to the end of the normal list.
  45573. if (finishedQueue.lastUpdate !== null) {
  45574. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  45575. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  45576. }
  45577. // Clear the list of captured updates.
  45578. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  45579. }
  45580. // Commit the effects
  45581. commitUpdateEffects(finishedQueue.firstEffect, instance);
  45582. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  45583. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  45584. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  45585. }
  45586. function commitUpdateEffects(effect, instance) {
  45587. while (effect !== null) {
  45588. var _callback3 = effect.callback;
  45589. if (_callback3 !== null) {
  45590. effect.callback = null;
  45591. callCallback(_callback3, instance);
  45592. }
  45593. effect = effect.nextEffect;
  45594. }
  45595. }
  45596. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  45597. function requestCurrentSuspenseConfig() {
  45598. return ReactCurrentBatchConfig.suspense;
  45599. }
  45600. var fakeInternalInstance = {};
  45601. var isArray$1 = Array.isArray;
  45602. // React.Component uses a shared frozen object by default.
  45603. // We'll use it to determine whether we need to initialize legacy refs.
  45604. var emptyRefsObject = new React.Component().refs;
  45605. var didWarnAboutStateAssignmentForComponent = void 0;
  45606. var didWarnAboutUninitializedState = void 0;
  45607. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  45608. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  45609. var didWarnAboutUndefinedDerivedState = void 0;
  45610. var warnOnUndefinedDerivedState = void 0;
  45611. var warnOnInvalidCallback$1 = void 0;
  45612. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  45613. var didWarnAboutContextTypeAndContextTypes = void 0;
  45614. var didWarnAboutInvalidateContextType = void 0;
  45615. {
  45616. didWarnAboutStateAssignmentForComponent = new Set();
  45617. didWarnAboutUninitializedState = new Set();
  45618. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  45619. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  45620. didWarnAboutDirectlyAssigningPropsToState = new Set();
  45621. didWarnAboutUndefinedDerivedState = new Set();
  45622. didWarnAboutContextTypeAndContextTypes = new Set();
  45623. didWarnAboutInvalidateContextType = new Set();
  45624. var didWarnOnInvalidCallback = new Set();
  45625. warnOnInvalidCallback$1 = function (callback, callerName) {
  45626. if (callback === null || typeof callback === 'function') {
  45627. return;
  45628. }
  45629. var key = callerName + '_' + callback;
  45630. if (!didWarnOnInvalidCallback.has(key)) {
  45631. didWarnOnInvalidCallback.add(key);
  45632. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  45633. }
  45634. };
  45635. warnOnUndefinedDerivedState = function (type, partialState) {
  45636. if (partialState === undefined) {
  45637. var componentName = getComponentName(type) || 'Component';
  45638. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  45639. didWarnAboutUndefinedDerivedState.add(componentName);
  45640. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  45641. }
  45642. }
  45643. };
  45644. // This is so gross but it's at least non-critical and can be removed if
  45645. // it causes problems. This is meant to give a nicer error message for
  45646. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  45647. // ...)) which otherwise throws a "_processChildContext is not a function"
  45648. // exception.
  45649. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  45650. enumerable: false,
  45651. value: function () {
  45652. (function () {
  45653. {
  45654. {
  45655. 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).'));
  45656. }
  45657. }
  45658. })();
  45659. }
  45660. });
  45661. Object.freeze(fakeInternalInstance);
  45662. }
  45663. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  45664. var prevState = workInProgress.memoizedState;
  45665. {
  45666. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45667. // Invoke the function an extra time to help detect side-effects.
  45668. getDerivedStateFromProps(nextProps, prevState);
  45669. }
  45670. }
  45671. var partialState = getDerivedStateFromProps(nextProps, prevState);
  45672. {
  45673. warnOnUndefinedDerivedState(ctor, partialState);
  45674. }
  45675. // Merge the partial state and the previous state.
  45676. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  45677. workInProgress.memoizedState = memoizedState;
  45678. // Once the update queue is empty, persist the derived state onto the
  45679. // base state.
  45680. var updateQueue = workInProgress.updateQueue;
  45681. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  45682. updateQueue.baseState = memoizedState;
  45683. }
  45684. }
  45685. var classComponentUpdater = {
  45686. isMounted: isMounted,
  45687. enqueueSetState: function (inst, payload, callback) {
  45688. var fiber = get(inst);
  45689. var currentTime = requestCurrentTime();
  45690. var suspenseConfig = requestCurrentSuspenseConfig();
  45691. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45692. var update = createUpdate(expirationTime, suspenseConfig);
  45693. update.payload = payload;
  45694. if (callback !== undefined && callback !== null) {
  45695. {
  45696. warnOnInvalidCallback$1(callback, 'setState');
  45697. }
  45698. update.callback = callback;
  45699. }
  45700. if (revertPassiveEffectsChange) {
  45701. flushPassiveEffects();
  45702. }
  45703. enqueueUpdate(fiber, update);
  45704. scheduleWork(fiber, expirationTime);
  45705. },
  45706. enqueueReplaceState: function (inst, payload, callback) {
  45707. var fiber = get(inst);
  45708. var currentTime = requestCurrentTime();
  45709. var suspenseConfig = requestCurrentSuspenseConfig();
  45710. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45711. var update = createUpdate(expirationTime, suspenseConfig);
  45712. update.tag = ReplaceState;
  45713. update.payload = payload;
  45714. if (callback !== undefined && callback !== null) {
  45715. {
  45716. warnOnInvalidCallback$1(callback, 'replaceState');
  45717. }
  45718. update.callback = callback;
  45719. }
  45720. if (revertPassiveEffectsChange) {
  45721. flushPassiveEffects();
  45722. }
  45723. enqueueUpdate(fiber, update);
  45724. scheduleWork(fiber, expirationTime);
  45725. },
  45726. enqueueForceUpdate: function (inst, callback) {
  45727. var fiber = get(inst);
  45728. var currentTime = requestCurrentTime();
  45729. var suspenseConfig = requestCurrentSuspenseConfig();
  45730. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  45731. var update = createUpdate(expirationTime, suspenseConfig);
  45732. update.tag = ForceUpdate;
  45733. if (callback !== undefined && callback !== null) {
  45734. {
  45735. warnOnInvalidCallback$1(callback, 'forceUpdate');
  45736. }
  45737. update.callback = callback;
  45738. }
  45739. if (revertPassiveEffectsChange) {
  45740. flushPassiveEffects();
  45741. }
  45742. enqueueUpdate(fiber, update);
  45743. scheduleWork(fiber, expirationTime);
  45744. }
  45745. };
  45746. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  45747. var instance = workInProgress.stateNode;
  45748. if (typeof instance.shouldComponentUpdate === 'function') {
  45749. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  45750. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  45751. stopPhaseTimer();
  45752. {
  45753. !(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;
  45754. }
  45755. return shouldUpdate;
  45756. }
  45757. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  45758. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  45759. }
  45760. return true;
  45761. }
  45762. function checkClassInstance(workInProgress, ctor, newProps) {
  45763. var instance = workInProgress.stateNode;
  45764. {
  45765. var name = getComponentName(ctor) || 'Component';
  45766. var renderPresent = instance.render;
  45767. if (!renderPresent) {
  45768. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  45769. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  45770. } else {
  45771. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  45772. }
  45773. }
  45774. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  45775. !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;
  45776. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  45777. !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;
  45778. var noInstancePropTypes = !instance.propTypes;
  45779. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  45780. var noInstanceContextType = !instance.contextType;
  45781. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  45782. if (disableLegacyContext) {
  45783. if (ctor.childContextTypes) {
  45784. warningWithoutStack$1(false, '%s uses the legacy childContextTypes API which is no longer supported. ' + 'Use React.createContext() instead.', name);
  45785. }
  45786. if (ctor.contextTypes) {
  45787. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with static contextType instead.', name);
  45788. }
  45789. } else {
  45790. var noInstanceContextTypes = !instance.contextTypes;
  45791. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  45792. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  45793. didWarnAboutContextTypeAndContextTypes.add(ctor);
  45794. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  45795. }
  45796. }
  45797. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  45798. !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;
  45799. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  45800. 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');
  45801. }
  45802. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  45803. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  45804. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  45805. !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;
  45806. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  45807. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  45808. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  45809. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  45810. var hasMutatedProps = instance.props !== newProps;
  45811. !(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;
  45812. var noInstanceDefaultProps = !instance.defaultProps;
  45813. !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;
  45814. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  45815. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  45816. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  45817. }
  45818. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  45819. !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;
  45820. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  45821. !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;
  45822. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  45823. !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;
  45824. var _state = instance.state;
  45825. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  45826. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  45827. }
  45828. if (typeof instance.getChildContext === 'function') {
  45829. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  45830. }
  45831. }
  45832. }
  45833. function adoptClassInstance(workInProgress, instance) {
  45834. instance.updater = classComponentUpdater;
  45835. workInProgress.stateNode = instance;
  45836. // The instance needs access to the fiber so that it can schedule updates
  45837. set(instance, workInProgress);
  45838. {
  45839. instance._reactInternalInstance = fakeInternalInstance;
  45840. }
  45841. }
  45842. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  45843. var isLegacyContextConsumer = false;
  45844. var unmaskedContext = emptyContextObject;
  45845. var context = emptyContextObject;
  45846. var contextType = ctor.contextType;
  45847. {
  45848. if ('contextType' in ctor) {
  45849. var isValid =
  45850. // Allow null for conditional declaration
  45851. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  45852. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  45853. didWarnAboutInvalidateContextType.add(ctor);
  45854. var addendum = '';
  45855. if (contextType === undefined) {
  45856. 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.';
  45857. } else if (typeof contextType !== 'object') {
  45858. addendum = ' However, it is set to a ' + typeof contextType + '.';
  45859. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  45860. addendum = ' Did you accidentally pass the Context.Provider instead?';
  45861. } else if (contextType._context !== undefined) {
  45862. // <Context.Consumer>
  45863. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  45864. } else {
  45865. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  45866. }
  45867. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  45868. }
  45869. }
  45870. }
  45871. if (typeof contextType === 'object' && contextType !== null) {
  45872. context = readContext(contextType);
  45873. } else if (!disableLegacyContext) {
  45874. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45875. var contextTypes = ctor.contextTypes;
  45876. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  45877. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  45878. }
  45879. // Instantiate twice to help detect side-effects.
  45880. {
  45881. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45882. new ctor(props, context); // eslint-disable-line no-new
  45883. }
  45884. }
  45885. var instance = new ctor(props, context);
  45886. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  45887. adoptClassInstance(workInProgress, instance);
  45888. {
  45889. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  45890. var componentName = getComponentName(ctor) || 'Component';
  45891. if (!didWarnAboutUninitializedState.has(componentName)) {
  45892. didWarnAboutUninitializedState.add(componentName);
  45893. 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);
  45894. }
  45895. }
  45896. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  45897. // Warn about these lifecycles if they are present.
  45898. // Don't warn about react-lifecycles-compat polyfilled methods though.
  45899. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  45900. var foundWillMountName = null;
  45901. var foundWillReceivePropsName = null;
  45902. var foundWillUpdateName = null;
  45903. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  45904. foundWillMountName = 'componentWillMount';
  45905. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45906. foundWillMountName = 'UNSAFE_componentWillMount';
  45907. }
  45908. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  45909. foundWillReceivePropsName = 'componentWillReceiveProps';
  45910. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45911. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  45912. }
  45913. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  45914. foundWillUpdateName = 'componentWillUpdate';
  45915. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45916. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  45917. }
  45918. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  45919. var _componentName = getComponentName(ctor) || 'Component';
  45920. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  45921. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  45922. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  45923. 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 : '');
  45924. }
  45925. }
  45926. }
  45927. }
  45928. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  45929. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  45930. if (isLegacyContextConsumer) {
  45931. cacheContext(workInProgress, unmaskedContext, context);
  45932. }
  45933. return instance;
  45934. }
  45935. function callComponentWillMount(workInProgress, instance) {
  45936. startPhaseTimer(workInProgress, 'componentWillMount');
  45937. var oldState = instance.state;
  45938. if (typeof instance.componentWillMount === 'function') {
  45939. instance.componentWillMount();
  45940. }
  45941. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45942. instance.UNSAFE_componentWillMount();
  45943. }
  45944. stopPhaseTimer();
  45945. if (oldState !== instance.state) {
  45946. {
  45947. 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');
  45948. }
  45949. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45950. }
  45951. }
  45952. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  45953. var oldState = instance.state;
  45954. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  45955. if (typeof instance.componentWillReceiveProps === 'function') {
  45956. instance.componentWillReceiveProps(newProps, nextContext);
  45957. }
  45958. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45959. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  45960. }
  45961. stopPhaseTimer();
  45962. if (instance.state !== oldState) {
  45963. {
  45964. var componentName = getComponentName(workInProgress.type) || 'Component';
  45965. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  45966. didWarnAboutStateAssignmentForComponent.add(componentName);
  45967. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  45968. }
  45969. }
  45970. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45971. }
  45972. }
  45973. // Invokes the mount life-cycles on a previously never rendered instance.
  45974. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45975. {
  45976. checkClassInstance(workInProgress, ctor, newProps);
  45977. }
  45978. var instance = workInProgress.stateNode;
  45979. instance.props = newProps;
  45980. instance.state = workInProgress.memoizedState;
  45981. instance.refs = emptyRefsObject;
  45982. var contextType = ctor.contextType;
  45983. if (typeof contextType === 'object' && contextType !== null) {
  45984. instance.context = readContext(contextType);
  45985. } else if (disableLegacyContext) {
  45986. instance.context = emptyContextObject;
  45987. } else {
  45988. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45989. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  45990. }
  45991. {
  45992. if (instance.state === newProps) {
  45993. var componentName = getComponentName(ctor) || 'Component';
  45994. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  45995. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  45996. 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);
  45997. }
  45998. }
  45999. if (workInProgress.mode & StrictMode) {
  46000. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  46001. }
  46002. if (warnAboutDeprecatedLifecycles) {
  46003. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  46004. }
  46005. }
  46006. var updateQueue = workInProgress.updateQueue;
  46007. if (updateQueue !== null) {
  46008. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46009. instance.state = workInProgress.memoizedState;
  46010. }
  46011. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46012. if (typeof getDerivedStateFromProps === 'function') {
  46013. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46014. instance.state = workInProgress.memoizedState;
  46015. }
  46016. // In order to support react-lifecycles-compat polyfilled components,
  46017. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46018. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  46019. callComponentWillMount(workInProgress, instance);
  46020. // If we had additional state updates during this life-cycle, let's
  46021. // process them now.
  46022. updateQueue = workInProgress.updateQueue;
  46023. if (updateQueue !== null) {
  46024. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46025. instance.state = workInProgress.memoizedState;
  46026. }
  46027. }
  46028. if (typeof instance.componentDidMount === 'function') {
  46029. workInProgress.effectTag |= Update;
  46030. }
  46031. }
  46032. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  46033. var instance = workInProgress.stateNode;
  46034. var oldProps = workInProgress.memoizedProps;
  46035. instance.props = oldProps;
  46036. var oldContext = instance.context;
  46037. var contextType = ctor.contextType;
  46038. var nextContext = emptyContextObject;
  46039. if (typeof contextType === 'object' && contextType !== null) {
  46040. nextContext = readContext(contextType);
  46041. } else if (!disableLegacyContext) {
  46042. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  46043. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  46044. }
  46045. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46046. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  46047. // Note: During these life-cycles, instance.props/instance.state are what
  46048. // ever the previously attempted to render - not the "current". However,
  46049. // during componentDidUpdate we pass the "current" props.
  46050. // In order to support react-lifecycles-compat polyfilled components,
  46051. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46052. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  46053. if (oldProps !== newProps || oldContext !== nextContext) {
  46054. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  46055. }
  46056. }
  46057. resetHasForceUpdateBeforeProcessing();
  46058. var oldState = workInProgress.memoizedState;
  46059. var newState = instance.state = oldState;
  46060. var updateQueue = workInProgress.updateQueue;
  46061. if (updateQueue !== null) {
  46062. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46063. newState = workInProgress.memoizedState;
  46064. }
  46065. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  46066. // If an update was already in progress, we should schedule an Update
  46067. // effect even though we're bailing out, so that cWU/cDU are called.
  46068. if (typeof instance.componentDidMount === 'function') {
  46069. workInProgress.effectTag |= Update;
  46070. }
  46071. return false;
  46072. }
  46073. if (typeof getDerivedStateFromProps === 'function') {
  46074. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46075. newState = workInProgress.memoizedState;
  46076. }
  46077. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  46078. if (shouldUpdate) {
  46079. // In order to support react-lifecycles-compat polyfilled components,
  46080. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46081. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  46082. startPhaseTimer(workInProgress, 'componentWillMount');
  46083. if (typeof instance.componentWillMount === 'function') {
  46084. instance.componentWillMount();
  46085. }
  46086. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  46087. instance.UNSAFE_componentWillMount();
  46088. }
  46089. stopPhaseTimer();
  46090. }
  46091. if (typeof instance.componentDidMount === 'function') {
  46092. workInProgress.effectTag |= Update;
  46093. }
  46094. } else {
  46095. // If an update was already in progress, we should schedule an Update
  46096. // effect even though we're bailing out, so that cWU/cDU are called.
  46097. if (typeof instance.componentDidMount === 'function') {
  46098. workInProgress.effectTag |= Update;
  46099. }
  46100. // If shouldComponentUpdate returned false, we should still update the
  46101. // memoized state to indicate that this work can be reused.
  46102. workInProgress.memoizedProps = newProps;
  46103. workInProgress.memoizedState = newState;
  46104. }
  46105. // Update the existing instance's state, props, and context pointers even
  46106. // if shouldComponentUpdate returns false.
  46107. instance.props = newProps;
  46108. instance.state = newState;
  46109. instance.context = nextContext;
  46110. return shouldUpdate;
  46111. }
  46112. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  46113. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  46114. var instance = workInProgress.stateNode;
  46115. var oldProps = workInProgress.memoizedProps;
  46116. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  46117. var oldContext = instance.context;
  46118. var contextType = ctor.contextType;
  46119. var nextContext = emptyContextObject;
  46120. if (typeof contextType === 'object' && contextType !== null) {
  46121. nextContext = readContext(contextType);
  46122. } else if (!disableLegacyContext) {
  46123. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  46124. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  46125. }
  46126. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  46127. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  46128. // Note: During these life-cycles, instance.props/instance.state are what
  46129. // ever the previously attempted to render - not the "current". However,
  46130. // during componentDidUpdate we pass the "current" props.
  46131. // In order to support react-lifecycles-compat polyfilled components,
  46132. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46133. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  46134. if (oldProps !== newProps || oldContext !== nextContext) {
  46135. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  46136. }
  46137. }
  46138. resetHasForceUpdateBeforeProcessing();
  46139. var oldState = workInProgress.memoizedState;
  46140. var newState = instance.state = oldState;
  46141. var updateQueue = workInProgress.updateQueue;
  46142. if (updateQueue !== null) {
  46143. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  46144. newState = workInProgress.memoizedState;
  46145. }
  46146. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  46147. // If an update was already in progress, we should schedule an Update
  46148. // effect even though we're bailing out, so that cWU/cDU are called.
  46149. if (typeof instance.componentDidUpdate === 'function') {
  46150. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46151. workInProgress.effectTag |= Update;
  46152. }
  46153. }
  46154. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46155. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46156. workInProgress.effectTag |= Snapshot;
  46157. }
  46158. }
  46159. return false;
  46160. }
  46161. if (typeof getDerivedStateFromProps === 'function') {
  46162. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  46163. newState = workInProgress.memoizedState;
  46164. }
  46165. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  46166. if (shouldUpdate) {
  46167. // In order to support react-lifecycles-compat polyfilled components,
  46168. // Unsafe lifecycles should not be invoked for components using the new APIs.
  46169. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  46170. startPhaseTimer(workInProgress, 'componentWillUpdate');
  46171. if (typeof instance.componentWillUpdate === 'function') {
  46172. instance.componentWillUpdate(newProps, newState, nextContext);
  46173. }
  46174. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  46175. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  46176. }
  46177. stopPhaseTimer();
  46178. }
  46179. if (typeof instance.componentDidUpdate === 'function') {
  46180. workInProgress.effectTag |= Update;
  46181. }
  46182. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46183. workInProgress.effectTag |= Snapshot;
  46184. }
  46185. } else {
  46186. // If an update was already in progress, we should schedule an Update
  46187. // effect even though we're bailing out, so that cWU/cDU are called.
  46188. if (typeof instance.componentDidUpdate === 'function') {
  46189. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46190. workInProgress.effectTag |= Update;
  46191. }
  46192. }
  46193. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  46194. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  46195. workInProgress.effectTag |= Snapshot;
  46196. }
  46197. }
  46198. // If shouldComponentUpdate returned false, we should still update the
  46199. // memoized props/state to indicate that this work can be reused.
  46200. workInProgress.memoizedProps = newProps;
  46201. workInProgress.memoizedState = newState;
  46202. }
  46203. // Update the existing instance's state, props, and context pointers even
  46204. // if shouldComponentUpdate returns false.
  46205. instance.props = newProps;
  46206. instance.state = newState;
  46207. instance.context = nextContext;
  46208. return shouldUpdate;
  46209. }
  46210. var didWarnAboutMaps = void 0;
  46211. var didWarnAboutGenerators = void 0;
  46212. var didWarnAboutStringRefInStrictMode = void 0;
  46213. var ownerHasKeyUseWarning = void 0;
  46214. var ownerHasFunctionTypeWarning = void 0;
  46215. var warnForMissingKey = function (child) {};
  46216. {
  46217. didWarnAboutMaps = false;
  46218. didWarnAboutGenerators = false;
  46219. didWarnAboutStringRefInStrictMode = {};
  46220. /**
  46221. * Warn if there's no key explicitly set on dynamic arrays of children or
  46222. * object keys are not valid. This allows us to keep track of children between
  46223. * updates.
  46224. */
  46225. ownerHasKeyUseWarning = {};
  46226. ownerHasFunctionTypeWarning = {};
  46227. warnForMissingKey = function (child) {
  46228. if (child === null || typeof child !== 'object') {
  46229. return;
  46230. }
  46231. if (!child._store || child._store.validated || child.key != null) {
  46232. return;
  46233. }
  46234. (function () {
  46235. if (!(typeof child._store === 'object')) {
  46236. {
  46237. 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.'));
  46238. }
  46239. }
  46240. })();
  46241. child._store.validated = true;
  46242. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  46243. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  46244. return;
  46245. }
  46246. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  46247. warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  46248. };
  46249. }
  46250. var isArray = Array.isArray;
  46251. function coerceRef(returnFiber, current$$1, element) {
  46252. var mixedRef = element.ref;
  46253. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  46254. {
  46255. if (returnFiber.mode & StrictMode) {
  46256. var componentName = getComponentName(returnFiber.type) || 'Component';
  46257. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  46258. 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));
  46259. didWarnAboutStringRefInStrictMode[componentName] = true;
  46260. }
  46261. }
  46262. }
  46263. if (element._owner) {
  46264. var owner = element._owner;
  46265. var inst = void 0;
  46266. if (owner) {
  46267. var ownerFiber = owner;
  46268. (function () {
  46269. if (!(ownerFiber.tag === ClassComponent)) {
  46270. {
  46271. throw ReactError(Error('Function components cannot have refs. Did you mean to use React.forwardRef()?'));
  46272. }
  46273. }
  46274. })();
  46275. inst = ownerFiber.stateNode;
  46276. }
  46277. (function () {
  46278. if (!inst) {
  46279. {
  46280. throw ReactError(Error('Missing owner for string ref ' + mixedRef + '. This error is likely caused by a bug in React. Please file an issue.'));
  46281. }
  46282. }
  46283. })();
  46284. var stringRef = '' + mixedRef;
  46285. // Check if previous string ref matches new string ref
  46286. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  46287. return current$$1.ref;
  46288. }
  46289. var ref = function (value) {
  46290. var refs = inst.refs;
  46291. if (refs === emptyRefsObject) {
  46292. // This is a lazy pooled frozen object, so we need to initialize.
  46293. refs = inst.refs = {};
  46294. }
  46295. if (value === null) {
  46296. delete refs[stringRef];
  46297. } else {
  46298. refs[stringRef] = value;
  46299. }
  46300. };
  46301. ref._stringRef = stringRef;
  46302. return ref;
  46303. } else {
  46304. (function () {
  46305. if (!(typeof mixedRef === 'string')) {
  46306. {
  46307. throw ReactError(Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.'));
  46308. }
  46309. }
  46310. })();
  46311. (function () {
  46312. if (!element._owner) {
  46313. {
  46314. 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.'));
  46315. }
  46316. }
  46317. })();
  46318. }
  46319. }
  46320. return mixedRef;
  46321. }
  46322. function throwOnInvalidObjectType(returnFiber, newChild) {
  46323. if (returnFiber.type !== 'textarea') {
  46324. var addendum = '';
  46325. {
  46326. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  46327. }
  46328. (function () {
  46329. {
  46330. {
  46331. 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));
  46332. }
  46333. }
  46334. })();
  46335. }
  46336. }
  46337. function warnOnFunctionType() {
  46338. 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();
  46339. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  46340. return;
  46341. }
  46342. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  46343. 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.');
  46344. }
  46345. // This wrapper function exists because I expect to clone the code in each path
  46346. // to be able to optimize each path individually by branching early. This needs
  46347. // a compiler or we can do it manually. Helpers that don't need this branching
  46348. // live outside of this function.
  46349. function ChildReconciler(shouldTrackSideEffects) {
  46350. function deleteChild(returnFiber, childToDelete) {
  46351. if (!shouldTrackSideEffects) {
  46352. // Noop.
  46353. return;
  46354. }
  46355. // Deletions are added in reversed order so we add it to the front.
  46356. // At this point, the return fiber's effect list is empty except for
  46357. // deletions, so we can just append the deletion to the list. The remaining
  46358. // effects aren't added until the complete phase. Once we implement
  46359. // resuming, this may not be true.
  46360. var last = returnFiber.lastEffect;
  46361. if (last !== null) {
  46362. last.nextEffect = childToDelete;
  46363. returnFiber.lastEffect = childToDelete;
  46364. } else {
  46365. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  46366. }
  46367. childToDelete.nextEffect = null;
  46368. childToDelete.effectTag = Deletion;
  46369. }
  46370. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  46371. if (!shouldTrackSideEffects) {
  46372. // Noop.
  46373. return null;
  46374. }
  46375. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  46376. // assuming that after the first child we've already added everything.
  46377. var childToDelete = currentFirstChild;
  46378. while (childToDelete !== null) {
  46379. deleteChild(returnFiber, childToDelete);
  46380. childToDelete = childToDelete.sibling;
  46381. }
  46382. return null;
  46383. }
  46384. function mapRemainingChildren(returnFiber, currentFirstChild) {
  46385. // Add the remaining children to a temporary map so that we can find them by
  46386. // keys quickly. Implicit (null) keys get added to this set with their index
  46387. var existingChildren = new Map();
  46388. var existingChild = currentFirstChild;
  46389. while (existingChild !== null) {
  46390. if (existingChild.key !== null) {
  46391. existingChildren.set(existingChild.key, existingChild);
  46392. } else {
  46393. existingChildren.set(existingChild.index, existingChild);
  46394. }
  46395. existingChild = existingChild.sibling;
  46396. }
  46397. return existingChildren;
  46398. }
  46399. function useFiber(fiber, pendingProps, expirationTime) {
  46400. // We currently set sibling to null and index to 0 here because it is easy
  46401. // to forget to do before returning it. E.g. for the single child case.
  46402. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  46403. clone.index = 0;
  46404. clone.sibling = null;
  46405. return clone;
  46406. }
  46407. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  46408. newFiber.index = newIndex;
  46409. if (!shouldTrackSideEffects) {
  46410. // Noop.
  46411. return lastPlacedIndex;
  46412. }
  46413. var current$$1 = newFiber.alternate;
  46414. if (current$$1 !== null) {
  46415. var oldIndex = current$$1.index;
  46416. if (oldIndex < lastPlacedIndex) {
  46417. // This is a move.
  46418. newFiber.effectTag = Placement;
  46419. return lastPlacedIndex;
  46420. } else {
  46421. // This item can stay in place.
  46422. return oldIndex;
  46423. }
  46424. } else {
  46425. // This is an insertion.
  46426. newFiber.effectTag = Placement;
  46427. return lastPlacedIndex;
  46428. }
  46429. }
  46430. function placeSingleChild(newFiber) {
  46431. // This is simpler for the single child case. We only need to do a
  46432. // placement for inserting new children.
  46433. if (shouldTrackSideEffects && newFiber.alternate === null) {
  46434. newFiber.effectTag = Placement;
  46435. }
  46436. return newFiber;
  46437. }
  46438. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  46439. if (current$$1 === null || current$$1.tag !== HostText) {
  46440. // Insert
  46441. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46442. created.return = returnFiber;
  46443. return created;
  46444. } else {
  46445. // Update
  46446. var existing = useFiber(current$$1, textContent, expirationTime);
  46447. existing.return = returnFiber;
  46448. return existing;
  46449. }
  46450. }
  46451. function updateElement(returnFiber, current$$1, element, expirationTime) {
  46452. if (current$$1 !== null && (current$$1.elementType === element.type || (
  46453. // Keep this check inline so it only runs on the false path:
  46454. isCompatibleFamilyForHotReloading(current$$1, element)))) {
  46455. // Move based on index
  46456. var existing = useFiber(current$$1, element.props, expirationTime);
  46457. existing.ref = coerceRef(returnFiber, current$$1, element);
  46458. existing.return = returnFiber;
  46459. {
  46460. existing._debugSource = element._source;
  46461. existing._debugOwner = element._owner;
  46462. }
  46463. return existing;
  46464. } else {
  46465. // Insert
  46466. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46467. created.ref = coerceRef(returnFiber, current$$1, element);
  46468. created.return = returnFiber;
  46469. return created;
  46470. }
  46471. }
  46472. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  46473. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  46474. // Insert
  46475. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  46476. created.return = returnFiber;
  46477. return created;
  46478. } else {
  46479. // Update
  46480. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  46481. existing.return = returnFiber;
  46482. return existing;
  46483. }
  46484. }
  46485. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  46486. if (current$$1 === null || current$$1.tag !== Fragment) {
  46487. // Insert
  46488. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  46489. created.return = returnFiber;
  46490. return created;
  46491. } else {
  46492. // Update
  46493. var existing = useFiber(current$$1, fragment, expirationTime);
  46494. existing.return = returnFiber;
  46495. return existing;
  46496. }
  46497. }
  46498. function createChild(returnFiber, newChild, expirationTime) {
  46499. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46500. // Text nodes don't have keys. If the previous node is implicitly keyed
  46501. // we can continue to replace it without aborting even if it is not a text
  46502. // node.
  46503. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  46504. created.return = returnFiber;
  46505. return created;
  46506. }
  46507. if (typeof newChild === 'object' && newChild !== null) {
  46508. switch (newChild.$$typeof) {
  46509. case REACT_ELEMENT_TYPE:
  46510. {
  46511. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  46512. _created.ref = coerceRef(returnFiber, null, newChild);
  46513. _created.return = returnFiber;
  46514. return _created;
  46515. }
  46516. case REACT_PORTAL_TYPE:
  46517. {
  46518. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  46519. _created2.return = returnFiber;
  46520. return _created2;
  46521. }
  46522. }
  46523. if (isArray(newChild) || getIteratorFn(newChild)) {
  46524. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  46525. _created3.return = returnFiber;
  46526. return _created3;
  46527. }
  46528. throwOnInvalidObjectType(returnFiber, newChild);
  46529. }
  46530. {
  46531. if (typeof newChild === 'function') {
  46532. warnOnFunctionType();
  46533. }
  46534. }
  46535. return null;
  46536. }
  46537. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  46538. // Update the fiber if the keys match, otherwise return null.
  46539. var key = oldFiber !== null ? oldFiber.key : null;
  46540. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46541. // Text nodes don't have keys. If the previous node is implicitly keyed
  46542. // we can continue to replace it without aborting even if it is not a text
  46543. // node.
  46544. if (key !== null) {
  46545. return null;
  46546. }
  46547. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  46548. }
  46549. if (typeof newChild === 'object' && newChild !== null) {
  46550. switch (newChild.$$typeof) {
  46551. case REACT_ELEMENT_TYPE:
  46552. {
  46553. if (newChild.key === key) {
  46554. if (newChild.type === REACT_FRAGMENT_TYPE) {
  46555. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  46556. }
  46557. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  46558. } else {
  46559. return null;
  46560. }
  46561. }
  46562. case REACT_PORTAL_TYPE:
  46563. {
  46564. if (newChild.key === key) {
  46565. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  46566. } else {
  46567. return null;
  46568. }
  46569. }
  46570. }
  46571. if (isArray(newChild) || getIteratorFn(newChild)) {
  46572. if (key !== null) {
  46573. return null;
  46574. }
  46575. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  46576. }
  46577. throwOnInvalidObjectType(returnFiber, newChild);
  46578. }
  46579. {
  46580. if (typeof newChild === 'function') {
  46581. warnOnFunctionType();
  46582. }
  46583. }
  46584. return null;
  46585. }
  46586. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  46587. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46588. // Text nodes don't have keys, so we neither have to check the old nor
  46589. // new node for the key. If both are text nodes, they match.
  46590. var matchedFiber = existingChildren.get(newIdx) || null;
  46591. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  46592. }
  46593. if (typeof newChild === 'object' && newChild !== null) {
  46594. switch (newChild.$$typeof) {
  46595. case REACT_ELEMENT_TYPE:
  46596. {
  46597. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  46598. if (newChild.type === REACT_FRAGMENT_TYPE) {
  46599. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  46600. }
  46601. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  46602. }
  46603. case REACT_PORTAL_TYPE:
  46604. {
  46605. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  46606. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  46607. }
  46608. }
  46609. if (isArray(newChild) || getIteratorFn(newChild)) {
  46610. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  46611. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  46612. }
  46613. throwOnInvalidObjectType(returnFiber, newChild);
  46614. }
  46615. {
  46616. if (typeof newChild === 'function') {
  46617. warnOnFunctionType();
  46618. }
  46619. }
  46620. return null;
  46621. }
  46622. /**
  46623. * Warns if there is a duplicate or missing key
  46624. */
  46625. function warnOnInvalidKey(child, knownKeys) {
  46626. {
  46627. if (typeof child !== 'object' || child === null) {
  46628. return knownKeys;
  46629. }
  46630. switch (child.$$typeof) {
  46631. case REACT_ELEMENT_TYPE:
  46632. case REACT_PORTAL_TYPE:
  46633. warnForMissingKey(child);
  46634. var key = child.key;
  46635. if (typeof key !== 'string') {
  46636. break;
  46637. }
  46638. if (knownKeys === null) {
  46639. knownKeys = new Set();
  46640. knownKeys.add(key);
  46641. break;
  46642. }
  46643. if (!knownKeys.has(key)) {
  46644. knownKeys.add(key);
  46645. break;
  46646. }
  46647. 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);
  46648. break;
  46649. default:
  46650. break;
  46651. }
  46652. }
  46653. return knownKeys;
  46654. }
  46655. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  46656. // This algorithm can't optimize by searching from both ends since we
  46657. // don't have backpointers on fibers. I'm trying to see how far we can get
  46658. // with that model. If it ends up not being worth the tradeoffs, we can
  46659. // add it later.
  46660. // Even with a two ended optimization, we'd want to optimize for the case
  46661. // where there are few changes and brute force the comparison instead of
  46662. // going for the Map. It'd like to explore hitting that path first in
  46663. // forward-only mode and only go for the Map once we notice that we need
  46664. // lots of look ahead. This doesn't handle reversal as well as two ended
  46665. // search but that's unusual. Besides, for the two ended optimization to
  46666. // work on Iterables, we'd need to copy the whole set.
  46667. // In this first iteration, we'll just live with hitting the bad case
  46668. // (adding everything to a Map) in for every insert/move.
  46669. // If you change this code, also update reconcileChildrenIterator() which
  46670. // uses the same algorithm.
  46671. {
  46672. // First, validate keys.
  46673. var knownKeys = null;
  46674. for (var i = 0; i < newChildren.length; i++) {
  46675. var child = newChildren[i];
  46676. knownKeys = warnOnInvalidKey(child, knownKeys);
  46677. }
  46678. }
  46679. var resultingFirstChild = null;
  46680. var previousNewFiber = null;
  46681. var oldFiber = currentFirstChild;
  46682. var lastPlacedIndex = 0;
  46683. var newIdx = 0;
  46684. var nextOldFiber = null;
  46685. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  46686. if (oldFiber.index > newIdx) {
  46687. nextOldFiber = oldFiber;
  46688. oldFiber = null;
  46689. } else {
  46690. nextOldFiber = oldFiber.sibling;
  46691. }
  46692. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  46693. if (newFiber === null) {
  46694. // TODO: This breaks on empty slots like null children. That's
  46695. // unfortunate because it triggers the slow path all the time. We need
  46696. // a better way to communicate whether this was a miss or null,
  46697. // boolean, undefined, etc.
  46698. if (oldFiber === null) {
  46699. oldFiber = nextOldFiber;
  46700. }
  46701. break;
  46702. }
  46703. if (shouldTrackSideEffects) {
  46704. if (oldFiber && newFiber.alternate === null) {
  46705. // We matched the slot, but we didn't reuse the existing fiber, so we
  46706. // need to delete the existing child.
  46707. deleteChild(returnFiber, oldFiber);
  46708. }
  46709. }
  46710. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  46711. if (previousNewFiber === null) {
  46712. // TODO: Move out of the loop. This only happens for the first run.
  46713. resultingFirstChild = newFiber;
  46714. } else {
  46715. // TODO: Defer siblings if we're not at the right index for this slot.
  46716. // I.e. if we had null values before, then we want to defer this
  46717. // for each null value. However, we also don't want to call updateSlot
  46718. // with the previous one.
  46719. previousNewFiber.sibling = newFiber;
  46720. }
  46721. previousNewFiber = newFiber;
  46722. oldFiber = nextOldFiber;
  46723. }
  46724. if (newIdx === newChildren.length) {
  46725. // We've reached the end of the new children. We can delete the rest.
  46726. deleteRemainingChildren(returnFiber, oldFiber);
  46727. return resultingFirstChild;
  46728. }
  46729. if (oldFiber === null) {
  46730. // If we don't have any more existing children we can choose a fast path
  46731. // since the rest will all be insertions.
  46732. for (; newIdx < newChildren.length; newIdx++) {
  46733. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  46734. if (_newFiber === null) {
  46735. continue;
  46736. }
  46737. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  46738. if (previousNewFiber === null) {
  46739. // TODO: Move out of the loop. This only happens for the first run.
  46740. resultingFirstChild = _newFiber;
  46741. } else {
  46742. previousNewFiber.sibling = _newFiber;
  46743. }
  46744. previousNewFiber = _newFiber;
  46745. }
  46746. return resultingFirstChild;
  46747. }
  46748. // Add all children to a key map for quick lookups.
  46749. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  46750. // Keep scanning and use the map to restore deleted items as moves.
  46751. for (; newIdx < newChildren.length; newIdx++) {
  46752. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  46753. if (_newFiber2 !== null) {
  46754. if (shouldTrackSideEffects) {
  46755. if (_newFiber2.alternate !== null) {
  46756. // The new fiber is a work in progress, but if there exists a
  46757. // current, that means that we reused the fiber. We need to delete
  46758. // it from the child list so that we don't add it to the deletion
  46759. // list.
  46760. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  46761. }
  46762. }
  46763. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  46764. if (previousNewFiber === null) {
  46765. resultingFirstChild = _newFiber2;
  46766. } else {
  46767. previousNewFiber.sibling = _newFiber2;
  46768. }
  46769. previousNewFiber = _newFiber2;
  46770. }
  46771. }
  46772. if (shouldTrackSideEffects) {
  46773. // Any existing children that weren't consumed above were deleted. We need
  46774. // to add them to the deletion list.
  46775. existingChildren.forEach(function (child) {
  46776. return deleteChild(returnFiber, child);
  46777. });
  46778. }
  46779. return resultingFirstChild;
  46780. }
  46781. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  46782. // This is the same implementation as reconcileChildrenArray(),
  46783. // but using the iterator instead.
  46784. var iteratorFn = getIteratorFn(newChildrenIterable);
  46785. (function () {
  46786. if (!(typeof iteratorFn === 'function')) {
  46787. {
  46788. throw ReactError(Error('An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.'));
  46789. }
  46790. }
  46791. })();
  46792. {
  46793. // We don't support rendering Generators because it's a mutation.
  46794. // See https://github.com/facebook/react/issues/12995
  46795. if (typeof Symbol === 'function' &&
  46796. // $FlowFixMe Flow doesn't know about toStringTag
  46797. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  46798. !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;
  46799. didWarnAboutGenerators = true;
  46800. }
  46801. // Warn about using Maps as children
  46802. if (newChildrenIterable.entries === iteratorFn) {
  46803. !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;
  46804. didWarnAboutMaps = true;
  46805. }
  46806. // First, validate keys.
  46807. // We'll get a different iterator later for the main pass.
  46808. var _newChildren = iteratorFn.call(newChildrenIterable);
  46809. if (_newChildren) {
  46810. var knownKeys = null;
  46811. var _step = _newChildren.next();
  46812. for (; !_step.done; _step = _newChildren.next()) {
  46813. var child = _step.value;
  46814. knownKeys = warnOnInvalidKey(child, knownKeys);
  46815. }
  46816. }
  46817. }
  46818. var newChildren = iteratorFn.call(newChildrenIterable);
  46819. (function () {
  46820. if (!(newChildren != null)) {
  46821. {
  46822. throw ReactError(Error('An iterable object provided no iterator.'));
  46823. }
  46824. }
  46825. })();
  46826. var resultingFirstChild = null;
  46827. var previousNewFiber = null;
  46828. var oldFiber = currentFirstChild;
  46829. var lastPlacedIndex = 0;
  46830. var newIdx = 0;
  46831. var nextOldFiber = null;
  46832. var step = newChildren.next();
  46833. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  46834. if (oldFiber.index > newIdx) {
  46835. nextOldFiber = oldFiber;
  46836. oldFiber = null;
  46837. } else {
  46838. nextOldFiber = oldFiber.sibling;
  46839. }
  46840. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  46841. if (newFiber === null) {
  46842. // TODO: This breaks on empty slots like null children. That's
  46843. // unfortunate because it triggers the slow path all the time. We need
  46844. // a better way to communicate whether this was a miss or null,
  46845. // boolean, undefined, etc.
  46846. if (oldFiber === null) {
  46847. oldFiber = nextOldFiber;
  46848. }
  46849. break;
  46850. }
  46851. if (shouldTrackSideEffects) {
  46852. if (oldFiber && newFiber.alternate === null) {
  46853. // We matched the slot, but we didn't reuse the existing fiber, so we
  46854. // need to delete the existing child.
  46855. deleteChild(returnFiber, oldFiber);
  46856. }
  46857. }
  46858. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  46859. if (previousNewFiber === null) {
  46860. // TODO: Move out of the loop. This only happens for the first run.
  46861. resultingFirstChild = newFiber;
  46862. } else {
  46863. // TODO: Defer siblings if we're not at the right index for this slot.
  46864. // I.e. if we had null values before, then we want to defer this
  46865. // for each null value. However, we also don't want to call updateSlot
  46866. // with the previous one.
  46867. previousNewFiber.sibling = newFiber;
  46868. }
  46869. previousNewFiber = newFiber;
  46870. oldFiber = nextOldFiber;
  46871. }
  46872. if (step.done) {
  46873. // We've reached the end of the new children. We can delete the rest.
  46874. deleteRemainingChildren(returnFiber, oldFiber);
  46875. return resultingFirstChild;
  46876. }
  46877. if (oldFiber === null) {
  46878. // If we don't have any more existing children we can choose a fast path
  46879. // since the rest will all be insertions.
  46880. for (; !step.done; newIdx++, step = newChildren.next()) {
  46881. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  46882. if (_newFiber3 === null) {
  46883. continue;
  46884. }
  46885. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  46886. if (previousNewFiber === null) {
  46887. // TODO: Move out of the loop. This only happens for the first run.
  46888. resultingFirstChild = _newFiber3;
  46889. } else {
  46890. previousNewFiber.sibling = _newFiber3;
  46891. }
  46892. previousNewFiber = _newFiber3;
  46893. }
  46894. return resultingFirstChild;
  46895. }
  46896. // Add all children to a key map for quick lookups.
  46897. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  46898. // Keep scanning and use the map to restore deleted items as moves.
  46899. for (; !step.done; newIdx++, step = newChildren.next()) {
  46900. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  46901. if (_newFiber4 !== null) {
  46902. if (shouldTrackSideEffects) {
  46903. if (_newFiber4.alternate !== null) {
  46904. // The new fiber is a work in progress, but if there exists a
  46905. // current, that means that we reused the fiber. We need to delete
  46906. // it from the child list so that we don't add it to the deletion
  46907. // list.
  46908. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  46909. }
  46910. }
  46911. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  46912. if (previousNewFiber === null) {
  46913. resultingFirstChild = _newFiber4;
  46914. } else {
  46915. previousNewFiber.sibling = _newFiber4;
  46916. }
  46917. previousNewFiber = _newFiber4;
  46918. }
  46919. }
  46920. if (shouldTrackSideEffects) {
  46921. // Any existing children that weren't consumed above were deleted. We need
  46922. // to add them to the deletion list.
  46923. existingChildren.forEach(function (child) {
  46924. return deleteChild(returnFiber, child);
  46925. });
  46926. }
  46927. return resultingFirstChild;
  46928. }
  46929. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  46930. // There's no need to check for keys on text nodes since we don't have a
  46931. // way to define them.
  46932. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  46933. // We already have an existing node so let's just update it and delete
  46934. // the rest.
  46935. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  46936. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  46937. existing.return = returnFiber;
  46938. return existing;
  46939. }
  46940. // The existing first child is not a text node so we need to create one
  46941. // and delete the existing ones.
  46942. deleteRemainingChildren(returnFiber, currentFirstChild);
  46943. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46944. created.return = returnFiber;
  46945. return created;
  46946. }
  46947. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  46948. var key = element.key;
  46949. var child = currentFirstChild;
  46950. while (child !== null) {
  46951. // TODO: If key === null and child.key === null, then this only applies to
  46952. // the first item in the list.
  46953. if (child.key === key) {
  46954. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
  46955. // Keep this check inline so it only runs on the false path:
  46956. isCompatibleFamilyForHotReloading(child, element))) {
  46957. deleteRemainingChildren(returnFiber, child.sibling);
  46958. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  46959. existing.ref = coerceRef(returnFiber, child, element);
  46960. existing.return = returnFiber;
  46961. {
  46962. existing._debugSource = element._source;
  46963. existing._debugOwner = element._owner;
  46964. }
  46965. return existing;
  46966. } else {
  46967. deleteRemainingChildren(returnFiber, child);
  46968. break;
  46969. }
  46970. } else {
  46971. deleteChild(returnFiber, child);
  46972. }
  46973. child = child.sibling;
  46974. }
  46975. if (element.type === REACT_FRAGMENT_TYPE) {
  46976. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  46977. created.return = returnFiber;
  46978. return created;
  46979. } else {
  46980. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46981. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  46982. _created4.return = returnFiber;
  46983. return _created4;
  46984. }
  46985. }
  46986. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  46987. var key = portal.key;
  46988. var child = currentFirstChild;
  46989. while (child !== null) {
  46990. // TODO: If key === null and child.key === null, then this only applies to
  46991. // the first item in the list.
  46992. if (child.key === key) {
  46993. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  46994. deleteRemainingChildren(returnFiber, child.sibling);
  46995. var existing = useFiber(child, portal.children || [], expirationTime);
  46996. existing.return = returnFiber;
  46997. return existing;
  46998. } else {
  46999. deleteRemainingChildren(returnFiber, child);
  47000. break;
  47001. }
  47002. } else {
  47003. deleteChild(returnFiber, child);
  47004. }
  47005. child = child.sibling;
  47006. }
  47007. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  47008. created.return = returnFiber;
  47009. return created;
  47010. }
  47011. // This API will tag the children with the side-effect of the reconciliation
  47012. // itself. They will be added to the side-effect list as we pass through the
  47013. // children and the parent.
  47014. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  47015. // This function is not recursive.
  47016. // If the top level item is an array, we treat it as a set of children,
  47017. // not as a fragment. Nested arrays on the other hand will be treated as
  47018. // fragment nodes. Recursion happens at the normal flow.
  47019. // Handle top level unkeyed fragments as if they were arrays.
  47020. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  47021. // We treat the ambiguous cases above the same.
  47022. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  47023. if (isUnkeyedTopLevelFragment) {
  47024. newChild = newChild.props.children;
  47025. }
  47026. // Handle object types
  47027. var isObject = typeof newChild === 'object' && newChild !== null;
  47028. if (isObject) {
  47029. switch (newChild.$$typeof) {
  47030. case REACT_ELEMENT_TYPE:
  47031. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  47032. case REACT_PORTAL_TYPE:
  47033. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  47034. }
  47035. }
  47036. if (typeof newChild === 'string' || typeof newChild === 'number') {
  47037. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  47038. }
  47039. if (isArray(newChild)) {
  47040. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  47041. }
  47042. if (getIteratorFn(newChild)) {
  47043. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  47044. }
  47045. if (isObject) {
  47046. throwOnInvalidObjectType(returnFiber, newChild);
  47047. }
  47048. {
  47049. if (typeof newChild === 'function') {
  47050. warnOnFunctionType();
  47051. }
  47052. }
  47053. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  47054. // If the new child is undefined, and the return fiber is a composite
  47055. // component, throw an error. If Fiber return types are disabled,
  47056. // we already threw above.
  47057. switch (returnFiber.tag) {
  47058. case ClassComponent:
  47059. {
  47060. {
  47061. var instance = returnFiber.stateNode;
  47062. if (instance.render._isMockFunction) {
  47063. // We allow auto-mocks to proceed as if they're returning null.
  47064. break;
  47065. }
  47066. }
  47067. }
  47068. // Intentionally fall through to the next case, which handles both
  47069. // functions and classes
  47070. // eslint-disable-next-lined no-fallthrough
  47071. case FunctionComponent:
  47072. {
  47073. var Component = returnFiber.type;
  47074. (function () {
  47075. {
  47076. {
  47077. 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.'));
  47078. }
  47079. }
  47080. })();
  47081. }
  47082. }
  47083. }
  47084. // Remaining cases are all treated as empty.
  47085. return deleteRemainingChildren(returnFiber, currentFirstChild);
  47086. }
  47087. return reconcileChildFibers;
  47088. }
  47089. var reconcileChildFibers = ChildReconciler(true);
  47090. var mountChildFibers = ChildReconciler(false);
  47091. function cloneChildFibers(current$$1, workInProgress) {
  47092. (function () {
  47093. if (!(current$$1 === null || workInProgress.child === current$$1.child)) {
  47094. {
  47095. throw ReactError(Error('Resuming work not yet implemented.'));
  47096. }
  47097. }
  47098. })();
  47099. if (workInProgress.child === null) {
  47100. return;
  47101. }
  47102. var currentChild = workInProgress.child;
  47103. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  47104. workInProgress.child = newChild;
  47105. newChild.return = workInProgress;
  47106. while (currentChild.sibling !== null) {
  47107. currentChild = currentChild.sibling;
  47108. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  47109. newChild.return = workInProgress;
  47110. }
  47111. newChild.sibling = null;
  47112. }
  47113. // Reset a workInProgress child set to prepare it for a second pass.
  47114. function resetChildFibers(workInProgress, renderExpirationTime) {
  47115. var child = workInProgress.child;
  47116. while (child !== null) {
  47117. resetWorkInProgress(child, renderExpirationTime);
  47118. child = child.sibling;
  47119. }
  47120. }
  47121. var NO_CONTEXT = {};
  47122. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  47123. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  47124. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  47125. function requiredContext(c) {
  47126. (function () {
  47127. if (!(c !== NO_CONTEXT)) {
  47128. {
  47129. throw ReactError(Error('Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.'));
  47130. }
  47131. }
  47132. })();
  47133. return c;
  47134. }
  47135. function getRootHostContainer() {
  47136. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  47137. return rootInstance;
  47138. }
  47139. function pushHostContainer(fiber, nextRootInstance) {
  47140. // Push current root instance onto the stack;
  47141. // This allows us to reset root when portals are popped.
  47142. push(rootInstanceStackCursor, nextRootInstance, fiber);
  47143. // Track the context and the Fiber that provided it.
  47144. // This enables us to pop only Fibers that provide unique contexts.
  47145. push(contextFiberStackCursor, fiber, fiber);
  47146. // Finally, we need to push the host context to the stack.
  47147. // However, we can't just call getRootHostContext() and push it because
  47148. // we'd have a different number of entries on the stack depending on
  47149. // whether getRootHostContext() throws somewhere in renderer code or not.
  47150. // So we push an empty value first. This lets us safely unwind on errors.
  47151. push(contextStackCursor$1, NO_CONTEXT, fiber);
  47152. var nextRootContext = getRootHostContext(nextRootInstance);
  47153. // Now that we know this function doesn't throw, replace it.
  47154. pop(contextStackCursor$1, fiber);
  47155. push(contextStackCursor$1, nextRootContext, fiber);
  47156. }
  47157. function popHostContainer(fiber) {
  47158. pop(contextStackCursor$1, fiber);
  47159. pop(contextFiberStackCursor, fiber);
  47160. pop(rootInstanceStackCursor, fiber);
  47161. }
  47162. function getHostContext() {
  47163. var context = requiredContext(contextStackCursor$1.current);
  47164. return context;
  47165. }
  47166. function pushHostContext(fiber) {
  47167. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  47168. var context = requiredContext(contextStackCursor$1.current);
  47169. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  47170. // Don't push this Fiber's context unless it's unique.
  47171. if (context === nextContext) {
  47172. return;
  47173. }
  47174. // Track the context and the Fiber that provided it.
  47175. // This enables us to pop only Fibers that provide unique contexts.
  47176. push(contextFiberStackCursor, fiber, fiber);
  47177. push(contextStackCursor$1, nextContext, fiber);
  47178. }
  47179. function popHostContext(fiber) {
  47180. // Do not pop unless this Fiber provided the current context.
  47181. // pushHostContext() only pushes Fibers that provide unique contexts.
  47182. if (contextFiberStackCursor.current !== fiber) {
  47183. return;
  47184. }
  47185. pop(contextStackCursor$1, fiber);
  47186. pop(contextFiberStackCursor, fiber);
  47187. }
  47188. var DefaultSuspenseContext = 0;
  47189. // The Suspense Context is split into two parts. The lower bits is
  47190. // inherited deeply down the subtree. The upper bits only affect
  47191. // this immediate suspense boundary and gets reset each new
  47192. // boundary or suspense list.
  47193. var SubtreeSuspenseContextMask = 1;
  47194. // Subtree Flags:
  47195. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  47196. // boundaries is not currently showing visible main content.
  47197. // Either because it is already showing a fallback or is not mounted at all.
  47198. // We can use this to determine if it is desirable to trigger a fallback at
  47199. // the parent. If not, then we might need to trigger undesirable boundaries
  47200. // and/or suspend the commit to avoid hiding the parent content.
  47201. var InvisibleParentSuspenseContext = 1;
  47202. // Shallow Flags:
  47203. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  47204. // items into their fallback state during one of the render passes.
  47205. var ForceSuspenseFallback = 2;
  47206. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  47207. function hasSuspenseContext(parentContext, flag) {
  47208. return (parentContext & flag) !== 0;
  47209. }
  47210. function setDefaultShallowSuspenseContext(parentContext) {
  47211. return parentContext & SubtreeSuspenseContextMask;
  47212. }
  47213. function setShallowSuspenseContext(parentContext, shallowContext) {
  47214. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  47215. }
  47216. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  47217. return parentContext | subtreeContext;
  47218. }
  47219. function pushSuspenseContext(fiber, newContext) {
  47220. push(suspenseStackCursor, newContext, fiber);
  47221. }
  47222. function popSuspenseContext(fiber) {
  47223. pop(suspenseStackCursor, fiber);
  47224. }
  47225. // TODO: This is now an empty object. Should we switch this to a boolean?
  47226. // Alternatively we can make this use an effect tag similar to SuspenseList.
  47227. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  47228. // If it was the primary children that just suspended, capture and render the
  47229. var nextState = workInProgress.memoizedState;
  47230. if (nextState !== null) {
  47231. return false;
  47232. }
  47233. var props = workInProgress.memoizedProps;
  47234. // In order to capture, the Suspense component must have a fallback prop.
  47235. if (props.fallback === undefined) {
  47236. return false;
  47237. }
  47238. // Regular boundaries always capture.
  47239. if (props.unstable_avoidThisFallback !== true) {
  47240. return true;
  47241. }
  47242. // If it's a boundary we should avoid, then we prefer to bubble up to the
  47243. // parent boundary if it is currently invisible.
  47244. if (hasInvisibleParent) {
  47245. return false;
  47246. }
  47247. // If the parent is not able to handle it, we must handle it.
  47248. return true;
  47249. }
  47250. function findFirstSuspended(row) {
  47251. var node = row;
  47252. while (node !== null) {
  47253. if (node.tag === SuspenseComponent) {
  47254. var state = node.memoizedState;
  47255. if (state !== null) {
  47256. return node;
  47257. }
  47258. } else if (node.tag === SuspenseListComponent &&
  47259. // revealOrder undefined can't be trusted because it don't
  47260. // keep track of whether it suspended or not.
  47261. node.memoizedProps.revealOrder !== undefined) {
  47262. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  47263. if (didSuspend) {
  47264. return node;
  47265. }
  47266. } else if (node.child !== null) {
  47267. node.child.return = node;
  47268. node = node.child;
  47269. continue;
  47270. }
  47271. if (node === row) {
  47272. return null;
  47273. }
  47274. while (node.sibling === null) {
  47275. if (node.return === null || node.return === row) {
  47276. return null;
  47277. }
  47278. node = node.return;
  47279. }
  47280. node.sibling.return = node.return;
  47281. node = node.sibling;
  47282. }
  47283. return null;
  47284. }
  47285. var NoEffect$1 = /* */0;
  47286. var UnmountSnapshot = /* */2;
  47287. var UnmountMutation = /* */4;
  47288. var MountMutation = /* */8;
  47289. var UnmountLayout = /* */16;
  47290. var MountLayout = /* */32;
  47291. var MountPassive = /* */64;
  47292. var UnmountPassive = /* */128;
  47293. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
  47294. var didWarnAboutMismatchedHooksForComponent = void 0;
  47295. {
  47296. didWarnAboutMismatchedHooksForComponent = new Set();
  47297. }
  47298. // These are set right before calling the component.
  47299. var renderExpirationTime$1 = NoWork;
  47300. // The work-in-progress fiber. I've named it differently to distinguish it from
  47301. // the work-in-progress hook.
  47302. var currentlyRenderingFiber$1 = null;
  47303. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  47304. // current hook list is the list that belongs to the current fiber. The
  47305. // work-in-progress hook list is a new list that will be added to the
  47306. // work-in-progress fiber.
  47307. var currentHook = null;
  47308. var nextCurrentHook = null;
  47309. var firstWorkInProgressHook = null;
  47310. var workInProgressHook = null;
  47311. var nextWorkInProgressHook = null;
  47312. var remainingExpirationTime = NoWork;
  47313. var componentUpdateQueue = null;
  47314. var sideEffectTag = 0;
  47315. // Updates scheduled during render will trigger an immediate re-render at the
  47316. // end of the current pass. We can't store these updates on the normal queue,
  47317. // because if the work is aborted, they should be discarded. Because this is
  47318. // a relatively rare case, we also don't want to add an additional field to
  47319. // either the hook or queue object types. So we store them in a lazily create
  47320. // map of queue -> render-phase updates, which are discarded once the component
  47321. // completes without re-rendering.
  47322. // Whether an update was scheduled during the currently executing render pass.
  47323. var didScheduleRenderPhaseUpdate = false;
  47324. // Lazily created map of render-phase updates
  47325. var renderPhaseUpdates = null;
  47326. // Counter to prevent infinite loops.
  47327. var numberOfReRenders = 0;
  47328. var RE_RENDER_LIMIT = 25;
  47329. // In DEV, this is the name of the currently executing primitive hook
  47330. var currentHookNameInDev = null;
  47331. // In DEV, this list ensures that hooks are called in the same order between renders.
  47332. // The list stores the order of hooks used during the initial render (mount).
  47333. // Subsequent renders (updates) reference this list.
  47334. var hookTypesDev = null;
  47335. var hookTypesUpdateIndexDev = -1;
  47336. // In DEV, this tracks whether currently rendering component needs to ignore
  47337. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  47338. // When true, such Hooks will always be "remounted". Only used during hot reload.
  47339. var ignorePreviousDependencies = false;
  47340. function mountHookTypesDev() {
  47341. {
  47342. var hookName = currentHookNameInDev;
  47343. if (hookTypesDev === null) {
  47344. hookTypesDev = [hookName];
  47345. } else {
  47346. hookTypesDev.push(hookName);
  47347. }
  47348. }
  47349. }
  47350. function updateHookTypesDev() {
  47351. {
  47352. var hookName = currentHookNameInDev;
  47353. if (hookTypesDev !== null) {
  47354. hookTypesUpdateIndexDev++;
  47355. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  47356. warnOnHookMismatchInDev(hookName);
  47357. }
  47358. }
  47359. }
  47360. }
  47361. function checkDepsAreArrayDev(deps) {
  47362. {
  47363. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  47364. // Verify deps, but only on mount to avoid extra checks.
  47365. // It's unlikely their type would change as usually you define them inline.
  47366. 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);
  47367. }
  47368. }
  47369. }
  47370. function warnOnHookMismatchInDev(currentHookName) {
  47371. {
  47372. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  47373. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  47374. didWarnAboutMismatchedHooksForComponent.add(componentName);
  47375. if (hookTypesDev !== null) {
  47376. var table = '';
  47377. var secondColumnStart = 30;
  47378. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  47379. var oldHookName = hookTypesDev[i];
  47380. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  47381. var row = i + 1 + '. ' + oldHookName;
  47382. // Extra space so second column lines up
  47383. // lol @ IE not supporting String#repeat
  47384. while (row.length < secondColumnStart) {
  47385. row += ' ';
  47386. }
  47387. row += newHookName + '\n';
  47388. table += row;
  47389. }
  47390. 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);
  47391. }
  47392. }
  47393. }
  47394. }
  47395. function throwInvalidHookError() {
  47396. (function () {
  47397. {
  47398. {
  47399. 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.'));
  47400. }
  47401. }
  47402. })();
  47403. }
  47404. function areHookInputsEqual(nextDeps, prevDeps) {
  47405. {
  47406. if (ignorePreviousDependencies) {
  47407. // Only true when this component is being hot reloaded.
  47408. return false;
  47409. }
  47410. }
  47411. if (prevDeps === null) {
  47412. {
  47413. 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);
  47414. }
  47415. return false;
  47416. }
  47417. {
  47418. // Don't bother comparing lengths in prod because these arrays should be
  47419. // passed inline.
  47420. if (nextDeps.length !== prevDeps.length) {
  47421. 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(', ') + ']');
  47422. }
  47423. }
  47424. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  47425. if (is(nextDeps[i], prevDeps[i])) {
  47426. continue;
  47427. }
  47428. return false;
  47429. }
  47430. return true;
  47431. }
  47432. function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {
  47433. renderExpirationTime$1 = nextRenderExpirationTime;
  47434. currentlyRenderingFiber$1 = workInProgress;
  47435. nextCurrentHook = current !== null ? current.memoizedState : null;
  47436. {
  47437. hookTypesDev = current !== null ? current._debugHookTypes : null;
  47438. hookTypesUpdateIndexDev = -1;
  47439. // Used for hot reloading:
  47440. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  47441. }
  47442. // The following should have already been reset
  47443. // currentHook = null;
  47444. // workInProgressHook = null;
  47445. // remainingExpirationTime = NoWork;
  47446. // componentUpdateQueue = null;
  47447. // didScheduleRenderPhaseUpdate = false;
  47448. // renderPhaseUpdates = null;
  47449. // numberOfReRenders = 0;
  47450. // sideEffectTag = 0;
  47451. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  47452. // Currently we will identify the update render as a mount because nextCurrentHook === null.
  47453. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  47454. // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.
  47455. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  47456. // so nextCurrentHook would be null during updates and mounts.
  47457. {
  47458. if (nextCurrentHook !== null) {
  47459. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  47460. } else if (hookTypesDev !== null) {
  47461. // This dispatcher handles an edge case where a component is updating,
  47462. // but no stateful hooks have been used.
  47463. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  47464. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  47465. // This dispatcher does that.
  47466. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
  47467. } else {
  47468. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
  47469. }
  47470. }
  47471. var children = Component(props, refOrContext);
  47472. if (didScheduleRenderPhaseUpdate) {
  47473. do {
  47474. didScheduleRenderPhaseUpdate = false;
  47475. numberOfReRenders += 1;
  47476. // Start over from the beginning of the list
  47477. nextCurrentHook = current !== null ? current.memoizedState : null;
  47478. nextWorkInProgressHook = firstWorkInProgressHook;
  47479. currentHook = null;
  47480. workInProgressHook = null;
  47481. componentUpdateQueue = null;
  47482. {
  47483. // Also validate hook order for cascading updates.
  47484. hookTypesUpdateIndexDev = -1;
  47485. }
  47486. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  47487. children = Component(props, refOrContext);
  47488. } while (didScheduleRenderPhaseUpdate);
  47489. renderPhaseUpdates = null;
  47490. numberOfReRenders = 0;
  47491. }
  47492. // We can assume the previous dispatcher is always this one, since we set it
  47493. // at the beginning of the render phase and there's no re-entrancy.
  47494. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  47495. var renderedWork = currentlyRenderingFiber$1;
  47496. renderedWork.memoizedState = firstWorkInProgressHook;
  47497. renderedWork.expirationTime = remainingExpirationTime;
  47498. renderedWork.updateQueue = componentUpdateQueue;
  47499. renderedWork.effectTag |= sideEffectTag;
  47500. {
  47501. renderedWork._debugHookTypes = hookTypesDev;
  47502. }
  47503. // This check uses currentHook so that it works the same in DEV and prod bundles.
  47504. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  47505. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  47506. renderExpirationTime$1 = NoWork;
  47507. currentlyRenderingFiber$1 = null;
  47508. currentHook = null;
  47509. nextCurrentHook = null;
  47510. firstWorkInProgressHook = null;
  47511. workInProgressHook = null;
  47512. nextWorkInProgressHook = null;
  47513. {
  47514. currentHookNameInDev = null;
  47515. hookTypesDev = null;
  47516. hookTypesUpdateIndexDev = -1;
  47517. }
  47518. remainingExpirationTime = NoWork;
  47519. componentUpdateQueue = null;
  47520. sideEffectTag = 0;
  47521. // These were reset above
  47522. // didScheduleRenderPhaseUpdate = false;
  47523. // renderPhaseUpdates = null;
  47524. // numberOfReRenders = 0;
  47525. (function () {
  47526. if (!!didRenderTooFewHooks) {
  47527. {
  47528. throw ReactError(Error('Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'));
  47529. }
  47530. }
  47531. })();
  47532. return children;
  47533. }
  47534. function bailoutHooks(current, workInProgress, expirationTime) {
  47535. workInProgress.updateQueue = current.updateQueue;
  47536. workInProgress.effectTag &= ~(Passive | Update);
  47537. if (current.expirationTime <= expirationTime) {
  47538. current.expirationTime = NoWork;
  47539. }
  47540. }
  47541. function resetHooks() {
  47542. // We can assume the previous dispatcher is always this one, since we set it
  47543. // at the beginning of the render phase and there's no re-entrancy.
  47544. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  47545. // This is used to reset the state of this module when a component throws.
  47546. // It's also called inside mountIndeterminateComponent if we determine the
  47547. // component is a module-style component.
  47548. renderExpirationTime$1 = NoWork;
  47549. currentlyRenderingFiber$1 = null;
  47550. currentHook = null;
  47551. nextCurrentHook = null;
  47552. firstWorkInProgressHook = null;
  47553. workInProgressHook = null;
  47554. nextWorkInProgressHook = null;
  47555. {
  47556. hookTypesDev = null;
  47557. hookTypesUpdateIndexDev = -1;
  47558. currentHookNameInDev = null;
  47559. }
  47560. remainingExpirationTime = NoWork;
  47561. componentUpdateQueue = null;
  47562. sideEffectTag = 0;
  47563. didScheduleRenderPhaseUpdate = false;
  47564. renderPhaseUpdates = null;
  47565. numberOfReRenders = 0;
  47566. }
  47567. function mountWorkInProgressHook() {
  47568. var hook = {
  47569. memoizedState: null,
  47570. baseState: null,
  47571. queue: null,
  47572. baseUpdate: null,
  47573. next: null
  47574. };
  47575. if (workInProgressHook === null) {
  47576. // This is the first hook in the list
  47577. firstWorkInProgressHook = workInProgressHook = hook;
  47578. } else {
  47579. // Append to the end of the list
  47580. workInProgressHook = workInProgressHook.next = hook;
  47581. }
  47582. return workInProgressHook;
  47583. }
  47584. function updateWorkInProgressHook() {
  47585. // This function is used both for updates and for re-renders triggered by a
  47586. // render phase update. It assumes there is either a current hook we can
  47587. // clone, or a work-in-progress hook from a previous render pass that we can
  47588. // use as a base. When we reach the end of the base list, we must switch to
  47589. // the dispatcher used for mounts.
  47590. if (nextWorkInProgressHook !== null) {
  47591. // There's already a work-in-progress. Reuse it.
  47592. workInProgressHook = nextWorkInProgressHook;
  47593. nextWorkInProgressHook = workInProgressHook.next;
  47594. currentHook = nextCurrentHook;
  47595. nextCurrentHook = currentHook !== null ? currentHook.next : null;
  47596. } else {
  47597. // Clone from the current hook.
  47598. (function () {
  47599. if (!(nextCurrentHook !== null)) {
  47600. {
  47601. throw ReactError(Error('Rendered more hooks than during the previous render.'));
  47602. }
  47603. }
  47604. })();
  47605. currentHook = nextCurrentHook;
  47606. var newHook = {
  47607. memoizedState: currentHook.memoizedState,
  47608. baseState: currentHook.baseState,
  47609. queue: currentHook.queue,
  47610. baseUpdate: currentHook.baseUpdate,
  47611. next: null
  47612. };
  47613. if (workInProgressHook === null) {
  47614. // This is the first hook in the list.
  47615. workInProgressHook = firstWorkInProgressHook = newHook;
  47616. } else {
  47617. // Append to the end of the list.
  47618. workInProgressHook = workInProgressHook.next = newHook;
  47619. }
  47620. nextCurrentHook = currentHook.next;
  47621. }
  47622. return workInProgressHook;
  47623. }
  47624. function createFunctionComponentUpdateQueue() {
  47625. return {
  47626. lastEffect: null
  47627. };
  47628. }
  47629. function basicStateReducer(state, action) {
  47630. return typeof action === 'function' ? action(state) : action;
  47631. }
  47632. function mountReducer(reducer, initialArg, init) {
  47633. var hook = mountWorkInProgressHook();
  47634. var initialState = void 0;
  47635. if (init !== undefined) {
  47636. initialState = init(initialArg);
  47637. } else {
  47638. initialState = initialArg;
  47639. }
  47640. hook.memoizedState = hook.baseState = initialState;
  47641. var queue = hook.queue = {
  47642. last: null,
  47643. dispatch: null,
  47644. lastRenderedReducer: reducer,
  47645. lastRenderedState: initialState
  47646. };
  47647. var dispatch = queue.dispatch = dispatchAction.bind(null,
  47648. // Flow doesn't know this is non-null, but we do.
  47649. currentlyRenderingFiber$1, queue);
  47650. return [hook.memoizedState, dispatch];
  47651. }
  47652. function updateReducer(reducer, initialArg, init) {
  47653. var hook = updateWorkInProgressHook();
  47654. var queue = hook.queue;
  47655. (function () {
  47656. if (!(queue !== null)) {
  47657. {
  47658. throw ReactError(Error('Should have a queue. This is likely a bug in React. Please file an issue.'));
  47659. }
  47660. }
  47661. })();
  47662. queue.lastRenderedReducer = reducer;
  47663. if (numberOfReRenders > 0) {
  47664. // This is a re-render. Apply the new render phase updates to the previous
  47665. var _dispatch = queue.dispatch;
  47666. if (renderPhaseUpdates !== null) {
  47667. // Render phase updates are stored in a map of queue -> linked list
  47668. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  47669. if (firstRenderPhaseUpdate !== undefined) {
  47670. renderPhaseUpdates.delete(queue);
  47671. var newState = hook.memoizedState;
  47672. var update = firstRenderPhaseUpdate;
  47673. do {
  47674. // Process this render phase update. We don't have to check the
  47675. // priority because it will always be the same as the current
  47676. // render's.
  47677. var _action = update.action;
  47678. newState = reducer(newState, _action);
  47679. update = update.next;
  47680. } while (update !== null);
  47681. // Mark that the fiber performed work, but only if the new state is
  47682. // different from the current state.
  47683. if (!is(newState, hook.memoizedState)) {
  47684. markWorkInProgressReceivedUpdate();
  47685. }
  47686. hook.memoizedState = newState;
  47687. // Don't persist the state accumulated from the render phase updates to
  47688. // the base state unless the queue is empty.
  47689. // TODO: Not sure if this is the desired semantics, but it's what we
  47690. // do for gDSFP. I can't remember why.
  47691. if (hook.baseUpdate === queue.last) {
  47692. hook.baseState = newState;
  47693. }
  47694. queue.lastRenderedState = newState;
  47695. return [newState, _dispatch];
  47696. }
  47697. }
  47698. return [hook.memoizedState, _dispatch];
  47699. }
  47700. // The last update in the entire queue
  47701. var last = queue.last;
  47702. // The last update that is part of the base state.
  47703. var baseUpdate = hook.baseUpdate;
  47704. var baseState = hook.baseState;
  47705. // Find the first unprocessed update.
  47706. var first = void 0;
  47707. if (baseUpdate !== null) {
  47708. if (last !== null) {
  47709. // For the first update, the queue is a circular linked list where
  47710. // `queue.last.next = queue.first`. Once the first update commits, and
  47711. // the `baseUpdate` is no longer empty, we can unravel the list.
  47712. last.next = null;
  47713. }
  47714. first = baseUpdate.next;
  47715. } else {
  47716. first = last !== null ? last.next : null;
  47717. }
  47718. if (first !== null) {
  47719. var _newState = baseState;
  47720. var newBaseState = null;
  47721. var newBaseUpdate = null;
  47722. var prevUpdate = baseUpdate;
  47723. var _update = first;
  47724. var didSkip = false;
  47725. do {
  47726. var updateExpirationTime = _update.expirationTime;
  47727. if (updateExpirationTime < renderExpirationTime$1) {
  47728. // Priority is insufficient. Skip this update. If this is the first
  47729. // skipped update, the previous update/state is the new base
  47730. // update/state.
  47731. if (!didSkip) {
  47732. didSkip = true;
  47733. newBaseUpdate = prevUpdate;
  47734. newBaseState = _newState;
  47735. }
  47736. // Update the remaining priority in the queue.
  47737. if (updateExpirationTime > remainingExpirationTime) {
  47738. remainingExpirationTime = updateExpirationTime;
  47739. }
  47740. } else {
  47741. // This update does have sufficient priority.
  47742. // Mark the event time of this update as relevant to this render pass.
  47743. // TODO: This should ideally use the true event time of this update rather than
  47744. // its priority which is a derived and not reverseable value.
  47745. // TODO: We should skip this update if it was already committed but currently
  47746. // we have no way of detecting the difference between a committed and suspended
  47747. // update here.
  47748. markRenderEventTimeAndConfig(updateExpirationTime, _update.suspenseConfig);
  47749. // Process this update.
  47750. if (_update.eagerReducer === reducer) {
  47751. // If this update was processed eagerly, and its reducer matches the
  47752. // current reducer, we can use the eagerly computed state.
  47753. _newState = _update.eagerState;
  47754. } else {
  47755. var _action2 = _update.action;
  47756. _newState = reducer(_newState, _action2);
  47757. }
  47758. }
  47759. prevUpdate = _update;
  47760. _update = _update.next;
  47761. } while (_update !== null && _update !== first);
  47762. if (!didSkip) {
  47763. newBaseUpdate = prevUpdate;
  47764. newBaseState = _newState;
  47765. }
  47766. // Mark that the fiber performed work, but only if the new state is
  47767. // different from the current state.
  47768. if (!is(_newState, hook.memoizedState)) {
  47769. markWorkInProgressReceivedUpdate();
  47770. }
  47771. hook.memoizedState = _newState;
  47772. hook.baseUpdate = newBaseUpdate;
  47773. hook.baseState = newBaseState;
  47774. queue.lastRenderedState = _newState;
  47775. }
  47776. var dispatch = queue.dispatch;
  47777. return [hook.memoizedState, dispatch];
  47778. }
  47779. function mountState(initialState) {
  47780. var hook = mountWorkInProgressHook();
  47781. if (typeof initialState === 'function') {
  47782. initialState = initialState();
  47783. }
  47784. hook.memoizedState = hook.baseState = initialState;
  47785. var queue = hook.queue = {
  47786. last: null,
  47787. dispatch: null,
  47788. lastRenderedReducer: basicStateReducer,
  47789. lastRenderedState: initialState
  47790. };
  47791. var dispatch = queue.dispatch = dispatchAction.bind(null,
  47792. // Flow doesn't know this is non-null, but we do.
  47793. currentlyRenderingFiber$1, queue);
  47794. return [hook.memoizedState, dispatch];
  47795. }
  47796. function updateState(initialState) {
  47797. return updateReducer(basicStateReducer, initialState);
  47798. }
  47799. function pushEffect(tag, create, destroy, deps) {
  47800. var effect = {
  47801. tag: tag,
  47802. create: create,
  47803. destroy: destroy,
  47804. deps: deps,
  47805. // Circular
  47806. next: null
  47807. };
  47808. if (componentUpdateQueue === null) {
  47809. componentUpdateQueue = createFunctionComponentUpdateQueue();
  47810. componentUpdateQueue.lastEffect = effect.next = effect;
  47811. } else {
  47812. var _lastEffect = componentUpdateQueue.lastEffect;
  47813. if (_lastEffect === null) {
  47814. componentUpdateQueue.lastEffect = effect.next = effect;
  47815. } else {
  47816. var firstEffect = _lastEffect.next;
  47817. _lastEffect.next = effect;
  47818. effect.next = firstEffect;
  47819. componentUpdateQueue.lastEffect = effect;
  47820. }
  47821. }
  47822. return effect;
  47823. }
  47824. function mountRef(initialValue) {
  47825. var hook = mountWorkInProgressHook();
  47826. var ref = { current: initialValue };
  47827. {
  47828. Object.seal(ref);
  47829. }
  47830. hook.memoizedState = ref;
  47831. return ref;
  47832. }
  47833. function updateRef(initialValue) {
  47834. var hook = updateWorkInProgressHook();
  47835. return hook.memoizedState;
  47836. }
  47837. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  47838. var hook = mountWorkInProgressHook();
  47839. var nextDeps = deps === undefined ? null : deps;
  47840. sideEffectTag |= fiberEffectTag;
  47841. hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);
  47842. }
  47843. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  47844. var hook = updateWorkInProgressHook();
  47845. var nextDeps = deps === undefined ? null : deps;
  47846. var destroy = undefined;
  47847. if (currentHook !== null) {
  47848. var prevEffect = currentHook.memoizedState;
  47849. destroy = prevEffect.destroy;
  47850. if (nextDeps !== null) {
  47851. var prevDeps = prevEffect.deps;
  47852. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47853. pushEffect(NoEffect$1, create, destroy, nextDeps);
  47854. return;
  47855. }
  47856. }
  47857. }
  47858. sideEffectTag |= fiberEffectTag;
  47859. hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);
  47860. }
  47861. function mountEffect(create, deps) {
  47862. {
  47863. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  47864. if ('undefined' !== typeof jest) {
  47865. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  47866. }
  47867. }
  47868. return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  47869. }
  47870. function updateEffect(create, deps) {
  47871. {
  47872. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  47873. if ('undefined' !== typeof jest) {
  47874. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  47875. }
  47876. }
  47877. return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  47878. }
  47879. function mountLayoutEffect(create, deps) {
  47880. return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  47881. }
  47882. function updateLayoutEffect(create, deps) {
  47883. return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  47884. }
  47885. function imperativeHandleEffect(create, ref) {
  47886. if (typeof ref === 'function') {
  47887. var refCallback = ref;
  47888. var _inst = create();
  47889. refCallback(_inst);
  47890. return function () {
  47891. refCallback(null);
  47892. };
  47893. } else if (ref !== null && ref !== undefined) {
  47894. var refObject = ref;
  47895. {
  47896. !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;
  47897. }
  47898. var _inst2 = create();
  47899. refObject.current = _inst2;
  47900. return function () {
  47901. refObject.current = null;
  47902. };
  47903. }
  47904. }
  47905. function mountImperativeHandle(ref, create, deps) {
  47906. {
  47907. !(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;
  47908. }
  47909. // TODO: If deps are provided, should we skip comparing the ref itself?
  47910. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  47911. return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  47912. }
  47913. function updateImperativeHandle(ref, create, deps) {
  47914. {
  47915. !(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;
  47916. }
  47917. // TODO: If deps are provided, should we skip comparing the ref itself?
  47918. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  47919. return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  47920. }
  47921. function mountDebugValue(value, formatterFn) {
  47922. // This hook is normally a no-op.
  47923. // The react-debug-hooks package injects its own implementation
  47924. // so that e.g. DevTools can display custom hook values.
  47925. }
  47926. var updateDebugValue = mountDebugValue;
  47927. function mountCallback(callback, deps) {
  47928. var hook = mountWorkInProgressHook();
  47929. var nextDeps = deps === undefined ? null : deps;
  47930. hook.memoizedState = [callback, nextDeps];
  47931. return callback;
  47932. }
  47933. function updateCallback(callback, deps) {
  47934. var hook = updateWorkInProgressHook();
  47935. var nextDeps = deps === undefined ? null : deps;
  47936. var prevState = hook.memoizedState;
  47937. if (prevState !== null) {
  47938. if (nextDeps !== null) {
  47939. var prevDeps = prevState[1];
  47940. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47941. return prevState[0];
  47942. }
  47943. }
  47944. }
  47945. hook.memoizedState = [callback, nextDeps];
  47946. return callback;
  47947. }
  47948. function mountMemo(nextCreate, deps) {
  47949. var hook = mountWorkInProgressHook();
  47950. var nextDeps = deps === undefined ? null : deps;
  47951. var nextValue = nextCreate();
  47952. hook.memoizedState = [nextValue, nextDeps];
  47953. return nextValue;
  47954. }
  47955. function updateMemo(nextCreate, deps) {
  47956. var hook = updateWorkInProgressHook();
  47957. var nextDeps = deps === undefined ? null : deps;
  47958. var prevState = hook.memoizedState;
  47959. if (prevState !== null) {
  47960. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  47961. if (nextDeps !== null) {
  47962. var prevDeps = prevState[1];
  47963. if (areHookInputsEqual(nextDeps, prevDeps)) {
  47964. return prevState[0];
  47965. }
  47966. }
  47967. }
  47968. var nextValue = nextCreate();
  47969. hook.memoizedState = [nextValue, nextDeps];
  47970. return nextValue;
  47971. }
  47972. function dispatchAction(fiber, queue, action) {
  47973. (function () {
  47974. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  47975. {
  47976. throw ReactError(Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'));
  47977. }
  47978. }
  47979. })();
  47980. {
  47981. !(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;
  47982. }
  47983. var alternate = fiber.alternate;
  47984. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  47985. // This is a render phase update. Stash it in a lazily-created map of
  47986. // queue -> linked list of updates. After this render pass, we'll restart
  47987. // and apply the stashed updates on top of the work-in-progress hook.
  47988. didScheduleRenderPhaseUpdate = true;
  47989. var update = {
  47990. expirationTime: renderExpirationTime$1,
  47991. suspenseConfig: null,
  47992. action: action,
  47993. eagerReducer: null,
  47994. eagerState: null,
  47995. next: null
  47996. };
  47997. {
  47998. update.priority = getCurrentPriorityLevel();
  47999. }
  48000. if (renderPhaseUpdates === null) {
  48001. renderPhaseUpdates = new Map();
  48002. }
  48003. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  48004. if (firstRenderPhaseUpdate === undefined) {
  48005. renderPhaseUpdates.set(queue, update);
  48006. } else {
  48007. // Append the update to the end of the list.
  48008. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  48009. while (lastRenderPhaseUpdate.next !== null) {
  48010. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  48011. }
  48012. lastRenderPhaseUpdate.next = update;
  48013. }
  48014. } else {
  48015. if (revertPassiveEffectsChange) {
  48016. flushPassiveEffects();
  48017. }
  48018. var currentTime = requestCurrentTime();
  48019. var _suspenseConfig = requestCurrentSuspenseConfig();
  48020. var _expirationTime = computeExpirationForFiber(currentTime, fiber, _suspenseConfig);
  48021. var _update2 = {
  48022. expirationTime: _expirationTime,
  48023. suspenseConfig: _suspenseConfig,
  48024. action: action,
  48025. eagerReducer: null,
  48026. eagerState: null,
  48027. next: null
  48028. };
  48029. {
  48030. _update2.priority = getCurrentPriorityLevel();
  48031. }
  48032. // Append the update to the end of the list.
  48033. var _last = queue.last;
  48034. if (_last === null) {
  48035. // This is the first update. Create a circular list.
  48036. _update2.next = _update2;
  48037. } else {
  48038. var first = _last.next;
  48039. if (first !== null) {
  48040. // Still circular.
  48041. _update2.next = first;
  48042. }
  48043. _last.next = _update2;
  48044. }
  48045. queue.last = _update2;
  48046. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  48047. // The queue is currently empty, which means we can eagerly compute the
  48048. // next state before entering the render phase. If the new state is the
  48049. // same as the current state, we may be able to bail out entirely.
  48050. var _lastRenderedReducer = queue.lastRenderedReducer;
  48051. if (_lastRenderedReducer !== null) {
  48052. var prevDispatcher = void 0;
  48053. {
  48054. prevDispatcher = ReactCurrentDispatcher$1.current;
  48055. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48056. }
  48057. try {
  48058. var currentState = queue.lastRenderedState;
  48059. var _eagerState = _lastRenderedReducer(currentState, action);
  48060. // Stash the eagerly computed state, and the reducer used to compute
  48061. // it, on the update object. If the reducer hasn't changed by the
  48062. // time we enter the render phase, then the eager state can be used
  48063. // without calling the reducer again.
  48064. _update2.eagerReducer = _lastRenderedReducer;
  48065. _update2.eagerState = _eagerState;
  48066. if (is(_eagerState, currentState)) {
  48067. // Fast path. We can bail out without scheduling React to re-render.
  48068. // It's still possible that we'll need to rebase this update later,
  48069. // if the component re-renders for a different reason and by that
  48070. // time the reducer has changed.
  48071. return;
  48072. }
  48073. } catch (error) {
  48074. // Suppress the error. It will throw again in the render phase.
  48075. } finally {
  48076. {
  48077. ReactCurrentDispatcher$1.current = prevDispatcher;
  48078. }
  48079. }
  48080. }
  48081. }
  48082. {
  48083. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  48084. if ('undefined' !== typeof jest) {
  48085. warnIfNotScopedWithMatchingAct(fiber);
  48086. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  48087. }
  48088. }
  48089. scheduleWork(fiber, _expirationTime);
  48090. }
  48091. }
  48092. var ContextOnlyDispatcher = {
  48093. readContext: readContext,
  48094. useCallback: throwInvalidHookError,
  48095. useContext: throwInvalidHookError,
  48096. useEffect: throwInvalidHookError,
  48097. useImperativeHandle: throwInvalidHookError,
  48098. useLayoutEffect: throwInvalidHookError,
  48099. useMemo: throwInvalidHookError,
  48100. useReducer: throwInvalidHookError,
  48101. useRef: throwInvalidHookError,
  48102. useState: throwInvalidHookError,
  48103. useDebugValue: throwInvalidHookError,
  48104. useResponder: throwInvalidHookError
  48105. };
  48106. var HooksDispatcherOnMountInDEV = null;
  48107. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  48108. var HooksDispatcherOnUpdateInDEV = null;
  48109. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  48110. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  48111. {
  48112. var warnInvalidContextAccess = function () {
  48113. 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().');
  48114. };
  48115. var warnInvalidHookAccess = function () {
  48116. 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');
  48117. };
  48118. HooksDispatcherOnMountInDEV = {
  48119. readContext: function (context, observedBits) {
  48120. return readContext(context, observedBits);
  48121. },
  48122. useCallback: function (callback, deps) {
  48123. currentHookNameInDev = 'useCallback';
  48124. mountHookTypesDev();
  48125. checkDepsAreArrayDev(deps);
  48126. return mountCallback(callback, deps);
  48127. },
  48128. useContext: function (context, observedBits) {
  48129. currentHookNameInDev = 'useContext';
  48130. mountHookTypesDev();
  48131. return readContext(context, observedBits);
  48132. },
  48133. useEffect: function (create, deps) {
  48134. currentHookNameInDev = 'useEffect';
  48135. mountHookTypesDev();
  48136. checkDepsAreArrayDev(deps);
  48137. return mountEffect(create, deps);
  48138. },
  48139. useImperativeHandle: function (ref, create, deps) {
  48140. currentHookNameInDev = 'useImperativeHandle';
  48141. mountHookTypesDev();
  48142. checkDepsAreArrayDev(deps);
  48143. return mountImperativeHandle(ref, create, deps);
  48144. },
  48145. useLayoutEffect: function (create, deps) {
  48146. currentHookNameInDev = 'useLayoutEffect';
  48147. mountHookTypesDev();
  48148. checkDepsAreArrayDev(deps);
  48149. return mountLayoutEffect(create, deps);
  48150. },
  48151. useMemo: function (create, deps) {
  48152. currentHookNameInDev = 'useMemo';
  48153. mountHookTypesDev();
  48154. checkDepsAreArrayDev(deps);
  48155. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48156. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48157. try {
  48158. return mountMemo(create, deps);
  48159. } finally {
  48160. ReactCurrentDispatcher$1.current = prevDispatcher;
  48161. }
  48162. },
  48163. useReducer: function (reducer, initialArg, init) {
  48164. currentHookNameInDev = 'useReducer';
  48165. mountHookTypesDev();
  48166. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48167. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48168. try {
  48169. return mountReducer(reducer, initialArg, init);
  48170. } finally {
  48171. ReactCurrentDispatcher$1.current = prevDispatcher;
  48172. }
  48173. },
  48174. useRef: function (initialValue) {
  48175. currentHookNameInDev = 'useRef';
  48176. mountHookTypesDev();
  48177. return mountRef(initialValue);
  48178. },
  48179. useState: function (initialState) {
  48180. currentHookNameInDev = 'useState';
  48181. mountHookTypesDev();
  48182. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48183. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48184. try {
  48185. return mountState(initialState);
  48186. } finally {
  48187. ReactCurrentDispatcher$1.current = prevDispatcher;
  48188. }
  48189. },
  48190. useDebugValue: function (value, formatterFn) {
  48191. currentHookNameInDev = 'useDebugValue';
  48192. mountHookTypesDev();
  48193. return mountDebugValue(value, formatterFn);
  48194. },
  48195. useResponder: function (responder, props) {
  48196. currentHookNameInDev = 'useResponder';
  48197. mountHookTypesDev();
  48198. return createResponderListener(responder, props);
  48199. }
  48200. };
  48201. HooksDispatcherOnMountWithHookTypesInDEV = {
  48202. readContext: function (context, observedBits) {
  48203. return readContext(context, observedBits);
  48204. },
  48205. useCallback: function (callback, deps) {
  48206. currentHookNameInDev = 'useCallback';
  48207. updateHookTypesDev();
  48208. return mountCallback(callback, deps);
  48209. },
  48210. useContext: function (context, observedBits) {
  48211. currentHookNameInDev = 'useContext';
  48212. updateHookTypesDev();
  48213. return readContext(context, observedBits);
  48214. },
  48215. useEffect: function (create, deps) {
  48216. currentHookNameInDev = 'useEffect';
  48217. updateHookTypesDev();
  48218. return mountEffect(create, deps);
  48219. },
  48220. useImperativeHandle: function (ref, create, deps) {
  48221. currentHookNameInDev = 'useImperativeHandle';
  48222. updateHookTypesDev();
  48223. return mountImperativeHandle(ref, create, deps);
  48224. },
  48225. useLayoutEffect: function (create, deps) {
  48226. currentHookNameInDev = 'useLayoutEffect';
  48227. updateHookTypesDev();
  48228. return mountLayoutEffect(create, deps);
  48229. },
  48230. useMemo: function (create, deps) {
  48231. currentHookNameInDev = 'useMemo';
  48232. updateHookTypesDev();
  48233. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48234. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48235. try {
  48236. return mountMemo(create, deps);
  48237. } finally {
  48238. ReactCurrentDispatcher$1.current = prevDispatcher;
  48239. }
  48240. },
  48241. useReducer: function (reducer, initialArg, init) {
  48242. currentHookNameInDev = 'useReducer';
  48243. updateHookTypesDev();
  48244. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48245. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48246. try {
  48247. return mountReducer(reducer, initialArg, init);
  48248. } finally {
  48249. ReactCurrentDispatcher$1.current = prevDispatcher;
  48250. }
  48251. },
  48252. useRef: function (initialValue) {
  48253. currentHookNameInDev = 'useRef';
  48254. updateHookTypesDev();
  48255. return mountRef(initialValue);
  48256. },
  48257. useState: function (initialState) {
  48258. currentHookNameInDev = 'useState';
  48259. updateHookTypesDev();
  48260. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48261. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48262. try {
  48263. return mountState(initialState);
  48264. } finally {
  48265. ReactCurrentDispatcher$1.current = prevDispatcher;
  48266. }
  48267. },
  48268. useDebugValue: function (value, formatterFn) {
  48269. currentHookNameInDev = 'useDebugValue';
  48270. updateHookTypesDev();
  48271. return mountDebugValue(value, formatterFn);
  48272. },
  48273. useResponder: function (responder, props) {
  48274. currentHookNameInDev = 'useResponder';
  48275. updateHookTypesDev();
  48276. return createResponderListener(responder, props);
  48277. }
  48278. };
  48279. HooksDispatcherOnUpdateInDEV = {
  48280. readContext: function (context, observedBits) {
  48281. return readContext(context, observedBits);
  48282. },
  48283. useCallback: function (callback, deps) {
  48284. currentHookNameInDev = 'useCallback';
  48285. updateHookTypesDev();
  48286. return updateCallback(callback, deps);
  48287. },
  48288. useContext: function (context, observedBits) {
  48289. currentHookNameInDev = 'useContext';
  48290. updateHookTypesDev();
  48291. return readContext(context, observedBits);
  48292. },
  48293. useEffect: function (create, deps) {
  48294. currentHookNameInDev = 'useEffect';
  48295. updateHookTypesDev();
  48296. return updateEffect(create, deps);
  48297. },
  48298. useImperativeHandle: function (ref, create, deps) {
  48299. currentHookNameInDev = 'useImperativeHandle';
  48300. updateHookTypesDev();
  48301. return updateImperativeHandle(ref, create, deps);
  48302. },
  48303. useLayoutEffect: function (create, deps) {
  48304. currentHookNameInDev = 'useLayoutEffect';
  48305. updateHookTypesDev();
  48306. return updateLayoutEffect(create, deps);
  48307. },
  48308. useMemo: function (create, deps) {
  48309. currentHookNameInDev = 'useMemo';
  48310. updateHookTypesDev();
  48311. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48312. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48313. try {
  48314. return updateMemo(create, deps);
  48315. } finally {
  48316. ReactCurrentDispatcher$1.current = prevDispatcher;
  48317. }
  48318. },
  48319. useReducer: function (reducer, initialArg, init) {
  48320. currentHookNameInDev = 'useReducer';
  48321. updateHookTypesDev();
  48322. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48323. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48324. try {
  48325. return updateReducer(reducer, initialArg, init);
  48326. } finally {
  48327. ReactCurrentDispatcher$1.current = prevDispatcher;
  48328. }
  48329. },
  48330. useRef: function (initialValue) {
  48331. currentHookNameInDev = 'useRef';
  48332. updateHookTypesDev();
  48333. return updateRef(initialValue);
  48334. },
  48335. useState: function (initialState) {
  48336. currentHookNameInDev = 'useState';
  48337. updateHookTypesDev();
  48338. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48339. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48340. try {
  48341. return updateState(initialState);
  48342. } finally {
  48343. ReactCurrentDispatcher$1.current = prevDispatcher;
  48344. }
  48345. },
  48346. useDebugValue: function (value, formatterFn) {
  48347. currentHookNameInDev = 'useDebugValue';
  48348. updateHookTypesDev();
  48349. return updateDebugValue(value, formatterFn);
  48350. },
  48351. useResponder: function (responder, props) {
  48352. currentHookNameInDev = 'useResponder';
  48353. updateHookTypesDev();
  48354. return createResponderListener(responder, props);
  48355. }
  48356. };
  48357. InvalidNestedHooksDispatcherOnMountInDEV = {
  48358. readContext: function (context, observedBits) {
  48359. warnInvalidContextAccess();
  48360. return readContext(context, observedBits);
  48361. },
  48362. useCallback: function (callback, deps) {
  48363. currentHookNameInDev = 'useCallback';
  48364. warnInvalidHookAccess();
  48365. mountHookTypesDev();
  48366. return mountCallback(callback, deps);
  48367. },
  48368. useContext: function (context, observedBits) {
  48369. currentHookNameInDev = 'useContext';
  48370. warnInvalidHookAccess();
  48371. mountHookTypesDev();
  48372. return readContext(context, observedBits);
  48373. },
  48374. useEffect: function (create, deps) {
  48375. currentHookNameInDev = 'useEffect';
  48376. warnInvalidHookAccess();
  48377. mountHookTypesDev();
  48378. return mountEffect(create, deps);
  48379. },
  48380. useImperativeHandle: function (ref, create, deps) {
  48381. currentHookNameInDev = 'useImperativeHandle';
  48382. warnInvalidHookAccess();
  48383. mountHookTypesDev();
  48384. return mountImperativeHandle(ref, create, deps);
  48385. },
  48386. useLayoutEffect: function (create, deps) {
  48387. currentHookNameInDev = 'useLayoutEffect';
  48388. warnInvalidHookAccess();
  48389. mountHookTypesDev();
  48390. return mountLayoutEffect(create, deps);
  48391. },
  48392. useMemo: function (create, deps) {
  48393. currentHookNameInDev = 'useMemo';
  48394. warnInvalidHookAccess();
  48395. mountHookTypesDev();
  48396. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48397. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48398. try {
  48399. return mountMemo(create, deps);
  48400. } finally {
  48401. ReactCurrentDispatcher$1.current = prevDispatcher;
  48402. }
  48403. },
  48404. useReducer: function (reducer, initialArg, init) {
  48405. currentHookNameInDev = 'useReducer';
  48406. warnInvalidHookAccess();
  48407. mountHookTypesDev();
  48408. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48409. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48410. try {
  48411. return mountReducer(reducer, initialArg, init);
  48412. } finally {
  48413. ReactCurrentDispatcher$1.current = prevDispatcher;
  48414. }
  48415. },
  48416. useRef: function (initialValue) {
  48417. currentHookNameInDev = 'useRef';
  48418. warnInvalidHookAccess();
  48419. mountHookTypesDev();
  48420. return mountRef(initialValue);
  48421. },
  48422. useState: function (initialState) {
  48423. currentHookNameInDev = 'useState';
  48424. warnInvalidHookAccess();
  48425. mountHookTypesDev();
  48426. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48427. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  48428. try {
  48429. return mountState(initialState);
  48430. } finally {
  48431. ReactCurrentDispatcher$1.current = prevDispatcher;
  48432. }
  48433. },
  48434. useDebugValue: function (value, formatterFn) {
  48435. currentHookNameInDev = 'useDebugValue';
  48436. warnInvalidHookAccess();
  48437. mountHookTypesDev();
  48438. return mountDebugValue(value, formatterFn);
  48439. },
  48440. useResponder: function (responder, props) {
  48441. currentHookNameInDev = 'useResponder';
  48442. warnInvalidHookAccess();
  48443. mountHookTypesDev();
  48444. return createResponderListener(responder, props);
  48445. }
  48446. };
  48447. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  48448. readContext: function (context, observedBits) {
  48449. warnInvalidContextAccess();
  48450. return readContext(context, observedBits);
  48451. },
  48452. useCallback: function (callback, deps) {
  48453. currentHookNameInDev = 'useCallback';
  48454. warnInvalidHookAccess();
  48455. updateHookTypesDev();
  48456. return updateCallback(callback, deps);
  48457. },
  48458. useContext: function (context, observedBits) {
  48459. currentHookNameInDev = 'useContext';
  48460. warnInvalidHookAccess();
  48461. updateHookTypesDev();
  48462. return readContext(context, observedBits);
  48463. },
  48464. useEffect: function (create, deps) {
  48465. currentHookNameInDev = 'useEffect';
  48466. warnInvalidHookAccess();
  48467. updateHookTypesDev();
  48468. return updateEffect(create, deps);
  48469. },
  48470. useImperativeHandle: function (ref, create, deps) {
  48471. currentHookNameInDev = 'useImperativeHandle';
  48472. warnInvalidHookAccess();
  48473. updateHookTypesDev();
  48474. return updateImperativeHandle(ref, create, deps);
  48475. },
  48476. useLayoutEffect: function (create, deps) {
  48477. currentHookNameInDev = 'useLayoutEffect';
  48478. warnInvalidHookAccess();
  48479. updateHookTypesDev();
  48480. return updateLayoutEffect(create, deps);
  48481. },
  48482. useMemo: function (create, deps) {
  48483. currentHookNameInDev = 'useMemo';
  48484. warnInvalidHookAccess();
  48485. updateHookTypesDev();
  48486. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48487. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48488. try {
  48489. return updateMemo(create, deps);
  48490. } finally {
  48491. ReactCurrentDispatcher$1.current = prevDispatcher;
  48492. }
  48493. },
  48494. useReducer: function (reducer, initialArg, init) {
  48495. currentHookNameInDev = 'useReducer';
  48496. warnInvalidHookAccess();
  48497. updateHookTypesDev();
  48498. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48499. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48500. try {
  48501. return updateReducer(reducer, initialArg, init);
  48502. } finally {
  48503. ReactCurrentDispatcher$1.current = prevDispatcher;
  48504. }
  48505. },
  48506. useRef: function (initialValue) {
  48507. currentHookNameInDev = 'useRef';
  48508. warnInvalidHookAccess();
  48509. updateHookTypesDev();
  48510. return updateRef(initialValue);
  48511. },
  48512. useState: function (initialState) {
  48513. currentHookNameInDev = 'useState';
  48514. warnInvalidHookAccess();
  48515. updateHookTypesDev();
  48516. var prevDispatcher = ReactCurrentDispatcher$1.current;
  48517. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  48518. try {
  48519. return updateState(initialState);
  48520. } finally {
  48521. ReactCurrentDispatcher$1.current = prevDispatcher;
  48522. }
  48523. },
  48524. useDebugValue: function (value, formatterFn) {
  48525. currentHookNameInDev = 'useDebugValue';
  48526. warnInvalidHookAccess();
  48527. updateHookTypesDev();
  48528. return updateDebugValue(value, formatterFn);
  48529. },
  48530. useResponder: function (responder, props) {
  48531. currentHookNameInDev = 'useResponder';
  48532. warnInvalidHookAccess();
  48533. updateHookTypesDev();
  48534. return createResponderListener(responder, props);
  48535. }
  48536. };
  48537. }
  48538. // Intentionally not named imports because Rollup would use dynamic dispatch for
  48539. // CommonJS interop named imports.
  48540. var now$1 = Scheduler.unstable_now;
  48541. var commitTime = 0;
  48542. var profilerStartTime = -1;
  48543. function getCommitTime() {
  48544. return commitTime;
  48545. }
  48546. function recordCommitTime() {
  48547. if (!enableProfilerTimer) {
  48548. return;
  48549. }
  48550. commitTime = now$1();
  48551. }
  48552. function startProfilerTimer(fiber) {
  48553. if (!enableProfilerTimer) {
  48554. return;
  48555. }
  48556. profilerStartTime = now$1();
  48557. if (fiber.actualStartTime < 0) {
  48558. fiber.actualStartTime = now$1();
  48559. }
  48560. }
  48561. function stopProfilerTimerIfRunning(fiber) {
  48562. if (!enableProfilerTimer) {
  48563. return;
  48564. }
  48565. profilerStartTime = -1;
  48566. }
  48567. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  48568. if (!enableProfilerTimer) {
  48569. return;
  48570. }
  48571. if (profilerStartTime >= 0) {
  48572. var elapsedTime = now$1() - profilerStartTime;
  48573. fiber.actualDuration += elapsedTime;
  48574. if (overrideBaseTime) {
  48575. fiber.selfBaseDuration = elapsedTime;
  48576. }
  48577. profilerStartTime = -1;
  48578. }
  48579. }
  48580. // The deepest Fiber on the stack involved in a hydration context.
  48581. // This may have been an insertion or a hydration.
  48582. var hydrationParentFiber = null;
  48583. var nextHydratableInstance = null;
  48584. var isHydrating = false;
  48585. function enterHydrationState(fiber) {
  48586. if (!supportsHydration) {
  48587. return false;
  48588. }
  48589. var parentInstance = fiber.stateNode.containerInfo;
  48590. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  48591. hydrationParentFiber = fiber;
  48592. isHydrating = true;
  48593. return true;
  48594. }
  48595. function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {
  48596. if (!supportsHydration) {
  48597. return false;
  48598. }
  48599. var suspenseInstance = fiber.stateNode;
  48600. nextHydratableInstance = getNextHydratableSibling(suspenseInstance);
  48601. popToNextHostParent(fiber);
  48602. isHydrating = true;
  48603. return true;
  48604. }
  48605. function deleteHydratableInstance(returnFiber, instance) {
  48606. {
  48607. switch (returnFiber.tag) {
  48608. case HostRoot:
  48609. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  48610. break;
  48611. case HostComponent:
  48612. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  48613. break;
  48614. }
  48615. }
  48616. var childToDelete = createFiberFromHostInstanceForDeletion();
  48617. childToDelete.stateNode = instance;
  48618. childToDelete.return = returnFiber;
  48619. childToDelete.effectTag = Deletion;
  48620. // This might seem like it belongs on progressedFirstDeletion. However,
  48621. // these children are not part of the reconciliation list of children.
  48622. // Even if we abort and rereconcile the children, that will try to hydrate
  48623. // again and the nodes are still in the host tree so these will be
  48624. // recreated.
  48625. if (returnFiber.lastEffect !== null) {
  48626. returnFiber.lastEffect.nextEffect = childToDelete;
  48627. returnFiber.lastEffect = childToDelete;
  48628. } else {
  48629. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  48630. }
  48631. }
  48632. function insertNonHydratedInstance(returnFiber, fiber) {
  48633. fiber.effectTag |= Placement;
  48634. {
  48635. switch (returnFiber.tag) {
  48636. case HostRoot:
  48637. {
  48638. var parentContainer = returnFiber.stateNode.containerInfo;
  48639. switch (fiber.tag) {
  48640. case HostComponent:
  48641. var type = fiber.type;
  48642. var props = fiber.pendingProps;
  48643. didNotFindHydratableContainerInstance(parentContainer, type, props);
  48644. break;
  48645. case HostText:
  48646. var text = fiber.pendingProps;
  48647. didNotFindHydratableContainerTextInstance(parentContainer, text);
  48648. break;
  48649. case SuspenseComponent:
  48650. break;
  48651. }
  48652. break;
  48653. }
  48654. case HostComponent:
  48655. {
  48656. var parentType = returnFiber.type;
  48657. var parentProps = returnFiber.memoizedProps;
  48658. var parentInstance = returnFiber.stateNode;
  48659. switch (fiber.tag) {
  48660. case HostComponent:
  48661. var _type = fiber.type;
  48662. var _props = fiber.pendingProps;
  48663. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  48664. break;
  48665. case HostText:
  48666. var _text = fiber.pendingProps;
  48667. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  48668. break;
  48669. case SuspenseComponent:
  48670. didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);
  48671. break;
  48672. }
  48673. break;
  48674. }
  48675. default:
  48676. return;
  48677. }
  48678. }
  48679. }
  48680. function tryHydrate(fiber, nextInstance) {
  48681. switch (fiber.tag) {
  48682. case HostComponent:
  48683. {
  48684. var type = fiber.type;
  48685. var props = fiber.pendingProps;
  48686. var instance = canHydrateInstance(nextInstance, type, props);
  48687. if (instance !== null) {
  48688. fiber.stateNode = instance;
  48689. return true;
  48690. }
  48691. return false;
  48692. }
  48693. case HostText:
  48694. {
  48695. var text = fiber.pendingProps;
  48696. var textInstance = canHydrateTextInstance(nextInstance, text);
  48697. if (textInstance !== null) {
  48698. fiber.stateNode = textInstance;
  48699. return true;
  48700. }
  48701. return false;
  48702. }
  48703. case SuspenseComponent:
  48704. {
  48705. if (enableSuspenseServerRenderer) {
  48706. var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
  48707. if (suspenseInstance !== null) {
  48708. // Downgrade the tag to a dehydrated component until we've hydrated it.
  48709. fiber.tag = DehydratedSuspenseComponent;
  48710. fiber.stateNode = suspenseInstance;
  48711. return true;
  48712. }
  48713. }
  48714. return false;
  48715. }
  48716. default:
  48717. return false;
  48718. }
  48719. }
  48720. function tryToClaimNextHydratableInstance(fiber) {
  48721. if (!isHydrating) {
  48722. return;
  48723. }
  48724. var nextInstance = nextHydratableInstance;
  48725. if (!nextInstance) {
  48726. // Nothing to hydrate. Make it an insertion.
  48727. insertNonHydratedInstance(hydrationParentFiber, fiber);
  48728. isHydrating = false;
  48729. hydrationParentFiber = fiber;
  48730. return;
  48731. }
  48732. var firstAttemptedInstance = nextInstance;
  48733. if (!tryHydrate(fiber, nextInstance)) {
  48734. // If we can't hydrate this instance let's try the next one.
  48735. // We use this as a heuristic. It's based on intuition and not data so it
  48736. // might be flawed or unnecessary.
  48737. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  48738. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  48739. // Nothing to hydrate. Make it an insertion.
  48740. insertNonHydratedInstance(hydrationParentFiber, fiber);
  48741. isHydrating = false;
  48742. hydrationParentFiber = fiber;
  48743. return;
  48744. }
  48745. // We matched the next one, we'll now assume that the first one was
  48746. // superfluous and we'll delete it. Since we can't eagerly delete it
  48747. // we'll have to schedule a deletion. To do that, this node needs a dummy
  48748. // fiber associated with it.
  48749. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  48750. }
  48751. hydrationParentFiber = fiber;
  48752. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  48753. }
  48754. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  48755. if (!supportsHydration) {
  48756. (function () {
  48757. {
  48758. {
  48759. throw ReactError(Error('Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48760. }
  48761. }
  48762. })();
  48763. }
  48764. var instance = fiber.stateNode;
  48765. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  48766. // TODO: Type this specific to this type of component.
  48767. fiber.updateQueue = updatePayload;
  48768. // If the update payload indicates that there is a change or if there
  48769. // is a new ref we mark this as an update.
  48770. if (updatePayload !== null) {
  48771. return true;
  48772. }
  48773. return false;
  48774. }
  48775. function prepareToHydrateHostTextInstance(fiber) {
  48776. if (!supportsHydration) {
  48777. (function () {
  48778. {
  48779. {
  48780. throw ReactError(Error('Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48781. }
  48782. }
  48783. })();
  48784. }
  48785. var textInstance = fiber.stateNode;
  48786. var textContent = fiber.memoizedProps;
  48787. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  48788. {
  48789. if (shouldUpdate) {
  48790. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  48791. // hydration parent is the parent host component of this host text.
  48792. var returnFiber = hydrationParentFiber;
  48793. if (returnFiber !== null) {
  48794. switch (returnFiber.tag) {
  48795. case HostRoot:
  48796. {
  48797. var parentContainer = returnFiber.stateNode.containerInfo;
  48798. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  48799. break;
  48800. }
  48801. case HostComponent:
  48802. {
  48803. var parentType = returnFiber.type;
  48804. var parentProps = returnFiber.memoizedProps;
  48805. var parentInstance = returnFiber.stateNode;
  48806. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  48807. break;
  48808. }
  48809. }
  48810. }
  48811. }
  48812. }
  48813. return shouldUpdate;
  48814. }
  48815. function skipPastDehydratedSuspenseInstance(fiber) {
  48816. if (!supportsHydration) {
  48817. (function () {
  48818. {
  48819. {
  48820. throw ReactError(Error('Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  48821. }
  48822. }
  48823. })();
  48824. }
  48825. var suspenseInstance = fiber.stateNode;
  48826. (function () {
  48827. if (!suspenseInstance) {
  48828. {
  48829. throw ReactError(Error('Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.'));
  48830. }
  48831. }
  48832. })();
  48833. nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  48834. }
  48835. function popToNextHostParent(fiber) {
  48836. var parent = fiber.return;
  48837. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {
  48838. parent = parent.return;
  48839. }
  48840. hydrationParentFiber = parent;
  48841. }
  48842. function popHydrationState(fiber) {
  48843. if (!supportsHydration) {
  48844. return false;
  48845. }
  48846. if (fiber !== hydrationParentFiber) {
  48847. // We're deeper than the current hydration context, inside an inserted
  48848. // tree.
  48849. return false;
  48850. }
  48851. if (!isHydrating) {
  48852. // If we're not currently hydrating but we're in a hydration context, then
  48853. // we were an insertion and now need to pop up reenter hydration of our
  48854. // siblings.
  48855. popToNextHostParent(fiber);
  48856. isHydrating = true;
  48857. return false;
  48858. }
  48859. var type = fiber.type;
  48860. // If we have any remaining hydratable nodes, we need to delete them now.
  48861. // We only do this deeper than head and body since they tend to have random
  48862. // other nodes in them. We also ignore components with pure text content in
  48863. // side of them.
  48864. // TODO: Better heuristic.
  48865. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  48866. var nextInstance = nextHydratableInstance;
  48867. while (nextInstance) {
  48868. deleteHydratableInstance(fiber, nextInstance);
  48869. nextInstance = getNextHydratableSibling(nextInstance);
  48870. }
  48871. }
  48872. popToNextHostParent(fiber);
  48873. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  48874. return true;
  48875. }
  48876. function resetHydrationState() {
  48877. if (!supportsHydration) {
  48878. return;
  48879. }
  48880. hydrationParentFiber = null;
  48881. nextHydratableInstance = null;
  48882. isHydrating = false;
  48883. }
  48884. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  48885. var didReceiveUpdate = false;
  48886. var didWarnAboutBadClass = void 0;
  48887. var didWarnAboutModulePatternComponent = void 0;
  48888. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  48889. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  48890. var didWarnAboutFunctionRefs = void 0;
  48891. var didWarnAboutReassigningProps = void 0;
  48892. var didWarnAboutMaxDuration = void 0;
  48893. var didWarnAboutRevealOrder = void 0;
  48894. var didWarnAboutTailOptions = void 0;
  48895. var didWarnAboutDefaultPropsOnFunctionComponent = void 0;
  48896. {
  48897. didWarnAboutBadClass = {};
  48898. didWarnAboutModulePatternComponent = {};
  48899. didWarnAboutContextTypeOnFunctionComponent = {};
  48900. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  48901. didWarnAboutFunctionRefs = {};
  48902. didWarnAboutReassigningProps = false;
  48903. didWarnAboutMaxDuration = false;
  48904. didWarnAboutRevealOrder = {};
  48905. didWarnAboutTailOptions = {};
  48906. didWarnAboutDefaultPropsOnFunctionComponent = {};
  48907. }
  48908. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  48909. if (current$$1 === null) {
  48910. // If this is a fresh new component that hasn't been rendered yet, we
  48911. // won't update its child set by applying minimal side-effects. Instead,
  48912. // we will add them all to the child before it gets rendered. That means
  48913. // we can optimize this reconciliation pass by not tracking side-effects.
  48914. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  48915. } else {
  48916. // If the current child is the same as the work in progress, it means that
  48917. // we haven't yet started any work on these children. Therefore, we use
  48918. // the clone algorithm to create a copy of all the current children.
  48919. // If we had any progressed work already, that is invalid at this point so
  48920. // let's throw it out.
  48921. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  48922. }
  48923. }
  48924. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  48925. // This function is fork of reconcileChildren. It's used in cases where we
  48926. // want to reconcile without matching against the existing set. This has the
  48927. // effect of all current children being unmounted; even if the type and key
  48928. // are the same, the old child is unmounted and a new child is created.
  48929. //
  48930. // To do this, we're going to go through the reconcile algorithm twice. In
  48931. // the first pass, we schedule a deletion for all the current children by
  48932. // passing null.
  48933. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  48934. // In the second pass, we mount the new children. The trick here is that we
  48935. // pass null in place of where we usually pass the current child set. This has
  48936. // the effect of remounting all children regardless of whether their their
  48937. // identity matches.
  48938. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  48939. }
  48940. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  48941. // TODO: current can be non-null here even if the component
  48942. // hasn't yet mounted. This happens after the first render suspends.
  48943. // We'll need to figure out if this is fine or can cause issues.
  48944. {
  48945. if (workInProgress.type !== workInProgress.elementType) {
  48946. // Lazy component props can't be validated in createElement
  48947. // because they're only guaranteed to be resolved here.
  48948. var innerPropTypes = Component.propTypes;
  48949. if (innerPropTypes) {
  48950. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  48951. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  48952. }
  48953. }
  48954. }
  48955. var render = Component.render;
  48956. var ref = workInProgress.ref;
  48957. // The rest is a fork of updateFunctionComponent
  48958. var nextChildren = void 0;
  48959. prepareToReadContext(workInProgress, renderExpirationTime);
  48960. {
  48961. ReactCurrentOwner$3.current = workInProgress;
  48962. setCurrentPhase('render');
  48963. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  48964. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  48965. // Only double-render components with Hooks
  48966. if (workInProgress.memoizedState !== null) {
  48967. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  48968. }
  48969. }
  48970. setCurrentPhase(null);
  48971. }
  48972. if (current$$1 !== null && !didReceiveUpdate) {
  48973. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  48974. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  48975. }
  48976. // React DevTools reads this flag.
  48977. workInProgress.effectTag |= PerformedWork;
  48978. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  48979. return workInProgress.child;
  48980. }
  48981. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  48982. if (current$$1 === null) {
  48983. var type = Component.type;
  48984. if (isSimpleFunctionComponent(type) && Component.compare === null &&
  48985. // SimpleMemoComponent codepath doesn't resolve outer props either.
  48986. Component.defaultProps === undefined) {
  48987. var resolvedType = type;
  48988. {
  48989. resolvedType = resolveFunctionForHotReloading(type);
  48990. }
  48991. // If this is a plain function component without default props,
  48992. // and with only the default shallow comparison, we upgrade it
  48993. // to a SimpleMemoComponent to allow fast path updates.
  48994. workInProgress.tag = SimpleMemoComponent;
  48995. workInProgress.type = resolvedType;
  48996. {
  48997. validateFunctionComponentInDev(workInProgress, type);
  48998. }
  48999. return updateSimpleMemoComponent(current$$1, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  49000. }
  49001. {
  49002. var innerPropTypes = type.propTypes;
  49003. if (innerPropTypes) {
  49004. // Inner memo component props aren't currently validated in createElement.
  49005. // We could move it there, but we'd still need this for lazy code path.
  49006. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49007. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  49008. }
  49009. }
  49010. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  49011. child.ref = workInProgress.ref;
  49012. child.return = workInProgress;
  49013. workInProgress.child = child;
  49014. return child;
  49015. }
  49016. {
  49017. var _type = Component.type;
  49018. var _innerPropTypes = _type.propTypes;
  49019. if (_innerPropTypes) {
  49020. // Inner memo component props aren't currently validated in createElement.
  49021. // We could move it there, but we'd still need this for lazy code path.
  49022. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  49023. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  49024. }
  49025. }
  49026. var currentChild = current$$1.child; // This is always exactly one child
  49027. if (updateExpirationTime < renderExpirationTime) {
  49028. // This will be the props with resolved defaultProps,
  49029. // unlike current.memoizedProps which will be the unresolved ones.
  49030. var prevProps = currentChild.memoizedProps;
  49031. // Default to shallow comparison
  49032. var compare = Component.compare;
  49033. compare = compare !== null ? compare : shallowEqual;
  49034. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  49035. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49036. }
  49037. }
  49038. // React DevTools reads this flag.
  49039. workInProgress.effectTag |= PerformedWork;
  49040. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  49041. newChild.ref = workInProgress.ref;
  49042. newChild.return = workInProgress;
  49043. workInProgress.child = newChild;
  49044. return newChild;
  49045. }
  49046. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  49047. // TODO: current can be non-null here even if the component
  49048. // hasn't yet mounted. This happens when the inner render suspends.
  49049. // We'll need to figure out if this is fine or can cause issues.
  49050. {
  49051. if (workInProgress.type !== workInProgress.elementType) {
  49052. // Lazy component props can't be validated in createElement
  49053. // because they're only guaranteed to be resolved here.
  49054. var outerMemoType = workInProgress.elementType;
  49055. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  49056. // We warn when you define propTypes on lazy()
  49057. // so let's just skip over it to find memo() outer wrapper.
  49058. // Inner props for memo are validated later.
  49059. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  49060. }
  49061. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  49062. if (outerPropTypes) {
  49063. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  49064. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  49065. }
  49066. // Inner propTypes will be validated in the function component path.
  49067. }
  49068. }
  49069. if (current$$1 !== null) {
  49070. var prevProps = current$$1.memoizedProps;
  49071. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref && (
  49072. // Prevent bailout if the implementation changed due to hot reload:
  49073. workInProgress.type === current$$1.type)) {
  49074. didReceiveUpdate = false;
  49075. if (updateExpirationTime < renderExpirationTime) {
  49076. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49077. }
  49078. }
  49079. }
  49080. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  49081. }
  49082. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  49083. var nextChildren = workInProgress.pendingProps;
  49084. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49085. return workInProgress.child;
  49086. }
  49087. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  49088. var nextChildren = workInProgress.pendingProps.children;
  49089. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49090. return workInProgress.child;
  49091. }
  49092. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  49093. if (enableProfilerTimer) {
  49094. workInProgress.effectTag |= Update;
  49095. }
  49096. var nextProps = workInProgress.pendingProps;
  49097. var nextChildren = nextProps.children;
  49098. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49099. return workInProgress.child;
  49100. }
  49101. function markRef(current$$1, workInProgress) {
  49102. var ref = workInProgress.ref;
  49103. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  49104. // Schedule a Ref effect
  49105. workInProgress.effectTag |= Ref;
  49106. }
  49107. }
  49108. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  49109. {
  49110. if (workInProgress.type !== workInProgress.elementType) {
  49111. // Lazy component props can't be validated in createElement
  49112. // because they're only guaranteed to be resolved here.
  49113. var innerPropTypes = Component.propTypes;
  49114. if (innerPropTypes) {
  49115. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49116. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49117. }
  49118. }
  49119. }
  49120. var context = void 0;
  49121. if (!disableLegacyContext) {
  49122. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  49123. context = getMaskedContext(workInProgress, unmaskedContext);
  49124. }
  49125. var nextChildren = void 0;
  49126. prepareToReadContext(workInProgress, renderExpirationTime);
  49127. {
  49128. ReactCurrentOwner$3.current = workInProgress;
  49129. setCurrentPhase('render');
  49130. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  49131. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49132. // Only double-render components with Hooks
  49133. if (workInProgress.memoizedState !== null) {
  49134. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  49135. }
  49136. }
  49137. setCurrentPhase(null);
  49138. }
  49139. if (current$$1 !== null && !didReceiveUpdate) {
  49140. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  49141. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49142. }
  49143. // React DevTools reads this flag.
  49144. workInProgress.effectTag |= PerformedWork;
  49145. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49146. return workInProgress.child;
  49147. }
  49148. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  49149. {
  49150. if (workInProgress.type !== workInProgress.elementType) {
  49151. // Lazy component props can't be validated in createElement
  49152. // because they're only guaranteed to be resolved here.
  49153. var innerPropTypes = Component.propTypes;
  49154. if (innerPropTypes) {
  49155. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  49156. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49157. }
  49158. }
  49159. }
  49160. // Push context providers early to prevent context stack mismatches.
  49161. // During mounting we don't know the child context yet as the instance doesn't exist.
  49162. // We will invalidate the child context in finishClassComponent() right after rendering.
  49163. var hasContext = void 0;
  49164. if (isContextProvider(Component)) {
  49165. hasContext = true;
  49166. pushContextProvider(workInProgress);
  49167. } else {
  49168. hasContext = false;
  49169. }
  49170. prepareToReadContext(workInProgress, renderExpirationTime);
  49171. var instance = workInProgress.stateNode;
  49172. var shouldUpdate = void 0;
  49173. if (instance === null) {
  49174. if (current$$1 !== null) {
  49175. // An class component without an instance only mounts if it suspended
  49176. // inside a non- concurrent tree, in an inconsistent state. We want to
  49177. // tree it like a new mount, even though an empty version of it already
  49178. // committed. Disconnect the alternate pointers.
  49179. current$$1.alternate = null;
  49180. workInProgress.alternate = null;
  49181. // Since this is conceptually a new fiber, schedule a Placement effect
  49182. workInProgress.effectTag |= Placement;
  49183. }
  49184. // In the initial pass we might need to construct the instance.
  49185. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49186. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49187. shouldUpdate = true;
  49188. } else if (current$$1 === null) {
  49189. // In a resume, we'll already have an instance we can reuse.
  49190. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49191. } else {
  49192. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  49193. }
  49194. var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  49195. {
  49196. var inst = workInProgress.stateNode;
  49197. if (inst.props !== nextProps) {
  49198. !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;
  49199. didWarnAboutReassigningProps = true;
  49200. }
  49201. }
  49202. return nextUnitOfWork;
  49203. }
  49204. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  49205. // Refs should update even if shouldComponentUpdate returns false
  49206. markRef(current$$1, workInProgress);
  49207. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  49208. if (!shouldUpdate && !didCaptureError) {
  49209. // Context providers should defer to sCU for rendering
  49210. if (hasContext) {
  49211. invalidateContextProvider(workInProgress, Component, false);
  49212. }
  49213. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49214. }
  49215. var instance = workInProgress.stateNode;
  49216. // Rerender
  49217. ReactCurrentOwner$3.current = workInProgress;
  49218. var nextChildren = void 0;
  49219. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  49220. // If we captured an error, but getDerivedStateFrom catch is not defined,
  49221. // unmount all the children. componentDidCatch will schedule an update to
  49222. // re-render a fallback. This is temporary until we migrate everyone to
  49223. // the new API.
  49224. // TODO: Warn in a future release.
  49225. nextChildren = null;
  49226. if (enableProfilerTimer) {
  49227. stopProfilerTimerIfRunning(workInProgress);
  49228. }
  49229. } else {
  49230. {
  49231. setCurrentPhase('render');
  49232. nextChildren = instance.render();
  49233. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49234. instance.render();
  49235. }
  49236. setCurrentPhase(null);
  49237. }
  49238. }
  49239. // React DevTools reads this flag.
  49240. workInProgress.effectTag |= PerformedWork;
  49241. if (current$$1 !== null && didCaptureError) {
  49242. // If we're recovering from an error, reconcile without reusing any of
  49243. // the existing children. Conceptually, the normal children and the children
  49244. // that are shown on error are two different sets, so we shouldn't reuse
  49245. // normal children even if their identities match.
  49246. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49247. } else {
  49248. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49249. }
  49250. // Memoize state using the values we just used to render.
  49251. // TODO: Restructure so we never read values from the instance.
  49252. workInProgress.memoizedState = instance.state;
  49253. // The context might have changed so we need to recalculate it.
  49254. if (hasContext) {
  49255. invalidateContextProvider(workInProgress, Component, true);
  49256. }
  49257. return workInProgress.child;
  49258. }
  49259. function pushHostRootContext(workInProgress) {
  49260. var root = workInProgress.stateNode;
  49261. if (root.pendingContext) {
  49262. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  49263. } else if (root.context) {
  49264. // Should always be set
  49265. pushTopLevelContextObject(workInProgress, root.context, false);
  49266. }
  49267. pushHostContainer(workInProgress, root.containerInfo);
  49268. }
  49269. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  49270. pushHostRootContext(workInProgress);
  49271. var updateQueue = workInProgress.updateQueue;
  49272. (function () {
  49273. if (!(updateQueue !== null)) {
  49274. {
  49275. 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.'));
  49276. }
  49277. }
  49278. })();
  49279. var nextProps = workInProgress.pendingProps;
  49280. var prevState = workInProgress.memoizedState;
  49281. var prevChildren = prevState !== null ? prevState.element : null;
  49282. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  49283. var nextState = workInProgress.memoizedState;
  49284. // Caution: React DevTools currently depends on this property
  49285. // being called "element".
  49286. var nextChildren = nextState.element;
  49287. if (nextChildren === prevChildren) {
  49288. // If the state is the same as before, that's a bailout because we had
  49289. // no work that expires at this time.
  49290. resetHydrationState();
  49291. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  49292. }
  49293. var root = workInProgress.stateNode;
  49294. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  49295. // If we don't have any current children this might be the first pass.
  49296. // We always try to hydrate. If this isn't a hydration pass there won't
  49297. // be any children to hydrate which is effectively the same thing as
  49298. // not hydrating.
  49299. // This is a bit of a hack. We track the host root as a placement to
  49300. // know that we're currently in a mounting state. That way isMounted
  49301. // works as expected. We must reset this before committing.
  49302. // TODO: Delete this when we delete isMounted and findDOMNode.
  49303. workInProgress.effectTag |= Placement;
  49304. // Ensure that children mount into this root without tracking
  49305. // side-effects. This ensures that we don't store Placement effects on
  49306. // nodes that will be hydrated.
  49307. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  49308. } else {
  49309. // Otherwise reset hydration state in case we aborted and resumed another
  49310. // root.
  49311. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49312. resetHydrationState();
  49313. }
  49314. return workInProgress.child;
  49315. }
  49316. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  49317. pushHostContext(workInProgress);
  49318. if (current$$1 === null) {
  49319. tryToClaimNextHydratableInstance(workInProgress);
  49320. }
  49321. var type = workInProgress.type;
  49322. var nextProps = workInProgress.pendingProps;
  49323. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  49324. var nextChildren = nextProps.children;
  49325. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  49326. if (isDirectTextChild) {
  49327. // We special case a direct text child of a host node. This is a common
  49328. // case. We won't handle it as a reified child. We will instead handle
  49329. // this in the host environment that also have access to this prop. That
  49330. // avoids allocating another HostText fiber and traversing it.
  49331. nextChildren = null;
  49332. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  49333. // If we're switching from a direct text child to a normal child, or to
  49334. // empty, we need to schedule the text content to be reset.
  49335. workInProgress.effectTag |= ContentReset;
  49336. }
  49337. markRef(current$$1, workInProgress);
  49338. // Check the host config to see if the children are offscreen/hidden.
  49339. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  49340. if (enableSchedulerTracing) {
  49341. markSpawnedWork(Never);
  49342. }
  49343. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  49344. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  49345. return null;
  49346. }
  49347. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  49348. return workInProgress.child;
  49349. }
  49350. function updateHostText(current$$1, workInProgress) {
  49351. if (current$$1 === null) {
  49352. tryToClaimNextHydratableInstance(workInProgress);
  49353. }
  49354. // Nothing to do here. This is terminal. We'll do the completion step
  49355. // immediately after.
  49356. return null;
  49357. }
  49358. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  49359. if (_current !== null) {
  49360. // An lazy component only mounts if it suspended inside a non-
  49361. // concurrent tree, in an inconsistent state. We want to treat it like
  49362. // a new mount, even though an empty version of it already committed.
  49363. // Disconnect the alternate pointers.
  49364. _current.alternate = null;
  49365. workInProgress.alternate = null;
  49366. // Since this is conceptually a new fiber, schedule a Placement effect
  49367. workInProgress.effectTag |= Placement;
  49368. }
  49369. var props = workInProgress.pendingProps;
  49370. // We can't start a User Timing measurement with correct label yet.
  49371. // Cancel and resume right after we know the tag.
  49372. cancelWorkTimer(workInProgress);
  49373. var Component = readLazyComponentType(elementType);
  49374. // Store the unwrapped component in the type.
  49375. workInProgress.type = Component;
  49376. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  49377. startWorkTimer(workInProgress);
  49378. var resolvedProps = resolveDefaultProps(Component, props);
  49379. var child = void 0;
  49380. switch (resolvedTag) {
  49381. case FunctionComponent:
  49382. {
  49383. {
  49384. validateFunctionComponentInDev(workInProgress, Component);
  49385. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  49386. }
  49387. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49388. break;
  49389. }
  49390. case ClassComponent:
  49391. {
  49392. {
  49393. workInProgress.type = Component = resolveClassForHotReloading(Component);
  49394. }
  49395. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49396. break;
  49397. }
  49398. case ForwardRef:
  49399. {
  49400. {
  49401. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  49402. }
  49403. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  49404. break;
  49405. }
  49406. case MemoComponent:
  49407. {
  49408. {
  49409. if (workInProgress.type !== workInProgress.elementType) {
  49410. var outerPropTypes = Component.propTypes;
  49411. if (outerPropTypes) {
  49412. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  49413. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  49414. }
  49415. }
  49416. }
  49417. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  49418. updateExpirationTime, renderExpirationTime);
  49419. break;
  49420. }
  49421. default:
  49422. {
  49423. var hint = '';
  49424. {
  49425. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  49426. hint = ' Did you wrap a component in React.lazy() more than once?';
  49427. }
  49428. }
  49429. // This message intentionally doesn't mention ForwardRef or MemoComponent
  49430. // because the fact that it's a separate type of work is an
  49431. // implementation detail.
  49432. (function () {
  49433. {
  49434. {
  49435. 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));
  49436. }
  49437. }
  49438. })();
  49439. }
  49440. }
  49441. return child;
  49442. }
  49443. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  49444. if (_current !== null) {
  49445. // An incomplete component only mounts if it suspended inside a non-
  49446. // concurrent tree, in an inconsistent state. We want to treat it like
  49447. // a new mount, even though an empty version of it already committed.
  49448. // Disconnect the alternate pointers.
  49449. _current.alternate = null;
  49450. workInProgress.alternate = null;
  49451. // Since this is conceptually a new fiber, schedule a Placement effect
  49452. workInProgress.effectTag |= Placement;
  49453. }
  49454. // Promote the fiber to a class and try rendering again.
  49455. workInProgress.tag = ClassComponent;
  49456. // The rest of this function is a fork of `updateClassComponent`
  49457. // Push context providers early to prevent context stack mismatches.
  49458. // During mounting we don't know the child context yet as the instance doesn't exist.
  49459. // We will invalidate the child context in finishClassComponent() right after rendering.
  49460. var hasContext = void 0;
  49461. if (isContextProvider(Component)) {
  49462. hasContext = true;
  49463. pushContextProvider(workInProgress);
  49464. } else {
  49465. hasContext = false;
  49466. }
  49467. prepareToReadContext(workInProgress, renderExpirationTime);
  49468. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49469. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  49470. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  49471. }
  49472. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  49473. if (_current !== null) {
  49474. // An indeterminate component only mounts if it suspended inside a non-
  49475. // concurrent tree, in an inconsistent state. We want to treat it like
  49476. // a new mount, even though an empty version of it already committed.
  49477. // Disconnect the alternate pointers.
  49478. _current.alternate = null;
  49479. workInProgress.alternate = null;
  49480. // Since this is conceptually a new fiber, schedule a Placement effect
  49481. workInProgress.effectTag |= Placement;
  49482. }
  49483. var props = workInProgress.pendingProps;
  49484. var context = void 0;
  49485. if (!disableLegacyContext) {
  49486. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  49487. context = getMaskedContext(workInProgress, unmaskedContext);
  49488. }
  49489. prepareToReadContext(workInProgress, renderExpirationTime);
  49490. var value = void 0;
  49491. {
  49492. if (Component.prototype && typeof Component.prototype.render === 'function') {
  49493. var componentName = getComponentName(Component) || 'Unknown';
  49494. if (!didWarnAboutBadClass[componentName]) {
  49495. 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);
  49496. didWarnAboutBadClass[componentName] = true;
  49497. }
  49498. }
  49499. if (workInProgress.mode & StrictMode) {
  49500. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  49501. }
  49502. ReactCurrentOwner$3.current = workInProgress;
  49503. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  49504. }
  49505. // React DevTools reads this flag.
  49506. workInProgress.effectTag |= PerformedWork;
  49507. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  49508. {
  49509. var _componentName = getComponentName(Component) || 'Unknown';
  49510. if (!didWarnAboutModulePatternComponent[_componentName]) {
  49511. 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);
  49512. didWarnAboutModulePatternComponent[_componentName] = true;
  49513. }
  49514. }
  49515. // Proceed under the assumption that this is a class instance
  49516. workInProgress.tag = ClassComponent;
  49517. // Throw out any hooks that were used.
  49518. resetHooks();
  49519. // Push context providers early to prevent context stack mismatches.
  49520. // During mounting we don't know the child context yet as the instance doesn't exist.
  49521. // We will invalidate the child context in finishClassComponent() right after rendering.
  49522. var hasContext = false;
  49523. if (isContextProvider(Component)) {
  49524. hasContext = true;
  49525. pushContextProvider(workInProgress);
  49526. } else {
  49527. hasContext = false;
  49528. }
  49529. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  49530. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  49531. if (typeof getDerivedStateFromProps === 'function') {
  49532. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  49533. }
  49534. adoptClassInstance(workInProgress, value);
  49535. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  49536. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  49537. } else {
  49538. // Proceed under the assumption that this is a function component
  49539. workInProgress.tag = FunctionComponent;
  49540. {
  49541. if (disableLegacyContext && Component.contextTypes) {
  49542. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with React.useContext() instead.', getComponentName(Component) || 'Unknown');
  49543. }
  49544. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  49545. // Only double-render components with Hooks
  49546. if (workInProgress.memoizedState !== null) {
  49547. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  49548. }
  49549. }
  49550. }
  49551. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  49552. {
  49553. validateFunctionComponentInDev(workInProgress, Component);
  49554. }
  49555. return workInProgress.child;
  49556. }
  49557. }
  49558. function validateFunctionComponentInDev(workInProgress, Component) {
  49559. if (Component) {
  49560. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  49561. }
  49562. if (workInProgress.ref !== null) {
  49563. var info = '';
  49564. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  49565. if (ownerName) {
  49566. info += '\n\nCheck the render method of `' + ownerName + '`.';
  49567. }
  49568. var warningKey = ownerName || workInProgress._debugID || '';
  49569. var debugSource = workInProgress._debugSource;
  49570. if (debugSource) {
  49571. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  49572. }
  49573. if (!didWarnAboutFunctionRefs[warningKey]) {
  49574. didWarnAboutFunctionRefs[warningKey] = true;
  49575. 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);
  49576. }
  49577. }
  49578. if (warnAboutDefaultPropsOnFunctionComponents && Component.defaultProps !== undefined) {
  49579. var componentName = getComponentName(Component) || 'Unknown';
  49580. if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {
  49581. warningWithoutStack$1(false, '%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);
  49582. didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;
  49583. }
  49584. }
  49585. if (typeof Component.getDerivedStateFromProps === 'function') {
  49586. var _componentName2 = getComponentName(Component) || 'Unknown';
  49587. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  49588. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  49589. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  49590. }
  49591. }
  49592. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  49593. var _componentName3 = getComponentName(Component) || 'Unknown';
  49594. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  49595. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName3);
  49596. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  49597. }
  49598. }
  49599. }
  49600. // TODO: This is now an empty object. Should we just make it a boolean?
  49601. var SUSPENDED_MARKER = {};
  49602. function shouldRemainOnFallback(suspenseContext, current$$1, workInProgress) {
  49603. // If the context is telling us that we should show a fallback, and we're not
  49604. // already showing content, then we should show the fallback instead.
  49605. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current$$1 === null || current$$1.memoizedState !== null);
  49606. }
  49607. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  49608. var mode = workInProgress.mode;
  49609. var nextProps = workInProgress.pendingProps;
  49610. // This is used by DevTools to force a boundary to suspend.
  49611. {
  49612. if (shouldSuspend(workInProgress)) {
  49613. workInProgress.effectTag |= DidCapture;
  49614. }
  49615. }
  49616. var suspenseContext = suspenseStackCursor.current;
  49617. var nextState = null;
  49618. var nextDidTimeout = false;
  49619. if ((workInProgress.effectTag & DidCapture) !== NoEffect || shouldRemainOnFallback(suspenseContext, current$$1, workInProgress)) {
  49620. // Something in this boundary's subtree already suspended. Switch to
  49621. // rendering the fallback children.
  49622. nextState = SUSPENDED_MARKER;
  49623. nextDidTimeout = true;
  49624. workInProgress.effectTag &= ~DidCapture;
  49625. } else {
  49626. // Attempting the main content
  49627. if (current$$1 === null || current$$1.memoizedState !== null) {
  49628. // This is a new mount or this boundary is already showing a fallback state.
  49629. // Mark this subtree context as having at least one invisible parent that could
  49630. // handle the fallback state.
  49631. // Boundaries without fallbacks or should be avoided are not considered since
  49632. // they cannot handle preferred fallback states.
  49633. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  49634. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  49635. }
  49636. }
  49637. }
  49638. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  49639. pushSuspenseContext(workInProgress, suspenseContext);
  49640. {
  49641. if ('maxDuration' in nextProps) {
  49642. if (!didWarnAboutMaxDuration) {
  49643. didWarnAboutMaxDuration = true;
  49644. warning$1(false, 'maxDuration has been removed from React. ' + 'Remove the maxDuration prop.');
  49645. }
  49646. }
  49647. }
  49648. // This next part is a bit confusing. If the children timeout, we switch to
  49649. // showing the fallback children in place of the "primary" children.
  49650. // However, we don't want to delete the primary children because then their
  49651. // state will be lost (both the React state and the host state, e.g.
  49652. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  49653. // Both the fallback children AND the primary children are rendered at the
  49654. // same time. Once the primary children are un-suspended, we can delete
  49655. // the fallback children — don't need to preserve their state.
  49656. //
  49657. // The two sets of children are siblings in the host environment, but
  49658. // semantically, for purposes of reconciliation, they are two separate sets.
  49659. // So we store them using two fragment fibers.
  49660. //
  49661. // However, we want to avoid allocating extra fibers for every placeholder.
  49662. // They're only necessary when the children time out, because that's the
  49663. // only time when both sets are mounted.
  49664. //
  49665. // So, the extra fragment fibers are only used if the children time out.
  49666. // Otherwise, we render the primary children directly. This requires some
  49667. // custom reconciliation logic to preserve the state of the primary
  49668. // children. It's essentially a very basic form of re-parenting.
  49669. // `child` points to the child fiber. In the normal case, this is the first
  49670. // fiber of the primary children set. In the timed-out case, it's a
  49671. // a fragment fiber containing the primary children.
  49672. var child = void 0;
  49673. // `next` points to the next fiber React should render. In the normal case,
  49674. // it's the same as `child`: the first fiber of the primary children set.
  49675. // In the timed-out case, it's a fragment fiber containing the *fallback*
  49676. // children -- we skip over the primary children entirely.
  49677. var next = void 0;
  49678. if (current$$1 === null) {
  49679. if (enableSuspenseServerRenderer) {
  49680. // If we're currently hydrating, try to hydrate this boundary.
  49681. // But only if this has a fallback.
  49682. if (nextProps.fallback !== undefined) {
  49683. tryToClaimNextHydratableInstance(workInProgress);
  49684. // This could've changed the tag if this was a dehydrated suspense component.
  49685. if (workInProgress.tag === DehydratedSuspenseComponent) {
  49686. popSuspenseContext(workInProgress);
  49687. return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);
  49688. }
  49689. }
  49690. }
  49691. // This is the initial mount. This branch is pretty simple because there's
  49692. // no previous state that needs to be preserved.
  49693. if (nextDidTimeout) {
  49694. // Mount separate fragments for primary and fallback children.
  49695. var nextFallbackChildren = nextProps.fallback;
  49696. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  49697. primaryChildFragment.return = workInProgress;
  49698. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49699. // Outside of batched mode, we commit the effects from the
  49700. var progressedState = workInProgress.memoizedState;
  49701. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  49702. primaryChildFragment.child = progressedPrimaryChild;
  49703. var progressedChild = progressedPrimaryChild;
  49704. while (progressedChild !== null) {
  49705. progressedChild.return = primaryChildFragment;
  49706. progressedChild = progressedChild.sibling;
  49707. }
  49708. }
  49709. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  49710. fallbackChildFragment.return = workInProgress;
  49711. primaryChildFragment.sibling = fallbackChildFragment;
  49712. child = primaryChildFragment;
  49713. // Skip the primary children, and continue working on the
  49714. // fallback children.
  49715. next = fallbackChildFragment;
  49716. } else {
  49717. // Mount the primary children without an intermediate fragment fiber.
  49718. var nextPrimaryChildren = nextProps.children;
  49719. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  49720. }
  49721. } else {
  49722. // This is an update. This branch is more complicated because we need to
  49723. // ensure the state of the primary children is preserved.
  49724. var prevState = current$$1.memoizedState;
  49725. var prevDidTimeout = prevState !== null;
  49726. if (prevDidTimeout) {
  49727. // The current tree already timed out. That means each child set is
  49728. var currentPrimaryChildFragment = current$$1.child;
  49729. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  49730. if (nextDidTimeout) {
  49731. // Still timed out. Reuse the current primary children by cloning
  49732. // its fragment. We're going to skip over these entirely.
  49733. var _nextFallbackChildren = nextProps.fallback;
  49734. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  49735. _primaryChildFragment.return = workInProgress;
  49736. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49737. // Outside of batched mode, we commit the effects from the
  49738. var _progressedState = workInProgress.memoizedState;
  49739. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  49740. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  49741. _primaryChildFragment.child = _progressedPrimaryChild;
  49742. var _progressedChild = _progressedPrimaryChild;
  49743. while (_progressedChild !== null) {
  49744. _progressedChild.return = _primaryChildFragment;
  49745. _progressedChild = _progressedChild.sibling;
  49746. }
  49747. }
  49748. }
  49749. // Because primaryChildFragment is a new fiber that we're inserting as the
  49750. // parent of a new tree, we need to set its treeBaseDuration.
  49751. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49752. // treeBaseDuration is the sum of all the child tree base durations.
  49753. var treeBaseDuration = 0;
  49754. var hiddenChild = _primaryChildFragment.child;
  49755. while (hiddenChild !== null) {
  49756. treeBaseDuration += hiddenChild.treeBaseDuration;
  49757. hiddenChild = hiddenChild.sibling;
  49758. }
  49759. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  49760. }
  49761. // Clone the fallback child fragment, too. These we'll continue
  49762. // working on.
  49763. var _fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  49764. _fallbackChildFragment.return = workInProgress;
  49765. _primaryChildFragment.sibling = _fallbackChildFragment;
  49766. child = _primaryChildFragment;
  49767. _primaryChildFragment.childExpirationTime = NoWork;
  49768. // Skip the primary children, and continue working on the
  49769. // fallback children.
  49770. next = _fallbackChildFragment;
  49771. } else {
  49772. // No longer suspended. Switch back to showing the primary children,
  49773. // and remove the intermediate fragment fiber.
  49774. var _nextPrimaryChildren = nextProps.children;
  49775. var currentPrimaryChild = currentPrimaryChildFragment.child;
  49776. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  49777. // If this render doesn't suspend, we need to delete the fallback
  49778. // children. Wait until the complete phase, after we've confirmed the
  49779. // fallback is no longer needed.
  49780. // TODO: Would it be better to store the fallback fragment on
  49781. // the stateNode?
  49782. // Continue rendering the children, like we normally do.
  49783. child = next = primaryChild;
  49784. }
  49785. } else {
  49786. // The current tree has not already timed out. That means the primary
  49787. // children are not wrapped in a fragment fiber.
  49788. var _currentPrimaryChild = current$$1.child;
  49789. if (nextDidTimeout) {
  49790. // Timed out. Wrap the children in a fragment fiber to keep them
  49791. // separate from the fallback children.
  49792. var _nextFallbackChildren2 = nextProps.fallback;
  49793. var _primaryChildFragment2 = createFiberFromFragment(
  49794. // It shouldn't matter what the pending props are because we aren't
  49795. // going to render this fragment.
  49796. null, mode, NoWork, null);
  49797. _primaryChildFragment2.return = workInProgress;
  49798. _primaryChildFragment2.child = _currentPrimaryChild;
  49799. if (_currentPrimaryChild !== null) {
  49800. _currentPrimaryChild.return = _primaryChildFragment2;
  49801. }
  49802. // Even though we're creating a new fiber, there are no new children,
  49803. // because we're reusing an already mounted tree. So we don't need to
  49804. // schedule a placement.
  49805. // primaryChildFragment.effectTag |= Placement;
  49806. if ((workInProgress.mode & BatchedMode) === NoMode) {
  49807. // Outside of batched mode, we commit the effects from the
  49808. var _progressedState2 = workInProgress.memoizedState;
  49809. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  49810. _primaryChildFragment2.child = _progressedPrimaryChild2;
  49811. var _progressedChild2 = _progressedPrimaryChild2;
  49812. while (_progressedChild2 !== null) {
  49813. _progressedChild2.return = _primaryChildFragment2;
  49814. _progressedChild2 = _progressedChild2.sibling;
  49815. }
  49816. }
  49817. // Because primaryChildFragment is a new fiber that we're inserting as the
  49818. // parent of a new tree, we need to set its treeBaseDuration.
  49819. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49820. // treeBaseDuration is the sum of all the child tree base durations.
  49821. var _treeBaseDuration = 0;
  49822. var _hiddenChild = _primaryChildFragment2.child;
  49823. while (_hiddenChild !== null) {
  49824. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  49825. _hiddenChild = _hiddenChild.sibling;
  49826. }
  49827. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  49828. }
  49829. // Create a fragment from the fallback children, too.
  49830. var _fallbackChildFragment2 = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  49831. _fallbackChildFragment2.return = workInProgress;
  49832. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  49833. _fallbackChildFragment2.effectTag |= Placement;
  49834. child = _primaryChildFragment2;
  49835. _primaryChildFragment2.childExpirationTime = NoWork;
  49836. // Skip the primary children, and continue working on the
  49837. // fallback children.
  49838. next = _fallbackChildFragment2;
  49839. } else {
  49840. // Still haven't timed out. Continue rendering the children, like we
  49841. // normally do.
  49842. var _nextPrimaryChildren2 = nextProps.children;
  49843. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  49844. }
  49845. }
  49846. workInProgress.stateNode = current$$1.stateNode;
  49847. }
  49848. workInProgress.memoizedState = nextState;
  49849. workInProgress.child = child;
  49850. return next;
  49851. }
  49852. function retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime) {
  49853. // Detach from the current dehydrated boundary.
  49854. current$$1.alternate = null;
  49855. workInProgress.alternate = null;
  49856. // Insert a deletion in the effect list.
  49857. var returnFiber = workInProgress.return;
  49858. (function () {
  49859. if (!(returnFiber !== null)) {
  49860. {
  49861. throw ReactError(Error('Suspense boundaries are never on the root. This is probably a bug in React.'));
  49862. }
  49863. }
  49864. })();
  49865. var last = returnFiber.lastEffect;
  49866. if (last !== null) {
  49867. last.nextEffect = current$$1;
  49868. returnFiber.lastEffect = current$$1;
  49869. } else {
  49870. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  49871. }
  49872. current$$1.nextEffect = null;
  49873. current$$1.effectTag = Deletion;
  49874. popSuspenseContext(workInProgress);
  49875. // Upgrade this work in progress to a real Suspense component.
  49876. workInProgress.tag = SuspenseComponent;
  49877. workInProgress.stateNode = null;
  49878. workInProgress.memoizedState = null;
  49879. // This is now an insertion.
  49880. workInProgress.effectTag |= Placement;
  49881. // Retry as a real Suspense component.
  49882. return updateSuspenseComponent(null, workInProgress, renderExpirationTime);
  49883. }
  49884. function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  49885. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  49886. var suspenseInstance = workInProgress.stateNode;
  49887. if (current$$1 === null) {
  49888. // During the first pass, we'll bail out and not drill into the children.
  49889. // Instead, we'll leave the content in place and try to hydrate it later.
  49890. if (isSuspenseInstanceFallback(suspenseInstance)) {
  49891. // This is a client-only boundary. Since we won't get any content from the server
  49892. // for this, we need to schedule that at a higher priority based on when it would
  49893. // have timed out. In theory we could render it in this pass but it would have the
  49894. // wrong priority associated with it and will prevent hydration of parent path.
  49895. // Instead, we'll leave work left on it to render it in a separate commit.
  49896. // TODO This time should be the time at which the server rendered response that is
  49897. // a parent to this boundary was displayed. However, since we currently don't have
  49898. // a protocol to transfer that time, we'll just estimate it by using the current
  49899. // time. This will mean that Suspense timeouts are slightly shifted to later than
  49900. // they should be.
  49901. var serverDisplayTime = requestCurrentTime();
  49902. // Schedule a normal pri update to render this content.
  49903. workInProgress.expirationTime = computeAsyncExpiration(serverDisplayTime);
  49904. } else {
  49905. // We'll continue hydrating the rest at offscreen priority since we'll already
  49906. // be showing the right content coming from the server, it is no rush.
  49907. workInProgress.expirationTime = Never;
  49908. }
  49909. return null;
  49910. }
  49911. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  49912. // Something suspended. Leave the existing children in place.
  49913. // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?
  49914. workInProgress.child = null;
  49915. return null;
  49916. }
  49917. if (isSuspenseInstanceFallback(suspenseInstance)) {
  49918. // This boundary is in a permanent fallback state. In this case, we'll never
  49919. // get an update and we'll never be able to hydrate the final content. Let's just try the
  49920. // client side render instead.
  49921. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  49922. }
  49923. // We use childExpirationTime to indicate that a child might depend on context, so if
  49924. // any context has changed, we need to treat is as if the input might have changed.
  49925. var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;
  49926. if (didReceiveUpdate || hasContextChanged$$1) {
  49927. // This boundary has changed since the first render. This means that we are now unable to
  49928. // hydrate it. We might still be able to hydrate it using an earlier expiration time but
  49929. // during this render we can't. Instead, we're going to delete the whole subtree and
  49930. // instead inject a new real Suspense boundary to take its place, which may render content
  49931. // or fallback. The real Suspense boundary will suspend for a while so we have some time
  49932. // to ensure it can produce real content, but all state and pending events will be lost.
  49933. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  49934. } else if (isSuspenseInstancePending(suspenseInstance)) {
  49935. // This component is still pending more data from the server, so we can't hydrate its
  49936. // content. We treat it as if this component suspended itself. It might seem as if
  49937. // we could just try to render it client-side instead. However, this will perform a
  49938. // lot of unnecessary work and is unlikely to complete since it often will suspend
  49939. // on missing data anyway. Additionally, the server might be able to render more
  49940. // than we can on the client yet. In that case we'd end up with more fallback states
  49941. // on the client than if we just leave it alone. If the server times out or errors
  49942. // these should update this boundary to the permanent Fallback state instead.
  49943. // Mark it as having captured (i.e. suspended).
  49944. workInProgress.effectTag |= DidCapture;
  49945. // Leave the children in place. I.e. empty.
  49946. workInProgress.child = null;
  49947. // Register a callback to retry this boundary once the server has sent the result.
  49948. registerSuspenseInstanceRetry(suspenseInstance, retryTimedOutBoundary.bind(null, current$$1));
  49949. return null;
  49950. } else {
  49951. // This is the first attempt.
  49952. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);
  49953. var nextProps = workInProgress.pendingProps;
  49954. var nextChildren = nextProps.children;
  49955. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  49956. return workInProgress.child;
  49957. }
  49958. }
  49959. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  49960. // Mark any Suspense boundaries with fallbacks as having work to do.
  49961. // If they were previously forced into fallbacks, they may now be able
  49962. // to unblock.
  49963. var node = firstChild;
  49964. while (node !== null) {
  49965. if (node.tag === SuspenseComponent) {
  49966. var state = node.memoizedState;
  49967. if (state !== null) {
  49968. if (node.expirationTime < renderExpirationTime) {
  49969. node.expirationTime = renderExpirationTime;
  49970. }
  49971. var alternate = node.alternate;
  49972. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  49973. alternate.expirationTime = renderExpirationTime;
  49974. }
  49975. scheduleWorkOnParentPath(node.return, renderExpirationTime);
  49976. }
  49977. } else if (node.child !== null) {
  49978. node.child.return = node;
  49979. node = node.child;
  49980. continue;
  49981. }
  49982. if (node === workInProgress) {
  49983. return;
  49984. }
  49985. while (node.sibling === null) {
  49986. if (node.return === null || node.return === workInProgress) {
  49987. return;
  49988. }
  49989. node = node.return;
  49990. }
  49991. node.sibling.return = node.return;
  49992. node = node.sibling;
  49993. }
  49994. }
  49995. function findLastContentRow(firstChild) {
  49996. // This is going to find the last row among these children that is already
  49997. // showing content on the screen, as opposed to being in fallback state or
  49998. // new. If a row has multiple Suspense boundaries, any of them being in the
  49999. // fallback state, counts as the whole row being in a fallback state.
  50000. // Note that the "rows" will be workInProgress, but any nested children
  50001. // will still be current since we haven't rendered them yet. The mounted
  50002. // order may not be the same as the new order. We use the new order.
  50003. var row = firstChild;
  50004. var lastContentRow = null;
  50005. while (row !== null) {
  50006. var currentRow = row.alternate;
  50007. // New rows can't be content rows.
  50008. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  50009. lastContentRow = row;
  50010. }
  50011. row = row.sibling;
  50012. }
  50013. return lastContentRow;
  50014. }
  50015. function validateRevealOrder(revealOrder) {
  50016. {
  50017. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  50018. didWarnAboutRevealOrder[revealOrder] = true;
  50019. if (typeof revealOrder === 'string') {
  50020. switch (revealOrder.toLowerCase()) {
  50021. case 'together':
  50022. case 'forwards':
  50023. case 'backwards':
  50024. {
  50025. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  50026. break;
  50027. }
  50028. case 'forward':
  50029. case 'backward':
  50030. {
  50031. 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());
  50032. break;
  50033. }
  50034. default:
  50035. warning$1(false, '"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  50036. break;
  50037. }
  50038. } else {
  50039. warning$1(false, '%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  50040. }
  50041. }
  50042. }
  50043. }
  50044. function validateTailOptions(tailMode, revealOrder) {
  50045. {
  50046. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  50047. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  50048. didWarnAboutTailOptions[tailMode] = true;
  50049. warning$1(false, '"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  50050. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  50051. didWarnAboutTailOptions[tailMode] = true;
  50052. warning$1(false, '<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  50053. }
  50054. }
  50055. }
  50056. }
  50057. function validateSuspenseListNestedChild(childSlot, index) {
  50058. {
  50059. var isArray = Array.isArray(childSlot);
  50060. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  50061. if (isArray || isIterable) {
  50062. var type = isArray ? 'array' : 'iterable';
  50063. 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);
  50064. return false;
  50065. }
  50066. }
  50067. return true;
  50068. }
  50069. function validateSuspenseListChildren(children, revealOrder) {
  50070. {
  50071. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  50072. if (Array.isArray(children)) {
  50073. for (var i = 0; i < children.length; i++) {
  50074. if (!validateSuspenseListNestedChild(children[i], i)) {
  50075. return;
  50076. }
  50077. }
  50078. } else {
  50079. var iteratorFn = getIteratorFn(children);
  50080. if (typeof iteratorFn === 'function') {
  50081. var childrenIterator = iteratorFn.call(children);
  50082. if (childrenIterator) {
  50083. var step = childrenIterator.next();
  50084. var _i = 0;
  50085. for (; !step.done; step = childrenIterator.next()) {
  50086. if (!validateSuspenseListNestedChild(step.value, _i)) {
  50087. return;
  50088. }
  50089. _i++;
  50090. }
  50091. }
  50092. } else {
  50093. 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);
  50094. }
  50095. }
  50096. }
  50097. }
  50098. }
  50099. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  50100. var renderState = workInProgress.memoizedState;
  50101. if (renderState === null) {
  50102. workInProgress.memoizedState = {
  50103. isBackwards: isBackwards,
  50104. rendering: null,
  50105. last: lastContentRow,
  50106. tail: tail,
  50107. tailExpiration: 0,
  50108. tailMode: tailMode
  50109. };
  50110. } else {
  50111. // We can reuse the existing object from previous renders.
  50112. renderState.isBackwards = isBackwards;
  50113. renderState.rendering = null;
  50114. renderState.last = lastContentRow;
  50115. renderState.tail = tail;
  50116. renderState.tailExpiration = 0;
  50117. renderState.tailMode = tailMode;
  50118. }
  50119. }
  50120. // This can end up rendering this component multiple passes.
  50121. // The first pass splits the children fibers into two sets. A head and tail.
  50122. // We first render the head. If anything is in fallback state, we do another
  50123. // pass through beginWork to rerender all children (including the tail) with
  50124. // the force suspend context. If the first render didn't have anything in
  50125. // in fallback state. Then we render each row in the tail one-by-one.
  50126. // That happens in the completeWork phase without going back to beginWork.
  50127. function updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime) {
  50128. var nextProps = workInProgress.pendingProps;
  50129. var revealOrder = nextProps.revealOrder;
  50130. var tailMode = nextProps.tail;
  50131. var newChildren = nextProps.children;
  50132. validateRevealOrder(revealOrder);
  50133. validateTailOptions(tailMode, revealOrder);
  50134. validateSuspenseListChildren(newChildren, revealOrder);
  50135. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50136. var suspenseContext = suspenseStackCursor.current;
  50137. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  50138. if (shouldForceFallback) {
  50139. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  50140. workInProgress.effectTag |= DidCapture;
  50141. } else {
  50142. var didSuspendBefore = current$$1 !== null && (current$$1.effectTag & DidCapture) !== NoEffect;
  50143. if (didSuspendBefore) {
  50144. // If we previously forced a fallback, we need to schedule work
  50145. // on any nested boundaries to let them know to try to render
  50146. // again. This is the same as context updating.
  50147. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  50148. }
  50149. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  50150. }
  50151. pushSuspenseContext(workInProgress, suspenseContext);
  50152. if ((workInProgress.mode & BatchedMode) === NoMode) {
  50153. // Outside of batched mode, SuspenseList doesn't work so we just
  50154. // use make it a noop by treating it as the default revealOrder.
  50155. workInProgress.memoizedState = null;
  50156. } else {
  50157. switch (revealOrder) {
  50158. case 'forwards':
  50159. {
  50160. var lastContentRow = findLastContentRow(workInProgress.child);
  50161. var tail = void 0;
  50162. if (lastContentRow === null) {
  50163. // The whole list is part of the tail.
  50164. // TODO: We could fast path by just rendering the tail now.
  50165. tail = workInProgress.child;
  50166. workInProgress.child = null;
  50167. } else {
  50168. // Disconnect the tail rows after the content row.
  50169. // We're going to render them separately later.
  50170. tail = lastContentRow.sibling;
  50171. lastContentRow.sibling = null;
  50172. }
  50173. initSuspenseListRenderState(workInProgress, false, // isBackwards
  50174. tail, lastContentRow, tailMode);
  50175. break;
  50176. }
  50177. case 'backwards':
  50178. {
  50179. // We're going to find the first row that has existing content.
  50180. // At the same time we're going to reverse the list of everything
  50181. // we pass in the meantime. That's going to be our tail in reverse
  50182. // order.
  50183. var _tail = null;
  50184. var row = workInProgress.child;
  50185. workInProgress.child = null;
  50186. while (row !== null) {
  50187. var currentRow = row.alternate;
  50188. // New rows can't be content rows.
  50189. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  50190. // This is the beginning of the main content.
  50191. workInProgress.child = row;
  50192. break;
  50193. }
  50194. var nextRow = row.sibling;
  50195. row.sibling = _tail;
  50196. _tail = row;
  50197. row = nextRow;
  50198. }
  50199. // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  50200. initSuspenseListRenderState(workInProgress, true, // isBackwards
  50201. _tail, null, // last
  50202. tailMode);
  50203. break;
  50204. }
  50205. case 'together':
  50206. {
  50207. initSuspenseListRenderState(workInProgress, false, // isBackwards
  50208. null, // tail
  50209. null, // last
  50210. undefined);
  50211. break;
  50212. }
  50213. default:
  50214. {
  50215. // The default reveal order is the same as not having
  50216. // a boundary.
  50217. workInProgress.memoizedState = null;
  50218. }
  50219. }
  50220. }
  50221. return workInProgress.child;
  50222. }
  50223. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  50224. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  50225. var nextChildren = workInProgress.pendingProps;
  50226. if (current$$1 === null) {
  50227. // Portals are special because we don't append the children during mount
  50228. // but at commit. Therefore we need to track insertions which the normal
  50229. // flow doesn't do during mount. This doesn't happen at the root because
  50230. // the root always starts with a "current" with a null child.
  50231. // TODO: Consider unifying this with how the root works.
  50232. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  50233. } else {
  50234. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  50235. }
  50236. return workInProgress.child;
  50237. }
  50238. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  50239. var providerType = workInProgress.type;
  50240. var context = providerType._context;
  50241. var newProps = workInProgress.pendingProps;
  50242. var oldProps = workInProgress.memoizedProps;
  50243. var newValue = newProps.value;
  50244. {
  50245. var providerPropTypes = workInProgress.type.propTypes;
  50246. if (providerPropTypes) {
  50247. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  50248. }
  50249. }
  50250. pushProvider(workInProgress, newValue);
  50251. if (oldProps !== null) {
  50252. var oldValue = oldProps.value;
  50253. var changedBits = calculateChangedBits(context, newValue, oldValue);
  50254. if (changedBits === 0) {
  50255. // No change. Bailout early if children are the same.
  50256. if (oldProps.children === newProps.children && !hasContextChanged()) {
  50257. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50258. }
  50259. } else {
  50260. // The context value changed. Search for matching consumers and schedule
  50261. // them to update.
  50262. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  50263. }
  50264. }
  50265. var newChildren = newProps.children;
  50266. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50267. return workInProgress.child;
  50268. }
  50269. var hasWarnedAboutUsingContextAsConsumer = false;
  50270. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  50271. var context = workInProgress.type;
  50272. // The logic below for Context differs depending on PROD or DEV mode. In
  50273. // DEV mode, we create a separate object for Context.Consumer that acts
  50274. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  50275. // so we use the old behaviour (Context.Consumer references Context) to
  50276. // reduce size and overhead. The separate object references context via
  50277. // a property called "_context", which also gives us the ability to check
  50278. // in DEV mode if this property exists or not and warn if it does not.
  50279. {
  50280. if (context._context === undefined) {
  50281. // This may be because it's a Context (rather than a Consumer).
  50282. // Or it may be because it's older React where they're the same thing.
  50283. // We only want to warn if we're sure it's a new React.
  50284. if (context !== context.Consumer) {
  50285. if (!hasWarnedAboutUsingContextAsConsumer) {
  50286. hasWarnedAboutUsingContextAsConsumer = true;
  50287. 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?');
  50288. }
  50289. }
  50290. } else {
  50291. context = context._context;
  50292. }
  50293. }
  50294. var newProps = workInProgress.pendingProps;
  50295. var render = newProps.children;
  50296. {
  50297. !(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;
  50298. }
  50299. prepareToReadContext(workInProgress, renderExpirationTime);
  50300. var newValue = readContext(context, newProps.unstable_observedBits);
  50301. var newChildren = void 0;
  50302. {
  50303. ReactCurrentOwner$3.current = workInProgress;
  50304. setCurrentPhase('render');
  50305. newChildren = render(newValue);
  50306. setCurrentPhase(null);
  50307. }
  50308. // React DevTools reads this flag.
  50309. workInProgress.effectTag |= PerformedWork;
  50310. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  50311. return workInProgress.child;
  50312. }
  50313. function updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime) {
  50314. var fundamentalImpl = workInProgress.type.impl;
  50315. if (fundamentalImpl.reconcileChildren === false) {
  50316. return null;
  50317. }
  50318. var nextProps = workInProgress.pendingProps;
  50319. var nextChildren = nextProps.children;
  50320. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  50321. return workInProgress.child;
  50322. }
  50323. function markWorkInProgressReceivedUpdate() {
  50324. didReceiveUpdate = true;
  50325. }
  50326. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  50327. cancelWorkTimer(workInProgress);
  50328. if (current$$1 !== null) {
  50329. // Reuse previous dependencies
  50330. workInProgress.dependencies = current$$1.dependencies;
  50331. }
  50332. if (enableProfilerTimer) {
  50333. // Don't update "base" render times for bailouts.
  50334. stopProfilerTimerIfRunning(workInProgress);
  50335. }
  50336. // Check if the children have any pending work.
  50337. var childExpirationTime = workInProgress.childExpirationTime;
  50338. if (childExpirationTime < renderExpirationTime) {
  50339. // The children don't have any work either. We can skip them.
  50340. // TODO: Once we add back resuming, we should check if the children are
  50341. // a work-in-progress set. If so, we need to transfer their effects.
  50342. return null;
  50343. } else {
  50344. // This fiber doesn't have work, but its subtree does. Clone the child
  50345. // fibers and continue.
  50346. cloneChildFibers(current$$1, workInProgress);
  50347. return workInProgress.child;
  50348. }
  50349. }
  50350. function remountFiber(current$$1, oldWorkInProgress, newWorkInProgress) {
  50351. {
  50352. var returnFiber = oldWorkInProgress.return;
  50353. if (returnFiber === null) {
  50354. throw new Error('Cannot swap the root fiber.');
  50355. }
  50356. // Disconnect from the old current.
  50357. // It will get deleted.
  50358. current$$1.alternate = null;
  50359. oldWorkInProgress.alternate = null;
  50360. // Connect to the new tree.
  50361. newWorkInProgress.index = oldWorkInProgress.index;
  50362. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  50363. newWorkInProgress.return = oldWorkInProgress.return;
  50364. newWorkInProgress.ref = oldWorkInProgress.ref;
  50365. // Replace the child/sibling pointers above it.
  50366. if (oldWorkInProgress === returnFiber.child) {
  50367. returnFiber.child = newWorkInProgress;
  50368. } else {
  50369. var prevSibling = returnFiber.child;
  50370. if (prevSibling === null) {
  50371. throw new Error('Expected parent to have a child.');
  50372. }
  50373. while (prevSibling.sibling !== oldWorkInProgress) {
  50374. prevSibling = prevSibling.sibling;
  50375. if (prevSibling === null) {
  50376. throw new Error('Expected to find the previous sibling.');
  50377. }
  50378. }
  50379. prevSibling.sibling = newWorkInProgress;
  50380. }
  50381. // Delete the old fiber and place the new one.
  50382. // Since the old fiber is disconnected, we have to schedule it manually.
  50383. var last = returnFiber.lastEffect;
  50384. if (last !== null) {
  50385. last.nextEffect = current$$1;
  50386. returnFiber.lastEffect = current$$1;
  50387. } else {
  50388. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  50389. }
  50390. current$$1.nextEffect = null;
  50391. current$$1.effectTag = Deletion;
  50392. newWorkInProgress.effectTag |= Placement;
  50393. // Restart work from the new fiber.
  50394. return newWorkInProgress;
  50395. }
  50396. }
  50397. function beginWork$1(current$$1, workInProgress, renderExpirationTime) {
  50398. var updateExpirationTime = workInProgress.expirationTime;
  50399. {
  50400. if (workInProgress._debugNeedsRemount && current$$1 !== null) {
  50401. // This will restart the begin phase with a new fiber.
  50402. return remountFiber(current$$1, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  50403. }
  50404. }
  50405. if (current$$1 !== null) {
  50406. var oldProps = current$$1.memoizedProps;
  50407. var newProps = workInProgress.pendingProps;
  50408. if (oldProps !== newProps || hasContextChanged() || (
  50409. // Force a re-render if the implementation changed due to hot reload:
  50410. workInProgress.type !== current$$1.type)) {
  50411. // If props or context changed, mark the fiber as having performed work.
  50412. // This may be unset if the props are determined to be equal later (memo).
  50413. didReceiveUpdate = true;
  50414. } else if (updateExpirationTime < renderExpirationTime) {
  50415. didReceiveUpdate = false;
  50416. // This fiber does not have any pending work. Bailout without entering
  50417. // the begin phase. There's still some bookkeeping we that needs to be done
  50418. // in this optimized path, mostly pushing stuff onto the stack.
  50419. switch (workInProgress.tag) {
  50420. case HostRoot:
  50421. pushHostRootContext(workInProgress);
  50422. resetHydrationState();
  50423. break;
  50424. case HostComponent:
  50425. pushHostContext(workInProgress);
  50426. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  50427. if (enableSchedulerTracing) {
  50428. markSpawnedWork(Never);
  50429. }
  50430. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  50431. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  50432. return null;
  50433. }
  50434. break;
  50435. case ClassComponent:
  50436. {
  50437. var Component = workInProgress.type;
  50438. if (isContextProvider(Component)) {
  50439. pushContextProvider(workInProgress);
  50440. }
  50441. break;
  50442. }
  50443. case HostPortal:
  50444. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  50445. break;
  50446. case ContextProvider:
  50447. {
  50448. var newValue = workInProgress.memoizedProps.value;
  50449. pushProvider(workInProgress, newValue);
  50450. break;
  50451. }
  50452. case Profiler:
  50453. if (enableProfilerTimer) {
  50454. workInProgress.effectTag |= Update;
  50455. }
  50456. break;
  50457. case SuspenseComponent:
  50458. {
  50459. var state = workInProgress.memoizedState;
  50460. var didTimeout = state !== null;
  50461. if (didTimeout) {
  50462. // If this boundary is currently timed out, we need to decide
  50463. // whether to retry the primary children, or to skip over it and
  50464. // go straight to the fallback. Check the priority of the primary
  50465. var primaryChildFragment = workInProgress.child;
  50466. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  50467. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  50468. // The primary children have pending work. Use the normal path
  50469. // to attempt to render the primary children again.
  50470. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50471. } else {
  50472. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50473. // The primary children do not have pending work with sufficient
  50474. // priority. Bailout.
  50475. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50476. if (child !== null) {
  50477. // The fallback children have pending work. Skip over the
  50478. // primary children and work on the fallback.
  50479. return child.sibling;
  50480. } else {
  50481. return null;
  50482. }
  50483. }
  50484. } else {
  50485. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50486. }
  50487. break;
  50488. }
  50489. case DehydratedSuspenseComponent:
  50490. {
  50491. if (enableSuspenseServerRenderer) {
  50492. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  50493. // We know that this component will suspend again because if it has
  50494. // been unsuspended it has committed as a regular Suspense component.
  50495. // If it needs to be retried, it should have work scheduled on it.
  50496. workInProgress.effectTag |= DidCapture;
  50497. }
  50498. break;
  50499. }
  50500. case SuspenseListComponent:
  50501. {
  50502. var didSuspendBefore = (current$$1.effectTag & DidCapture) !== NoEffect;
  50503. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  50504. if (didSuspendBefore) {
  50505. if (hasChildWork) {
  50506. // If something was in fallback state last time, and we have all the
  50507. // same children then we're still in progressive loading state.
  50508. // Something might get unblocked by state updates or retries in the
  50509. // tree which will affect the tail. So we need to use the normal
  50510. // path to compute the correct tail.
  50511. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  50512. }
  50513. // If none of the children had any work, that means that none of
  50514. // them got retried so they'll still be blocked in the same way
  50515. // as before. We can fast bail out.
  50516. workInProgress.effectTag |= DidCapture;
  50517. }
  50518. // If nothing suspended before and we're rendering the same children,
  50519. // then the tail doesn't matter. Anything new that suspends will work
  50520. // in the "together" mode, so we can continue from the state we had.
  50521. var renderState = workInProgress.memoizedState;
  50522. if (renderState !== null) {
  50523. // Reset to the "together" mode in case we've started a different
  50524. // update in the past but didn't complete it.
  50525. renderState.rendering = null;
  50526. renderState.tail = null;
  50527. }
  50528. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  50529. if (hasChildWork) {
  50530. break;
  50531. } else {
  50532. // If none of the children had any work, that means that none of
  50533. // them got retried so they'll still be blocked in the same way
  50534. // as before. We can fast bail out.
  50535. return null;
  50536. }
  50537. }
  50538. }
  50539. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  50540. }
  50541. } else {
  50542. didReceiveUpdate = false;
  50543. }
  50544. // Before entering the begin phase, clear the expiration time.
  50545. workInProgress.expirationTime = NoWork;
  50546. switch (workInProgress.tag) {
  50547. case IndeterminateComponent:
  50548. {
  50549. return mountIndeterminateComponent(current$$1, workInProgress, workInProgress.type, renderExpirationTime);
  50550. }
  50551. case LazyComponent:
  50552. {
  50553. var elementType = workInProgress.elementType;
  50554. return mountLazyComponent(current$$1, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  50555. }
  50556. case FunctionComponent:
  50557. {
  50558. var _Component = workInProgress.type;
  50559. var unresolvedProps = workInProgress.pendingProps;
  50560. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  50561. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  50562. }
  50563. case ClassComponent:
  50564. {
  50565. var _Component2 = workInProgress.type;
  50566. var _unresolvedProps = workInProgress.pendingProps;
  50567. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  50568. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  50569. }
  50570. case HostRoot:
  50571. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  50572. case HostComponent:
  50573. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  50574. case HostText:
  50575. return updateHostText(current$$1, workInProgress);
  50576. case SuspenseComponent:
  50577. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50578. case HostPortal:
  50579. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  50580. case ForwardRef:
  50581. {
  50582. var type = workInProgress.type;
  50583. var _unresolvedProps2 = workInProgress.pendingProps;
  50584. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  50585. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  50586. }
  50587. case Fragment:
  50588. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  50589. case Mode:
  50590. return updateMode(current$$1, workInProgress, renderExpirationTime);
  50591. case Profiler:
  50592. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  50593. case ContextProvider:
  50594. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  50595. case ContextConsumer:
  50596. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  50597. case MemoComponent:
  50598. {
  50599. var _type2 = workInProgress.type;
  50600. var _unresolvedProps3 = workInProgress.pendingProps;
  50601. // Resolve outer props first, then resolve inner props.
  50602. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  50603. {
  50604. if (workInProgress.type !== workInProgress.elementType) {
  50605. var outerPropTypes = _type2.propTypes;
  50606. if (outerPropTypes) {
  50607. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  50608. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  50609. }
  50610. }
  50611. }
  50612. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  50613. return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  50614. }
  50615. case SimpleMemoComponent:
  50616. {
  50617. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  50618. }
  50619. case IncompleteClassComponent:
  50620. {
  50621. var _Component3 = workInProgress.type;
  50622. var _unresolvedProps4 = workInProgress.pendingProps;
  50623. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  50624. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  50625. }
  50626. case DehydratedSuspenseComponent:
  50627. {
  50628. if (enableSuspenseServerRenderer) {
  50629. return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  50630. }
  50631. break;
  50632. }
  50633. case SuspenseListComponent:
  50634. {
  50635. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  50636. }
  50637. case FundamentalComponent:
  50638. {
  50639. if (enableFundamentalAPI) {
  50640. return updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime);
  50641. }
  50642. break;
  50643. }
  50644. }
  50645. (function () {
  50646. {
  50647. {
  50648. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  50649. }
  50650. }
  50651. })();
  50652. }
  50653. function createFundamentalStateInstance(currentFiber, props, impl, state) {
  50654. return {
  50655. currentFiber: currentFiber,
  50656. impl: impl,
  50657. instance: null,
  50658. prevProps: null,
  50659. props: props,
  50660. state: state
  50661. };
  50662. }
  50663. var emptyObject = {};
  50664. var isArray$2 = Array.isArray;
  50665. function markUpdate(workInProgress) {
  50666. // Tag the fiber with an update effect. This turns a Placement into
  50667. // a PlacementAndUpdate.
  50668. workInProgress.effectTag |= Update;
  50669. }
  50670. function markRef$1(workInProgress) {
  50671. workInProgress.effectTag |= Ref;
  50672. }
  50673. var appendAllChildren = void 0;
  50674. var updateHostContainer = void 0;
  50675. var updateHostComponent$1 = void 0;
  50676. var updateHostText$1 = void 0;
  50677. if (supportsMutation) {
  50678. // Mutation mode
  50679. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  50680. // We only have the top Fiber that was created but we need recurse down its
  50681. // children to find all the terminal nodes.
  50682. var node = workInProgress.child;
  50683. while (node !== null) {
  50684. if (node.tag === HostComponent || node.tag === HostText) {
  50685. appendInitialChild(parent, node.stateNode);
  50686. } else if (node.tag === FundamentalComponent) {
  50687. appendInitialChild(parent, node.stateNode.instance);
  50688. } else if (node.tag === HostPortal) {
  50689. // If we have a portal child, then we don't want to traverse
  50690. // down its children. Instead, we'll get insertions from each child in
  50691. // the portal directly.
  50692. } else if (node.child !== null) {
  50693. node.child.return = node;
  50694. node = node.child;
  50695. continue;
  50696. }
  50697. if (node === workInProgress) {
  50698. return;
  50699. }
  50700. while (node.sibling === null) {
  50701. if (node.return === null || node.return === workInProgress) {
  50702. return;
  50703. }
  50704. node = node.return;
  50705. }
  50706. node.sibling.return = node.return;
  50707. node = node.sibling;
  50708. }
  50709. };
  50710. updateHostContainer = function (workInProgress) {
  50711. // Noop
  50712. };
  50713. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50714. // If we have an alternate, that means this is an update and we need to
  50715. // schedule a side-effect to do the updates.
  50716. var oldProps = current.memoizedProps;
  50717. if (oldProps === newProps) {
  50718. // In mutation mode, this is sufficient for a bailout because
  50719. // we won't touch this node even if children changed.
  50720. return;
  50721. }
  50722. // If we get updated because one of our children updated, we don't
  50723. // have newProps so we'll have to reuse them.
  50724. // TODO: Split the update API as separate for the props vs. children.
  50725. // Even better would be if children weren't special cased at all tho.
  50726. var instance = workInProgress.stateNode;
  50727. var currentHostContext = getHostContext();
  50728. // TODO: Experiencing an error where oldProps is null. Suggests a host
  50729. // component is hitting the resume path. Figure out why. Possibly
  50730. // related to `hidden`.
  50731. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  50732. // TODO: Type this specific to this type of component.
  50733. workInProgress.updateQueue = updatePayload;
  50734. // If the update payload indicates that there is a change or if there
  50735. // is a new ref we mark this as an update. All the work is done in commitWork.
  50736. if (updatePayload) {
  50737. markUpdate(workInProgress);
  50738. }
  50739. };
  50740. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  50741. // If the text differs, mark it as an update. All the work in done in commitWork.
  50742. if (oldText !== newText) {
  50743. markUpdate(workInProgress);
  50744. }
  50745. };
  50746. } else if (supportsPersistence) {
  50747. // Persistent host tree mode
  50748. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  50749. // We only have the top Fiber that was created but we need recurse down its
  50750. // children to find all the terminal nodes.
  50751. var node = workInProgress.child;
  50752. while (node !== null) {
  50753. // eslint-disable-next-line no-labels
  50754. branches: if (node.tag === HostComponent) {
  50755. var instance = node.stateNode;
  50756. if (needsVisibilityToggle && isHidden) {
  50757. // This child is inside a timed out tree. Hide it.
  50758. var props = node.memoizedProps;
  50759. var type = node.type;
  50760. instance = cloneHiddenInstance(instance, type, props, node);
  50761. }
  50762. appendInitialChild(parent, instance);
  50763. } else if (node.tag === HostText) {
  50764. var _instance = node.stateNode;
  50765. if (needsVisibilityToggle && isHidden) {
  50766. // This child is inside a timed out tree. Hide it.
  50767. var text = node.memoizedProps;
  50768. _instance = cloneHiddenTextInstance(_instance, text, node);
  50769. }
  50770. appendInitialChild(parent, _instance);
  50771. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  50772. var _instance2 = node.stateNode.instance;
  50773. if (needsVisibilityToggle && isHidden) {
  50774. // This child is inside a timed out tree. Hide it.
  50775. var _props = node.memoizedProps;
  50776. var _type = node.type;
  50777. _instance2 = cloneHiddenInstance(_instance2, _type, _props, node);
  50778. }
  50779. appendInitialChild(parent, _instance2);
  50780. } else if (node.tag === HostPortal) {
  50781. // If we have a portal child, then we don't want to traverse
  50782. // down its children. Instead, we'll get insertions from each child in
  50783. // the portal directly.
  50784. } else if (node.tag === SuspenseComponent) {
  50785. if ((node.effectTag & Update) !== NoEffect) {
  50786. // Need to toggle the visibility of the primary children.
  50787. var newIsHidden = node.memoizedState !== null;
  50788. if (newIsHidden) {
  50789. var primaryChildParent = node.child;
  50790. if (primaryChildParent !== null) {
  50791. if (primaryChildParent.child !== null) {
  50792. primaryChildParent.child.return = primaryChildParent;
  50793. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  50794. }
  50795. var fallbackChildParent = primaryChildParent.sibling;
  50796. if (fallbackChildParent !== null) {
  50797. fallbackChildParent.return = node;
  50798. node = fallbackChildParent;
  50799. continue;
  50800. }
  50801. }
  50802. }
  50803. }
  50804. if (node.child !== null) {
  50805. // Continue traversing like normal
  50806. node.child.return = node;
  50807. node = node.child;
  50808. continue;
  50809. }
  50810. } else if (node.child !== null) {
  50811. node.child.return = node;
  50812. node = node.child;
  50813. continue;
  50814. }
  50815. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  50816. node = node;
  50817. if (node === workInProgress) {
  50818. return;
  50819. }
  50820. while (node.sibling === null) {
  50821. if (node.return === null || node.return === workInProgress) {
  50822. return;
  50823. }
  50824. node = node.return;
  50825. }
  50826. node.sibling.return = node.return;
  50827. node = node.sibling;
  50828. }
  50829. };
  50830. // An unfortunate fork of appendAllChildren because we have two different parent types.
  50831. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  50832. // We only have the top Fiber that was created but we need recurse down its
  50833. // children to find all the terminal nodes.
  50834. var node = workInProgress.child;
  50835. while (node !== null) {
  50836. // eslint-disable-next-line no-labels
  50837. branches: if (node.tag === HostComponent) {
  50838. var instance = node.stateNode;
  50839. if (needsVisibilityToggle && isHidden) {
  50840. // This child is inside a timed out tree. Hide it.
  50841. var props = node.memoizedProps;
  50842. var type = node.type;
  50843. instance = cloneHiddenInstance(instance, type, props, node);
  50844. }
  50845. appendChildToContainerChildSet(containerChildSet, instance);
  50846. } else if (node.tag === HostText) {
  50847. var _instance3 = node.stateNode;
  50848. if (needsVisibilityToggle && isHidden) {
  50849. // This child is inside a timed out tree. Hide it.
  50850. var text = node.memoizedProps;
  50851. _instance3 = cloneHiddenTextInstance(_instance3, text, node);
  50852. }
  50853. appendChildToContainerChildSet(containerChildSet, _instance3);
  50854. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  50855. var _instance4 = node.stateNode.instance;
  50856. if (needsVisibilityToggle && isHidden) {
  50857. // This child is inside a timed out tree. Hide it.
  50858. var _props2 = node.memoizedProps;
  50859. var _type2 = node.type;
  50860. _instance4 = cloneHiddenInstance(_instance4, _type2, _props2, node);
  50861. }
  50862. appendChildToContainerChildSet(containerChildSet, _instance4);
  50863. } else if (node.tag === HostPortal) {
  50864. // If we have a portal child, then we don't want to traverse
  50865. // down its children. Instead, we'll get insertions from each child in
  50866. // the portal directly.
  50867. } else if (node.tag === SuspenseComponent) {
  50868. if ((node.effectTag & Update) !== NoEffect) {
  50869. // Need to toggle the visibility of the primary children.
  50870. var newIsHidden = node.memoizedState !== null;
  50871. if (newIsHidden) {
  50872. var primaryChildParent = node.child;
  50873. if (primaryChildParent !== null) {
  50874. if (primaryChildParent.child !== null) {
  50875. primaryChildParent.child.return = primaryChildParent;
  50876. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  50877. }
  50878. var fallbackChildParent = primaryChildParent.sibling;
  50879. if (fallbackChildParent !== null) {
  50880. fallbackChildParent.return = node;
  50881. node = fallbackChildParent;
  50882. continue;
  50883. }
  50884. }
  50885. }
  50886. }
  50887. if (node.child !== null) {
  50888. // Continue traversing like normal
  50889. node.child.return = node;
  50890. node = node.child;
  50891. continue;
  50892. }
  50893. } else if (node.child !== null) {
  50894. node.child.return = node;
  50895. node = node.child;
  50896. continue;
  50897. }
  50898. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  50899. node = node;
  50900. if (node === workInProgress) {
  50901. return;
  50902. }
  50903. while (node.sibling === null) {
  50904. if (node.return === null || node.return === workInProgress) {
  50905. return;
  50906. }
  50907. node = node.return;
  50908. }
  50909. node.sibling.return = node.return;
  50910. node = node.sibling;
  50911. }
  50912. };
  50913. updateHostContainer = function (workInProgress) {
  50914. var portalOrRoot = workInProgress.stateNode;
  50915. var childrenUnchanged = workInProgress.firstEffect === null;
  50916. if (childrenUnchanged) {
  50917. // No changes, just reuse the existing instance.
  50918. } else {
  50919. var container = portalOrRoot.containerInfo;
  50920. var newChildSet = createContainerChildSet(container);
  50921. // If children might have changed, we have to add them all to the set.
  50922. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  50923. portalOrRoot.pendingChildren = newChildSet;
  50924. // Schedule an update on the container to swap out the container.
  50925. markUpdate(workInProgress);
  50926. finalizeContainerChildren(container, newChildSet);
  50927. }
  50928. };
  50929. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50930. var currentInstance = current.stateNode;
  50931. var oldProps = current.memoizedProps;
  50932. // If there are no effects associated with this node, then none of our children had any updates.
  50933. // This guarantees that we can reuse all of them.
  50934. var childrenUnchanged = workInProgress.firstEffect === null;
  50935. if (childrenUnchanged && oldProps === newProps) {
  50936. // No changes, just reuse the existing instance.
  50937. // Note that this might release a previous clone.
  50938. workInProgress.stateNode = currentInstance;
  50939. return;
  50940. }
  50941. var recyclableInstance = workInProgress.stateNode;
  50942. var currentHostContext = getHostContext();
  50943. var updatePayload = null;
  50944. if (oldProps !== newProps) {
  50945. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  50946. }
  50947. if (childrenUnchanged && updatePayload === null) {
  50948. // No changes, just reuse the existing instance.
  50949. // Note that this might release a previous clone.
  50950. workInProgress.stateNode = currentInstance;
  50951. return;
  50952. }
  50953. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  50954. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  50955. markUpdate(workInProgress);
  50956. }
  50957. workInProgress.stateNode = newInstance;
  50958. if (childrenUnchanged) {
  50959. // If there are no other effects in this tree, we need to flag this node as having one.
  50960. // Even though we're not going to use it for anything.
  50961. // Otherwise parents won't know that there are new children to propagate upwards.
  50962. markUpdate(workInProgress);
  50963. } else {
  50964. // If children might have changed, we have to add them all to the set.
  50965. appendAllChildren(newInstance, workInProgress, false, false);
  50966. }
  50967. };
  50968. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  50969. if (oldText !== newText) {
  50970. // If the text content differs, we'll create a new text instance for it.
  50971. var rootContainerInstance = getRootHostContainer();
  50972. var currentHostContext = getHostContext();
  50973. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  50974. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  50975. // This lets the parents know that at least one of their children has changed.
  50976. markUpdate(workInProgress);
  50977. }
  50978. };
  50979. } else {
  50980. // No host operations
  50981. updateHostContainer = function (workInProgress) {
  50982. // Noop
  50983. };
  50984. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  50985. // Noop
  50986. };
  50987. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  50988. // Noop
  50989. };
  50990. }
  50991. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  50992. switch (renderState.tailMode) {
  50993. case 'hidden':
  50994. {
  50995. // Any insertions at the end of the tail list after this point
  50996. // should be invisible. If there are already mounted boundaries
  50997. // anything before them are not considered for collapsing.
  50998. // Therefore we need to go through the whole tail to find if
  50999. // there are any.
  51000. var tailNode = renderState.tail;
  51001. var lastTailNode = null;
  51002. while (tailNode !== null) {
  51003. if (tailNode.alternate !== null) {
  51004. lastTailNode = tailNode;
  51005. }
  51006. tailNode = tailNode.sibling;
  51007. }
  51008. // Next we're simply going to delete all insertions after the
  51009. // last rendered item.
  51010. if (lastTailNode === null) {
  51011. // All remaining items in the tail are insertions.
  51012. renderState.tail = null;
  51013. } else {
  51014. // Detach the insertion after the last node that was already
  51015. // inserted.
  51016. lastTailNode.sibling = null;
  51017. }
  51018. break;
  51019. }
  51020. case 'collapsed':
  51021. {
  51022. // Any insertions at the end of the tail list after this point
  51023. // should be invisible. If there are already mounted boundaries
  51024. // anything before them are not considered for collapsing.
  51025. // Therefore we need to go through the whole tail to find if
  51026. // there are any.
  51027. var _tailNode = renderState.tail;
  51028. var _lastTailNode = null;
  51029. while (_tailNode !== null) {
  51030. if (_tailNode.alternate !== null) {
  51031. _lastTailNode = _tailNode;
  51032. }
  51033. _tailNode = _tailNode.sibling;
  51034. }
  51035. // Next we're simply going to delete all insertions after the
  51036. // last rendered item.
  51037. if (_lastTailNode === null) {
  51038. // All remaining items in the tail are insertions.
  51039. if (!hasRenderedATailFallback && renderState.tail !== null) {
  51040. // We suspended during the head. We want to show at least one
  51041. // row at the tail. So we'll keep on and cut off the rest.
  51042. renderState.tail.sibling = null;
  51043. } else {
  51044. renderState.tail = null;
  51045. }
  51046. } else {
  51047. // Detach the insertion after the last node that was already
  51048. // inserted.
  51049. _lastTailNode.sibling = null;
  51050. }
  51051. break;
  51052. }
  51053. }
  51054. }
  51055. function completeWork(current, workInProgress, renderExpirationTime) {
  51056. var newProps = workInProgress.pendingProps;
  51057. switch (workInProgress.tag) {
  51058. case IndeterminateComponent:
  51059. break;
  51060. case LazyComponent:
  51061. break;
  51062. case SimpleMemoComponent:
  51063. case FunctionComponent:
  51064. break;
  51065. case ClassComponent:
  51066. {
  51067. var Component = workInProgress.type;
  51068. if (isContextProvider(Component)) {
  51069. popContext(workInProgress);
  51070. }
  51071. break;
  51072. }
  51073. case HostRoot:
  51074. {
  51075. popHostContainer(workInProgress);
  51076. popTopLevelContextObject(workInProgress);
  51077. var fiberRoot = workInProgress.stateNode;
  51078. if (fiberRoot.pendingContext) {
  51079. fiberRoot.context = fiberRoot.pendingContext;
  51080. fiberRoot.pendingContext = null;
  51081. }
  51082. if (current === null || current.child === null) {
  51083. // If we hydrated, pop so that we can delete any remaining children
  51084. // that weren't hydrated.
  51085. popHydrationState(workInProgress);
  51086. // This resets the hacky state to fix isMounted before committing.
  51087. // TODO: Delete this when we delete isMounted and findDOMNode.
  51088. workInProgress.effectTag &= ~Placement;
  51089. }
  51090. updateHostContainer(workInProgress);
  51091. break;
  51092. }
  51093. case HostComponent:
  51094. {
  51095. popHostContext(workInProgress);
  51096. var rootContainerInstance = getRootHostContainer();
  51097. var type = workInProgress.type;
  51098. if (current !== null && workInProgress.stateNode != null) {
  51099. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  51100. if (enableFlareAPI) {
  51101. var prevListeners = current.memoizedProps.listeners;
  51102. var nextListeners = newProps.listeners;
  51103. var instance = workInProgress.stateNode;
  51104. if (prevListeners !== nextListeners) {
  51105. updateEventListeners(nextListeners, instance, rootContainerInstance, workInProgress);
  51106. }
  51107. }
  51108. if (current.ref !== workInProgress.ref) {
  51109. markRef$1(workInProgress);
  51110. }
  51111. } else {
  51112. if (!newProps) {
  51113. (function () {
  51114. if (!(workInProgress.stateNode !== null)) {
  51115. {
  51116. 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.'));
  51117. }
  51118. }
  51119. })();
  51120. // This can happen when we abort work.
  51121. break;
  51122. }
  51123. var currentHostContext = getHostContext();
  51124. // TODO: Move createInstance to beginWork and keep it on a context
  51125. // "stack" as the parent. Then append children as we go in beginWork
  51126. // or completeWork depending on we want to add then top->down or
  51127. // bottom->up. Top->down is faster in IE11.
  51128. var wasHydrated = popHydrationState(workInProgress);
  51129. if (wasHydrated) {
  51130. // TODO: Move this and createInstance step into the beginPhase
  51131. // to consolidate.
  51132. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  51133. // If changes to the hydrated node needs to be applied at the
  51134. // commit-phase we mark this as such.
  51135. markUpdate(workInProgress);
  51136. }
  51137. } else {
  51138. var _instance5 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  51139. appendAllChildren(_instance5, workInProgress, false, false);
  51140. if (enableFlareAPI) {
  51141. var listeners = newProps.listeners;
  51142. if (listeners != null) {
  51143. updateEventListeners(listeners, _instance5, rootContainerInstance, workInProgress);
  51144. }
  51145. }
  51146. // Certain renderers require commit-time effects for initial mount.
  51147. // (eg DOM renderer supports auto-focus for certain elements).
  51148. // Make sure such renderers get scheduled for later work.
  51149. if (finalizeInitialChildren(_instance5, type, newProps, rootContainerInstance, currentHostContext)) {
  51150. markUpdate(workInProgress);
  51151. }
  51152. workInProgress.stateNode = _instance5;
  51153. }
  51154. if (workInProgress.ref !== null) {
  51155. // If there is a ref on a host node we need to schedule a callback
  51156. markRef$1(workInProgress);
  51157. }
  51158. }
  51159. break;
  51160. }
  51161. case HostText:
  51162. {
  51163. var newText = newProps;
  51164. if (current && workInProgress.stateNode != null) {
  51165. var oldText = current.memoizedProps;
  51166. // If we have an alternate, that means this is an update and we need
  51167. // to schedule a side-effect to do the updates.
  51168. updateHostText$1(current, workInProgress, oldText, newText);
  51169. } else {
  51170. if (typeof newText !== 'string') {
  51171. (function () {
  51172. if (!(workInProgress.stateNode !== null)) {
  51173. {
  51174. 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.'));
  51175. }
  51176. }
  51177. })();
  51178. // This can happen when we abort work.
  51179. }
  51180. var _rootContainerInstance = getRootHostContainer();
  51181. var _currentHostContext = getHostContext();
  51182. var _wasHydrated = popHydrationState(workInProgress);
  51183. if (_wasHydrated) {
  51184. if (prepareToHydrateHostTextInstance(workInProgress)) {
  51185. markUpdate(workInProgress);
  51186. }
  51187. } else {
  51188. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  51189. }
  51190. }
  51191. break;
  51192. }
  51193. case ForwardRef:
  51194. break;
  51195. case SuspenseComponent:
  51196. {
  51197. popSuspenseContext(workInProgress);
  51198. var nextState = workInProgress.memoizedState;
  51199. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  51200. // Something suspended. Re-render with the fallback children.
  51201. workInProgress.expirationTime = renderExpirationTime;
  51202. // Do not reset the effect list.
  51203. return workInProgress;
  51204. }
  51205. var nextDidTimeout = nextState !== null;
  51206. var prevDidTimeout = false;
  51207. if (current === null) {
  51208. // In cases where we didn't find a suitable hydration boundary we never
  51209. // downgraded this to a DehydratedSuspenseComponent, but we still need to
  51210. // pop the hydration state since we might be inside the insertion tree.
  51211. popHydrationState(workInProgress);
  51212. } else {
  51213. var prevState = current.memoizedState;
  51214. prevDidTimeout = prevState !== null;
  51215. if (!nextDidTimeout && prevState !== null) {
  51216. // We just switched from the fallback to the normal children.
  51217. // Delete the fallback.
  51218. // TODO: Would it be better to store the fallback fragment on
  51219. var currentFallbackChild = current.child.sibling;
  51220. if (currentFallbackChild !== null) {
  51221. // Deletions go at the beginning of the return fiber's effect list
  51222. var first = workInProgress.firstEffect;
  51223. if (first !== null) {
  51224. workInProgress.firstEffect = currentFallbackChild;
  51225. currentFallbackChild.nextEffect = first;
  51226. } else {
  51227. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  51228. currentFallbackChild.nextEffect = null;
  51229. }
  51230. currentFallbackChild.effectTag = Deletion;
  51231. }
  51232. }
  51233. }
  51234. if (nextDidTimeout && !prevDidTimeout) {
  51235. // If this subtreee is running in batched mode we can suspend,
  51236. // otherwise we won't suspend.
  51237. // TODO: This will still suspend a synchronous tree if anything
  51238. // in the concurrent tree already suspended during this render.
  51239. // This is a known bug.
  51240. if ((workInProgress.mode & BatchedMode) !== NoMode) {
  51241. // TODO: Move this back to throwException because this is too late
  51242. // if this is a large tree which is common for initial loads. We
  51243. // don't know if we should restart a render or not until we get
  51244. // this marker, and this is too late.
  51245. // If this render already had a ping or lower pri updates,
  51246. // and this is the first time we know we're going to suspend we
  51247. // should be able to immediately restart from within throwException.
  51248. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  51249. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  51250. // If this was in an invisible tree or a new render, then showing
  51251. // this boundary is ok.
  51252. renderDidSuspend();
  51253. } else {
  51254. // Otherwise, we're going to have to hide content so we should
  51255. // suspend for longer if possible.
  51256. renderDidSuspendDelayIfPossible();
  51257. }
  51258. }
  51259. }
  51260. if (supportsPersistence) {
  51261. // TODO: Only schedule updates if not prevDidTimeout.
  51262. if (nextDidTimeout) {
  51263. // If this boundary just timed out, schedule an effect to attach a
  51264. // retry listener to the proimse. This flag is also used to hide the
  51265. // primary children.
  51266. workInProgress.effectTag |= Update;
  51267. }
  51268. }
  51269. if (supportsMutation) {
  51270. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  51271. if (nextDidTimeout || prevDidTimeout) {
  51272. // If this boundary just timed out, schedule an effect to attach a
  51273. // retry listener to the proimse. This flag is also used to hide the
  51274. // primary children. In mutation mode, we also need the flag to
  51275. // *unhide* children that were previously hidden, so check if the
  51276. // is currently timed out, too.
  51277. workInProgress.effectTag |= Update;
  51278. }
  51279. }
  51280. if (enableSuspenseCallback && workInProgress.updateQueue !== null && workInProgress.memoizedProps.suspenseCallback != null) {
  51281. // Always notify the callback
  51282. workInProgress.effectTag |= Update;
  51283. }
  51284. break;
  51285. }
  51286. case Fragment:
  51287. break;
  51288. case Mode:
  51289. break;
  51290. case Profiler:
  51291. break;
  51292. case HostPortal:
  51293. popHostContainer(workInProgress);
  51294. updateHostContainer(workInProgress);
  51295. break;
  51296. case ContextProvider:
  51297. // Pop provider fiber
  51298. popProvider(workInProgress);
  51299. break;
  51300. case ContextConsumer:
  51301. break;
  51302. case MemoComponent:
  51303. break;
  51304. case IncompleteClassComponent:
  51305. {
  51306. // Same as class component case. I put it down here so that the tags are
  51307. // sequential to ensure this switch is compiled to a jump table.
  51308. var _Component = workInProgress.type;
  51309. if (isContextProvider(_Component)) {
  51310. popContext(workInProgress);
  51311. }
  51312. break;
  51313. }
  51314. case DehydratedSuspenseComponent:
  51315. {
  51316. if (enableSuspenseServerRenderer) {
  51317. popSuspenseContext(workInProgress);
  51318. if (current === null) {
  51319. var _wasHydrated2 = popHydrationState(workInProgress);
  51320. (function () {
  51321. if (!_wasHydrated2) {
  51322. {
  51323. throw ReactError(Error('A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.'));
  51324. }
  51325. }
  51326. })();
  51327. if (enableSchedulerTracing) {
  51328. markSpawnedWork(Never);
  51329. }
  51330. skipPastDehydratedSuspenseInstance(workInProgress);
  51331. } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  51332. // This boundary did not suspend so it's now hydrated.
  51333. // To handle any future suspense cases, we're going to now upgrade it
  51334. // to a Suspense component. We detach it from the existing current fiber.
  51335. current.alternate = null;
  51336. workInProgress.alternate = null;
  51337. workInProgress.tag = SuspenseComponent;
  51338. workInProgress.memoizedState = null;
  51339. workInProgress.stateNode = null;
  51340. }
  51341. }
  51342. break;
  51343. }
  51344. case SuspenseListComponent:
  51345. {
  51346. popSuspenseContext(workInProgress);
  51347. var renderState = workInProgress.memoizedState;
  51348. if (renderState === null) {
  51349. // We're running in the default, "independent" mode. We don't do anything
  51350. // in this mode.
  51351. break;
  51352. }
  51353. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  51354. var renderedTail = renderState.rendering;
  51355. if (renderedTail === null) {
  51356. // We just rendered the head.
  51357. if (!didSuspendAlready) {
  51358. // This is the first pass. We need to figure out if anything is still
  51359. // suspended in the rendered set.
  51360. // If new content unsuspended, but there's still some content that
  51361. // didn't. Then we need to do a second pass that forces everything
  51362. // to keep showing their fallbacks.
  51363. // We might be suspended if something in this render pass suspended, or
  51364. // something in the previous committed pass suspended. Otherwise,
  51365. // there's no chance so we can skip the expensive call to
  51366. // findFirstSuspended.
  51367. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  51368. if (!cannotBeSuspended) {
  51369. var row = workInProgress.child;
  51370. while (row !== null) {
  51371. var suspended = findFirstSuspended(row);
  51372. if (suspended !== null) {
  51373. didSuspendAlready = true;
  51374. workInProgress.effectTag |= DidCapture;
  51375. cutOffTailIfNeeded(renderState, false);
  51376. // If this is a newly suspended tree, it might not get committed as
  51377. // part of the second pass. In that case nothing will subscribe to
  51378. // its thennables. Instead, we'll transfer its thennables to the
  51379. // SuspenseList so that it can retry if they resolve.
  51380. // There might be multiple of these in the list but since we're
  51381. // going to wait for all of them anyway, it doesn't really matter
  51382. // which ones gets to ping. In theory we could get clever and keep
  51383. // track of how many dependencies remain but it gets tricky because
  51384. // in the meantime, we can add/remove/change items and dependencies.
  51385. // We might bail out of the loop before finding any but that
  51386. // doesn't matter since that means that the other boundaries that
  51387. // we did find already has their listeners attached.
  51388. var newThennables = suspended.updateQueue;
  51389. if (newThennables !== null) {
  51390. workInProgress.updateQueue = newThennables;
  51391. workInProgress.effectTag |= Update;
  51392. }
  51393. // Rerender the whole list, but this time, we'll force fallbacks
  51394. // to stay in place.
  51395. // Reset the effect list before doing the second pass since that's now invalid.
  51396. workInProgress.firstEffect = workInProgress.lastEffect = null;
  51397. // Reset the child fibers to their original state.
  51398. resetChildFibers(workInProgress, renderExpirationTime);
  51399. // Set up the Suspense Context to force suspense and immediately
  51400. // rerender the children.
  51401. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  51402. return workInProgress.child;
  51403. }
  51404. row = row.sibling;
  51405. }
  51406. }
  51407. } else {
  51408. cutOffTailIfNeeded(renderState, false);
  51409. }
  51410. // Next we're going to render the tail.
  51411. } else {
  51412. // Append the rendered row to the child list.
  51413. if (!didSuspendAlready) {
  51414. var _suspended = findFirstSuspended(renderedTail);
  51415. if (_suspended !== null) {
  51416. workInProgress.effectTag |= DidCapture;
  51417. didSuspendAlready = true;
  51418. cutOffTailIfNeeded(renderState, true);
  51419. // This might have been modified.
  51420. if (renderState.tail === null && renderState.tailMode === 'hidden') {
  51421. // We need to delete the row we just rendered.
  51422. // Ensure we transfer the update queue to the parent.
  51423. var _newThennables = _suspended.updateQueue;
  51424. if (_newThennables !== null) {
  51425. workInProgress.updateQueue = _newThennables;
  51426. workInProgress.effectTag |= Update;
  51427. }
  51428. // Reset the effect list to what it w as before we rendered this
  51429. // child. The nested children have already appended themselves.
  51430. var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
  51431. // Remove any effects that were appended after this point.
  51432. if (lastEffect !== null) {
  51433. lastEffect.nextEffect = null;
  51434. }
  51435. // We're done.
  51436. return null;
  51437. }
  51438. } else if (now() > renderState.tailExpiration && renderExpirationTime > Never) {
  51439. // We have now passed our CPU deadline and we'll just give up further
  51440. // attempts to render the main content and only render fallbacks.
  51441. // The assumption is that this is usually faster.
  51442. workInProgress.effectTag |= DidCapture;
  51443. didSuspendAlready = true;
  51444. cutOffTailIfNeeded(renderState, false);
  51445. // Since nothing actually suspended, there will nothing to ping this
  51446. // to get it started back up to attempt the next item. If we can show
  51447. // them, then they really have the same priority as this render.
  51448. // So we'll pick it back up the very next render pass once we've had
  51449. // an opportunity to yield for paint.
  51450. var nextPriority = renderExpirationTime - 1;
  51451. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  51452. if (enableSchedulerTracing) {
  51453. markSpawnedWork(nextPriority);
  51454. }
  51455. }
  51456. }
  51457. if (renderState.isBackwards) {
  51458. // The effect list of the backwards tail will have been added
  51459. // to the end. This breaks the guarantee that life-cycles fire in
  51460. // sibling order but that isn't a strong guarantee promised by React.
  51461. // Especially since these might also just pop in during future commits.
  51462. // Append to the beginning of the list.
  51463. renderedTail.sibling = workInProgress.child;
  51464. workInProgress.child = renderedTail;
  51465. } else {
  51466. var previousSibling = renderState.last;
  51467. if (previousSibling !== null) {
  51468. previousSibling.sibling = renderedTail;
  51469. } else {
  51470. workInProgress.child = renderedTail;
  51471. }
  51472. renderState.last = renderedTail;
  51473. }
  51474. }
  51475. if (renderState.tail !== null) {
  51476. // We still have tail rows to render.
  51477. if (renderState.tailExpiration === 0) {
  51478. // Heuristic for how long we're willing to spend rendering rows
  51479. // until we just give up and show what we have so far.
  51480. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  51481. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS;
  51482. }
  51483. // Pop a row.
  51484. var next = renderState.tail;
  51485. renderState.rendering = next;
  51486. renderState.tail = next.sibling;
  51487. renderState.lastEffect = workInProgress.lastEffect;
  51488. next.sibling = null;
  51489. // Restore the context.
  51490. // TODO: We can probably just avoid popping it instead and only
  51491. // setting it the first time we go from not suspended to suspended.
  51492. var suspenseContext = suspenseStackCursor.current;
  51493. if (didSuspendAlready) {
  51494. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  51495. } else {
  51496. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  51497. }
  51498. pushSuspenseContext(workInProgress, suspenseContext);
  51499. // Do a pass over the next row.
  51500. return next;
  51501. }
  51502. break;
  51503. }
  51504. case FundamentalComponent:
  51505. {
  51506. if (enableFundamentalAPI) {
  51507. var fundamentalImpl = workInProgress.type.impl;
  51508. var fundamentalInstance = workInProgress.stateNode;
  51509. if (fundamentalInstance === null) {
  51510. var getInitialState = fundamentalImpl.getInitialState;
  51511. var fundamentalState = void 0;
  51512. if (getInitialState !== undefined) {
  51513. fundamentalState = getInitialState(newProps);
  51514. }
  51515. fundamentalInstance = workInProgress.stateNode = createFundamentalStateInstance(workInProgress, newProps, fundamentalImpl, fundamentalState || {});
  51516. var _instance6 = getFundamentalComponentInstance(fundamentalInstance);
  51517. fundamentalInstance.instance = _instance6;
  51518. if (fundamentalImpl.reconcileChildren === false) {
  51519. return null;
  51520. }
  51521. appendAllChildren(_instance6, workInProgress, false, false);
  51522. mountFundamentalComponent(fundamentalInstance);
  51523. } else {
  51524. // We fire update in commit phase
  51525. var prevProps = fundamentalInstance.props;
  51526. fundamentalInstance.prevProps = prevProps;
  51527. fundamentalInstance.props = newProps;
  51528. fundamentalInstance.currentFiber = workInProgress;
  51529. if (supportsPersistence) {
  51530. var _instance7 = cloneFundamentalInstance(fundamentalInstance);
  51531. fundamentalInstance.instance = _instance7;
  51532. appendAllChildren(_instance7, workInProgress, false, false);
  51533. }
  51534. var shouldUpdate = shouldUpdateFundamentalComponent(fundamentalInstance);
  51535. if (shouldUpdate) {
  51536. markUpdate(workInProgress);
  51537. }
  51538. }
  51539. }
  51540. break;
  51541. }
  51542. default:
  51543. (function () {
  51544. {
  51545. {
  51546. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  51547. }
  51548. }
  51549. })();
  51550. }
  51551. return null;
  51552. }
  51553. function mountEventResponder$1(responder, responderProps, instance, rootContainerInstance, fiber, respondersMap) {
  51554. var responderState = emptyObject;
  51555. var getInitialState = responder.getInitialState;
  51556. if (getInitialState !== null) {
  51557. responderState = getInitialState(responderProps);
  51558. }
  51559. var responderInstance = createResponderInstance(responder, responderProps, responderState, instance, fiber);
  51560. mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance);
  51561. respondersMap.set(responder, responderInstance);
  51562. }
  51563. function updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance) {
  51564. var responder = void 0;
  51565. var props = void 0;
  51566. if (listener) {
  51567. responder = listener.responder;
  51568. props = listener.props;
  51569. }
  51570. (function () {
  51571. if (!(responder && responder.$$typeof === REACT_RESPONDER_TYPE)) {
  51572. {
  51573. throw ReactError(Error('An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponer().'));
  51574. }
  51575. }
  51576. })();
  51577. var listenerProps = props;
  51578. if (visistedResponders.has(responder)) {
  51579. // show warning
  51580. {
  51581. 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);
  51582. }
  51583. return;
  51584. }
  51585. visistedResponders.add(responder);
  51586. var responderInstance = respondersMap.get(responder);
  51587. if (responderInstance === undefined) {
  51588. // Mount
  51589. mountEventResponder$1(responder, listenerProps, instance, rootContainerInstance, fiber, respondersMap);
  51590. } else {
  51591. // Update
  51592. responderInstance.props = listenerProps;
  51593. responderInstance.fiber = fiber;
  51594. }
  51595. }
  51596. function updateEventListeners(listeners, instance, rootContainerInstance, fiber) {
  51597. var visistedResponders = new Set();
  51598. var dependencies = fiber.dependencies;
  51599. if (listeners != null) {
  51600. if (dependencies === null) {
  51601. dependencies = fiber.dependencies = {
  51602. expirationTime: NoWork,
  51603. firstContext: null,
  51604. responders: new Map()
  51605. };
  51606. }
  51607. var respondersMap = dependencies.responders;
  51608. if (respondersMap === null) {
  51609. respondersMap = new Map();
  51610. }
  51611. if (isArray$2(listeners)) {
  51612. for (var i = 0, length = listeners.length; i < length; i++) {
  51613. var listener = listeners[i];
  51614. updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  51615. }
  51616. } else {
  51617. updateEventListener(listeners, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  51618. }
  51619. }
  51620. if (dependencies !== null) {
  51621. var _respondersMap = dependencies.responders;
  51622. if (_respondersMap !== null) {
  51623. // Unmount
  51624. var mountedResponders = Array.from(_respondersMap.keys());
  51625. for (var _i = 0, _length = mountedResponders.length; _i < _length; _i++) {
  51626. var mountedResponder = mountedResponders[_i];
  51627. if (!visistedResponders.has(mountedResponder)) {
  51628. var responderInstance = _respondersMap.get(mountedResponder);
  51629. unmountResponderInstance(responderInstance);
  51630. _respondersMap.delete(mountedResponder);
  51631. }
  51632. }
  51633. }
  51634. }
  51635. }
  51636. function unwindWork(workInProgress, renderExpirationTime) {
  51637. switch (workInProgress.tag) {
  51638. case ClassComponent:
  51639. {
  51640. var Component = workInProgress.type;
  51641. if (isContextProvider(Component)) {
  51642. popContext(workInProgress);
  51643. }
  51644. var effectTag = workInProgress.effectTag;
  51645. if (effectTag & ShouldCapture) {
  51646. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  51647. return workInProgress;
  51648. }
  51649. return null;
  51650. }
  51651. case HostRoot:
  51652. {
  51653. popHostContainer(workInProgress);
  51654. popTopLevelContextObject(workInProgress);
  51655. var _effectTag = workInProgress.effectTag;
  51656. (function () {
  51657. if (!((_effectTag & DidCapture) === NoEffect)) {
  51658. {
  51659. throw ReactError(Error('The root failed to unmount after an error. This is likely a bug in React. Please file an issue.'));
  51660. }
  51661. }
  51662. })();
  51663. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  51664. return workInProgress;
  51665. }
  51666. case HostComponent:
  51667. {
  51668. // TODO: popHydrationState
  51669. popHostContext(workInProgress);
  51670. return null;
  51671. }
  51672. case SuspenseComponent:
  51673. {
  51674. popSuspenseContext(workInProgress);
  51675. var _effectTag2 = workInProgress.effectTag;
  51676. if (_effectTag2 & ShouldCapture) {
  51677. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  51678. // Captured a suspense effect. Re-render the boundary.
  51679. return workInProgress;
  51680. }
  51681. return null;
  51682. }
  51683. case DehydratedSuspenseComponent:
  51684. {
  51685. if (enableSuspenseServerRenderer) {
  51686. // TODO: popHydrationState
  51687. popSuspenseContext(workInProgress);
  51688. var _effectTag3 = workInProgress.effectTag;
  51689. if (_effectTag3 & ShouldCapture) {
  51690. workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
  51691. // Captured a suspense effect. Re-render the boundary.
  51692. return workInProgress;
  51693. }
  51694. }
  51695. return null;
  51696. }
  51697. case SuspenseListComponent:
  51698. {
  51699. popSuspenseContext(workInProgress);
  51700. // SuspenseList doesn't actually catch anything. It should've been
  51701. // caught by a nested boundary. If not, it should bubble through.
  51702. return null;
  51703. }
  51704. case HostPortal:
  51705. popHostContainer(workInProgress);
  51706. return null;
  51707. case ContextProvider:
  51708. popProvider(workInProgress);
  51709. return null;
  51710. default:
  51711. return null;
  51712. }
  51713. }
  51714. function unwindInterruptedWork(interruptedWork) {
  51715. switch (interruptedWork.tag) {
  51716. case ClassComponent:
  51717. {
  51718. var childContextTypes = interruptedWork.type.childContextTypes;
  51719. if (childContextTypes !== null && childContextTypes !== undefined) {
  51720. popContext(interruptedWork);
  51721. }
  51722. break;
  51723. }
  51724. case HostRoot:
  51725. {
  51726. popHostContainer(interruptedWork);
  51727. popTopLevelContextObject(interruptedWork);
  51728. break;
  51729. }
  51730. case HostComponent:
  51731. {
  51732. popHostContext(interruptedWork);
  51733. break;
  51734. }
  51735. case HostPortal:
  51736. popHostContainer(interruptedWork);
  51737. break;
  51738. case SuspenseComponent:
  51739. popSuspenseContext(interruptedWork);
  51740. break;
  51741. case DehydratedSuspenseComponent:
  51742. if (enableSuspenseServerRenderer) {
  51743. // TODO: popHydrationState
  51744. popSuspenseContext(interruptedWork);
  51745. }
  51746. break;
  51747. case SuspenseListComponent:
  51748. popSuspenseContext(interruptedWork);
  51749. break;
  51750. case ContextProvider:
  51751. popProvider(interruptedWork);
  51752. break;
  51753. default:
  51754. break;
  51755. }
  51756. }
  51757. function createCapturedValue(value, source) {
  51758. // If the value is an error, call this function immediately after it is thrown
  51759. // so the stack is accurate.
  51760. return {
  51761. value: value,
  51762. source: source,
  51763. stack: getStackByFiberInDevAndProd(source)
  51764. };
  51765. }
  51766. // This module is forked in different environments.
  51767. // By default, return `true` to log errors to the console.
  51768. // Forks can return `false` if this isn't desirable.
  51769. function showErrorDialog(capturedError) {
  51770. return true;
  51771. }
  51772. function logCapturedError(capturedError) {
  51773. var logError = showErrorDialog(capturedError);
  51774. // Allow injected showErrorDialog() to prevent default console.error logging.
  51775. // This enables renderers like ReactNative to better manage redbox behavior.
  51776. if (logError === false) {
  51777. return;
  51778. }
  51779. var error = capturedError.error;
  51780. {
  51781. var componentName = capturedError.componentName,
  51782. componentStack = capturedError.componentStack,
  51783. errorBoundaryName = capturedError.errorBoundaryName,
  51784. errorBoundaryFound = capturedError.errorBoundaryFound,
  51785. willRetry = capturedError.willRetry;
  51786. // Browsers support silencing uncaught errors by calling
  51787. // `preventDefault()` in window `error` handler.
  51788. // We record this information as an expando on the error.
  51789. if (error != null && error._suppressLogging) {
  51790. if (errorBoundaryFound && willRetry) {
  51791. // The error is recoverable and was silenced.
  51792. // Ignore it and don't print the stack addendum.
  51793. // This is handy for testing error boundaries without noise.
  51794. return;
  51795. }
  51796. // The error is fatal. Since the silencing might have
  51797. // been accidental, we'll surface it anyway.
  51798. // However, the browser would have silenced the original error
  51799. // so we'll print it first, and then print the stack addendum.
  51800. console.error(error);
  51801. // For a more detailed description of this block, see:
  51802. // https://github.com/facebook/react/pull/13384
  51803. }
  51804. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  51805. var errorBoundaryMessage = void 0;
  51806. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  51807. if (errorBoundaryFound && errorBoundaryName) {
  51808. if (willRetry) {
  51809. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  51810. } else {
  51811. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  51812. }
  51813. } else {
  51814. 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.';
  51815. }
  51816. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  51817. // In development, we provide our own message with just the component stack.
  51818. // We don't include the original error message and JS stack because the browser
  51819. // has already printed it. Even if the application swallows the error, it is still
  51820. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  51821. console.error(combinedMessage);
  51822. }
  51823. }
  51824. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  51825. {
  51826. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  51827. }
  51828. var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;
  51829. function logError(boundary, errorInfo) {
  51830. var source = errorInfo.source;
  51831. var stack = errorInfo.stack;
  51832. if (stack === null && source !== null) {
  51833. stack = getStackByFiberInDevAndProd(source);
  51834. }
  51835. var capturedError = {
  51836. componentName: source !== null ? getComponentName(source.type) : null,
  51837. componentStack: stack !== null ? stack : '',
  51838. error: errorInfo.value,
  51839. errorBoundary: null,
  51840. errorBoundaryName: null,
  51841. errorBoundaryFound: false,
  51842. willRetry: false
  51843. };
  51844. if (boundary !== null && boundary.tag === ClassComponent) {
  51845. capturedError.errorBoundary = boundary.stateNode;
  51846. capturedError.errorBoundaryName = getComponentName(boundary.type);
  51847. capturedError.errorBoundaryFound = true;
  51848. capturedError.willRetry = true;
  51849. }
  51850. try {
  51851. logCapturedError(capturedError);
  51852. } catch (e) {
  51853. // This method must not throw, or React internal state will get messed up.
  51854. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  51855. // we want to report this error outside of the normal stack as a last resort.
  51856. // https://github.com/facebook/react/issues/13188
  51857. setTimeout(function () {
  51858. throw e;
  51859. });
  51860. }
  51861. }
  51862. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  51863. startPhaseTimer(current$$1, 'componentWillUnmount');
  51864. instance.props = current$$1.memoizedProps;
  51865. instance.state = current$$1.memoizedState;
  51866. instance.componentWillUnmount();
  51867. stopPhaseTimer();
  51868. };
  51869. // Capture errors so they don't interrupt unmounting.
  51870. function safelyCallComponentWillUnmount(current$$1, instance) {
  51871. {
  51872. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  51873. if (hasCaughtError()) {
  51874. var unmountError = clearCaughtError();
  51875. captureCommitPhaseError(current$$1, unmountError);
  51876. }
  51877. }
  51878. }
  51879. function safelyDetachRef(current$$1) {
  51880. var ref = current$$1.ref;
  51881. if (ref !== null) {
  51882. if (typeof ref === 'function') {
  51883. {
  51884. invokeGuardedCallback(null, ref, null, null);
  51885. if (hasCaughtError()) {
  51886. var refError = clearCaughtError();
  51887. captureCommitPhaseError(current$$1, refError);
  51888. }
  51889. }
  51890. } else {
  51891. ref.current = null;
  51892. }
  51893. }
  51894. }
  51895. function safelyCallDestroy(current$$1, destroy) {
  51896. {
  51897. invokeGuardedCallback(null, destroy, null);
  51898. if (hasCaughtError()) {
  51899. var error = clearCaughtError();
  51900. captureCommitPhaseError(current$$1, error);
  51901. }
  51902. }
  51903. }
  51904. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  51905. switch (finishedWork.tag) {
  51906. case FunctionComponent:
  51907. case ForwardRef:
  51908. case SimpleMemoComponent:
  51909. {
  51910. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  51911. return;
  51912. }
  51913. case ClassComponent:
  51914. {
  51915. if (finishedWork.effectTag & Snapshot) {
  51916. if (current$$1 !== null) {
  51917. var prevProps = current$$1.memoizedProps;
  51918. var prevState = current$$1.memoizedState;
  51919. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  51920. var instance = finishedWork.stateNode;
  51921. // We could update instance props and state here,
  51922. // but instead we rely on them being set during last render.
  51923. // TODO: revisit this when we implement resuming.
  51924. {
  51925. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  51926. !(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;
  51927. !(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;
  51928. }
  51929. }
  51930. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  51931. {
  51932. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  51933. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  51934. didWarnSet.add(finishedWork.type);
  51935. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  51936. }
  51937. }
  51938. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  51939. stopPhaseTimer();
  51940. }
  51941. }
  51942. return;
  51943. }
  51944. case HostRoot:
  51945. case HostComponent:
  51946. case HostText:
  51947. case HostPortal:
  51948. case IncompleteClassComponent:
  51949. // Nothing to do for these component types
  51950. return;
  51951. default:
  51952. {
  51953. (function () {
  51954. {
  51955. {
  51956. 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.'));
  51957. }
  51958. }
  51959. })();
  51960. }
  51961. }
  51962. }
  51963. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  51964. var updateQueue = finishedWork.updateQueue;
  51965. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  51966. if (lastEffect !== null) {
  51967. var firstEffect = lastEffect.next;
  51968. var effect = firstEffect;
  51969. do {
  51970. if ((effect.tag & unmountTag) !== NoEffect$1) {
  51971. // Unmount
  51972. var destroy = effect.destroy;
  51973. effect.destroy = undefined;
  51974. if (destroy !== undefined) {
  51975. destroy();
  51976. }
  51977. }
  51978. if ((effect.tag & mountTag) !== NoEffect$1) {
  51979. // Mount
  51980. var create = effect.create;
  51981. effect.destroy = create();
  51982. {
  51983. var _destroy = effect.destroy;
  51984. if (_destroy !== undefined && typeof _destroy !== 'function') {
  51985. var addendum = void 0;
  51986. if (_destroy === null) {
  51987. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  51988. } else if (typeof _destroy.then === 'function') {
  51989. 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';
  51990. } else {
  51991. addendum = ' You returned: ' + _destroy;
  51992. }
  51993. warningWithoutStack$1(false, 'An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  51994. }
  51995. }
  51996. }
  51997. effect = effect.next;
  51998. } while (effect !== firstEffect);
  51999. }
  52000. }
  52001. function commitPassiveHookEffects(finishedWork) {
  52002. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  52003. switch (finishedWork.tag) {
  52004. case FunctionComponent:
  52005. case ForwardRef:
  52006. case SimpleMemoComponent:
  52007. {
  52008. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  52009. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  52010. break;
  52011. }
  52012. default:
  52013. break;
  52014. }
  52015. }
  52016. }
  52017. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  52018. switch (finishedWork.tag) {
  52019. case FunctionComponent:
  52020. case ForwardRef:
  52021. case SimpleMemoComponent:
  52022. {
  52023. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  52024. break;
  52025. }
  52026. case ClassComponent:
  52027. {
  52028. var instance = finishedWork.stateNode;
  52029. if (finishedWork.effectTag & Update) {
  52030. if (current$$1 === null) {
  52031. startPhaseTimer(finishedWork, 'componentDidMount');
  52032. // We could update instance props and state here,
  52033. // but instead we rely on them being set during last render.
  52034. // TODO: revisit this when we implement resuming.
  52035. {
  52036. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52037. !(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;
  52038. !(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;
  52039. }
  52040. }
  52041. instance.componentDidMount();
  52042. stopPhaseTimer();
  52043. } else {
  52044. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  52045. var prevState = current$$1.memoizedState;
  52046. startPhaseTimer(finishedWork, 'componentDidUpdate');
  52047. // We could update instance props and state here,
  52048. // but instead we rely on them being set during last render.
  52049. // TODO: revisit this when we implement resuming.
  52050. {
  52051. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52052. !(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;
  52053. !(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;
  52054. }
  52055. }
  52056. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  52057. stopPhaseTimer();
  52058. }
  52059. }
  52060. var updateQueue = finishedWork.updateQueue;
  52061. if (updateQueue !== null) {
  52062. {
  52063. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  52064. !(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;
  52065. !(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;
  52066. }
  52067. }
  52068. // We could update instance props and state here,
  52069. // but instead we rely on them being set during last render.
  52070. // TODO: revisit this when we implement resuming.
  52071. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  52072. }
  52073. return;
  52074. }
  52075. case HostRoot:
  52076. {
  52077. var _updateQueue = finishedWork.updateQueue;
  52078. if (_updateQueue !== null) {
  52079. var _instance = null;
  52080. if (finishedWork.child !== null) {
  52081. switch (finishedWork.child.tag) {
  52082. case HostComponent:
  52083. _instance = getPublicInstance(finishedWork.child.stateNode);
  52084. break;
  52085. case ClassComponent:
  52086. _instance = finishedWork.child.stateNode;
  52087. break;
  52088. }
  52089. }
  52090. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  52091. }
  52092. return;
  52093. }
  52094. case HostComponent:
  52095. {
  52096. var _instance2 = finishedWork.stateNode;
  52097. // Renderers may schedule work to be done after host components are mounted
  52098. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  52099. // These effects should only be committed when components are first mounted,
  52100. // aka when there is no current/alternate.
  52101. if (current$$1 === null && finishedWork.effectTag & Update) {
  52102. var type = finishedWork.type;
  52103. var props = finishedWork.memoizedProps;
  52104. commitMount(_instance2, type, props, finishedWork);
  52105. }
  52106. return;
  52107. }
  52108. case HostText:
  52109. {
  52110. // We have no life-cycles associated with text.
  52111. return;
  52112. }
  52113. case HostPortal:
  52114. {
  52115. // We have no life-cycles associated with portals.
  52116. return;
  52117. }
  52118. case Profiler:
  52119. {
  52120. if (enableProfilerTimer) {
  52121. var onRender = finishedWork.memoizedProps.onRender;
  52122. if (typeof onRender === 'function') {
  52123. if (enableSchedulerTracing) {
  52124. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  52125. } else {
  52126. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  52127. }
  52128. }
  52129. }
  52130. return;
  52131. }
  52132. case SuspenseComponent:
  52133. case SuspenseListComponent:
  52134. case IncompleteClassComponent:
  52135. case FundamentalComponent:
  52136. return;
  52137. default:
  52138. {
  52139. (function () {
  52140. {
  52141. {
  52142. 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.'));
  52143. }
  52144. }
  52145. })();
  52146. }
  52147. }
  52148. }
  52149. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  52150. if (supportsMutation) {
  52151. // We only have the top Fiber that was inserted but we need to recurse down its
  52152. var node = finishedWork;
  52153. while (true) {
  52154. if (node.tag === HostComponent) {
  52155. var instance = node.stateNode;
  52156. if (isHidden) {
  52157. hideInstance(instance);
  52158. } else {
  52159. unhideInstance(node.stateNode, node.memoizedProps);
  52160. }
  52161. } else if (node.tag === HostText) {
  52162. var _instance3 = node.stateNode;
  52163. if (isHidden) {
  52164. hideTextInstance(_instance3);
  52165. } else {
  52166. unhideTextInstance(_instance3, node.memoizedProps);
  52167. }
  52168. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  52169. // Found a nested Suspense component that timed out. Skip over the
  52170. var fallbackChildFragment = node.child.sibling;
  52171. fallbackChildFragment.return = node;
  52172. node = fallbackChildFragment;
  52173. continue;
  52174. } else if (node.child !== null) {
  52175. node.child.return = node;
  52176. node = node.child;
  52177. continue;
  52178. }
  52179. if (node === finishedWork) {
  52180. return;
  52181. }
  52182. while (node.sibling === null) {
  52183. if (node.return === null || node.return === finishedWork) {
  52184. return;
  52185. }
  52186. node = node.return;
  52187. }
  52188. node.sibling.return = node.return;
  52189. node = node.sibling;
  52190. }
  52191. }
  52192. }
  52193. function commitAttachRef(finishedWork) {
  52194. var ref = finishedWork.ref;
  52195. if (ref !== null) {
  52196. var instance = finishedWork.stateNode;
  52197. var instanceToUse = void 0;
  52198. switch (finishedWork.tag) {
  52199. case HostComponent:
  52200. instanceToUse = getPublicInstance(instance);
  52201. break;
  52202. default:
  52203. instanceToUse = instance;
  52204. }
  52205. if (typeof ref === 'function') {
  52206. ref(instanceToUse);
  52207. } else {
  52208. {
  52209. if (!ref.hasOwnProperty('current')) {
  52210. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  52211. }
  52212. }
  52213. ref.current = instanceToUse;
  52214. }
  52215. }
  52216. }
  52217. function commitDetachRef(current$$1) {
  52218. var currentRef = current$$1.ref;
  52219. if (currentRef !== null) {
  52220. if (typeof currentRef === 'function') {
  52221. currentRef(null);
  52222. } else {
  52223. currentRef.current = null;
  52224. }
  52225. }
  52226. }
  52227. // User-originating errors (lifecycles and refs) should not interrupt
  52228. // deletion, so don't let them throw. Host-originating errors should
  52229. // interrupt deletion, so it's okay
  52230. function commitUnmount(current$$1, renderPriorityLevel) {
  52231. onCommitUnmount(current$$1);
  52232. switch (current$$1.tag) {
  52233. case FunctionComponent:
  52234. case ForwardRef:
  52235. case MemoComponent:
  52236. case SimpleMemoComponent:
  52237. {
  52238. var updateQueue = current$$1.updateQueue;
  52239. if (updateQueue !== null) {
  52240. var lastEffect = updateQueue.lastEffect;
  52241. if (lastEffect !== null) {
  52242. var firstEffect = lastEffect.next;
  52243. // When the owner fiber is deleted, the destroy function of a passive
  52244. // effect hook is called during the synchronous commit phase. This is
  52245. // a concession to implementation complexity. Calling it in the
  52246. // passive effect phase (like they usually are, when dependencies
  52247. // change during an update) would require either traversing the
  52248. // children of the deleted fiber again, or including unmount effects
  52249. // as part of the fiber effect list.
  52250. //
  52251. // Because this is during the sync commit phase, we need to change
  52252. // the priority.
  52253. //
  52254. // TODO: Reconsider this implementation trade off.
  52255. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  52256. runWithPriority$2(priorityLevel, function () {
  52257. var effect = firstEffect;
  52258. do {
  52259. var destroy = effect.destroy;
  52260. if (destroy !== undefined) {
  52261. safelyCallDestroy(current$$1, destroy);
  52262. }
  52263. effect = effect.next;
  52264. } while (effect !== firstEffect);
  52265. });
  52266. }
  52267. }
  52268. break;
  52269. }
  52270. case ClassComponent:
  52271. {
  52272. safelyDetachRef(current$$1);
  52273. var instance = current$$1.stateNode;
  52274. if (typeof instance.componentWillUnmount === 'function') {
  52275. safelyCallComponentWillUnmount(current$$1, instance);
  52276. }
  52277. return;
  52278. }
  52279. case HostComponent:
  52280. {
  52281. if (enableFlareAPI) {
  52282. var dependencies = current$$1.dependencies;
  52283. if (dependencies !== null) {
  52284. var respondersMap = dependencies.responders;
  52285. if (respondersMap !== null) {
  52286. var responderInstances = Array.from(respondersMap.values());
  52287. for (var i = 0, length = responderInstances.length; i < length; i++) {
  52288. var responderInstance = responderInstances[i];
  52289. unmountResponderInstance(responderInstance);
  52290. }
  52291. dependencies.responders = null;
  52292. }
  52293. }
  52294. }
  52295. safelyDetachRef(current$$1);
  52296. return;
  52297. }
  52298. case HostPortal:
  52299. {
  52300. // TODO: this is recursive.
  52301. // We are also not using this parent because
  52302. // the portal will get pushed immediately.
  52303. if (supportsMutation) {
  52304. unmountHostComponents(current$$1, renderPriorityLevel);
  52305. } else if (supportsPersistence) {
  52306. emptyPortalContainer(current$$1);
  52307. }
  52308. return;
  52309. }
  52310. case FundamentalComponent:
  52311. {
  52312. if (enableFundamentalAPI) {
  52313. var fundamentalInstance = current$$1.stateNode;
  52314. if (fundamentalInstance !== null) {
  52315. unmountFundamentalComponent(fundamentalInstance);
  52316. current$$1.stateNode = null;
  52317. }
  52318. }
  52319. }
  52320. }
  52321. }
  52322. function commitNestedUnmounts(root, renderPriorityLevel) {
  52323. // While we're inside a removed host node we don't want to call
  52324. // removeChild on the inner nodes because they're removed by the top
  52325. // call anyway. We also want to call componentWillUnmount on all
  52326. // composites before this host node is removed from the tree. Therefore
  52327. var node = root;
  52328. while (true) {
  52329. commitUnmount(node, renderPriorityLevel);
  52330. // Visit children because they may contain more composite or host nodes.
  52331. // Skip portals because commitUnmount() currently visits them recursively.
  52332. if (node.child !== null && (
  52333. // If we use mutation we drill down into portals using commitUnmount above.
  52334. // If we don't use mutation we drill down into portals here instead.
  52335. !supportsMutation || node.tag !== HostPortal)) {
  52336. node.child.return = node;
  52337. node = node.child;
  52338. continue;
  52339. }
  52340. if (node === root) {
  52341. return;
  52342. }
  52343. while (node.sibling === null) {
  52344. if (node.return === null || node.return === root) {
  52345. return;
  52346. }
  52347. node = node.return;
  52348. }
  52349. node.sibling.return = node.return;
  52350. node = node.sibling;
  52351. }
  52352. }
  52353. function detachFiber(current$$1) {
  52354. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  52355. // should clear the child pointer of the parent alternate to let this
  52356. // get GC:ed but we don't know which for sure which parent is the current
  52357. // one so we'll settle for GC:ing the subtree of this child. This child
  52358. // itself will be GC:ed when the parent updates the next time.
  52359. current$$1.return = null;
  52360. current$$1.child = null;
  52361. current$$1.memoizedState = null;
  52362. current$$1.updateQueue = null;
  52363. current$$1.dependencies = null;
  52364. var alternate = current$$1.alternate;
  52365. if (alternate !== null) {
  52366. alternate.return = null;
  52367. alternate.child = null;
  52368. alternate.memoizedState = null;
  52369. alternate.updateQueue = null;
  52370. alternate.dependencies = null;
  52371. }
  52372. }
  52373. function emptyPortalContainer(current$$1) {
  52374. if (!supportsPersistence) {
  52375. return;
  52376. }
  52377. var portal = current$$1.stateNode;
  52378. var containerInfo = portal.containerInfo;
  52379. var emptyChildSet = createContainerChildSet(containerInfo);
  52380. replaceContainerChildren(containerInfo, emptyChildSet);
  52381. }
  52382. function commitContainer(finishedWork) {
  52383. if (!supportsPersistence) {
  52384. return;
  52385. }
  52386. switch (finishedWork.tag) {
  52387. case ClassComponent:
  52388. case HostComponent:
  52389. case HostText:
  52390. case FundamentalComponent:
  52391. {
  52392. return;
  52393. }
  52394. case HostRoot:
  52395. case HostPortal:
  52396. {
  52397. var portalOrRoot = finishedWork.stateNode;
  52398. var containerInfo = portalOrRoot.containerInfo,
  52399. _pendingChildren = portalOrRoot.pendingChildren;
  52400. replaceContainerChildren(containerInfo, _pendingChildren);
  52401. return;
  52402. }
  52403. default:
  52404. {
  52405. (function () {
  52406. {
  52407. {
  52408. 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.'));
  52409. }
  52410. }
  52411. })();
  52412. }
  52413. }
  52414. }
  52415. function getHostParentFiber(fiber) {
  52416. var parent = fiber.return;
  52417. while (parent !== null) {
  52418. if (isHostParent(parent)) {
  52419. return parent;
  52420. }
  52421. parent = parent.return;
  52422. }
  52423. (function () {
  52424. {
  52425. {
  52426. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  52427. }
  52428. }
  52429. })();
  52430. }
  52431. function isHostParent(fiber) {
  52432. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  52433. }
  52434. function getHostSibling(fiber) {
  52435. // We're going to search forward into the tree until we find a sibling host
  52436. // node. Unfortunately, if multiple insertions are done in a row we have to
  52437. // search past them. This leads to exponential search for the next sibling.
  52438. var node = fiber;
  52439. siblings: while (true) {
  52440. // If we didn't find anything, let's try the next sibling.
  52441. while (node.sibling === null) {
  52442. if (node.return === null || isHostParent(node.return)) {
  52443. // If we pop out of the root or hit the parent the fiber we are the
  52444. // last sibling.
  52445. return null;
  52446. }
  52447. node = node.return;
  52448. }
  52449. node.sibling.return = node.return;
  52450. node = node.sibling;
  52451. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {
  52452. // If it is not host node and, we might have a host node inside it.
  52453. // Try to search down until we find one.
  52454. if (node.effectTag & Placement) {
  52455. // If we don't have a child, try the siblings instead.
  52456. continue siblings;
  52457. }
  52458. // If we don't have a child, try the siblings instead.
  52459. // We also skip portals because they are not part of this host tree.
  52460. if (node.child === null || node.tag === HostPortal) {
  52461. continue siblings;
  52462. } else {
  52463. node.child.return = node;
  52464. node = node.child;
  52465. }
  52466. }
  52467. // Check if this host node is stable or about to be placed.
  52468. if (!(node.effectTag & Placement)) {
  52469. // Found it!
  52470. return node.stateNode;
  52471. }
  52472. }
  52473. }
  52474. function commitPlacement(finishedWork) {
  52475. if (!supportsMutation) {
  52476. return;
  52477. }
  52478. // Recursively insert all host nodes into the parent.
  52479. var parentFiber = getHostParentFiber(finishedWork);
  52480. // Note: these two variables *must* always be updated together.
  52481. var parent = void 0;
  52482. var isContainer = void 0;
  52483. var parentStateNode = parentFiber.stateNode;
  52484. switch (parentFiber.tag) {
  52485. case HostComponent:
  52486. parent = parentStateNode;
  52487. isContainer = false;
  52488. break;
  52489. case HostRoot:
  52490. parent = parentStateNode.containerInfo;
  52491. isContainer = true;
  52492. break;
  52493. case HostPortal:
  52494. parent = parentStateNode.containerInfo;
  52495. isContainer = true;
  52496. break;
  52497. case FundamentalComponent:
  52498. if (enableFundamentalAPI) {
  52499. parent = parentStateNode.instance;
  52500. isContainer = false;
  52501. }
  52502. // eslint-disable-next-line-no-fallthrough
  52503. default:
  52504. (function () {
  52505. {
  52506. {
  52507. throw ReactError(Error('Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.'));
  52508. }
  52509. }
  52510. })();
  52511. }
  52512. if (parentFiber.effectTag & ContentReset) {
  52513. // Reset the text content of the parent before doing any insertions
  52514. resetTextContent(parent);
  52515. // Clear ContentReset from the effect tag
  52516. parentFiber.effectTag &= ~ContentReset;
  52517. }
  52518. var before = getHostSibling(finishedWork);
  52519. // We only have the top Fiber that was inserted but we need to recurse down its
  52520. // children to find all the terminal nodes.
  52521. var node = finishedWork;
  52522. while (true) {
  52523. var isHost = node.tag === HostComponent || node.tag === HostText;
  52524. if (isHost || node.tag === FundamentalComponent) {
  52525. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  52526. if (before) {
  52527. if (isContainer) {
  52528. insertInContainerBefore(parent, stateNode, before);
  52529. } else {
  52530. insertBefore(parent, stateNode, before);
  52531. }
  52532. } else {
  52533. if (isContainer) {
  52534. appendChildToContainer(parent, stateNode);
  52535. } else {
  52536. appendChild(parent, stateNode);
  52537. }
  52538. }
  52539. } else if (node.tag === HostPortal) {
  52540. // If the insertion itself is a portal, then we don't want to traverse
  52541. // down its children. Instead, we'll get insertions from each child in
  52542. // the portal directly.
  52543. } else if (node.child !== null) {
  52544. node.child.return = node;
  52545. node = node.child;
  52546. continue;
  52547. }
  52548. if (node === finishedWork) {
  52549. return;
  52550. }
  52551. while (node.sibling === null) {
  52552. if (node.return === null || node.return === finishedWork) {
  52553. return;
  52554. }
  52555. node = node.return;
  52556. }
  52557. node.sibling.return = node.return;
  52558. node = node.sibling;
  52559. }
  52560. }
  52561. function unmountHostComponents(current$$1, renderPriorityLevel) {
  52562. // We only have the top Fiber that was deleted but we need to recurse down its
  52563. var node = current$$1;
  52564. // Each iteration, currentParent is populated with node's host parent if not
  52565. // currentParentIsValid.
  52566. var currentParentIsValid = false;
  52567. // Note: these two variables *must* always be updated together.
  52568. var currentParent = void 0;
  52569. var currentParentIsContainer = void 0;
  52570. while (true) {
  52571. if (!currentParentIsValid) {
  52572. var parent = node.return;
  52573. findParent: while (true) {
  52574. (function () {
  52575. if (!(parent !== null)) {
  52576. {
  52577. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  52578. }
  52579. }
  52580. })();
  52581. var parentStateNode = parent.stateNode;
  52582. switch (parent.tag) {
  52583. case HostComponent:
  52584. currentParent = parentStateNode;
  52585. currentParentIsContainer = false;
  52586. break findParent;
  52587. case HostRoot:
  52588. currentParent = parentStateNode.containerInfo;
  52589. currentParentIsContainer = true;
  52590. break findParent;
  52591. case HostPortal:
  52592. currentParent = parentStateNode.containerInfo;
  52593. currentParentIsContainer = true;
  52594. break findParent;
  52595. case FundamentalComponent:
  52596. if (enableFundamentalAPI) {
  52597. currentParent = parentStateNode.instance;
  52598. currentParentIsContainer = false;
  52599. }
  52600. }
  52601. parent = parent.return;
  52602. }
  52603. currentParentIsValid = true;
  52604. }
  52605. if (node.tag === HostComponent || node.tag === HostText) {
  52606. commitNestedUnmounts(node, renderPriorityLevel);
  52607. // After all the children have unmounted, it is now safe to remove the
  52608. // node from the tree.
  52609. if (currentParentIsContainer) {
  52610. removeChildFromContainer(currentParent, node.stateNode);
  52611. } else {
  52612. removeChild(currentParent, node.stateNode);
  52613. }
  52614. // Don't visit children because we already visited them.
  52615. } else if (node.tag === FundamentalComponent) {
  52616. var fundamentalNode = node.stateNode.instance;
  52617. commitNestedUnmounts(node, renderPriorityLevel);
  52618. // After all the children have unmounted, it is now safe to remove the
  52619. // node from the tree.
  52620. if (currentParentIsContainer) {
  52621. removeChildFromContainer(currentParent, fundamentalNode);
  52622. } else {
  52623. removeChild(currentParent, fundamentalNode);
  52624. }
  52625. } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {
  52626. // Delete the dehydrated suspense boundary and all of its content.
  52627. if (currentParentIsContainer) {
  52628. clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);
  52629. } else {
  52630. clearSuspenseBoundary(currentParent, node.stateNode);
  52631. }
  52632. } else if (node.tag === HostPortal) {
  52633. if (node.child !== null) {
  52634. // When we go into a portal, it becomes the parent to remove from.
  52635. // We will reassign it back when we pop the portal on the way up.
  52636. currentParent = node.stateNode.containerInfo;
  52637. currentParentIsContainer = true;
  52638. // Visit children because portals might contain host components.
  52639. node.child.return = node;
  52640. node = node.child;
  52641. continue;
  52642. }
  52643. } else {
  52644. commitUnmount(node, renderPriorityLevel);
  52645. // Visit children because we may find more host components below.
  52646. if (node.child !== null) {
  52647. node.child.return = node;
  52648. node = node.child;
  52649. continue;
  52650. }
  52651. }
  52652. if (node === current$$1) {
  52653. return;
  52654. }
  52655. while (node.sibling === null) {
  52656. if (node.return === null || node.return === current$$1) {
  52657. return;
  52658. }
  52659. node = node.return;
  52660. if (node.tag === HostPortal) {
  52661. // When we go out of the portal, we need to restore the parent.
  52662. // Since we don't keep a stack of them, we will search for it.
  52663. currentParentIsValid = false;
  52664. }
  52665. }
  52666. node.sibling.return = node.return;
  52667. node = node.sibling;
  52668. }
  52669. }
  52670. function commitDeletion(current$$1, renderPriorityLevel) {
  52671. if (supportsMutation) {
  52672. // Recursively delete all host nodes from the parent.
  52673. // Detach refs and call componentWillUnmount() on the whole subtree.
  52674. unmountHostComponents(current$$1, renderPriorityLevel);
  52675. } else {
  52676. // Detach refs and call componentWillUnmount() on the whole subtree.
  52677. commitNestedUnmounts(current$$1, renderPriorityLevel);
  52678. }
  52679. detachFiber(current$$1);
  52680. }
  52681. function commitWork(current$$1, finishedWork) {
  52682. if (!supportsMutation) {
  52683. switch (finishedWork.tag) {
  52684. case FunctionComponent:
  52685. case ForwardRef:
  52686. case MemoComponent:
  52687. case SimpleMemoComponent:
  52688. {
  52689. // Note: We currently never use MountMutation, but useLayout uses
  52690. // UnmountMutation.
  52691. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  52692. return;
  52693. }
  52694. case Profiler:
  52695. {
  52696. return;
  52697. }
  52698. case SuspenseComponent:
  52699. {
  52700. commitSuspenseComponent(finishedWork);
  52701. attachSuspenseRetryListeners(finishedWork);
  52702. return;
  52703. }
  52704. case SuspenseListComponent:
  52705. {
  52706. attachSuspenseRetryListeners(finishedWork);
  52707. return;
  52708. }
  52709. }
  52710. commitContainer(finishedWork);
  52711. return;
  52712. }
  52713. switch (finishedWork.tag) {
  52714. case FunctionComponent:
  52715. case ForwardRef:
  52716. case MemoComponent:
  52717. case SimpleMemoComponent:
  52718. {
  52719. // Note: We currently never use MountMutation, but useLayout uses
  52720. // UnmountMutation.
  52721. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  52722. return;
  52723. }
  52724. case ClassComponent:
  52725. {
  52726. return;
  52727. }
  52728. case HostComponent:
  52729. {
  52730. var instance = finishedWork.stateNode;
  52731. if (instance != null) {
  52732. // Commit the work prepared earlier.
  52733. var newProps = finishedWork.memoizedProps;
  52734. // For hydration we reuse the update path but we treat the oldProps
  52735. // as the newProps. The updatePayload will contain the real change in
  52736. // this case.
  52737. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  52738. var type = finishedWork.type;
  52739. // TODO: Type the updateQueue to be specific to host components.
  52740. var updatePayload = finishedWork.updateQueue;
  52741. finishedWork.updateQueue = null;
  52742. if (updatePayload !== null) {
  52743. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  52744. }
  52745. }
  52746. return;
  52747. }
  52748. case HostText:
  52749. {
  52750. (function () {
  52751. if (!(finishedWork.stateNode !== null)) {
  52752. {
  52753. throw ReactError(Error('This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.'));
  52754. }
  52755. }
  52756. })();
  52757. var textInstance = finishedWork.stateNode;
  52758. var newText = finishedWork.memoizedProps;
  52759. // For hydration we reuse the update path but we treat the oldProps
  52760. // as the newProps. The updatePayload will contain the real change in
  52761. // this case.
  52762. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  52763. commitTextUpdate(textInstance, oldText, newText);
  52764. return;
  52765. }
  52766. case HostRoot:
  52767. {
  52768. return;
  52769. }
  52770. case Profiler:
  52771. {
  52772. return;
  52773. }
  52774. case SuspenseComponent:
  52775. {
  52776. commitSuspenseComponent(finishedWork);
  52777. attachSuspenseRetryListeners(finishedWork);
  52778. return;
  52779. }
  52780. case SuspenseListComponent:
  52781. {
  52782. attachSuspenseRetryListeners(finishedWork);
  52783. return;
  52784. }
  52785. case IncompleteClassComponent:
  52786. {
  52787. return;
  52788. }
  52789. case FundamentalComponent:
  52790. {
  52791. if (enableFundamentalAPI) {
  52792. var fundamentalInstance = finishedWork.stateNode;
  52793. updateFundamentalComponent(fundamentalInstance);
  52794. }
  52795. return;
  52796. }
  52797. default:
  52798. {
  52799. (function () {
  52800. {
  52801. {
  52802. 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.'));
  52803. }
  52804. }
  52805. })();
  52806. }
  52807. }
  52808. }
  52809. function commitSuspenseComponent(finishedWork) {
  52810. var newState = finishedWork.memoizedState;
  52811. var newDidTimeout = void 0;
  52812. var primaryChildParent = finishedWork;
  52813. if (newState === null) {
  52814. newDidTimeout = false;
  52815. } else {
  52816. newDidTimeout = true;
  52817. primaryChildParent = finishedWork.child;
  52818. markCommitTimeOfFallback();
  52819. }
  52820. if (supportsMutation && primaryChildParent !== null) {
  52821. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  52822. }
  52823. if (enableSuspenseCallback && newState !== null) {
  52824. var suspenseCallback = finishedWork.memoizedProps.suspenseCallback;
  52825. if (typeof suspenseCallback === 'function') {
  52826. var thenables = finishedWork.updateQueue;
  52827. if (thenables !== null) {
  52828. suspenseCallback(new Set(thenables));
  52829. }
  52830. } else {
  52831. if (suspenseCallback !== undefined) {
  52832. warning$1(false, 'Unexpected type for suspenseCallback.');
  52833. }
  52834. }
  52835. }
  52836. }
  52837. function attachSuspenseRetryListeners(finishedWork) {
  52838. // If this boundary just timed out, then it will have a set of thenables.
  52839. // For each thenable, attach a listener so that when it resolves, React
  52840. var thenables = finishedWork.updateQueue;
  52841. if (thenables !== null) {
  52842. finishedWork.updateQueue = null;
  52843. var retryCache = finishedWork.stateNode;
  52844. if (retryCache === null) {
  52845. retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();
  52846. }
  52847. thenables.forEach(function (thenable) {
  52848. // Memoize using the boundary fiber to prevent redundant listeners.
  52849. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  52850. if (!retryCache.has(thenable)) {
  52851. if (enableSchedulerTracing) {
  52852. retry = tracing.unstable_wrap(retry);
  52853. }
  52854. retryCache.add(thenable);
  52855. thenable.then(retry, retry);
  52856. }
  52857. });
  52858. }
  52859. }
  52860. function commitResetTextContent(current$$1) {
  52861. if (!supportsMutation) {
  52862. return;
  52863. }
  52864. resetTextContent(current$$1.stateNode);
  52865. }
  52866. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  52867. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  52868. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  52869. var update = createUpdate(expirationTime, null);
  52870. // Unmount the root by rendering null.
  52871. update.tag = CaptureUpdate;
  52872. // Caution: React DevTools currently depends on this property
  52873. // being called "element".
  52874. update.payload = { element: null };
  52875. var error = errorInfo.value;
  52876. update.callback = function () {
  52877. onUncaughtError(error);
  52878. logError(fiber, errorInfo);
  52879. };
  52880. return update;
  52881. }
  52882. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  52883. var update = createUpdate(expirationTime, null);
  52884. update.tag = CaptureUpdate;
  52885. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  52886. if (typeof getDerivedStateFromError === 'function') {
  52887. var error = errorInfo.value;
  52888. update.payload = function () {
  52889. logError(fiber, errorInfo);
  52890. return getDerivedStateFromError(error);
  52891. };
  52892. }
  52893. var inst = fiber.stateNode;
  52894. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  52895. update.callback = function callback() {
  52896. {
  52897. markFailedErrorBoundaryForHotReloading(fiber);
  52898. }
  52899. if (typeof getDerivedStateFromError !== 'function') {
  52900. // To preserve the preexisting retry behavior of error boundaries,
  52901. // we keep track of which ones already failed during this batch.
  52902. // This gets reset before we yield back to the browser.
  52903. // TODO: Warn in strict mode if getDerivedStateFromError is
  52904. // not defined.
  52905. markLegacyErrorBoundaryAsFailed(this);
  52906. // Only log here if componentDidCatch is the only error boundary method defined
  52907. logError(fiber, errorInfo);
  52908. }
  52909. var error = errorInfo.value;
  52910. var stack = errorInfo.stack;
  52911. this.componentDidCatch(error, {
  52912. componentStack: stack !== null ? stack : ''
  52913. });
  52914. {
  52915. if (typeof getDerivedStateFromError !== 'function') {
  52916. // If componentDidCatch is the only error boundary method defined,
  52917. // then it needs to call setState to recover from errors.
  52918. // If no state update is scheduled then the boundary will swallow the error.
  52919. !(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;
  52920. }
  52921. }
  52922. };
  52923. } else {
  52924. update.callback = function () {
  52925. markFailedErrorBoundaryForHotReloading(fiber);
  52926. };
  52927. }
  52928. return update;
  52929. }
  52930. function attachPingListener(root, renderExpirationTime, thenable) {
  52931. // Attach a listener to the promise to "ping" the root and retry. But
  52932. // only if one does not already exist for the current render expiration
  52933. // time (which acts like a "thread ID" here).
  52934. var pingCache = root.pingCache;
  52935. var threadIDs = void 0;
  52936. if (pingCache === null) {
  52937. pingCache = root.pingCache = new PossiblyWeakMap$1();
  52938. threadIDs = new Set();
  52939. pingCache.set(thenable, threadIDs);
  52940. } else {
  52941. threadIDs = pingCache.get(thenable);
  52942. if (threadIDs === undefined) {
  52943. threadIDs = new Set();
  52944. pingCache.set(thenable, threadIDs);
  52945. }
  52946. }
  52947. if (!threadIDs.has(renderExpirationTime)) {
  52948. // Memoize using the thread ID to prevent redundant listeners.
  52949. threadIDs.add(renderExpirationTime);
  52950. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  52951. if (enableSchedulerTracing) {
  52952. ping = tracing.unstable_wrap(ping);
  52953. }
  52954. thenable.then(ping, ping);
  52955. }
  52956. }
  52957. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  52958. // The source fiber did not complete.
  52959. sourceFiber.effectTag |= Incomplete;
  52960. // Its effect list is no longer valid.
  52961. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  52962. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  52963. // This is a thenable.
  52964. var thenable = value;
  52965. checkForWrongSuspensePriorityInDEV(sourceFiber);
  52966. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext);
  52967. // Schedule the nearest Suspense to re-render the timed out view.
  52968. var _workInProgress = returnFiber;
  52969. do {
  52970. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  52971. // Found the nearest boundary.
  52972. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  52973. var thenables = _workInProgress.updateQueue;
  52974. if (thenables === null) {
  52975. var updateQueue = new Set();
  52976. updateQueue.add(thenable);
  52977. _workInProgress.updateQueue = updateQueue;
  52978. } else {
  52979. thenables.add(thenable);
  52980. }
  52981. // If the boundary is outside of batched mode, we should *not*
  52982. // suspend the commit. Pretend as if the suspended component rendered
  52983. // null and keep rendering. In the commit phase, we'll schedule a
  52984. // subsequent synchronous update to re-render the Suspense.
  52985. //
  52986. // Note: It doesn't matter whether the component that suspended was
  52987. // inside a batched mode tree. If the Suspense is outside of it, we
  52988. // should *not* suspend the commit.
  52989. if ((_workInProgress.mode & BatchedMode) === NoMode) {
  52990. _workInProgress.effectTag |= DidCapture;
  52991. // We're going to commit this fiber even though it didn't complete.
  52992. // But we shouldn't call any lifecycle methods or callbacks. Remove
  52993. // all lifecycle effect tags.
  52994. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  52995. if (sourceFiber.tag === ClassComponent) {
  52996. var currentSourceFiber = sourceFiber.alternate;
  52997. if (currentSourceFiber === null) {
  52998. // This is a new mount. Change the tag so it's not mistaken for a
  52999. // completed class component. For example, we should not call
  53000. // componentWillUnmount if it is deleted.
  53001. sourceFiber.tag = IncompleteClassComponent;
  53002. } else {
  53003. // When we try rendering again, we should not reuse the current fiber,
  53004. // since it's known to be in an inconsistent state. Use a force update to
  53005. // prevent a bail out.
  53006. var update = createUpdate(Sync, null);
  53007. update.tag = ForceUpdate;
  53008. enqueueUpdate(sourceFiber, update);
  53009. }
  53010. }
  53011. // The source fiber did not complete. Mark it with Sync priority to
  53012. // indicate that it still has pending work.
  53013. sourceFiber.expirationTime = Sync;
  53014. // Exit without suspending.
  53015. return;
  53016. }
  53017. // Confirmed that the boundary is in a concurrent mode tree. Continue
  53018. // with the normal suspend path.
  53019. //
  53020. // After this we'll use a set of heuristics to determine whether this
  53021. // render pass will run to completion or restart or "suspend" the commit.
  53022. // The actual logic for this is spread out in different places.
  53023. //
  53024. // This first principle is that if we're going to suspend when we complete
  53025. // a root, then we should also restart if we get an update or ping that
  53026. // might unsuspend it, and vice versa. The only reason to suspend is
  53027. // because you think you might want to restart before committing. However,
  53028. // it doesn't make sense to restart only while in the period we're suspended.
  53029. //
  53030. // Restarting too aggressively is also not good because it starves out any
  53031. // intermediate loading state. So we use heuristics to determine when.
  53032. // Suspense Heuristics
  53033. //
  53034. // If nothing threw a Promise or all the same fallbacks are already showing,
  53035. // then don't suspend/restart.
  53036. //
  53037. // If this is an initial render of a new tree of Suspense boundaries and
  53038. // those trigger a fallback, then don't suspend/restart. We want to ensure
  53039. // that we can show the initial loading state as quickly as possible.
  53040. //
  53041. // If we hit a "Delayed" case, such as when we'd switch from content back into
  53042. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  53043. // this case. If none is defined, JND is used instead.
  53044. //
  53045. // If we're already showing a fallback and it gets "retried", allowing us to show
  53046. // another level, but there's still an inner boundary that would show a fallback,
  53047. // then we suspend/restart for 500ms since the last time we showed a fallback
  53048. // anywhere in the tree. This effectively throttles progressive loading into a
  53049. // consistent train of commits. This also gives us an opportunity to restart to
  53050. // get to the completed state slightly earlier.
  53051. //
  53052. // If there's ambiguity due to batching it's resolved in preference of:
  53053. // 1) "delayed", 2) "initial render", 3) "retry".
  53054. //
  53055. // We want to ensure that a "busy" state doesn't get force committed. We want to
  53056. // ensure that new initial loading states can commit as soon as possible.
  53057. attachPingListener(root, renderExpirationTime, thenable);
  53058. _workInProgress.effectTag |= ShouldCapture;
  53059. _workInProgress.expirationTime = renderExpirationTime;
  53060. return;
  53061. } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {
  53062. attachPingListener(root, renderExpirationTime, thenable);
  53063. // Since we already have a current fiber, we can eagerly add a retry listener.
  53064. var retryCache = _workInProgress.memoizedState;
  53065. if (retryCache === null) {
  53066. retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();
  53067. var current$$1 = _workInProgress.alternate;
  53068. (function () {
  53069. if (!current$$1) {
  53070. {
  53071. throw ReactError(Error('A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.'));
  53072. }
  53073. }
  53074. })();
  53075. current$$1.memoizedState = retryCache;
  53076. }
  53077. // Memoize using the boundary fiber to prevent redundant listeners.
  53078. if (!retryCache.has(thenable)) {
  53079. retryCache.add(thenable);
  53080. var retry = resolveRetryThenable.bind(null, _workInProgress, thenable);
  53081. if (enableSchedulerTracing) {
  53082. retry = tracing.unstable_wrap(retry);
  53083. }
  53084. thenable.then(retry, retry);
  53085. }
  53086. _workInProgress.effectTag |= ShouldCapture;
  53087. _workInProgress.expirationTime = renderExpirationTime;
  53088. return;
  53089. }
  53090. // This boundary already captured during this render. Continue to the next
  53091. // boundary.
  53092. _workInProgress = _workInProgress.return;
  53093. } while (_workInProgress !== null);
  53094. // No boundary was found. Fallthrough to error mode.
  53095. // TODO: Use invariant so the message is stripped in prod?
  53096. 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));
  53097. }
  53098. // We didn't find a boundary that could handle this type of exception. Start
  53099. // over and traverse parent path again, this time treating the exception
  53100. // as an error.
  53101. renderDidError();
  53102. value = createCapturedValue(value, sourceFiber);
  53103. var workInProgress = returnFiber;
  53104. do {
  53105. switch (workInProgress.tag) {
  53106. case HostRoot:
  53107. {
  53108. var _errorInfo = value;
  53109. workInProgress.effectTag |= ShouldCapture;
  53110. workInProgress.expirationTime = renderExpirationTime;
  53111. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  53112. enqueueCapturedUpdate(workInProgress, _update);
  53113. return;
  53114. }
  53115. case ClassComponent:
  53116. // Capture and retry
  53117. var errorInfo = value;
  53118. var ctor = workInProgress.type;
  53119. var instance = workInProgress.stateNode;
  53120. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  53121. workInProgress.effectTag |= ShouldCapture;
  53122. workInProgress.expirationTime = renderExpirationTime;
  53123. // Schedule the error boundary to re-render using updated state
  53124. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  53125. enqueueCapturedUpdate(workInProgress, _update2);
  53126. return;
  53127. }
  53128. break;
  53129. default:
  53130. break;
  53131. }
  53132. workInProgress = workInProgress.return;
  53133. } while (workInProgress !== null);
  53134. }
  53135. // The scheduler is imported here *only* to detect whether it's been mocked
  53136. // DEV stuff
  53137. var ceil = Math.ceil;
  53138. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  53139. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  53140. var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  53141. var NoContext = /* */0;
  53142. var BatchedContext = /* */1;
  53143. var EventContext = /* */2;
  53144. var DiscreteEventContext = /* */4;
  53145. var LegacyUnbatchedContext = /* */8;
  53146. var RenderContext = /* */16;
  53147. var CommitContext = /* */32;
  53148. var RootIncomplete = 0;
  53149. var RootErrored = 1;
  53150. var RootSuspended = 2;
  53151. var RootSuspendedWithDelay = 3;
  53152. var RootCompleted = 4;
  53153. // Describes where we are in the React execution stack
  53154. var executionContext = NoContext;
  53155. // The root we're working on
  53156. var workInProgressRoot = null;
  53157. // The fiber we're working on
  53158. var workInProgress = null;
  53159. // The expiration time we're rendering
  53160. var renderExpirationTime = NoWork;
  53161. // Whether to root completed, errored, suspended, etc.
  53162. var workInProgressRootExitStatus = RootIncomplete;
  53163. // Most recent event time among processed updates during this render.
  53164. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  53165. // because we deal mostly with expiration times in the hot path, so this avoids
  53166. // the conversion happening in the hot path.
  53167. var workInProgressRootLatestProcessedExpirationTime = Sync;
  53168. var workInProgressRootLatestSuspenseTimeout = Sync;
  53169. var workInProgressRootCanSuspendUsingConfig = null;
  53170. // If we're pinged while rendering we don't always restart immediately.
  53171. // This flag determines if it might be worthwhile to restart if an opportunity
  53172. // happens latere.
  53173. var workInProgressRootHasPendingPing = false;
  53174. // The most recent time we committed a fallback. This lets us ensure a train
  53175. // model where we don't commit new loading states in too quick succession.
  53176. var globalMostRecentFallbackTime = 0;
  53177. var FALLBACK_THROTTLE_MS = 500;
  53178. var nextEffect = null;
  53179. var hasUncaughtError = false;
  53180. var firstUncaughtError = null;
  53181. var legacyErrorBoundariesThatAlreadyFailed = null;
  53182. var rootDoesHavePassiveEffects = false;
  53183. var rootWithPendingPassiveEffects = null;
  53184. var pendingPassiveEffectsRenderPriority = NoPriority;
  53185. var pendingPassiveEffectsExpirationTime = NoWork;
  53186. var rootsWithPendingDiscreteUpdates = null;
  53187. // Use these to prevent an infinite loop of nested updates
  53188. var NESTED_UPDATE_LIMIT = 50;
  53189. var nestedUpdateCount = 0;
  53190. var rootWithNestedUpdates = null;
  53191. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  53192. var nestedPassiveUpdateCount = 0;
  53193. var interruptedBy = null;
  53194. // Marks the need to reschedule pending interactions at these expiration times
  53195. // during the commit phase. This enables them to be traced across components
  53196. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  53197. // hydration or SuspenseList.
  53198. var spawnedWorkDuringRender = null;
  53199. // Expiration times are computed by adding to the current time (the start
  53200. // time). However, if two updates are scheduled within the same event, we
  53201. // should treat their start times as simultaneous, even if the actual clock
  53202. // time has advanced between the first and second call.
  53203. // In other words, because expiration times determine how updates are batched,
  53204. // we want all updates of like priority that occur within the same event to
  53205. // receive the same expiration time. Otherwise we get tearing.
  53206. var currentEventTime = NoWork;
  53207. function requestCurrentTime() {
  53208. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53209. // We're inside React, so it's fine to read the actual time.
  53210. return msToExpirationTime(now());
  53211. }
  53212. // We're not inside React, so we may be in the middle of a browser event.
  53213. if (currentEventTime !== NoWork) {
  53214. // Use the same start time for all updates until we enter React again.
  53215. return currentEventTime;
  53216. }
  53217. // This is the first update since React yielded. Compute a new start time.
  53218. currentEventTime = msToExpirationTime(now());
  53219. return currentEventTime;
  53220. }
  53221. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  53222. var mode = fiber.mode;
  53223. if ((mode & BatchedMode) === NoMode) {
  53224. return Sync;
  53225. }
  53226. var priorityLevel = getCurrentPriorityLevel();
  53227. if ((mode & ConcurrentMode) === NoMode) {
  53228. return priorityLevel === ImmediatePriority ? Sync : Batched;
  53229. }
  53230. if ((executionContext & RenderContext) !== NoContext) {
  53231. // Use whatever time we're already rendering
  53232. return renderExpirationTime;
  53233. }
  53234. var expirationTime = void 0;
  53235. if (suspenseConfig !== null) {
  53236. // Compute an expiration time based on the Suspense timeout.
  53237. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  53238. } else {
  53239. // Compute an expiration time based on the Scheduler priority.
  53240. switch (priorityLevel) {
  53241. case ImmediatePriority:
  53242. expirationTime = Sync;
  53243. break;
  53244. case UserBlockingPriority$2:
  53245. // TODO: Rename this to computeUserBlockingExpiration
  53246. expirationTime = computeInteractiveExpiration(currentTime);
  53247. break;
  53248. case NormalPriority:
  53249. case LowPriority:
  53250. // TODO: Handle LowPriority
  53251. // TODO: Rename this to... something better.
  53252. expirationTime = computeAsyncExpiration(currentTime);
  53253. break;
  53254. case IdlePriority:
  53255. expirationTime = Never;
  53256. break;
  53257. default:
  53258. (function () {
  53259. {
  53260. {
  53261. throw ReactError(Error('Expected a valid priority level'));
  53262. }
  53263. }
  53264. })();
  53265. }
  53266. }
  53267. // If we're in the middle of rendering a tree, do not update at the same
  53268. // expiration time that is already rendering.
  53269. // TODO: We shouldn't have to do this if the update is on a different root.
  53270. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  53271. // the root when we check for this condition.
  53272. if (workInProgressRoot !== null && expirationTime === renderExpirationTime) {
  53273. // This is a trick to move this update into a separate batch
  53274. expirationTime -= 1;
  53275. }
  53276. return expirationTime;
  53277. }
  53278. var lastUniqueAsyncExpiration = NoWork;
  53279. function computeUniqueAsyncExpiration() {
  53280. var currentTime = requestCurrentTime();
  53281. var result = computeAsyncExpiration(currentTime);
  53282. if (result <= lastUniqueAsyncExpiration) {
  53283. // Since we assume the current time monotonically increases, we only hit
  53284. // this branch when computeUniqueAsyncExpiration is fired multiple times
  53285. // within a 200ms window (or whatever the async bucket size is).
  53286. result -= 1;
  53287. }
  53288. lastUniqueAsyncExpiration = result;
  53289. return result;
  53290. }
  53291. function scheduleUpdateOnFiber(fiber, expirationTime) {
  53292. checkForNestedUpdates();
  53293. warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber);
  53294. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  53295. if (root === null) {
  53296. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  53297. return;
  53298. }
  53299. root.pingTime = NoWork;
  53300. checkForInterruption(fiber, expirationTime);
  53301. recordScheduleUpdate();
  53302. // TODO: computeExpirationForFiber also reads the priority. Pass the
  53303. // priority as an argument to that function and this one.
  53304. var priorityLevel = getCurrentPriorityLevel();
  53305. if (expirationTime === Sync) {
  53306. if (
  53307. // Check if we're inside unbatchedUpdates
  53308. (executionContext & LegacyUnbatchedContext) !== NoContext &&
  53309. // Check if we're not already rendering
  53310. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  53311. // Register pending interactions on the root to avoid losing traced interaction data.
  53312. schedulePendingInteractions(root, expirationTime);
  53313. // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  53314. // root inside of batchedUpdates should be synchronous, but layout updates
  53315. // should be deferred until the end of the batch.
  53316. var callback = renderRoot(root, Sync, true);
  53317. while (callback !== null) {
  53318. callback = callback(true);
  53319. }
  53320. } else {
  53321. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  53322. if (executionContext === NoContext) {
  53323. // Flush the synchronous work now, wnless we're already working or inside
  53324. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  53325. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  53326. // without immediately flushing it. We only do this for user-initiated
  53327. // updates, to preserve historical behavior of sync mode.
  53328. flushSyncCallbackQueue();
  53329. }
  53330. }
  53331. } else {
  53332. scheduleCallbackForRoot(root, priorityLevel, expirationTime);
  53333. }
  53334. if ((executionContext & DiscreteEventContext) !== NoContext && (
  53335. // Only updates at user-blocking priority or greater are considered
  53336. // discrete, even inside a discrete event.
  53337. priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority)) {
  53338. // This is the result of a discrete event. Track the lowest priority
  53339. // discrete update per root so we can flush them early, if needed.
  53340. if (rootsWithPendingDiscreteUpdates === null) {
  53341. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  53342. } else {
  53343. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  53344. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  53345. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  53346. }
  53347. }
  53348. }
  53349. }
  53350. var scheduleWork = scheduleUpdateOnFiber;
  53351. // This is split into a separate function so we can mark a fiber with pending
  53352. // work without treating it as a typical update that originates from an event;
  53353. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  53354. // on a fiber.
  53355. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  53356. // Update the source fiber's expiration time
  53357. if (fiber.expirationTime < expirationTime) {
  53358. fiber.expirationTime = expirationTime;
  53359. }
  53360. var alternate = fiber.alternate;
  53361. if (alternate !== null && alternate.expirationTime < expirationTime) {
  53362. alternate.expirationTime = expirationTime;
  53363. }
  53364. // Walk the parent path to the root and update the child expiration time.
  53365. var node = fiber.return;
  53366. var root = null;
  53367. if (node === null && fiber.tag === HostRoot) {
  53368. root = fiber.stateNode;
  53369. } else {
  53370. while (node !== null) {
  53371. alternate = node.alternate;
  53372. if (node.childExpirationTime < expirationTime) {
  53373. node.childExpirationTime = expirationTime;
  53374. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  53375. alternate.childExpirationTime = expirationTime;
  53376. }
  53377. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  53378. alternate.childExpirationTime = expirationTime;
  53379. }
  53380. if (node.return === null && node.tag === HostRoot) {
  53381. root = node.stateNode;
  53382. break;
  53383. }
  53384. node = node.return;
  53385. }
  53386. }
  53387. if (root !== null) {
  53388. // Update the first and last pending expiration times in this root
  53389. var firstPendingTime = root.firstPendingTime;
  53390. if (expirationTime > firstPendingTime) {
  53391. root.firstPendingTime = expirationTime;
  53392. }
  53393. var lastPendingTime = root.lastPendingTime;
  53394. if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
  53395. root.lastPendingTime = expirationTime;
  53396. }
  53397. }
  53398. return root;
  53399. }
  53400. // Use this function, along with runRootCallback, to ensure that only a single
  53401. // callback per root is scheduled. It's still possible to call renderRoot
  53402. // directly, but scheduling via this function helps avoid excessive callbacks.
  53403. // It works by storing the callback node and expiration time on the root. When a
  53404. // new callback comes in, it compares the expiration time to determine if it
  53405. // should cancel the previous one. It also relies on commitRoot scheduling a
  53406. // callback to render the next level, because that means we don't need a
  53407. // separate callback per expiration time.
  53408. function scheduleCallbackForRoot(root, priorityLevel, expirationTime) {
  53409. var existingCallbackExpirationTime = root.callbackExpirationTime;
  53410. if (existingCallbackExpirationTime < expirationTime) {
  53411. // New callback has higher priority than the existing one.
  53412. var existingCallbackNode = root.callbackNode;
  53413. if (existingCallbackNode !== null) {
  53414. cancelCallback(existingCallbackNode);
  53415. }
  53416. root.callbackExpirationTime = expirationTime;
  53417. if (expirationTime === Sync) {
  53418. // Sync React callbacks are scheduled on a special internal queue
  53419. root.callbackNode = scheduleSyncCallback(runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)));
  53420. } else {
  53421. var options = null;
  53422. if (!disableSchedulerTimeoutBasedOnReactExpirationTime && expirationTime !== Never) {
  53423. var timeout = expirationTimeToMs(expirationTime) - now();
  53424. options = { timeout: timeout };
  53425. }
  53426. root.callbackNode = scheduleCallback(priorityLevel, runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)), options);
  53427. if (enableUserTimingAPI && expirationTime !== Sync && (executionContext & (RenderContext | CommitContext)) === NoContext) {
  53428. // Scheduled an async callback, and we're not already working. Add an
  53429. // entry to the flamegraph that shows we're waiting for a callback
  53430. // to fire.
  53431. startRequestCallbackTimer();
  53432. }
  53433. }
  53434. }
  53435. // Associate the current interactions with this new root+priority.
  53436. schedulePendingInteractions(root, expirationTime);
  53437. }
  53438. function runRootCallback(root, callback, isSync) {
  53439. var prevCallbackNode = root.callbackNode;
  53440. var continuation = null;
  53441. try {
  53442. continuation = callback(isSync);
  53443. if (continuation !== null) {
  53444. return runRootCallback.bind(null, root, continuation);
  53445. } else {
  53446. return null;
  53447. }
  53448. } finally {
  53449. // If the callback exits without returning a continuation, remove the
  53450. // corresponding callback node from the root. Unless the callback node
  53451. // has changed, which implies that it was already cancelled by a high
  53452. // priority update.
  53453. if (continuation === null && prevCallbackNode === root.callbackNode) {
  53454. root.callbackNode = null;
  53455. root.callbackExpirationTime = NoWork;
  53456. }
  53457. }
  53458. }
  53459. function flushRoot(root, expirationTime) {
  53460. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53461. (function () {
  53462. {
  53463. {
  53464. throw ReactError(Error('work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.'));
  53465. }
  53466. }
  53467. })();
  53468. }
  53469. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53470. flushSyncCallbackQueue();
  53471. }
  53472. function flushDiscreteUpdates() {
  53473. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  53474. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  53475. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  53476. // as a public API.
  53477. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  53478. if ( true && (executionContext & RenderContext) !== NoContext) {
  53479. warning$1(false, 'unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  53480. }
  53481. // We're already rendering, so we can't synchronously flush pending work.
  53482. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  53483. // like `el.focus()`. Exit.
  53484. return;
  53485. }
  53486. flushPendingDiscreteUpdates();
  53487. if (!revertPassiveEffectsChange) {
  53488. // If the discrete updates scheduled passive effects, flush them now so that
  53489. // they fire before the next serial event.
  53490. flushPassiveEffects();
  53491. }
  53492. }
  53493. function resolveLocksOnRoot(root, expirationTime) {
  53494. var firstBatch = root.firstBatch;
  53495. if (firstBatch !== null && firstBatch._defer && firstBatch._expirationTime >= expirationTime) {
  53496. scheduleCallback(NormalPriority, function () {
  53497. firstBatch._onComplete();
  53498. return null;
  53499. });
  53500. return true;
  53501. } else {
  53502. return false;
  53503. }
  53504. }
  53505. function flushPendingDiscreteUpdates() {
  53506. if (rootsWithPendingDiscreteUpdates !== null) {
  53507. // For each root with pending discrete updates, schedule a callback to
  53508. // immediately flush them.
  53509. var roots = rootsWithPendingDiscreteUpdates;
  53510. rootsWithPendingDiscreteUpdates = null;
  53511. roots.forEach(function (expirationTime, root) {
  53512. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53513. });
  53514. // Now flush the immediate queue.
  53515. flushSyncCallbackQueue();
  53516. }
  53517. }
  53518. function batchedUpdates$1(fn, a) {
  53519. var prevExecutionContext = executionContext;
  53520. executionContext |= BatchedContext;
  53521. try {
  53522. return fn(a);
  53523. } finally {
  53524. executionContext = prevExecutionContext;
  53525. if (executionContext === NoContext) {
  53526. // Flush the immediate callbacks that were scheduled during this batch
  53527. flushSyncCallbackQueue();
  53528. }
  53529. }
  53530. }
  53531. function batchedEventUpdates$1(fn, a) {
  53532. var prevExecutionContext = executionContext;
  53533. executionContext |= EventContext;
  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 discreteUpdates$1(fn, a, b, c) {
  53545. var prevExecutionContext = executionContext;
  53546. executionContext |= DiscreteEventContext;
  53547. try {
  53548. // Should this
  53549. return runWithPriority$2(UserBlockingPriority$2, fn.bind(null, a, b, c));
  53550. } finally {
  53551. executionContext = prevExecutionContext;
  53552. if (executionContext === NoContext) {
  53553. // Flush the immediate callbacks that were scheduled during this batch
  53554. flushSyncCallbackQueue();
  53555. }
  53556. }
  53557. }
  53558. function unbatchedUpdates(fn, a) {
  53559. var prevExecutionContext = executionContext;
  53560. executionContext &= ~BatchedContext;
  53561. executionContext |= LegacyUnbatchedContext;
  53562. try {
  53563. return fn(a);
  53564. } finally {
  53565. executionContext = prevExecutionContext;
  53566. if (executionContext === NoContext) {
  53567. // Flush the immediate callbacks that were scheduled during this batch
  53568. flushSyncCallbackQueue();
  53569. }
  53570. }
  53571. }
  53572. function flushSync(fn, a) {
  53573. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  53574. (function () {
  53575. {
  53576. {
  53577. throw ReactError(Error('flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.'));
  53578. }
  53579. }
  53580. })();
  53581. }
  53582. var prevExecutionContext = executionContext;
  53583. executionContext |= BatchedContext;
  53584. try {
  53585. return runWithPriority$2(ImmediatePriority, fn.bind(null, a));
  53586. } finally {
  53587. executionContext = prevExecutionContext;
  53588. // Flush the immediate callbacks that were scheduled during this batch.
  53589. // Note that this will happen even if batchedUpdates is higher up
  53590. // the stack.
  53591. flushSyncCallbackQueue();
  53592. }
  53593. }
  53594. function flushControlled(fn) {
  53595. var prevExecutionContext = executionContext;
  53596. executionContext |= BatchedContext;
  53597. try {
  53598. runWithPriority$2(ImmediatePriority, fn);
  53599. } finally {
  53600. executionContext = prevExecutionContext;
  53601. if (executionContext === NoContext) {
  53602. // Flush the immediate callbacks that were scheduled during this batch
  53603. flushSyncCallbackQueue();
  53604. }
  53605. }
  53606. }
  53607. function prepareFreshStack(root, expirationTime) {
  53608. root.finishedWork = null;
  53609. root.finishedExpirationTime = NoWork;
  53610. var timeoutHandle = root.timeoutHandle;
  53611. if (timeoutHandle !== noTimeout) {
  53612. // The root previous suspended and scheduled a timeout to commit a fallback
  53613. // state. Now that we have additional work, cancel the timeout.
  53614. root.timeoutHandle = noTimeout;
  53615. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  53616. cancelTimeout(timeoutHandle);
  53617. }
  53618. if (workInProgress !== null) {
  53619. var interruptedWork = workInProgress.return;
  53620. while (interruptedWork !== null) {
  53621. unwindInterruptedWork(interruptedWork);
  53622. interruptedWork = interruptedWork.return;
  53623. }
  53624. }
  53625. workInProgressRoot = root;
  53626. workInProgress = createWorkInProgress(root.current, null, expirationTime);
  53627. renderExpirationTime = expirationTime;
  53628. workInProgressRootExitStatus = RootIncomplete;
  53629. workInProgressRootLatestProcessedExpirationTime = Sync;
  53630. workInProgressRootLatestSuspenseTimeout = Sync;
  53631. workInProgressRootCanSuspendUsingConfig = null;
  53632. workInProgressRootHasPendingPing = false;
  53633. if (enableSchedulerTracing) {
  53634. spawnedWorkDuringRender = null;
  53635. }
  53636. {
  53637. ReactStrictModeWarnings.discardPendingWarnings();
  53638. componentsThatTriggeredHighPriSuspend = null;
  53639. }
  53640. }
  53641. function renderRoot(root, expirationTime, isSync) {
  53642. (function () {
  53643. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  53644. {
  53645. throw ReactError(Error('Should not already be working.'));
  53646. }
  53647. }
  53648. })();
  53649. if (enableUserTimingAPI && expirationTime !== Sync) {
  53650. var didExpire = isSync;
  53651. stopRequestCallbackTimer(didExpire);
  53652. }
  53653. if (root.firstPendingTime < expirationTime) {
  53654. // If there's no work left at this expiration time, exit immediately. This
  53655. // happens when multiple callbacks are scheduled for a single root, but an
  53656. // earlier callback flushes the work of a later one.
  53657. return null;
  53658. }
  53659. if (isSync && root.finishedExpirationTime === expirationTime) {
  53660. // There's already a pending commit at this expiration time.
  53661. // TODO: This is poorly factored. This case only exists for the
  53662. // batch.commit() API.
  53663. return commitRoot.bind(null, root);
  53664. }
  53665. flushPassiveEffects();
  53666. // If the root or expiration time have changed, throw out the existing stack
  53667. // and prepare a fresh one. Otherwise we'll continue where we left off.
  53668. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime) {
  53669. prepareFreshStack(root, expirationTime);
  53670. startWorkOnPendingInteractions(root, expirationTime);
  53671. } else if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  53672. // We could've received an update at a lower priority while we yielded.
  53673. // We're suspended in a delayed state. Once we complete this render we're
  53674. // just going to try to recover at the last pending time anyway so we might
  53675. // as well start doing that eagerly.
  53676. // Ideally we should be able to do this even for retries but we don't yet
  53677. // know if we're going to process an update which wants to commit earlier,
  53678. // and this path happens very early so it would happen too often. Instead,
  53679. // for that case, we'll wait until we complete.
  53680. if (workInProgressRootHasPendingPing) {
  53681. // We have a ping at this expiration. Let's restart to see if we get unblocked.
  53682. prepareFreshStack(root, expirationTime);
  53683. } else {
  53684. var lastPendingTime = root.lastPendingTime;
  53685. if (lastPendingTime < expirationTime) {
  53686. // There's lower priority work. It might be unsuspended. Try rendering
  53687. // at that level immediately, while preserving the position in the queue.
  53688. return renderRoot.bind(null, root, lastPendingTime);
  53689. }
  53690. }
  53691. }
  53692. // If we have a work-in-progress fiber, it means there's still work to do
  53693. // in this root.
  53694. if (workInProgress !== null) {
  53695. var prevExecutionContext = executionContext;
  53696. executionContext |= RenderContext;
  53697. var prevDispatcher = ReactCurrentDispatcher.current;
  53698. if (prevDispatcher === null) {
  53699. // The React isomorphic package does not include a default dispatcher.
  53700. // Instead the first renderer will lazily attach one, in order to give
  53701. // nicer error messages.
  53702. prevDispatcher = ContextOnlyDispatcher;
  53703. }
  53704. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  53705. var prevInteractions = null;
  53706. if (enableSchedulerTracing) {
  53707. prevInteractions = tracing.__interactionsRef.current;
  53708. tracing.__interactionsRef.current = root.memoizedInteractions;
  53709. }
  53710. startWorkLoopTimer(workInProgress);
  53711. // TODO: Fork renderRoot into renderRootSync and renderRootAsync
  53712. if (isSync) {
  53713. if (expirationTime !== Sync) {
  53714. // An async update expired. There may be other expired updates on
  53715. // this root. We should render all the expired work in a
  53716. // single batch.
  53717. var currentTime = requestCurrentTime();
  53718. if (currentTime < expirationTime) {
  53719. // Restart at the current time.
  53720. executionContext = prevExecutionContext;
  53721. resetContextDependencies();
  53722. ReactCurrentDispatcher.current = prevDispatcher;
  53723. if (enableSchedulerTracing) {
  53724. tracing.__interactionsRef.current = prevInteractions;
  53725. }
  53726. return renderRoot.bind(null, root, currentTime);
  53727. }
  53728. }
  53729. } else {
  53730. // Since we know we're in a React event, we can clear the current
  53731. // event time. The next update will compute a new event time.
  53732. currentEventTime = NoWork;
  53733. }
  53734. do {
  53735. try {
  53736. if (isSync) {
  53737. workLoopSync();
  53738. } else {
  53739. workLoop();
  53740. }
  53741. break;
  53742. } catch (thrownValue) {
  53743. // Reset module-level state that was set during the render phase.
  53744. resetContextDependencies();
  53745. resetHooks();
  53746. var sourceFiber = workInProgress;
  53747. if (sourceFiber === null || sourceFiber.return === null) {
  53748. // Expected to be working on a non-root fiber. This is a fatal error
  53749. // because there's no ancestor that can handle it; the root is
  53750. // supposed to capture all errors that weren't caught by an error
  53751. // boundary.
  53752. prepareFreshStack(root, expirationTime);
  53753. executionContext = prevExecutionContext;
  53754. throw thrownValue;
  53755. }
  53756. if (enableProfilerTimer && sourceFiber.mode & ProfileMode) {
  53757. // Record the time spent rendering before an error was thrown. This
  53758. // avoids inaccurate Profiler durations in the case of a
  53759. // suspended render.
  53760. stopProfilerTimerIfRunningAndRecordDelta(sourceFiber, true);
  53761. }
  53762. var returnFiber = sourceFiber.return;
  53763. throwException(root, returnFiber, sourceFiber, thrownValue, renderExpirationTime);
  53764. workInProgress = completeUnitOfWork(sourceFiber);
  53765. }
  53766. } while (true);
  53767. executionContext = prevExecutionContext;
  53768. resetContextDependencies();
  53769. ReactCurrentDispatcher.current = prevDispatcher;
  53770. if (enableSchedulerTracing) {
  53771. tracing.__interactionsRef.current = prevInteractions;
  53772. }
  53773. if (workInProgress !== null) {
  53774. // There's still work left over. Return a continuation.
  53775. stopInterruptedWorkLoopTimer();
  53776. if (expirationTime !== Sync) {
  53777. startRequestCallbackTimer();
  53778. }
  53779. return renderRoot.bind(null, root, expirationTime);
  53780. }
  53781. }
  53782. // We now have a consistent tree. The next step is either to commit it, or, if
  53783. // something suspended, wait to commit it after a timeout.
  53784. stopFinishedWorkLoopTimer();
  53785. root.finishedWork = root.current.alternate;
  53786. root.finishedExpirationTime = expirationTime;
  53787. var isLocked = resolveLocksOnRoot(root, expirationTime);
  53788. if (isLocked) {
  53789. // This root has a lock that prevents it from committing. Exit. If we begin
  53790. // work on the root again, without any intervening updates, it will finish
  53791. // without doing additional work.
  53792. return null;
  53793. }
  53794. // Set this to null to indicate there's no in-progress render.
  53795. workInProgressRoot = null;
  53796. switch (workInProgressRootExitStatus) {
  53797. case RootIncomplete:
  53798. {
  53799. (function () {
  53800. {
  53801. {
  53802. throw ReactError(Error('Should have a work-in-progress.'));
  53803. }
  53804. }
  53805. })();
  53806. }
  53807. // Flow knows about invariant, so it complains if I add a break statement,
  53808. // but eslint doesn't know about invariant, so it complains if I do.
  53809. // eslint-disable-next-line no-fallthrough
  53810. case RootErrored:
  53811. {
  53812. // An error was thrown. First check if there is lower priority work
  53813. // scheduled on this root.
  53814. var _lastPendingTime = root.lastPendingTime;
  53815. if (_lastPendingTime < expirationTime) {
  53816. // There's lower priority work. Before raising the error, try rendering
  53817. // at the lower priority to see if it fixes it. Use a continuation to
  53818. // maintain the existing priority and position in the queue.
  53819. return renderRoot.bind(null, root, _lastPendingTime);
  53820. }
  53821. if (!isSync) {
  53822. // If we're rendering asynchronously, it's possible the error was
  53823. // caused by tearing due to a mutation during an event. Try rendering
  53824. // one more time without yiedling to events.
  53825. prepareFreshStack(root, expirationTime);
  53826. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  53827. return null;
  53828. }
  53829. // If we're already rendering synchronously, commit the root in its
  53830. // errored state.
  53831. return commitRoot.bind(null, root);
  53832. }
  53833. case RootSuspended:
  53834. {
  53835. flushSuspensePriorityWarningInDEV();
  53836. // We have an acceptable loading state. We need to figure out if we should
  53837. // immediately commit it or wait a bit.
  53838. // If we have processed new updates during this render, we may now have a
  53839. // new loading state ready. We want to ensure that we commit that as soon as
  53840. // possible.
  53841. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  53842. if (hasNotProcessedNewUpdates && !isSync &&
  53843. // do not delay if we're inside an act() scope
  53844. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  53845. // If we have not processed any new updates during this pass, then this is
  53846. // either a retry of an existing fallback state or a hidden tree.
  53847. // Hidden trees shouldn't be batched with other work and after that's
  53848. // fixed it can only be a retry.
  53849. // We're going to throttle committing retries so that we don't show too
  53850. // many loading states too quickly.
  53851. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
  53852. // Don't bother with a very short suspense time.
  53853. if (msUntilTimeout > 10) {
  53854. if (workInProgressRootHasPendingPing) {
  53855. // This render was pinged but we didn't get to restart earlier so try
  53856. // restarting now instead.
  53857. prepareFreshStack(root, expirationTime);
  53858. return renderRoot.bind(null, root, expirationTime);
  53859. }
  53860. var _lastPendingTime2 = root.lastPendingTime;
  53861. if (_lastPendingTime2 < expirationTime) {
  53862. // There's lower priority work. It might be unsuspended. Try rendering
  53863. // at that level.
  53864. return renderRoot.bind(null, root, _lastPendingTime2);
  53865. }
  53866. // The render is suspended, it hasn't timed out, and there's no lower
  53867. // priority work to do. Instead of committing the fallback
  53868. // immediately, wait for more data to arrive.
  53869. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  53870. return null;
  53871. }
  53872. }
  53873. // The work expired. Commit immediately.
  53874. return commitRoot.bind(null, root);
  53875. }
  53876. case RootSuspendedWithDelay:
  53877. {
  53878. flushSuspensePriorityWarningInDEV();
  53879. if (!isSync &&
  53880. // do not delay if we're inside an act() scope
  53881. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  53882. // We're suspended in a state that should be avoided. We'll try to avoid committing
  53883. // it for as long as the timeouts let us.
  53884. if (workInProgressRootHasPendingPing) {
  53885. // This render was pinged but we didn't get to restart earlier so try
  53886. // restarting now instead.
  53887. prepareFreshStack(root, expirationTime);
  53888. return renderRoot.bind(null, root, expirationTime);
  53889. }
  53890. var _lastPendingTime3 = root.lastPendingTime;
  53891. if (_lastPendingTime3 < expirationTime) {
  53892. // There's lower priority work. It might be unsuspended. Try rendering
  53893. // at that level immediately.
  53894. return renderRoot.bind(null, root, _lastPendingTime3);
  53895. }
  53896. var _msUntilTimeout = void 0;
  53897. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  53898. // We have processed a suspense config whose expiration time we can use as
  53899. // the timeout.
  53900. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  53901. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  53902. // This should never normally happen because only new updates cause
  53903. // delayed states, so we should have processed something. However,
  53904. // this could also happen in an offscreen tree.
  53905. _msUntilTimeout = 0;
  53906. } else {
  53907. // If we don't have a suspense config, we're going to use a heuristic to
  53908. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  53909. var currentTimeMs = now();
  53910. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  53911. var timeElapsed = currentTimeMs - eventTimeMs;
  53912. if (timeElapsed < 0) {
  53913. // We get this wrong some time since we estimate the time.
  53914. timeElapsed = 0;
  53915. }
  53916. _msUntilTimeout = jnd(timeElapsed) - timeElapsed;
  53917. // Clamp the timeout to the expiration time.
  53918. // TODO: Once the event time is exact instead of inferred from expiration time
  53919. // we don't need this.
  53920. if (timeUntilExpirationMs < _msUntilTimeout) {
  53921. _msUntilTimeout = timeUntilExpirationMs;
  53922. }
  53923. }
  53924. // Don't bother with a very short suspense time.
  53925. if (_msUntilTimeout > 10) {
  53926. // The render is suspended, it hasn't timed out, and there's no lower
  53927. // priority work to do. Instead of committing the fallback
  53928. // immediately, wait for more data to arrive.
  53929. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  53930. return null;
  53931. }
  53932. }
  53933. // The work expired. Commit immediately.
  53934. return commitRoot.bind(null, root);
  53935. }
  53936. case RootCompleted:
  53937. {
  53938. // The work completed. Ready to commit.
  53939. if (!isSync &&
  53940. // do not delay if we're inside an act() scope
  53941. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  53942. // If we have exceeded the minimum loading delay, which probably
  53943. // means we have shown a spinner already, we might have to suspend
  53944. // a bit longer to ensure that the spinner is shown for enough time.
  53945. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  53946. if (_msUntilTimeout2 > 10) {
  53947. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  53948. return null;
  53949. }
  53950. }
  53951. return commitRoot.bind(null, root);
  53952. }
  53953. default:
  53954. {
  53955. (function () {
  53956. {
  53957. {
  53958. throw ReactError(Error('Unknown root exit status.'));
  53959. }
  53960. }
  53961. })();
  53962. }
  53963. }
  53964. }
  53965. function markCommitTimeOfFallback() {
  53966. globalMostRecentFallbackTime = now();
  53967. }
  53968. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  53969. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Never) {
  53970. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  53971. }
  53972. if (suspenseConfig !== null) {
  53973. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Never) {
  53974. workInProgressRootLatestSuspenseTimeout = expirationTime;
  53975. // Most of the time we only have one config and getting wrong is not bad.
  53976. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  53977. }
  53978. }
  53979. }
  53980. function renderDidSuspend() {
  53981. if (workInProgressRootExitStatus === RootIncomplete) {
  53982. workInProgressRootExitStatus = RootSuspended;
  53983. }
  53984. }
  53985. function renderDidSuspendDelayIfPossible() {
  53986. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  53987. workInProgressRootExitStatus = RootSuspendedWithDelay;
  53988. }
  53989. }
  53990. function renderDidError() {
  53991. if (workInProgressRootExitStatus !== RootCompleted) {
  53992. workInProgressRootExitStatus = RootErrored;
  53993. }
  53994. }
  53995. // Called during render to determine if anything has suspended.
  53996. // Returns false if we're not sure.
  53997. function renderHasNotSuspendedYet() {
  53998. // If something errored or completed, we can't really be sure,
  53999. // so those are false.
  54000. return workInProgressRootExitStatus === RootIncomplete;
  54001. }
  54002. function inferTimeFromExpirationTime(expirationTime) {
  54003. // We don't know exactly when the update was scheduled, but we can infer an
  54004. // approximate start time from the expiration time.
  54005. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  54006. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  54007. }
  54008. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  54009. // We don't know exactly when the update was scheduled, but we can infer an
  54010. // approximate start time from the expiration time by subtracting the timeout
  54011. // that was added to the event time.
  54012. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  54013. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  54014. }
  54015. function workLoopSync() {
  54016. // Already timed out, so perform work without checking if we need to yield.
  54017. while (workInProgress !== null) {
  54018. workInProgress = performUnitOfWork(workInProgress);
  54019. }
  54020. }
  54021. function workLoop() {
  54022. // Perform work until Scheduler asks us to yield
  54023. while (workInProgress !== null && !shouldYield()) {
  54024. workInProgress = performUnitOfWork(workInProgress);
  54025. }
  54026. }
  54027. function performUnitOfWork(unitOfWork) {
  54028. // The current, flushed, state of this fiber is the alternate. Ideally
  54029. // nothing should rely on this, but relying on it here means that we don't
  54030. // need an additional field on the work in progress.
  54031. var current$$1 = unitOfWork.alternate;
  54032. startWorkTimer(unitOfWork);
  54033. setCurrentFiber(unitOfWork);
  54034. var next = void 0;
  54035. if (enableProfilerTimer && (unitOfWork.mode & ProfileMode) !== NoMode) {
  54036. startProfilerTimer(unitOfWork);
  54037. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  54038. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  54039. } else {
  54040. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  54041. }
  54042. resetCurrentFiber();
  54043. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  54044. if (next === null) {
  54045. // If this doesn't spawn new work, complete the current work.
  54046. next = completeUnitOfWork(unitOfWork);
  54047. }
  54048. ReactCurrentOwner$2.current = null;
  54049. return next;
  54050. }
  54051. function completeUnitOfWork(unitOfWork) {
  54052. // Attempt to complete the current unit of work, then move to the next
  54053. // sibling. If there are no more siblings, return to the parent fiber.
  54054. workInProgress = unitOfWork;
  54055. do {
  54056. // The current, flushed, state of this fiber is the alternate. Ideally
  54057. // nothing should rely on this, but relying on it here means that we don't
  54058. // need an additional field on the work in progress.
  54059. var current$$1 = workInProgress.alternate;
  54060. var returnFiber = workInProgress.return;
  54061. // Check if the work completed or if something threw.
  54062. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  54063. setCurrentFiber(workInProgress);
  54064. var next = void 0;
  54065. if (!enableProfilerTimer || (workInProgress.mode & ProfileMode) === NoMode) {
  54066. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  54067. } else {
  54068. startProfilerTimer(workInProgress);
  54069. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  54070. // Update render duration assuming we didn't error.
  54071. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  54072. }
  54073. stopWorkTimer(workInProgress);
  54074. resetCurrentFiber();
  54075. resetChildExpirationTime(workInProgress);
  54076. if (next !== null) {
  54077. // Completing this fiber spawned new work. Work on that next.
  54078. return next;
  54079. }
  54080. if (returnFiber !== null &&
  54081. // Do not append effects to parents if a sibling failed to complete
  54082. (returnFiber.effectTag & Incomplete) === NoEffect) {
  54083. // Append all the effects of the subtree and this fiber onto the effect
  54084. // list of the parent. The completion order of the children affects the
  54085. // side-effect order.
  54086. if (returnFiber.firstEffect === null) {
  54087. returnFiber.firstEffect = workInProgress.firstEffect;
  54088. }
  54089. if (workInProgress.lastEffect !== null) {
  54090. if (returnFiber.lastEffect !== null) {
  54091. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  54092. }
  54093. returnFiber.lastEffect = workInProgress.lastEffect;
  54094. }
  54095. // If this fiber had side-effects, we append it AFTER the children's
  54096. // side-effects. We can perform certain side-effects earlier if needed,
  54097. // by doing multiple passes over the effect list. We don't want to
  54098. // schedule our own side-effect on our own list because if end up
  54099. // reusing children we'll schedule this effect onto itself since we're
  54100. // at the end.
  54101. var effectTag = workInProgress.effectTag;
  54102. // Skip both NoWork and PerformedWork tags when creating the effect
  54103. // list. PerformedWork effect is read by React DevTools but shouldn't be
  54104. // committed.
  54105. if (effectTag > PerformedWork) {
  54106. if (returnFiber.lastEffect !== null) {
  54107. returnFiber.lastEffect.nextEffect = workInProgress;
  54108. } else {
  54109. returnFiber.firstEffect = workInProgress;
  54110. }
  54111. returnFiber.lastEffect = workInProgress;
  54112. }
  54113. }
  54114. } else {
  54115. // This fiber did not complete because something threw. Pop values off
  54116. // the stack without entering the complete phase. If this is a boundary,
  54117. // capture values if possible.
  54118. var _next = unwindWork(workInProgress, renderExpirationTime);
  54119. // Because this fiber did not complete, don't reset its expiration time.
  54120. if (enableProfilerTimer && (workInProgress.mode & ProfileMode) !== NoMode) {
  54121. // Record the render duration for the fiber that errored.
  54122. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  54123. // Include the time spent working on failed children before continuing.
  54124. var actualDuration = workInProgress.actualDuration;
  54125. var child = workInProgress.child;
  54126. while (child !== null) {
  54127. actualDuration += child.actualDuration;
  54128. child = child.sibling;
  54129. }
  54130. workInProgress.actualDuration = actualDuration;
  54131. }
  54132. if (_next !== null) {
  54133. // If completing this work spawned new work, do that next. We'll come
  54134. // back here again.
  54135. // Since we're restarting, remove anything that is not a host effect
  54136. // from the effect tag.
  54137. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  54138. // also captures and restarts.
  54139. stopFailedWorkTimer(workInProgress);
  54140. _next.effectTag &= HostEffectMask;
  54141. return _next;
  54142. }
  54143. stopWorkTimer(workInProgress);
  54144. if (returnFiber !== null) {
  54145. // Mark the parent fiber as incomplete and clear its effect list.
  54146. returnFiber.firstEffect = returnFiber.lastEffect = null;
  54147. returnFiber.effectTag |= Incomplete;
  54148. }
  54149. }
  54150. var siblingFiber = workInProgress.sibling;
  54151. if (siblingFiber !== null) {
  54152. // If there is more work to do in this returnFiber, do that next.
  54153. return siblingFiber;
  54154. }
  54155. // Otherwise, return to the parent
  54156. workInProgress = returnFiber;
  54157. } while (workInProgress !== null);
  54158. // We've reached the root.
  54159. if (workInProgressRootExitStatus === RootIncomplete) {
  54160. workInProgressRootExitStatus = RootCompleted;
  54161. }
  54162. return null;
  54163. }
  54164. function resetChildExpirationTime(completedWork) {
  54165. if (renderExpirationTime !== Never && completedWork.childExpirationTime === Never) {
  54166. // The children of this component are hidden. Don't bubble their
  54167. // expiration times.
  54168. return;
  54169. }
  54170. var newChildExpirationTime = NoWork;
  54171. // Bubble up the earliest expiration time.
  54172. if (enableProfilerTimer && (completedWork.mode & ProfileMode) !== NoMode) {
  54173. // In profiling mode, resetChildExpirationTime is also used to reset
  54174. // profiler durations.
  54175. var actualDuration = completedWork.actualDuration;
  54176. var treeBaseDuration = completedWork.selfBaseDuration;
  54177. // When a fiber is cloned, its actualDuration is reset to 0. This value will
  54178. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  54179. // When work is done, it should bubble to the parent's actualDuration. If
  54180. // the fiber has not been cloned though, (meaning no work was done), then
  54181. // this value will reflect the amount of time spent working on a previous
  54182. // render. In that case it should not bubble. We determine whether it was
  54183. // cloned by comparing the child pointer.
  54184. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  54185. var child = completedWork.child;
  54186. while (child !== null) {
  54187. var childUpdateExpirationTime = child.expirationTime;
  54188. var childChildExpirationTime = child.childExpirationTime;
  54189. if (childUpdateExpirationTime > newChildExpirationTime) {
  54190. newChildExpirationTime = childUpdateExpirationTime;
  54191. }
  54192. if (childChildExpirationTime > newChildExpirationTime) {
  54193. newChildExpirationTime = childChildExpirationTime;
  54194. }
  54195. if (shouldBubbleActualDurations) {
  54196. actualDuration += child.actualDuration;
  54197. }
  54198. treeBaseDuration += child.treeBaseDuration;
  54199. child = child.sibling;
  54200. }
  54201. completedWork.actualDuration = actualDuration;
  54202. completedWork.treeBaseDuration = treeBaseDuration;
  54203. } else {
  54204. var _child = completedWork.child;
  54205. while (_child !== null) {
  54206. var _childUpdateExpirationTime = _child.expirationTime;
  54207. var _childChildExpirationTime = _child.childExpirationTime;
  54208. if (_childUpdateExpirationTime > newChildExpirationTime) {
  54209. newChildExpirationTime = _childUpdateExpirationTime;
  54210. }
  54211. if (_childChildExpirationTime > newChildExpirationTime) {
  54212. newChildExpirationTime = _childChildExpirationTime;
  54213. }
  54214. _child = _child.sibling;
  54215. }
  54216. }
  54217. completedWork.childExpirationTime = newChildExpirationTime;
  54218. }
  54219. function commitRoot(root) {
  54220. var renderPriorityLevel = getCurrentPriorityLevel();
  54221. runWithPriority$2(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  54222. // If there are passive effects, schedule a callback to flush them. This goes
  54223. // outside commitRootImpl so that it inherits the priority of the render.
  54224. if (rootWithPendingPassiveEffects !== null) {
  54225. scheduleCallback(NormalPriority, function () {
  54226. flushPassiveEffects();
  54227. return null;
  54228. });
  54229. }
  54230. return null;
  54231. }
  54232. function commitRootImpl(root, renderPriorityLevel) {
  54233. flushPassiveEffects();
  54234. flushRenderPhaseStrictModeWarningsInDEV();
  54235. (function () {
  54236. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  54237. {
  54238. throw ReactError(Error('Should not already be working.'));
  54239. }
  54240. }
  54241. })();
  54242. var finishedWork = root.finishedWork;
  54243. var expirationTime = root.finishedExpirationTime;
  54244. if (finishedWork === null) {
  54245. return null;
  54246. }
  54247. root.finishedWork = null;
  54248. root.finishedExpirationTime = NoWork;
  54249. (function () {
  54250. if (!(finishedWork !== root.current)) {
  54251. {
  54252. throw ReactError(Error('Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.'));
  54253. }
  54254. }
  54255. })();
  54256. // commitRoot never returns a continuation; it always finishes synchronously.
  54257. // So we can clear these now to allow a new callback to be scheduled.
  54258. root.callbackNode = null;
  54259. root.callbackExpirationTime = NoWork;
  54260. startCommitTimer();
  54261. // Update the first and last pending times on this root. The new first
  54262. // pending time is whatever is left on the root fiber.
  54263. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  54264. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  54265. var firstPendingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  54266. root.firstPendingTime = firstPendingTimeBeforeCommit;
  54267. if (firstPendingTimeBeforeCommit < root.lastPendingTime) {
  54268. // This usually means we've finished all the work, but it can also happen
  54269. // when something gets downprioritized during render, like a hidden tree.
  54270. root.lastPendingTime = firstPendingTimeBeforeCommit;
  54271. }
  54272. if (root === workInProgressRoot) {
  54273. // We can reset these now that they are finished.
  54274. workInProgressRoot = null;
  54275. workInProgress = null;
  54276. renderExpirationTime = NoWork;
  54277. } else {}
  54278. // This indicates that the last root we worked on is not the same one that
  54279. // we're committing now. This most commonly happens when a suspended root
  54280. // times out.
  54281. // Get the list of effects.
  54282. var firstEffect = void 0;
  54283. if (finishedWork.effectTag > PerformedWork) {
  54284. // A fiber's effect list consists only of its children, not itself. So if
  54285. // the root has an effect, we need to add it to the end of the list. The
  54286. // resulting list is the set that would belong to the root's parent, if it
  54287. // had one; that is, all the effects in the tree including the root.
  54288. if (finishedWork.lastEffect !== null) {
  54289. finishedWork.lastEffect.nextEffect = finishedWork;
  54290. firstEffect = finishedWork.firstEffect;
  54291. } else {
  54292. firstEffect = finishedWork;
  54293. }
  54294. } else {
  54295. // There is no effect on the root.
  54296. firstEffect = finishedWork.firstEffect;
  54297. }
  54298. if (firstEffect !== null) {
  54299. var prevExecutionContext = executionContext;
  54300. executionContext |= CommitContext;
  54301. var prevInteractions = null;
  54302. if (enableSchedulerTracing) {
  54303. prevInteractions = tracing.__interactionsRef.current;
  54304. tracing.__interactionsRef.current = root.memoizedInteractions;
  54305. }
  54306. // Reset this to null before calling lifecycles
  54307. ReactCurrentOwner$2.current = null;
  54308. // The commit phase is broken into several sub-phases. We do a separate pass
  54309. // of the effect list for each phase: all mutation effects come before all
  54310. // layout effects, and so on.
  54311. // The first phase a "before mutation" phase. We use this phase to read the
  54312. // state of the host tree right before we mutate it. This is where
  54313. // getSnapshotBeforeUpdate is called.
  54314. startCommitSnapshotEffectsTimer();
  54315. prepareForCommit(root.containerInfo);
  54316. nextEffect = firstEffect;
  54317. do {
  54318. {
  54319. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  54320. if (hasCaughtError()) {
  54321. (function () {
  54322. if (!(nextEffect !== null)) {
  54323. {
  54324. throw ReactError(Error('Should be working on an effect.'));
  54325. }
  54326. }
  54327. })();
  54328. var error = clearCaughtError();
  54329. captureCommitPhaseError(nextEffect, error);
  54330. nextEffect = nextEffect.nextEffect;
  54331. }
  54332. }
  54333. } while (nextEffect !== null);
  54334. stopCommitSnapshotEffectsTimer();
  54335. if (enableProfilerTimer) {
  54336. // Mark the current commit time to be shared by all Profilers in this
  54337. // batch. This enables them to be grouped later.
  54338. recordCommitTime();
  54339. }
  54340. // The next phase is the mutation phase, where we mutate the host tree.
  54341. startCommitHostEffectsTimer();
  54342. nextEffect = firstEffect;
  54343. do {
  54344. {
  54345. invokeGuardedCallback(null, commitMutationEffects, null, renderPriorityLevel);
  54346. if (hasCaughtError()) {
  54347. (function () {
  54348. if (!(nextEffect !== null)) {
  54349. {
  54350. throw ReactError(Error('Should be working on an effect.'));
  54351. }
  54352. }
  54353. })();
  54354. var _error = clearCaughtError();
  54355. captureCommitPhaseError(nextEffect, _error);
  54356. nextEffect = nextEffect.nextEffect;
  54357. }
  54358. }
  54359. } while (nextEffect !== null);
  54360. stopCommitHostEffectsTimer();
  54361. resetAfterCommit(root.containerInfo);
  54362. // The work-in-progress tree is now the current tree. This must come after
  54363. // the mutation phase, so that the previous tree is still current during
  54364. // componentWillUnmount, but before the layout phase, so that the finished
  54365. // work is current during componentDidMount/Update.
  54366. root.current = finishedWork;
  54367. // The next phase is the layout phase, where we call effects that read
  54368. // the host tree after it's been mutated. The idiomatic use case for this is
  54369. // layout, but class component lifecycles also fire here for legacy reasons.
  54370. startCommitLifeCyclesTimer();
  54371. nextEffect = firstEffect;
  54372. do {
  54373. {
  54374. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  54375. if (hasCaughtError()) {
  54376. (function () {
  54377. if (!(nextEffect !== null)) {
  54378. {
  54379. throw ReactError(Error('Should be working on an effect.'));
  54380. }
  54381. }
  54382. })();
  54383. var _error2 = clearCaughtError();
  54384. captureCommitPhaseError(nextEffect, _error2);
  54385. nextEffect = nextEffect.nextEffect;
  54386. }
  54387. }
  54388. } while (nextEffect !== null);
  54389. stopCommitLifeCyclesTimer();
  54390. nextEffect = null;
  54391. // Tell Scheduler to yield at the end of the frame, so the browser has an
  54392. // opportunity to paint.
  54393. requestPaint();
  54394. if (enableSchedulerTracing) {
  54395. tracing.__interactionsRef.current = prevInteractions;
  54396. }
  54397. executionContext = prevExecutionContext;
  54398. } else {
  54399. // No effects.
  54400. root.current = finishedWork;
  54401. // Measure these anyway so the flamegraph explicitly shows that there were
  54402. // no effects.
  54403. // TODO: Maybe there's a better way to report this.
  54404. startCommitSnapshotEffectsTimer();
  54405. stopCommitSnapshotEffectsTimer();
  54406. if (enableProfilerTimer) {
  54407. recordCommitTime();
  54408. }
  54409. startCommitHostEffectsTimer();
  54410. stopCommitHostEffectsTimer();
  54411. startCommitLifeCyclesTimer();
  54412. stopCommitLifeCyclesTimer();
  54413. }
  54414. stopCommitTimer();
  54415. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  54416. if (rootDoesHavePassiveEffects) {
  54417. // This commit has passive effects. Stash a reference to them. But don't
  54418. // schedule a callback until after flushing layout work.
  54419. rootDoesHavePassiveEffects = false;
  54420. rootWithPendingPassiveEffects = root;
  54421. pendingPassiveEffectsExpirationTime = expirationTime;
  54422. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  54423. } else {
  54424. // We are done with the effect chain at this point so let's clear the
  54425. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  54426. // clear this in flushPassiveEffects.
  54427. nextEffect = firstEffect;
  54428. while (nextEffect !== null) {
  54429. var nextNextEffect = nextEffect.nextEffect;
  54430. nextEffect.nextEffect = null;
  54431. nextEffect = nextNextEffect;
  54432. }
  54433. }
  54434. // Check if there's remaining work on this root
  54435. var remainingExpirationTime = root.firstPendingTime;
  54436. if (remainingExpirationTime !== NoWork) {
  54437. var currentTime = requestCurrentTime();
  54438. var priorityLevel = inferPriorityFromExpirationTime(currentTime, remainingExpirationTime);
  54439. if (enableSchedulerTracing) {
  54440. if (spawnedWorkDuringRender !== null) {
  54441. var expirationTimes = spawnedWorkDuringRender;
  54442. spawnedWorkDuringRender = null;
  54443. for (var i = 0; i < expirationTimes.length; i++) {
  54444. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  54445. }
  54446. }
  54447. }
  54448. scheduleCallbackForRoot(root, priorityLevel, remainingExpirationTime);
  54449. } else {
  54450. // If there's no remaining work, we can clear the set of already failed
  54451. // error boundaries.
  54452. legacyErrorBoundariesThatAlreadyFailed = null;
  54453. }
  54454. if (enableSchedulerTracing) {
  54455. if (!rootDidHavePassiveEffects) {
  54456. // If there are no passive effects, then we can complete the pending interactions.
  54457. // Otherwise, we'll wait until after the passive effects are flushed.
  54458. // Wait to do this until after remaining work has been scheduled,
  54459. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  54460. finishPendingInteractions(root, expirationTime);
  54461. }
  54462. }
  54463. onCommitRoot(finishedWork.stateNode, expirationTime);
  54464. if (remainingExpirationTime === Sync) {
  54465. // Count the number of times the root synchronously re-renders without
  54466. // finishing. If there are too many, it indicates an infinite update loop.
  54467. if (root === rootWithNestedUpdates) {
  54468. nestedUpdateCount++;
  54469. } else {
  54470. nestedUpdateCount = 0;
  54471. rootWithNestedUpdates = root;
  54472. }
  54473. } else {
  54474. nestedUpdateCount = 0;
  54475. }
  54476. if (hasUncaughtError) {
  54477. hasUncaughtError = false;
  54478. var _error3 = firstUncaughtError;
  54479. firstUncaughtError = null;
  54480. throw _error3;
  54481. }
  54482. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  54483. // This is a legacy edge case. We just committed the initial mount of
  54484. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  54485. // synchronously, but layout updates should be deferred until the end
  54486. // of the batch.
  54487. return null;
  54488. }
  54489. // If layout work was scheduled, flush it now.
  54490. flushSyncCallbackQueue();
  54491. return null;
  54492. }
  54493. function commitBeforeMutationEffects() {
  54494. while (nextEffect !== null) {
  54495. if ((nextEffect.effectTag & Snapshot) !== NoEffect) {
  54496. setCurrentFiber(nextEffect);
  54497. recordEffect();
  54498. var current$$1 = nextEffect.alternate;
  54499. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  54500. resetCurrentFiber();
  54501. }
  54502. nextEffect = nextEffect.nextEffect;
  54503. }
  54504. }
  54505. function commitMutationEffects(renderPriorityLevel) {
  54506. // TODO: Should probably move the bulk of this function to commitWork.
  54507. while (nextEffect !== null) {
  54508. setCurrentFiber(nextEffect);
  54509. var effectTag = nextEffect.effectTag;
  54510. if (effectTag & ContentReset) {
  54511. commitResetTextContent(nextEffect);
  54512. }
  54513. if (effectTag & Ref) {
  54514. var current$$1 = nextEffect.alternate;
  54515. if (current$$1 !== null) {
  54516. commitDetachRef(current$$1);
  54517. }
  54518. }
  54519. // The following switch statement is only concerned about placement,
  54520. // updates, and deletions. To avoid needing to add a case for every possible
  54521. // bitmap value, we remove the secondary effects from the effect tag and
  54522. // switch on that value.
  54523. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  54524. switch (primaryEffectTag) {
  54525. case Placement:
  54526. {
  54527. commitPlacement(nextEffect);
  54528. // Clear the "placement" from effect tag so that we know that this is
  54529. // inserted, before any life-cycles like componentDidMount gets called.
  54530. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  54531. // and isMounted is deprecated anyway so we should be able to kill this.
  54532. nextEffect.effectTag &= ~Placement;
  54533. break;
  54534. }
  54535. case PlacementAndUpdate:
  54536. {
  54537. // Placement
  54538. commitPlacement(nextEffect);
  54539. // Clear the "placement" from effect tag so that we know that this is
  54540. // inserted, before any life-cycles like componentDidMount gets called.
  54541. nextEffect.effectTag &= ~Placement;
  54542. // Update
  54543. var _current = nextEffect.alternate;
  54544. commitWork(_current, nextEffect);
  54545. break;
  54546. }
  54547. case Update:
  54548. {
  54549. var _current2 = nextEffect.alternate;
  54550. commitWork(_current2, nextEffect);
  54551. break;
  54552. }
  54553. case Deletion:
  54554. {
  54555. commitDeletion(nextEffect, renderPriorityLevel);
  54556. break;
  54557. }
  54558. }
  54559. // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  54560. recordEffect();
  54561. resetCurrentFiber();
  54562. nextEffect = nextEffect.nextEffect;
  54563. }
  54564. }
  54565. function commitLayoutEffects(root, committedExpirationTime) {
  54566. // TODO: Should probably move the bulk of this function to commitWork.
  54567. while (nextEffect !== null) {
  54568. setCurrentFiber(nextEffect);
  54569. var effectTag = nextEffect.effectTag;
  54570. if (effectTag & (Update | Callback)) {
  54571. recordEffect();
  54572. var current$$1 = nextEffect.alternate;
  54573. commitLifeCycles(root, current$$1, nextEffect, committedExpirationTime);
  54574. }
  54575. if (effectTag & Ref) {
  54576. recordEffect();
  54577. commitAttachRef(nextEffect);
  54578. }
  54579. if (effectTag & Passive) {
  54580. rootDoesHavePassiveEffects = true;
  54581. }
  54582. resetCurrentFiber();
  54583. nextEffect = nextEffect.nextEffect;
  54584. }
  54585. }
  54586. function flushPassiveEffects() {
  54587. if (rootWithPendingPassiveEffects === null) {
  54588. return false;
  54589. }
  54590. var root = rootWithPendingPassiveEffects;
  54591. var expirationTime = pendingPassiveEffectsExpirationTime;
  54592. var renderPriorityLevel = pendingPassiveEffectsRenderPriority;
  54593. rootWithPendingPassiveEffects = null;
  54594. pendingPassiveEffectsExpirationTime = NoWork;
  54595. pendingPassiveEffectsRenderPriority = NoPriority;
  54596. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  54597. return runWithPriority$2(priorityLevel, flushPassiveEffectsImpl.bind(null, root, expirationTime));
  54598. }
  54599. function flushPassiveEffectsImpl(root, expirationTime) {
  54600. var prevInteractions = null;
  54601. if (enableSchedulerTracing) {
  54602. prevInteractions = tracing.__interactionsRef.current;
  54603. tracing.__interactionsRef.current = root.memoizedInteractions;
  54604. }
  54605. (function () {
  54606. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  54607. {
  54608. throw ReactError(Error('Cannot flush passive effects while already rendering.'));
  54609. }
  54610. }
  54611. })();
  54612. var prevExecutionContext = executionContext;
  54613. executionContext |= CommitContext;
  54614. // Note: This currently assumes there are no passive effects on the root
  54615. // fiber, because the root is not part of its own effect list. This could
  54616. // change in the future.
  54617. var effect = root.current.firstEffect;
  54618. while (effect !== null) {
  54619. {
  54620. setCurrentFiber(effect);
  54621. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  54622. if (hasCaughtError()) {
  54623. (function () {
  54624. if (!(effect !== null)) {
  54625. {
  54626. throw ReactError(Error('Should be working on an effect.'));
  54627. }
  54628. }
  54629. })();
  54630. var error = clearCaughtError();
  54631. captureCommitPhaseError(effect, error);
  54632. }
  54633. resetCurrentFiber();
  54634. }
  54635. var nextNextEffect = effect.nextEffect;
  54636. // Remove nextEffect pointer to assist GC
  54637. effect.nextEffect = null;
  54638. effect = nextNextEffect;
  54639. }
  54640. if (enableSchedulerTracing) {
  54641. tracing.__interactionsRef.current = prevInteractions;
  54642. finishPendingInteractions(root, expirationTime);
  54643. }
  54644. executionContext = prevExecutionContext;
  54645. flushSyncCallbackQueue();
  54646. // If additional passive effects were scheduled, increment a counter. If this
  54647. // exceeds the limit, we'll fire a warning.
  54648. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  54649. return true;
  54650. }
  54651. function isAlreadyFailedLegacyErrorBoundary(instance) {
  54652. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  54653. }
  54654. function markLegacyErrorBoundaryAsFailed(instance) {
  54655. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  54656. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  54657. } else {
  54658. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  54659. }
  54660. }
  54661. function prepareToThrowUncaughtError(error) {
  54662. if (!hasUncaughtError) {
  54663. hasUncaughtError = true;
  54664. firstUncaughtError = error;
  54665. }
  54666. }
  54667. var onUncaughtError = prepareToThrowUncaughtError;
  54668. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  54669. var errorInfo = createCapturedValue(error, sourceFiber);
  54670. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  54671. enqueueUpdate(rootFiber, update);
  54672. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  54673. if (root !== null) {
  54674. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  54675. }
  54676. }
  54677. function captureCommitPhaseError(sourceFiber, error) {
  54678. if (sourceFiber.tag === HostRoot) {
  54679. // Error was thrown at the root. There is no parent, so the root
  54680. // itself should capture it.
  54681. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  54682. return;
  54683. }
  54684. var fiber = sourceFiber.return;
  54685. while (fiber !== null) {
  54686. if (fiber.tag === HostRoot) {
  54687. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  54688. return;
  54689. } else if (fiber.tag === ClassComponent) {
  54690. var ctor = fiber.type;
  54691. var instance = fiber.stateNode;
  54692. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  54693. var errorInfo = createCapturedValue(error, sourceFiber);
  54694. var update = createClassErrorUpdate(fiber, errorInfo,
  54695. // TODO: This is always sync
  54696. Sync);
  54697. enqueueUpdate(fiber, update);
  54698. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  54699. if (root !== null) {
  54700. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  54701. }
  54702. return;
  54703. }
  54704. }
  54705. fiber = fiber.return;
  54706. }
  54707. }
  54708. function pingSuspendedRoot(root, thenable, suspendedTime) {
  54709. var pingCache = root.pingCache;
  54710. if (pingCache !== null) {
  54711. // The thenable resolved, so we no longer need to memoize, because it will
  54712. // never be thrown again.
  54713. pingCache.delete(thenable);
  54714. }
  54715. if (workInProgressRoot === root && renderExpirationTime === suspendedTime) {
  54716. // Received a ping at the same priority level at which we're currently
  54717. // rendering. We might want to restart this render. This should mirror
  54718. // the logic of whether or not a root suspends once it completes.
  54719. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  54720. // we should probably never restart.
  54721. // If we're suspended with delay, we'll always suspend so we can always
  54722. // restart. If we're suspended without any updates, it might be a retry.
  54723. // If it's early in the retry we can restart. We can't know for sure
  54724. // whether we'll eventually process an update during this render pass,
  54725. // but it's somewhat unlikely that we get to a ping before that, since
  54726. // getting to the root most update is usually very fast.
  54727. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  54728. // Restart from the root. Don't need to schedule a ping because
  54729. // we're already working on this tree.
  54730. prepareFreshStack(root, renderExpirationTime);
  54731. } else {
  54732. // Even though we can't restart right now, we might get an
  54733. // opportunity later. So we mark this render as having a ping.
  54734. workInProgressRootHasPendingPing = true;
  54735. }
  54736. return;
  54737. }
  54738. var lastPendingTime = root.lastPendingTime;
  54739. if (lastPendingTime < suspendedTime) {
  54740. // The root is no longer suspended at this time.
  54741. return;
  54742. }
  54743. var pingTime = root.pingTime;
  54744. if (pingTime !== NoWork && pingTime < suspendedTime) {
  54745. // There's already a lower priority ping scheduled.
  54746. return;
  54747. }
  54748. // Mark the time at which this ping was scheduled.
  54749. root.pingTime = suspendedTime;
  54750. if (root.finishedExpirationTime === suspendedTime) {
  54751. // If there's a pending fallback waiting to commit, throw it away.
  54752. root.finishedExpirationTime = NoWork;
  54753. root.finishedWork = null;
  54754. }
  54755. var currentTime = requestCurrentTime();
  54756. var priorityLevel = inferPriorityFromExpirationTime(currentTime, suspendedTime);
  54757. scheduleCallbackForRoot(root, priorityLevel, suspendedTime);
  54758. }
  54759. function retryTimedOutBoundary(boundaryFiber) {
  54760. // The boundary fiber (a Suspense component or SuspenseList component)
  54761. // previously was rendered in its fallback state. One of the promises that
  54762. // suspended it has resolved, which means at least part of the tree was
  54763. // likely unblocked. Try rendering again, at a new expiration time.
  54764. var currentTime = requestCurrentTime();
  54765. var suspenseConfig = null; // Retries don't carry over the already committed update.
  54766. var retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  54767. // TODO: Special case idle priority?
  54768. var priorityLevel = inferPriorityFromExpirationTime(currentTime, retryTime);
  54769. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  54770. if (root !== null) {
  54771. scheduleCallbackForRoot(root, priorityLevel, retryTime);
  54772. }
  54773. }
  54774. function resolveRetryThenable(boundaryFiber, thenable) {
  54775. var retryCache = void 0;
  54776. if (enableSuspenseServerRenderer) {
  54777. switch (boundaryFiber.tag) {
  54778. case SuspenseComponent:
  54779. retryCache = boundaryFiber.stateNode;
  54780. break;
  54781. case DehydratedSuspenseComponent:
  54782. retryCache = boundaryFiber.memoizedState;
  54783. break;
  54784. default:
  54785. (function () {
  54786. {
  54787. {
  54788. throw ReactError(Error('Pinged unknown suspense boundary type. This is probably a bug in React.'));
  54789. }
  54790. }
  54791. })();
  54792. }
  54793. } else {
  54794. retryCache = boundaryFiber.stateNode;
  54795. }
  54796. if (retryCache !== null) {
  54797. // The thenable resolved, so we no longer need to memoize, because it will
  54798. // never be thrown again.
  54799. retryCache.delete(thenable);
  54800. }
  54801. retryTimedOutBoundary(boundaryFiber);
  54802. }
  54803. // Computes the next Just Noticeable Difference (JND) boundary.
  54804. // The theory is that a person can't tell the difference between small differences in time.
  54805. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  54806. // difference in the experience. However, waiting for longer might mean that we can avoid
  54807. // showing an intermediate loading state. The longer we have already waited, the harder it
  54808. // is to tell small differences in time. Therefore, the longer we've already waited,
  54809. // the longer we can wait additionally. At some point we have to give up though.
  54810. // We pick a train model where the next boundary commits at a consistent schedule.
  54811. // These particular numbers are vague estimates. We expect to adjust them based on research.
  54812. function jnd(timeElapsed) {
  54813. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  54814. }
  54815. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  54816. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  54817. if (busyMinDurationMs <= 0) {
  54818. return 0;
  54819. }
  54820. var busyDelayMs = suspenseConfig.busyDelayMs | 0;
  54821. // Compute the time until this render pass would expire.
  54822. var currentTimeMs = now();
  54823. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  54824. var timeElapsed = currentTimeMs - eventTimeMs;
  54825. if (timeElapsed <= busyDelayMs) {
  54826. // If we haven't yet waited longer than the initial delay, we don't
  54827. // have to wait any additional time.
  54828. return 0;
  54829. }
  54830. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed;
  54831. // This is the value that is passed to `setTimeout`.
  54832. return msUntilTimeout;
  54833. }
  54834. function checkForNestedUpdates() {
  54835. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  54836. nestedUpdateCount = 0;
  54837. rootWithNestedUpdates = null;
  54838. (function () {
  54839. {
  54840. {
  54841. 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.'));
  54842. }
  54843. }
  54844. })();
  54845. }
  54846. {
  54847. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  54848. nestedPassiveUpdateCount = 0;
  54849. 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.');
  54850. }
  54851. }
  54852. }
  54853. function flushRenderPhaseStrictModeWarningsInDEV() {
  54854. {
  54855. ReactStrictModeWarnings.flushLegacyContextWarning();
  54856. if (warnAboutDeprecatedLifecycles) {
  54857. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  54858. }
  54859. }
  54860. }
  54861. function stopFinishedWorkLoopTimer() {
  54862. var didCompleteRoot = true;
  54863. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  54864. interruptedBy = null;
  54865. }
  54866. function stopInterruptedWorkLoopTimer() {
  54867. // TODO: Track which fiber caused the interruption.
  54868. var didCompleteRoot = false;
  54869. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  54870. interruptedBy = null;
  54871. }
  54872. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  54873. if (enableUserTimingAPI && workInProgressRoot !== null && updateExpirationTime > renderExpirationTime) {
  54874. interruptedBy = fiberThatReceivedUpdate;
  54875. }
  54876. }
  54877. var didWarnStateUpdateForUnmountedComponent = null;
  54878. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  54879. {
  54880. var tag = fiber.tag;
  54881. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
  54882. // Only warn for user-defined components, not internal ones like Suspense.
  54883. return;
  54884. }
  54885. // We show the whole stack but dedupe on the top component's name because
  54886. // the problematic code almost always lies inside that component.
  54887. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  54888. if (didWarnStateUpdateForUnmountedComponent !== null) {
  54889. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  54890. return;
  54891. }
  54892. didWarnStateUpdateForUnmountedComponent.add(componentName);
  54893. } else {
  54894. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  54895. }
  54896. 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));
  54897. }
  54898. }
  54899. var beginWork$$1 = void 0;
  54900. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  54901. var dummyFiber = null;
  54902. beginWork$$1 = function (current$$1, unitOfWork, expirationTime) {
  54903. // If a component throws an error, we replay it again in a synchronously
  54904. // dispatched event, so that the debugger will treat it as an uncaught
  54905. // error See ReactErrorUtils for more information.
  54906. // Before entering the begin phase, copy the work-in-progress onto a dummy
  54907. // fiber. If beginWork throws, we'll use this to reset the state.
  54908. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  54909. try {
  54910. return beginWork$1(current$$1, unitOfWork, expirationTime);
  54911. } catch (originalError) {
  54912. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  54913. // Don't replay promises. Treat everything else like an error.
  54914. throw originalError;
  54915. }
  54916. // Keep this code in sync with renderRoot; any changes here must have
  54917. // corresponding changes there.
  54918. resetContextDependencies();
  54919. resetHooks();
  54920. // Unwind the failed stack frame
  54921. unwindInterruptedWork(unitOfWork);
  54922. // Restore the original properties of the fiber.
  54923. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  54924. if (enableProfilerTimer && unitOfWork.mode & ProfileMode) {
  54925. // Reset the profiler timer.
  54926. startProfilerTimer(unitOfWork);
  54927. }
  54928. // Run beginWork again.
  54929. invokeGuardedCallback(null, beginWork$1, null, current$$1, unitOfWork, expirationTime);
  54930. if (hasCaughtError()) {
  54931. var replayError = clearCaughtError();
  54932. // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  54933. // Rethrow this error instead of the original one.
  54934. throw replayError;
  54935. } else {
  54936. // This branch is reachable if the render phase is impure.
  54937. throw originalError;
  54938. }
  54939. }
  54940. };
  54941. } else {
  54942. beginWork$$1 = beginWork$1;
  54943. }
  54944. var didWarnAboutUpdateInRender = false;
  54945. var didWarnAboutUpdateInGetChildContext = false;
  54946. function warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber) {
  54947. {
  54948. if (fiber.tag === ClassComponent) {
  54949. switch (phase) {
  54950. case 'getChildContext':
  54951. if (didWarnAboutUpdateInGetChildContext) {
  54952. return;
  54953. }
  54954. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  54955. didWarnAboutUpdateInGetChildContext = true;
  54956. break;
  54957. case 'render':
  54958. if (didWarnAboutUpdateInRender) {
  54959. return;
  54960. }
  54961. 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.');
  54962. didWarnAboutUpdateInRender = true;
  54963. break;
  54964. }
  54965. }
  54966. }
  54967. }
  54968. // a 'shared' variable that changes when act() opens/closes in tests.
  54969. var IsThisRendererActing = { current: false };
  54970. function warnIfNotScopedWithMatchingAct(fiber) {
  54971. {
  54972. if (warnsIfNotActing === true && IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  54973. 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));
  54974. }
  54975. }
  54976. }
  54977. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  54978. {
  54979. if (warnsIfNotActing === true && (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  54980. 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));
  54981. }
  54982. }
  54983. }
  54984. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  54985. {
  54986. if (warnsIfNotActing === true && executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  54987. 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));
  54988. }
  54989. }
  54990. }
  54991. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV;
  54992. // In tests, we want to enforce a mocked scheduler.
  54993. var didWarnAboutUnmockedScheduler = false;
  54994. // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  54995. // scheduler is the actual recommendation. The alternative could be a testing build,
  54996. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  54997. // to get their tests right.
  54998. function warnIfUnmockedScheduler(fiber) {
  54999. {
  55000. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  55001. if (fiber.mode & BatchedMode || fiber.mode & ConcurrentMode) {
  55002. didWarnAboutUnmockedScheduler = true;
  55003. 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');
  55004. } else if (warnAboutUnmockedScheduler === true) {
  55005. didWarnAboutUnmockedScheduler = true;
  55006. 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');
  55007. }
  55008. }
  55009. }
  55010. }
  55011. var componentsThatTriggeredHighPriSuspend = null;
  55012. function checkForWrongSuspensePriorityInDEV(sourceFiber) {
  55013. {
  55014. var currentPriorityLevel = getCurrentPriorityLevel();
  55015. if ((sourceFiber.mode & ConcurrentMode) !== NoEffect && (currentPriorityLevel === UserBlockingPriority$2 || currentPriorityLevel === ImmediatePriority)) {
  55016. var workInProgressNode = sourceFiber;
  55017. while (workInProgressNode !== null) {
  55018. // Add the component that triggered the suspense
  55019. var current$$1 = workInProgressNode.alternate;
  55020. if (current$$1 !== null) {
  55021. // TODO: warn component that triggers the high priority
  55022. // suspend is the HostRoot
  55023. switch (workInProgressNode.tag) {
  55024. case ClassComponent:
  55025. // Loop through the component's update queue and see whether the component
  55026. // has triggered any high priority updates
  55027. var updateQueue = current$$1.updateQueue;
  55028. if (updateQueue !== null) {
  55029. var update = updateQueue.firstUpdate;
  55030. while (update !== null) {
  55031. var priorityLevel = update.priority;
  55032. if (priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority) {
  55033. if (componentsThatTriggeredHighPriSuspend === null) {
  55034. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  55035. } else {
  55036. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  55037. }
  55038. break;
  55039. }
  55040. update = update.next;
  55041. }
  55042. }
  55043. break;
  55044. case FunctionComponent:
  55045. case ForwardRef:
  55046. case SimpleMemoComponent:
  55047. if (workInProgressNode.memoizedState !== null && workInProgressNode.memoizedState.baseUpdate !== null) {
  55048. var _update = workInProgressNode.memoizedState.baseUpdate;
  55049. // Loop through the functional component's memoized state to see whether
  55050. // the component has triggered any high pri updates
  55051. while (_update !== null) {
  55052. var priority = _update.priority;
  55053. if (priority === UserBlockingPriority$2 || priority === ImmediatePriority) {
  55054. if (componentsThatTriggeredHighPriSuspend === null) {
  55055. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  55056. } else {
  55057. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  55058. }
  55059. break;
  55060. }
  55061. if (_update.next === workInProgressNode.memoizedState.baseUpdate) {
  55062. break;
  55063. }
  55064. _update = _update.next;
  55065. }
  55066. }
  55067. break;
  55068. default:
  55069. break;
  55070. }
  55071. }
  55072. workInProgressNode = workInProgressNode.return;
  55073. }
  55074. }
  55075. }
  55076. }
  55077. function flushSuspensePriorityWarningInDEV() {
  55078. {
  55079. if (componentsThatTriggeredHighPriSuspend !== null) {
  55080. var componentNames = [];
  55081. componentsThatTriggeredHighPriSuspend.forEach(function (name) {
  55082. return componentNames.push(name);
  55083. });
  55084. componentsThatTriggeredHighPriSuspend = null;
  55085. if (componentNames.length > 0) {
  55086. 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.',
  55087. // TODO: Add link to React docs with more information, once it exists
  55088. componentNames.sort().join(', '));
  55089. }
  55090. }
  55091. }
  55092. }
  55093. function computeThreadID(root, expirationTime) {
  55094. // Interaction threads are unique per root and expiration time.
  55095. return expirationTime * 1000 + root.interactionThreadID;
  55096. }
  55097. function markSpawnedWork(expirationTime) {
  55098. if (!enableSchedulerTracing) {
  55099. return;
  55100. }
  55101. if (spawnedWorkDuringRender === null) {
  55102. spawnedWorkDuringRender = [expirationTime];
  55103. } else {
  55104. spawnedWorkDuringRender.push(expirationTime);
  55105. }
  55106. }
  55107. function scheduleInteractions(root, expirationTime, interactions) {
  55108. if (!enableSchedulerTracing) {
  55109. return;
  55110. }
  55111. if (interactions.size > 0) {
  55112. var pendingInteractionMap = root.pendingInteractionMap;
  55113. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  55114. if (pendingInteractions != null) {
  55115. interactions.forEach(function (interaction) {
  55116. if (!pendingInteractions.has(interaction)) {
  55117. // Update the pending async work count for previously unscheduled interaction.
  55118. interaction.__count++;
  55119. }
  55120. pendingInteractions.add(interaction);
  55121. });
  55122. } else {
  55123. pendingInteractionMap.set(expirationTime, new Set(interactions));
  55124. // Update the pending async work count for the current interactions.
  55125. interactions.forEach(function (interaction) {
  55126. interaction.__count++;
  55127. });
  55128. }
  55129. var subscriber = tracing.__subscriberRef.current;
  55130. if (subscriber !== null) {
  55131. var threadID = computeThreadID(root, expirationTime);
  55132. subscriber.onWorkScheduled(interactions, threadID);
  55133. }
  55134. }
  55135. }
  55136. function schedulePendingInteractions(root, expirationTime) {
  55137. // This is called when work is scheduled on a root.
  55138. // It associates the current interactions with the newly-scheduled expiration.
  55139. // They will be restored when that expiration is later committed.
  55140. if (!enableSchedulerTracing) {
  55141. return;
  55142. }
  55143. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  55144. }
  55145. function startWorkOnPendingInteractions(root, expirationTime) {
  55146. // This is called when new work is started on a root.
  55147. if (!enableSchedulerTracing) {
  55148. return;
  55149. }
  55150. // Determine which interactions this batch of work currently includes, So that
  55151. // we can accurately attribute time spent working on it, And so that cascading
  55152. // work triggered during the render phase will be associated with it.
  55153. var interactions = new Set();
  55154. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  55155. if (scheduledExpirationTime >= expirationTime) {
  55156. scheduledInteractions.forEach(function (interaction) {
  55157. return interactions.add(interaction);
  55158. });
  55159. }
  55160. });
  55161. // Store the current set of interactions on the FiberRoot for a few reasons:
  55162. // We can re-use it in hot functions like renderRoot() without having to
  55163. // recalculate it. We will also use it in commitWork() to pass to any Profiler
  55164. // onRender() hooks. This also provides DevTools with a way to access it when
  55165. // the onCommitRoot() hook is called.
  55166. root.memoizedInteractions = interactions;
  55167. if (interactions.size > 0) {
  55168. var subscriber = tracing.__subscriberRef.current;
  55169. if (subscriber !== null) {
  55170. var threadID = computeThreadID(root, expirationTime);
  55171. try {
  55172. subscriber.onWorkStarted(interactions, threadID);
  55173. } catch (error) {
  55174. // If the subscriber throws, rethrow it in a separate task
  55175. scheduleCallback(ImmediatePriority, function () {
  55176. throw error;
  55177. });
  55178. }
  55179. }
  55180. }
  55181. }
  55182. function finishPendingInteractions(root, committedExpirationTime) {
  55183. if (!enableSchedulerTracing) {
  55184. return;
  55185. }
  55186. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  55187. var subscriber = void 0;
  55188. try {
  55189. subscriber = tracing.__subscriberRef.current;
  55190. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  55191. var threadID = computeThreadID(root, committedExpirationTime);
  55192. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  55193. }
  55194. } catch (error) {
  55195. // If the subscriber throws, rethrow it in a separate task
  55196. scheduleCallback(ImmediatePriority, function () {
  55197. throw error;
  55198. });
  55199. } finally {
  55200. // Clear completed interactions from the pending Map.
  55201. // Unless the render was suspended or cascading work was scheduled,
  55202. // In which case– leave pending interactions until the subsequent render.
  55203. var pendingInteractionMap = root.pendingInteractionMap;
  55204. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  55205. // Only decrement the pending interaction count if we're done.
  55206. // If there's still work at the current priority,
  55207. // That indicates that we are waiting for suspense data.
  55208. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  55209. pendingInteractionMap.delete(scheduledExpirationTime);
  55210. scheduledInteractions.forEach(function (interaction) {
  55211. interaction.__count--;
  55212. if (subscriber !== null && interaction.__count === 0) {
  55213. try {
  55214. subscriber.onInteractionScheduledWorkCompleted(interaction);
  55215. } catch (error) {
  55216. // If the subscriber throws, rethrow it in a separate task
  55217. scheduleCallback(ImmediatePriority, function () {
  55218. throw error;
  55219. });
  55220. }
  55221. }
  55222. });
  55223. }
  55224. });
  55225. }
  55226. }
  55227. var onCommitFiberRoot = null;
  55228. var onCommitFiberUnmount = null;
  55229. var hasLoggedError = false;
  55230. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  55231. function injectInternals(internals) {
  55232. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  55233. // No DevTools
  55234. return false;
  55235. }
  55236. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  55237. if (hook.isDisabled) {
  55238. // This isn't a real property on the hook, but it can be set to opt out
  55239. // of DevTools integration and associated warnings and logs.
  55240. // https://github.com/facebook/react/issues/3877
  55241. return true;
  55242. }
  55243. if (!hook.supportsFiber) {
  55244. {
  55245. 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');
  55246. }
  55247. // DevTools exists, even though it doesn't support Fiber.
  55248. return true;
  55249. }
  55250. try {
  55251. var rendererID = hook.inject(internals);
  55252. // We have successfully injected, so now it is safe to set up hooks.
  55253. onCommitFiberRoot = function (root, expirationTime) {
  55254. try {
  55255. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  55256. if (enableProfilerTimer) {
  55257. var currentTime = requestCurrentTime();
  55258. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  55259. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  55260. } else {
  55261. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  55262. }
  55263. } catch (err) {
  55264. if ( true && !hasLoggedError) {
  55265. hasLoggedError = true;
  55266. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  55267. }
  55268. }
  55269. };
  55270. onCommitFiberUnmount = function (fiber) {
  55271. try {
  55272. hook.onCommitFiberUnmount(rendererID, fiber);
  55273. } catch (err) {
  55274. if ( true && !hasLoggedError) {
  55275. hasLoggedError = true;
  55276. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  55277. }
  55278. }
  55279. };
  55280. } catch (err) {
  55281. // Catch all errors because it is unsafe to throw during initialization.
  55282. {
  55283. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  55284. }
  55285. }
  55286. // DevTools exists
  55287. return true;
  55288. }
  55289. function onCommitRoot(root, expirationTime) {
  55290. if (typeof onCommitFiberRoot === 'function') {
  55291. onCommitFiberRoot(root, expirationTime);
  55292. }
  55293. }
  55294. function onCommitUnmount(fiber) {
  55295. if (typeof onCommitFiberUnmount === 'function') {
  55296. onCommitFiberUnmount(fiber);
  55297. }
  55298. }
  55299. var hasBadMapPolyfill = void 0;
  55300. {
  55301. hasBadMapPolyfill = false;
  55302. try {
  55303. var nonExtensibleObject = Object.preventExtensions({});
  55304. var testMap = new Map([[nonExtensibleObject, null]]);
  55305. var testSet = new Set([nonExtensibleObject]);
  55306. // This is necessary for Rollup to not consider these unused.
  55307. // https://github.com/rollup/rollup/issues/1771
  55308. // TODO: we can remove these if Rollup fixes the bug.
  55309. testMap.set(0, 0);
  55310. testSet.add(0);
  55311. } catch (e) {
  55312. // TODO: Consider warning about bad polyfills
  55313. hasBadMapPolyfill = true;
  55314. }
  55315. }
  55316. // A Fiber is work on a Component that needs to be done or was done. There can
  55317. // be more than one per component.
  55318. var debugCounter = void 0;
  55319. {
  55320. debugCounter = 1;
  55321. }
  55322. function FiberNode(tag, pendingProps, key, mode) {
  55323. // Instance
  55324. this.tag = tag;
  55325. this.key = key;
  55326. this.elementType = null;
  55327. this.type = null;
  55328. this.stateNode = null;
  55329. // Fiber
  55330. this.return = null;
  55331. this.child = null;
  55332. this.sibling = null;
  55333. this.index = 0;
  55334. this.ref = null;
  55335. this.pendingProps = pendingProps;
  55336. this.memoizedProps = null;
  55337. this.updateQueue = null;
  55338. this.memoizedState = null;
  55339. this.dependencies = null;
  55340. this.mode = mode;
  55341. // Effects
  55342. this.effectTag = NoEffect;
  55343. this.nextEffect = null;
  55344. this.firstEffect = null;
  55345. this.lastEffect = null;
  55346. this.expirationTime = NoWork;
  55347. this.childExpirationTime = NoWork;
  55348. this.alternate = null;
  55349. if (enableProfilerTimer) {
  55350. // Note: The following is done to avoid a v8 performance cliff.
  55351. //
  55352. // Initializing the fields below to smis and later updating them with
  55353. // double values will cause Fibers to end up having separate shapes.
  55354. // This behavior/bug has something to do with Object.preventExtension().
  55355. // Fortunately this only impacts DEV builds.
  55356. // Unfortunately it makes React unusably slow for some applications.
  55357. // To work around this, initialize the fields below with doubles.
  55358. //
  55359. // Learn more about this here:
  55360. // https://github.com/facebook/react/issues/14365
  55361. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  55362. this.actualDuration = Number.NaN;
  55363. this.actualStartTime = Number.NaN;
  55364. this.selfBaseDuration = Number.NaN;
  55365. this.treeBaseDuration = Number.NaN;
  55366. // It's okay to replace the initial doubles with smis after initialization.
  55367. // This won't trigger the performance cliff mentioned above,
  55368. // and it simplifies other profiler code (including DevTools).
  55369. this.actualDuration = 0;
  55370. this.actualStartTime = -1;
  55371. this.selfBaseDuration = 0;
  55372. this.treeBaseDuration = 0;
  55373. }
  55374. {
  55375. this._debugID = debugCounter++;
  55376. this._debugSource = null;
  55377. this._debugOwner = null;
  55378. this._debugIsCurrentlyTiming = false;
  55379. this._debugNeedsRemount = false;
  55380. this._debugHookTypes = null;
  55381. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  55382. Object.preventExtensions(this);
  55383. }
  55384. }
  55385. }
  55386. // This is a constructor function, rather than a POJO constructor, still
  55387. // please ensure we do the following:
  55388. // 1) Nobody should add any instance methods on this. Instance methods can be
  55389. // more difficult to predict when they get optimized and they are almost
  55390. // never inlined properly in static compilers.
  55391. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  55392. // always know when it is a fiber.
  55393. // 3) We might want to experiment with using numeric keys since they are easier
  55394. // to optimize in a non-JIT environment.
  55395. // 4) We can easily go from a constructor to a createFiber object literal if that
  55396. // is faster.
  55397. // 5) It should be easy to port this to a C struct and keep a C implementation
  55398. // compatible.
  55399. var createFiber = function (tag, pendingProps, key, mode) {
  55400. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  55401. return new FiberNode(tag, pendingProps, key, mode);
  55402. };
  55403. function shouldConstruct(Component) {
  55404. var prototype = Component.prototype;
  55405. return !!(prototype && prototype.isReactComponent);
  55406. }
  55407. function isSimpleFunctionComponent(type) {
  55408. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  55409. }
  55410. function resolveLazyComponentTag(Component) {
  55411. if (typeof Component === 'function') {
  55412. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  55413. } else if (Component !== undefined && Component !== null) {
  55414. var $$typeof = Component.$$typeof;
  55415. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  55416. return ForwardRef;
  55417. }
  55418. if ($$typeof === REACT_MEMO_TYPE) {
  55419. return MemoComponent;
  55420. }
  55421. }
  55422. return IndeterminateComponent;
  55423. }
  55424. // This is used to create an alternate fiber to do work on.
  55425. function createWorkInProgress(current, pendingProps, expirationTime) {
  55426. var workInProgress = current.alternate;
  55427. if (workInProgress === null) {
  55428. // We use a double buffering pooling technique because we know that we'll
  55429. // only ever need at most two versions of a tree. We pool the "other" unused
  55430. // node that we're free to reuse. This is lazily created to avoid allocating
  55431. // extra objects for things that are never updated. It also allow us to
  55432. // reclaim the extra memory if needed.
  55433. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  55434. workInProgress.elementType = current.elementType;
  55435. workInProgress.type = current.type;
  55436. workInProgress.stateNode = current.stateNode;
  55437. {
  55438. // DEV-only fields
  55439. workInProgress._debugID = current._debugID;
  55440. workInProgress._debugSource = current._debugSource;
  55441. workInProgress._debugOwner = current._debugOwner;
  55442. workInProgress._debugHookTypes = current._debugHookTypes;
  55443. }
  55444. workInProgress.alternate = current;
  55445. current.alternate = workInProgress;
  55446. } else {
  55447. workInProgress.pendingProps = pendingProps;
  55448. // We already have an alternate.
  55449. // Reset the effect tag.
  55450. workInProgress.effectTag = NoEffect;
  55451. // The effect list is no longer valid.
  55452. workInProgress.nextEffect = null;
  55453. workInProgress.firstEffect = null;
  55454. workInProgress.lastEffect = null;
  55455. if (enableProfilerTimer) {
  55456. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  55457. // This prevents time from endlessly accumulating in new commits.
  55458. // This has the downside of resetting values for different priority renders,
  55459. // But works for yielding (the common case) and should support resuming.
  55460. workInProgress.actualDuration = 0;
  55461. workInProgress.actualStartTime = -1;
  55462. }
  55463. }
  55464. workInProgress.childExpirationTime = current.childExpirationTime;
  55465. workInProgress.expirationTime = current.expirationTime;
  55466. workInProgress.child = current.child;
  55467. workInProgress.memoizedProps = current.memoizedProps;
  55468. workInProgress.memoizedState = current.memoizedState;
  55469. workInProgress.updateQueue = current.updateQueue;
  55470. // Clone the dependencies object. This is mutated during the render phase, so
  55471. // it cannot be shared with the current fiber.
  55472. var currentDependencies = current.dependencies;
  55473. workInProgress.dependencies = currentDependencies === null ? null : {
  55474. expirationTime: currentDependencies.expirationTime,
  55475. firstContext: currentDependencies.firstContext,
  55476. responders: currentDependencies.responders
  55477. };
  55478. // These will be overridden during the parent's reconciliation
  55479. workInProgress.sibling = current.sibling;
  55480. workInProgress.index = current.index;
  55481. workInProgress.ref = current.ref;
  55482. if (enableProfilerTimer) {
  55483. workInProgress.selfBaseDuration = current.selfBaseDuration;
  55484. workInProgress.treeBaseDuration = current.treeBaseDuration;
  55485. }
  55486. {
  55487. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  55488. switch (workInProgress.tag) {
  55489. case IndeterminateComponent:
  55490. case FunctionComponent:
  55491. case SimpleMemoComponent:
  55492. workInProgress.type = resolveFunctionForHotReloading(current.type);
  55493. break;
  55494. case ClassComponent:
  55495. workInProgress.type = resolveClassForHotReloading(current.type);
  55496. break;
  55497. case ForwardRef:
  55498. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  55499. break;
  55500. default:
  55501. break;
  55502. }
  55503. }
  55504. return workInProgress;
  55505. }
  55506. // Used to reuse a Fiber for a second pass.
  55507. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  55508. // This resets the Fiber to what createFiber or createWorkInProgress would
  55509. // have set the values to before during the first pass. Ideally this wouldn't
  55510. // be necessary but unfortunately many code paths reads from the workInProgress
  55511. // when they should be reading from current and writing to workInProgress.
  55512. // We assume pendingProps, index, key, ref, return are still untouched to
  55513. // avoid doing another reconciliation.
  55514. // Reset the effect tag but keep any Placement tags, since that's something
  55515. // that child fiber is setting, not the reconciliation.
  55516. workInProgress.effectTag &= Placement;
  55517. // The effect list is no longer valid.
  55518. workInProgress.nextEffect = null;
  55519. workInProgress.firstEffect = null;
  55520. workInProgress.lastEffect = null;
  55521. var current = workInProgress.alternate;
  55522. if (current === null) {
  55523. // Reset to createFiber's initial values.
  55524. workInProgress.childExpirationTime = NoWork;
  55525. workInProgress.expirationTime = renderExpirationTime;
  55526. workInProgress.child = null;
  55527. workInProgress.memoizedProps = null;
  55528. workInProgress.memoizedState = null;
  55529. workInProgress.updateQueue = null;
  55530. workInProgress.dependencies = null;
  55531. if (enableProfilerTimer) {
  55532. // Note: We don't reset the actualTime counts. It's useful to accumulate
  55533. // actual time across multiple render passes.
  55534. workInProgress.selfBaseDuration = 0;
  55535. workInProgress.treeBaseDuration = 0;
  55536. }
  55537. } else {
  55538. // Reset to the cloned values that createWorkInProgress would've.
  55539. workInProgress.childExpirationTime = current.childExpirationTime;
  55540. workInProgress.expirationTime = current.expirationTime;
  55541. workInProgress.child = current.child;
  55542. workInProgress.memoizedProps = current.memoizedProps;
  55543. workInProgress.memoizedState = current.memoizedState;
  55544. workInProgress.updateQueue = current.updateQueue;
  55545. // Clone the dependencies object. This is mutated during the render phase, so
  55546. // it cannot be shared with the current fiber.
  55547. var currentDependencies = current.dependencies;
  55548. workInProgress.dependencies = currentDependencies === null ? null : {
  55549. expirationTime: currentDependencies.expirationTime,
  55550. firstContext: currentDependencies.firstContext,
  55551. responders: currentDependencies.responders
  55552. };
  55553. if (enableProfilerTimer) {
  55554. // Note: We don't reset the actualTime counts. It's useful to accumulate
  55555. // actual time across multiple render passes.
  55556. workInProgress.selfBaseDuration = current.selfBaseDuration;
  55557. workInProgress.treeBaseDuration = current.treeBaseDuration;
  55558. }
  55559. }
  55560. return workInProgress;
  55561. }
  55562. function createHostRootFiber(tag) {
  55563. var mode = void 0;
  55564. if (tag === ConcurrentRoot) {
  55565. mode = ConcurrentMode | BatchedMode | StrictMode;
  55566. } else if (tag === BatchedRoot) {
  55567. mode = BatchedMode | StrictMode;
  55568. } else {
  55569. mode = NoMode;
  55570. }
  55571. if (enableProfilerTimer && isDevToolsPresent) {
  55572. // Always collect profile timings when DevTools are present.
  55573. // This enables DevTools to start capturing timing at any point–
  55574. // Without some nodes in the tree having empty base times.
  55575. mode |= ProfileMode;
  55576. }
  55577. return createFiber(HostRoot, null, null, mode);
  55578. }
  55579. function createFiberFromTypeAndProps(type, // React$ElementType
  55580. key, pendingProps, owner, mode, expirationTime) {
  55581. var fiber = void 0;
  55582. var fiberTag = IndeterminateComponent;
  55583. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  55584. var resolvedType = type;
  55585. if (typeof type === 'function') {
  55586. if (shouldConstruct(type)) {
  55587. fiberTag = ClassComponent;
  55588. {
  55589. resolvedType = resolveClassForHotReloading(resolvedType);
  55590. }
  55591. } else {
  55592. {
  55593. resolvedType = resolveFunctionForHotReloading(resolvedType);
  55594. }
  55595. }
  55596. } else if (typeof type === 'string') {
  55597. fiberTag = HostComponent;
  55598. } else {
  55599. getTag: switch (type) {
  55600. case REACT_FRAGMENT_TYPE:
  55601. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  55602. case REACT_CONCURRENT_MODE_TYPE:
  55603. fiberTag = Mode;
  55604. mode |= ConcurrentMode | BatchedMode | StrictMode;
  55605. break;
  55606. case REACT_STRICT_MODE_TYPE:
  55607. fiberTag = Mode;
  55608. mode |= StrictMode;
  55609. break;
  55610. case REACT_PROFILER_TYPE:
  55611. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  55612. case REACT_SUSPENSE_TYPE:
  55613. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  55614. case REACT_SUSPENSE_LIST_TYPE:
  55615. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  55616. default:
  55617. {
  55618. if (typeof type === 'object' && type !== null) {
  55619. switch (type.$$typeof) {
  55620. case REACT_PROVIDER_TYPE:
  55621. fiberTag = ContextProvider;
  55622. break getTag;
  55623. case REACT_CONTEXT_TYPE:
  55624. // This is a consumer
  55625. fiberTag = ContextConsumer;
  55626. break getTag;
  55627. case REACT_FORWARD_REF_TYPE:
  55628. fiberTag = ForwardRef;
  55629. {
  55630. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  55631. }
  55632. break getTag;
  55633. case REACT_MEMO_TYPE:
  55634. fiberTag = MemoComponent;
  55635. break getTag;
  55636. case REACT_LAZY_TYPE:
  55637. fiberTag = LazyComponent;
  55638. resolvedType = null;
  55639. break getTag;
  55640. case REACT_FUNDAMENTAL_TYPE:
  55641. if (enableFundamentalAPI) {
  55642. return createFiberFromFundamental(type, pendingProps, mode, expirationTime, key);
  55643. }
  55644. break;
  55645. }
  55646. }
  55647. var info = '';
  55648. {
  55649. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  55650. 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.';
  55651. }
  55652. var ownerName = owner ? getComponentName(owner.type) : null;
  55653. if (ownerName) {
  55654. info += '\n\nCheck the render method of `' + ownerName + '`.';
  55655. }
  55656. }
  55657. (function () {
  55658. {
  55659. {
  55660. 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));
  55661. }
  55662. }
  55663. })();
  55664. }
  55665. }
  55666. }
  55667. fiber = createFiber(fiberTag, pendingProps, key, mode);
  55668. fiber.elementType = type;
  55669. fiber.type = resolvedType;
  55670. fiber.expirationTime = expirationTime;
  55671. return fiber;
  55672. }
  55673. function createFiberFromElement(element, mode, expirationTime) {
  55674. var owner = null;
  55675. {
  55676. owner = element._owner;
  55677. }
  55678. var type = element.type;
  55679. var key = element.key;
  55680. var pendingProps = element.props;
  55681. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  55682. {
  55683. fiber._debugSource = element._source;
  55684. fiber._debugOwner = element._owner;
  55685. }
  55686. return fiber;
  55687. }
  55688. function createFiberFromFragment(elements, mode, expirationTime, key) {
  55689. var fiber = createFiber(Fragment, elements, key, mode);
  55690. fiber.expirationTime = expirationTime;
  55691. return fiber;
  55692. }
  55693. function createFiberFromFundamental(fundamentalComponent, pendingProps, mode, expirationTime, key) {
  55694. var fiber = createFiber(FundamentalComponent, pendingProps, key, mode);
  55695. fiber.elementType = fundamentalComponent;
  55696. fiber.type = fundamentalComponent;
  55697. fiber.expirationTime = expirationTime;
  55698. return fiber;
  55699. }
  55700. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  55701. {
  55702. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  55703. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  55704. }
  55705. }
  55706. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  55707. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  55708. fiber.elementType = REACT_PROFILER_TYPE;
  55709. fiber.type = REACT_PROFILER_TYPE;
  55710. fiber.expirationTime = expirationTime;
  55711. return fiber;
  55712. }
  55713. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  55714. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  55715. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  55716. // This needs to be fixed in getComponentName so that it relies on the tag
  55717. // instead.
  55718. fiber.type = REACT_SUSPENSE_TYPE;
  55719. fiber.elementType = REACT_SUSPENSE_TYPE;
  55720. fiber.expirationTime = expirationTime;
  55721. return fiber;
  55722. }
  55723. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  55724. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  55725. {
  55726. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  55727. // This needs to be fixed in getComponentName so that it relies on the tag
  55728. // instead.
  55729. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  55730. }
  55731. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  55732. fiber.expirationTime = expirationTime;
  55733. return fiber;
  55734. }
  55735. function createFiberFromText(content, mode, expirationTime) {
  55736. var fiber = createFiber(HostText, content, null, mode);
  55737. fiber.expirationTime = expirationTime;
  55738. return fiber;
  55739. }
  55740. function createFiberFromHostInstanceForDeletion() {
  55741. var fiber = createFiber(HostComponent, null, null, NoMode);
  55742. // TODO: These should not need a type.
  55743. fiber.elementType = 'DELETED';
  55744. fiber.type = 'DELETED';
  55745. return fiber;
  55746. }
  55747. function createFiberFromPortal(portal, mode, expirationTime) {
  55748. var pendingProps = portal.children !== null ? portal.children : [];
  55749. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  55750. fiber.expirationTime = expirationTime;
  55751. fiber.stateNode = {
  55752. containerInfo: portal.containerInfo,
  55753. pendingChildren: null, // Used by persistent updates
  55754. implementation: portal.implementation
  55755. };
  55756. return fiber;
  55757. }
  55758. // Used for stashing WIP properties to replay failed work in DEV.
  55759. function assignFiberPropertiesInDEV(target, source) {
  55760. if (target === null) {
  55761. // This Fiber's initial properties will always be overwritten.
  55762. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  55763. target = createFiber(IndeterminateComponent, null, null, NoMode);
  55764. }
  55765. // This is intentionally written as a list of all properties.
  55766. // We tried to use Object.assign() instead but this is called in
  55767. // the hottest path, and Object.assign() was too slow:
  55768. // https://github.com/facebook/react/issues/12502
  55769. // This code is DEV-only so size is not a concern.
  55770. target.tag = source.tag;
  55771. target.key = source.key;
  55772. target.elementType = source.elementType;
  55773. target.type = source.type;
  55774. target.stateNode = source.stateNode;
  55775. target.return = source.return;
  55776. target.child = source.child;
  55777. target.sibling = source.sibling;
  55778. target.index = source.index;
  55779. target.ref = source.ref;
  55780. target.pendingProps = source.pendingProps;
  55781. target.memoizedProps = source.memoizedProps;
  55782. target.updateQueue = source.updateQueue;
  55783. target.memoizedState = source.memoizedState;
  55784. target.dependencies = source.dependencies;
  55785. target.mode = source.mode;
  55786. target.effectTag = source.effectTag;
  55787. target.nextEffect = source.nextEffect;
  55788. target.firstEffect = source.firstEffect;
  55789. target.lastEffect = source.lastEffect;
  55790. target.expirationTime = source.expirationTime;
  55791. target.childExpirationTime = source.childExpirationTime;
  55792. target.alternate = source.alternate;
  55793. if (enableProfilerTimer) {
  55794. target.actualDuration = source.actualDuration;
  55795. target.actualStartTime = source.actualStartTime;
  55796. target.selfBaseDuration = source.selfBaseDuration;
  55797. target.treeBaseDuration = source.treeBaseDuration;
  55798. }
  55799. target._debugID = source._debugID;
  55800. target._debugSource = source._debugSource;
  55801. target._debugOwner = source._debugOwner;
  55802. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  55803. target._debugNeedsRemount = source._debugNeedsRemount;
  55804. target._debugHookTypes = source._debugHookTypes;
  55805. return target;
  55806. }
  55807. // TODO: This should be lifted into the renderer.
  55808. // The following attributes are only used by interaction tracing builds.
  55809. // They enable interactions to be associated with their async work,
  55810. // And expose interaction metadata to the React DevTools Profiler plugin.
  55811. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  55812. // Exported FiberRoot type includes all properties,
  55813. // To avoid requiring potentially error-prone :any casts throughout the project.
  55814. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  55815. // The types are defined separately within this file to ensure they stay in sync.
  55816. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  55817. function FiberRootNode(containerInfo, tag, hydrate) {
  55818. this.tag = tag;
  55819. this.current = null;
  55820. this.containerInfo = containerInfo;
  55821. this.pendingChildren = null;
  55822. this.pingCache = null;
  55823. this.finishedExpirationTime = NoWork;
  55824. this.finishedWork = null;
  55825. this.timeoutHandle = noTimeout;
  55826. this.context = null;
  55827. this.pendingContext = null;
  55828. this.hydrate = hydrate;
  55829. this.firstBatch = null;
  55830. this.callbackNode = null;
  55831. this.callbackExpirationTime = NoWork;
  55832. this.firstPendingTime = NoWork;
  55833. this.lastPendingTime = NoWork;
  55834. this.pingTime = NoWork;
  55835. if (enableSchedulerTracing) {
  55836. this.interactionThreadID = tracing.unstable_getThreadID();
  55837. this.memoizedInteractions = new Set();
  55838. this.pendingInteractionMap = new Map();
  55839. }
  55840. }
  55841. function createFiberRoot(containerInfo, tag, hydrate) {
  55842. var root = new FiberRootNode(containerInfo, tag, hydrate);
  55843. // Cyclic construction. This cheats the type system right now because
  55844. // stateNode is any.
  55845. var uninitializedFiber = createHostRootFiber(tag);
  55846. root.current = uninitializedFiber;
  55847. uninitializedFiber.stateNode = root;
  55848. return root;
  55849. }
  55850. // This lets us hook into Fiber to debug what it's doing.
  55851. // See https://github.com/facebook/react/pull/8033.
  55852. // This is not part of the public API, not even for React DevTools.
  55853. // You may only inject a debugTool if you work on React Fiber itself.
  55854. var ReactFiberInstrumentation = {
  55855. debugTool: null
  55856. };
  55857. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  55858. // 0 is PROD, 1 is DEV.
  55859. // Might add PROFILE later.
  55860. var didWarnAboutNestedUpdates = void 0;
  55861. var didWarnAboutFindNodeInStrictMode = void 0;
  55862. {
  55863. didWarnAboutNestedUpdates = false;
  55864. didWarnAboutFindNodeInStrictMode = {};
  55865. }
  55866. function getContextForSubtree(parentComponent) {
  55867. if (!parentComponent) {
  55868. return emptyContextObject;
  55869. }
  55870. var fiber = get(parentComponent);
  55871. var parentContext = findCurrentUnmaskedContext(fiber);
  55872. if (fiber.tag === ClassComponent) {
  55873. var Component = fiber.type;
  55874. if (isContextProvider(Component)) {
  55875. return processChildContext(fiber, Component, parentContext);
  55876. }
  55877. }
  55878. return parentContext;
  55879. }
  55880. function scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback) {
  55881. {
  55882. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  55883. didWarnAboutNestedUpdates = true;
  55884. 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');
  55885. }
  55886. }
  55887. var update = createUpdate(expirationTime, suspenseConfig);
  55888. // Caution: React DevTools currently depends on this property
  55889. // being called "element".
  55890. update.payload = { element: element };
  55891. callback = callback === undefined ? null : callback;
  55892. if (callback !== null) {
  55893. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  55894. update.callback = callback;
  55895. }
  55896. if (revertPassiveEffectsChange) {
  55897. flushPassiveEffects();
  55898. }
  55899. enqueueUpdate(current$$1, update);
  55900. scheduleWork(current$$1, expirationTime);
  55901. return expirationTime;
  55902. }
  55903. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback) {
  55904. // TODO: If this is a nested container, this won't be the root.
  55905. var current$$1 = container.current;
  55906. {
  55907. if (ReactFiberInstrumentation_1.debugTool) {
  55908. if (current$$1.alternate === null) {
  55909. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  55910. } else if (element === null) {
  55911. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  55912. } else {
  55913. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  55914. }
  55915. }
  55916. }
  55917. var context = getContextForSubtree(parentComponent);
  55918. if (container.context === null) {
  55919. container.context = context;
  55920. } else {
  55921. container.pendingContext = context;
  55922. }
  55923. return scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback);
  55924. }
  55925. function findHostInstance(component) {
  55926. var fiber = get(component);
  55927. if (fiber === undefined) {
  55928. if (typeof component.render === 'function') {
  55929. (function () {
  55930. {
  55931. {
  55932. throw ReactError(Error('Unable to find node on an unmounted component.'));
  55933. }
  55934. }
  55935. })();
  55936. } else {
  55937. (function () {
  55938. {
  55939. {
  55940. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  55941. }
  55942. }
  55943. })();
  55944. }
  55945. }
  55946. var hostFiber = findCurrentHostFiber(fiber);
  55947. if (hostFiber === null) {
  55948. return null;
  55949. }
  55950. return hostFiber.stateNode;
  55951. }
  55952. function findHostInstanceWithWarning(component, methodName) {
  55953. {
  55954. var fiber = get(component);
  55955. if (fiber === undefined) {
  55956. if (typeof component.render === 'function') {
  55957. (function () {
  55958. {
  55959. {
  55960. throw ReactError(Error('Unable to find node on an unmounted component.'));
  55961. }
  55962. }
  55963. })();
  55964. } else {
  55965. (function () {
  55966. {
  55967. {
  55968. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  55969. }
  55970. }
  55971. })();
  55972. }
  55973. }
  55974. var hostFiber = findCurrentHostFiber(fiber);
  55975. if (hostFiber === null) {
  55976. return null;
  55977. }
  55978. if (hostFiber.mode & StrictMode) {
  55979. var componentName = getComponentName(fiber.type) || 'Component';
  55980. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  55981. didWarnAboutFindNodeInStrictMode[componentName] = true;
  55982. if (fiber.mode & StrictMode) {
  55983. 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));
  55984. } else {
  55985. 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));
  55986. }
  55987. }
  55988. }
  55989. return hostFiber.stateNode;
  55990. }
  55991. return findHostInstance(component);
  55992. }
  55993. function createContainer(containerInfo, tag, hydrate) {
  55994. return createFiberRoot(containerInfo, tag, hydrate);
  55995. }
  55996. function updateContainer(element, container, parentComponent, callback) {
  55997. var current$$1 = container.current;
  55998. var currentTime = requestCurrentTime();
  55999. {
  56000. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  56001. if ('undefined' !== typeof jest) {
  56002. warnIfUnmockedScheduler(current$$1);
  56003. warnIfNotScopedWithMatchingAct(current$$1);
  56004. }
  56005. }
  56006. var suspenseConfig = requestCurrentSuspenseConfig();
  56007. var expirationTime = computeExpirationForFiber(currentTime, current$$1, suspenseConfig);
  56008. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback);
  56009. }
  56010. function getPublicRootInstance(container) {
  56011. var containerFiber = container.current;
  56012. if (!containerFiber.child) {
  56013. return null;
  56014. }
  56015. switch (containerFiber.child.tag) {
  56016. case HostComponent:
  56017. return getPublicInstance(containerFiber.child.stateNode);
  56018. default:
  56019. return containerFiber.child.stateNode;
  56020. }
  56021. }
  56022. function findHostInstanceWithNoPortals(fiber) {
  56023. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  56024. if (hostFiber === null) {
  56025. return null;
  56026. }
  56027. if (hostFiber.tag === FundamentalComponent) {
  56028. return hostFiber.stateNode.instance;
  56029. }
  56030. return hostFiber.stateNode;
  56031. }
  56032. var shouldSuspendImpl = function (fiber) {
  56033. return false;
  56034. };
  56035. function shouldSuspend(fiber) {
  56036. return shouldSuspendImpl(fiber);
  56037. }
  56038. var overrideHookState = null;
  56039. var overrideProps = null;
  56040. var scheduleUpdate = null;
  56041. var setSuspenseHandler = null;
  56042. {
  56043. var copyWithSetImpl = function (obj, path, idx, value) {
  56044. if (idx >= path.length) {
  56045. return value;
  56046. }
  56047. var key = path[idx];
  56048. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
  56049. // $FlowFixMe number or string is fine here
  56050. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  56051. return updated;
  56052. };
  56053. var copyWithSet = function (obj, path, value) {
  56054. return copyWithSetImpl(obj, path, 0, value);
  56055. };
  56056. // Support DevTools editable values for useState and useReducer.
  56057. overrideHookState = function (fiber, id, path, value) {
  56058. // For now, the "id" of stateful hooks is just the stateful hook index.
  56059. // This may change in the future with e.g. nested hooks.
  56060. var currentHook = fiber.memoizedState;
  56061. while (currentHook !== null && id > 0) {
  56062. currentHook = currentHook.next;
  56063. id--;
  56064. }
  56065. if (currentHook !== null) {
  56066. if (revertPassiveEffectsChange) {
  56067. flushPassiveEffects();
  56068. }
  56069. var newState = copyWithSet(currentHook.memoizedState, path, value);
  56070. currentHook.memoizedState = newState;
  56071. currentHook.baseState = newState;
  56072. // We aren't actually adding an update to the queue,
  56073. // because there is no update we can add for useReducer hooks that won't trigger an error.
  56074. // (There's no appropriate action type for DevTools overrides.)
  56075. // As a result though, React will see the scheduled update as a noop and bailout.
  56076. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  56077. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  56078. scheduleWork(fiber, Sync);
  56079. }
  56080. };
  56081. // Support DevTools props for function components, forwardRef, memo, host components, etc.
  56082. overrideProps = function (fiber, path, value) {
  56083. if (revertPassiveEffectsChange) {
  56084. flushPassiveEffects();
  56085. }
  56086. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  56087. if (fiber.alternate) {
  56088. fiber.alternate.pendingProps = fiber.pendingProps;
  56089. }
  56090. scheduleWork(fiber, Sync);
  56091. };
  56092. scheduleUpdate = function (fiber) {
  56093. if (revertPassiveEffectsChange) {
  56094. flushPassiveEffects();
  56095. }
  56096. scheduleWork(fiber, Sync);
  56097. };
  56098. setSuspenseHandler = function (newShouldSuspendImpl) {
  56099. shouldSuspendImpl = newShouldSuspendImpl;
  56100. };
  56101. }
  56102. function injectIntoDevTools(devToolsConfig) {
  56103. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  56104. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  56105. return injectInternals(_assign({}, devToolsConfig, {
  56106. overrideHookState: overrideHookState,
  56107. overrideProps: overrideProps,
  56108. setSuspenseHandler: setSuspenseHandler,
  56109. scheduleUpdate: scheduleUpdate,
  56110. currentDispatcherRef: ReactCurrentDispatcher,
  56111. findHostInstanceByFiber: function (fiber) {
  56112. var hostFiber = findCurrentHostFiber(fiber);
  56113. if (hostFiber === null) {
  56114. return null;
  56115. }
  56116. return hostFiber.stateNode;
  56117. },
  56118. findFiberByHostInstance: function (instance) {
  56119. if (!findFiberByHostInstance) {
  56120. // Might not be implemented by the renderer.
  56121. return null;
  56122. }
  56123. return findFiberByHostInstance(instance);
  56124. },
  56125. // React Refresh
  56126. findHostInstancesForRefresh: findHostInstancesForRefresh,
  56127. scheduleRefresh: scheduleRefresh,
  56128. scheduleRoot: scheduleRoot,
  56129. setRefreshHandler: setRefreshHandler,
  56130. // Enables DevTools to append owner stacks to error messages in DEV mode.
  56131. getCurrentFiber: function () {
  56132. return current;
  56133. }
  56134. }));
  56135. }
  56136. // This file intentionally does *not* have the Flow annotation.
  56137. // Don't add it. See `./inline-typed.js` for an explanation.
  56138. function createPortal$1(children, containerInfo,
  56139. // TODO: figure out the API for cross-renderer implementation.
  56140. implementation) {
  56141. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  56142. return {
  56143. // This tag allow us to uniquely identify this as a React Portal
  56144. $$typeof: REACT_PORTAL_TYPE,
  56145. key: key == null ? null : '' + key,
  56146. children: children,
  56147. containerInfo: containerInfo,
  56148. implementation: implementation
  56149. };
  56150. }
  56151. // TODO: this is special because it gets imported during build.
  56152. var ReactVersion = '16.9.0';
  56153. // TODO: This type is shared between the reconciler and ReactDOM, but will
  56154. // eventually be lifted out to the renderer.
  56155. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  56156. var topLevelUpdateWarnings = void 0;
  56157. var warnOnInvalidCallback = void 0;
  56158. var didWarnAboutUnstableCreatePortal = false;
  56159. {
  56160. if (typeof Map !== 'function' ||
  56161. // $FlowIssue Flow incorrectly thinks Map has no prototype
  56162. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  56163. // $FlowIssue Flow incorrectly thinks Set has no prototype
  56164. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  56165. 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');
  56166. }
  56167. topLevelUpdateWarnings = function (container) {
  56168. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  56169. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  56170. if (hostInstance) {
  56171. !(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;
  56172. }
  56173. }
  56174. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  56175. var rootEl = getReactRootElementInContainer(container);
  56176. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  56177. !(!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;
  56178. !(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;
  56179. };
  56180. warnOnInvalidCallback = function (callback, callerName) {
  56181. !(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;
  56182. };
  56183. }
  56184. setRestoreImplementation(restoreControlledState$1);
  56185. function ReactBatch(root) {
  56186. var expirationTime = computeUniqueAsyncExpiration();
  56187. this._expirationTime = expirationTime;
  56188. this._root = root;
  56189. this._next = null;
  56190. this._callbacks = null;
  56191. this._didComplete = false;
  56192. this._hasChildren = false;
  56193. this._children = null;
  56194. this._defer = true;
  56195. }
  56196. ReactBatch.prototype.render = function (children) {
  56197. var _this = this;
  56198. (function () {
  56199. if (!_this._defer) {
  56200. {
  56201. throw ReactError(Error('batch.render: Cannot render a batch that already committed.'));
  56202. }
  56203. }
  56204. })();
  56205. this._hasChildren = true;
  56206. this._children = children;
  56207. var internalRoot = this._root._internalRoot;
  56208. var expirationTime = this._expirationTime;
  56209. var work = new ReactWork();
  56210. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, null, work._onCommit);
  56211. return work;
  56212. };
  56213. ReactBatch.prototype.then = function (onComplete) {
  56214. if (this._didComplete) {
  56215. onComplete();
  56216. return;
  56217. }
  56218. var callbacks = this._callbacks;
  56219. if (callbacks === null) {
  56220. callbacks = this._callbacks = [];
  56221. }
  56222. callbacks.push(onComplete);
  56223. };
  56224. ReactBatch.prototype.commit = function () {
  56225. var _this2 = this;
  56226. var internalRoot = this._root._internalRoot;
  56227. var firstBatch = internalRoot.firstBatch;
  56228. (function () {
  56229. if (!(_this2._defer && firstBatch !== null)) {
  56230. {
  56231. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  56232. }
  56233. }
  56234. })();
  56235. if (!this._hasChildren) {
  56236. // This batch is empty. Return.
  56237. this._next = null;
  56238. this._defer = false;
  56239. return;
  56240. }
  56241. var expirationTime = this._expirationTime;
  56242. // Ensure this is the first batch in the list.
  56243. if (firstBatch !== this) {
  56244. // This batch is not the earliest batch. We need to move it to the front.
  56245. // Update its expiration time to be the expiration time of the earliest
  56246. // batch, so that we can flush it without flushing the other batches.
  56247. if (this._hasChildren) {
  56248. expirationTime = this._expirationTime = firstBatch._expirationTime;
  56249. // Rendering this batch again ensures its children will be the final state
  56250. // when we flush (updates are processed in insertion order: last
  56251. // update wins).
  56252. // TODO: This forces a restart. Should we print a warning?
  56253. this.render(this._children);
  56254. }
  56255. // Remove the batch from the list.
  56256. var previous = null;
  56257. var batch = firstBatch;
  56258. while (batch !== this) {
  56259. previous = batch;
  56260. batch = batch._next;
  56261. }
  56262. (function () {
  56263. if (!(previous !== null)) {
  56264. {
  56265. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  56266. }
  56267. }
  56268. })();
  56269. previous._next = batch._next;
  56270. // Add it to the front.
  56271. this._next = firstBatch;
  56272. firstBatch = internalRoot.firstBatch = this;
  56273. }
  56274. // Synchronously flush all the work up to this batch's expiration time.
  56275. this._defer = false;
  56276. flushRoot(internalRoot, expirationTime);
  56277. // Pop the batch from the list.
  56278. var next = this._next;
  56279. this._next = null;
  56280. firstBatch = internalRoot.firstBatch = next;
  56281. // Append the next earliest batch's children to the update queue.
  56282. if (firstBatch !== null && firstBatch._hasChildren) {
  56283. firstBatch.render(firstBatch._children);
  56284. }
  56285. };
  56286. ReactBatch.prototype._onComplete = function () {
  56287. if (this._didComplete) {
  56288. return;
  56289. }
  56290. this._didComplete = true;
  56291. var callbacks = this._callbacks;
  56292. if (callbacks === null) {
  56293. return;
  56294. }
  56295. // TODO: Error handling.
  56296. for (var i = 0; i < callbacks.length; i++) {
  56297. var _callback = callbacks[i];
  56298. _callback();
  56299. }
  56300. };
  56301. function ReactWork() {
  56302. this._callbacks = null;
  56303. this._didCommit = false;
  56304. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  56305. // list of Work objects.
  56306. this._onCommit = this._onCommit.bind(this);
  56307. }
  56308. ReactWork.prototype.then = function (onCommit) {
  56309. if (this._didCommit) {
  56310. onCommit();
  56311. return;
  56312. }
  56313. var callbacks = this._callbacks;
  56314. if (callbacks === null) {
  56315. callbacks = this._callbacks = [];
  56316. }
  56317. callbacks.push(onCommit);
  56318. };
  56319. ReactWork.prototype._onCommit = function () {
  56320. if (this._didCommit) {
  56321. return;
  56322. }
  56323. this._didCommit = true;
  56324. var callbacks = this._callbacks;
  56325. if (callbacks === null) {
  56326. return;
  56327. }
  56328. // TODO: Error handling.
  56329. for (var i = 0; i < callbacks.length; i++) {
  56330. var _callback2 = callbacks[i];
  56331. (function () {
  56332. if (!(typeof _callback2 === 'function')) {
  56333. {
  56334. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + _callback2));
  56335. }
  56336. }
  56337. })();
  56338. _callback2();
  56339. }
  56340. };
  56341. function ReactSyncRoot(container, tag, hydrate) {
  56342. // Tag is either LegacyRoot or Concurrent Root
  56343. var root = createContainer(container, tag, hydrate);
  56344. this._internalRoot = root;
  56345. }
  56346. function ReactRoot(container, hydrate) {
  56347. var root = createContainer(container, ConcurrentRoot, hydrate);
  56348. this._internalRoot = root;
  56349. }
  56350. ReactRoot.prototype.render = ReactSyncRoot.prototype.render = function (children, callback) {
  56351. var root = this._internalRoot;
  56352. var work = new ReactWork();
  56353. callback = callback === undefined ? null : callback;
  56354. {
  56355. warnOnInvalidCallback(callback, 'render');
  56356. }
  56357. if (callback !== null) {
  56358. work.then(callback);
  56359. }
  56360. updateContainer(children, root, null, work._onCommit);
  56361. return work;
  56362. };
  56363. ReactRoot.prototype.unmount = ReactSyncRoot.prototype.unmount = function (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(null, root, null, work._onCommit);
  56374. return work;
  56375. };
  56376. // Sync roots cannot create batches. Only concurrent ones.
  56377. ReactRoot.prototype.createBatch = function () {
  56378. var batch = new ReactBatch(this);
  56379. var expirationTime = batch._expirationTime;
  56380. var internalRoot = this._internalRoot;
  56381. var firstBatch = internalRoot.firstBatch;
  56382. if (firstBatch === null) {
  56383. internalRoot.firstBatch = batch;
  56384. batch._next = null;
  56385. } else {
  56386. // Insert sorted by expiration time then insertion order
  56387. var insertAfter = null;
  56388. var insertBefore = firstBatch;
  56389. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  56390. insertAfter = insertBefore;
  56391. insertBefore = insertBefore._next;
  56392. }
  56393. batch._next = insertBefore;
  56394. if (insertAfter !== null) {
  56395. insertAfter._next = batch;
  56396. }
  56397. }
  56398. return batch;
  56399. };
  56400. /**
  56401. * True if the supplied DOM node is a valid node element.
  56402. *
  56403. * @param {?DOMElement} node The candidate DOM node.
  56404. * @return {boolean} True if the DOM is a valid DOM node.
  56405. * @internal
  56406. */
  56407. function isValidContainer(node) {
  56408. 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 '));
  56409. }
  56410. function getReactRootElementInContainer(container) {
  56411. if (!container) {
  56412. return null;
  56413. }
  56414. if (container.nodeType === DOCUMENT_NODE) {
  56415. return container.documentElement;
  56416. } else {
  56417. return container.firstChild;
  56418. }
  56419. }
  56420. function shouldHydrateDueToLegacyHeuristic(container) {
  56421. var rootElement = getReactRootElementInContainer(container);
  56422. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  56423. }
  56424. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  56425. var warnedAboutHydrateAPI = false;
  56426. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  56427. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  56428. // First clear any existing content.
  56429. if (!shouldHydrate) {
  56430. var warned = false;
  56431. var rootSibling = void 0;
  56432. while (rootSibling = container.lastChild) {
  56433. {
  56434. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  56435. warned = true;
  56436. 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.');
  56437. }
  56438. }
  56439. container.removeChild(rootSibling);
  56440. }
  56441. }
  56442. {
  56443. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  56444. warnedAboutHydrateAPI = true;
  56445. 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.');
  56446. }
  56447. }
  56448. // Legacy roots are not batched.
  56449. return new ReactSyncRoot(container, LegacyRoot, shouldHydrate);
  56450. }
  56451. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  56452. {
  56453. topLevelUpdateWarnings(container);
  56454. warnOnInvalidCallback(callback === undefined ? null : callback, 'render');
  56455. }
  56456. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  56457. // member of intersection type." Whyyyyyy.
  56458. var root = container._reactRootContainer;
  56459. var fiberRoot = void 0;
  56460. if (!root) {
  56461. // Initial mount
  56462. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  56463. fiberRoot = root._internalRoot;
  56464. if (typeof callback === 'function') {
  56465. var originalCallback = callback;
  56466. callback = function () {
  56467. var instance = getPublicRootInstance(fiberRoot);
  56468. originalCallback.call(instance);
  56469. };
  56470. }
  56471. // Initial mount should not be batched.
  56472. unbatchedUpdates(function () {
  56473. updateContainer(children, fiberRoot, parentComponent, callback);
  56474. });
  56475. } else {
  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. // Update
  56485. updateContainer(children, fiberRoot, parentComponent, callback);
  56486. }
  56487. return getPublicRootInstance(fiberRoot);
  56488. }
  56489. function createPortal$$1(children, container) {
  56490. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  56491. (function () {
  56492. if (!isValidContainer(container)) {
  56493. {
  56494. throw ReactError(Error('Target container is not a DOM element.'));
  56495. }
  56496. }
  56497. })();
  56498. // TODO: pass ReactDOM portal implementation as third argument
  56499. return createPortal$1(children, container, null, key);
  56500. }
  56501. var ReactDOM = {
  56502. createPortal: createPortal$$1,
  56503. findDOMNode: function (componentOrElement) {
  56504. {
  56505. var owner = ReactCurrentOwner.current;
  56506. if (owner !== null && owner.stateNode !== null) {
  56507. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  56508. !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;
  56509. owner.stateNode._warnedAboutRefsInRender = true;
  56510. }
  56511. }
  56512. if (componentOrElement == null) {
  56513. return null;
  56514. }
  56515. if (componentOrElement.nodeType === ELEMENT_NODE) {
  56516. return componentOrElement;
  56517. }
  56518. {
  56519. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  56520. }
  56521. return findHostInstance(componentOrElement);
  56522. },
  56523. hydrate: function (element, container, callback) {
  56524. (function () {
  56525. if (!isValidContainer(container)) {
  56526. {
  56527. throw ReactError(Error('Target container is not a DOM element.'));
  56528. }
  56529. }
  56530. })();
  56531. {
  56532. !!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;
  56533. }
  56534. // TODO: throw or warn if we couldn't hydrate?
  56535. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  56536. },
  56537. render: function (element, container, callback) {
  56538. (function () {
  56539. if (!isValidContainer(container)) {
  56540. {
  56541. throw ReactError(Error('Target container is not a DOM element.'));
  56542. }
  56543. }
  56544. })();
  56545. {
  56546. !!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;
  56547. }
  56548. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  56549. },
  56550. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  56551. (function () {
  56552. if (!isValidContainer(containerNode)) {
  56553. {
  56554. throw ReactError(Error('Target container is not a DOM element.'));
  56555. }
  56556. }
  56557. })();
  56558. (function () {
  56559. if (!(parentComponent != null && has(parentComponent))) {
  56560. {
  56561. throw ReactError(Error('parentComponent must be a valid React Component'));
  56562. }
  56563. }
  56564. })();
  56565. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  56566. },
  56567. unmountComponentAtNode: function (container) {
  56568. (function () {
  56569. if (!isValidContainer(container)) {
  56570. {
  56571. throw ReactError(Error('unmountComponentAtNode(...): Target container is not a DOM element.'));
  56572. }
  56573. }
  56574. })();
  56575. {
  56576. !!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;
  56577. }
  56578. if (container._reactRootContainer) {
  56579. {
  56580. var rootEl = getReactRootElementInContainer(container);
  56581. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  56582. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  56583. }
  56584. // Unmount should not be batched.
  56585. unbatchedUpdates(function () {
  56586. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  56587. container._reactRootContainer = null;
  56588. });
  56589. });
  56590. // If you call unmountComponentAtNode twice in quick succession, you'll
  56591. // get `true` twice. That's probably fine?
  56592. return true;
  56593. } else {
  56594. {
  56595. var _rootEl = getReactRootElementInContainer(container);
  56596. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  56597. // Check if the container itself is a React root node.
  56598. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  56599. !!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;
  56600. }
  56601. return false;
  56602. }
  56603. },
  56604. // Temporary alias since we already shipped React 16 RC with it.
  56605. // TODO: remove in React 17.
  56606. unstable_createPortal: function () {
  56607. if (!didWarnAboutUnstableCreatePortal) {
  56608. didWarnAboutUnstableCreatePortal = true;
  56609. 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.');
  56610. }
  56611. return createPortal$$1.apply(undefined, arguments);
  56612. },
  56613. unstable_batchedUpdates: batchedUpdates$1,
  56614. // TODO remove this legacy method, unstable_discreteUpdates replaces it
  56615. unstable_interactiveUpdates: function (fn, a, b, c) {
  56616. flushDiscreteUpdates();
  56617. return discreteUpdates$1(fn, a, b, c);
  56618. },
  56619. unstable_discreteUpdates: discreteUpdates$1,
  56620. unstable_flushDiscreteUpdates: flushDiscreteUpdates,
  56621. flushSync: flushSync,
  56622. unstable_createRoot: createRoot,
  56623. unstable_createSyncRoot: createSyncRoot,
  56624. unstable_flushControlled: flushControlled,
  56625. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  56626. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  56627. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  56628. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  56629. }
  56630. };
  56631. function createRoot(container, options) {
  56632. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  56633. (function () {
  56634. if (!isValidContainer(container)) {
  56635. {
  56636. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  56637. }
  56638. }
  56639. })();
  56640. warnIfReactDOMContainerInDEV(container);
  56641. var hydrate = options != null && options.hydrate === true;
  56642. return new ReactRoot(container, hydrate);
  56643. }
  56644. function createSyncRoot(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 ReactSyncRoot(container, BatchedRoot, hydrate);
  56656. }
  56657. function warnIfReactDOMContainerInDEV(container) {
  56658. {
  56659. !!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;
  56660. container._reactHasBeenPassedToCreateRootDEV = true;
  56661. }
  56662. }
  56663. if (enableStableConcurrentModeAPIs) {
  56664. ReactDOM.createRoot = createRoot;
  56665. ReactDOM.createSyncRoot = createSyncRoot;
  56666. }
  56667. var foundDevTools = injectIntoDevTools({
  56668. findFiberByHostInstance: getClosestInstanceFromNode,
  56669. bundleType: 1,
  56670. version: ReactVersion,
  56671. rendererPackageName: 'react-dom'
  56672. });
  56673. {
  56674. if (!foundDevTools && canUseDOM && window.top === window.self) {
  56675. // If we're in Chrome or Firefox, provide a download link if not installed.
  56676. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  56677. var protocol = window.location.protocol;
  56678. // Don't warn in exotic cases like chrome-extension://.
  56679. if (/^(https?|file):$/.test(protocol)) {
  56680. 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');
  56681. }
  56682. }
  56683. }
  56684. }
  56685. var ReactDOM$2 = Object.freeze({
  56686. default: ReactDOM
  56687. });
  56688. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  56689. // TODO: decide on the top-level export form.
  56690. // This is hacky but makes it work with both Rollup and Jest.
  56691. var reactDom = ReactDOM$3.default || ReactDOM$3;
  56692. module.exports = reactDom;
  56693. })();
  56694. }
  56695. /***/ }),
  56696. /***/ "../../node_modules/react-dom/index.js":
  56697. /*!***********************************************************!*\
  56698. !*** C:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  56699. \***********************************************************/
  56700. /*! no static exports found */
  56701. /***/ (function(module, exports, __webpack_require__) {
  56702. "use strict";
  56703. function checkDCE() {
  56704. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  56705. if (
  56706. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  56707. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  56708. ) {
  56709. return;
  56710. }
  56711. if (true) {
  56712. // This branch is unreachable because this function is only called
  56713. // in production, but the condition is true only in development.
  56714. // Therefore if the branch is still here, dead code elimination wasn't
  56715. // properly applied.
  56716. // Don't change the message. React DevTools relies on it. Also make sure
  56717. // this message doesn't occur elsewhere in this function, or it will cause
  56718. // a false positive.
  56719. throw new Error('^_^');
  56720. }
  56721. try {
  56722. // Verify that the code above has been dead code eliminated (DCE'd).
  56723. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  56724. } catch (err) {
  56725. // DevTools shouldn't crash React, no matter what.
  56726. // We should still report in case we break this code.
  56727. console.error(err);
  56728. }
  56729. }
  56730. if (false) {} else {
  56731. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  56732. }
  56733. /***/ }),
  56734. /***/ "../../node_modules/react-is/cjs/react-is.development.js":
  56735. /*!*****************************************************************************!*\
  56736. !*** C:/Repos/Babylon.js/node_modules/react-is/cjs/react-is.development.js ***!
  56737. \*****************************************************************************/
  56738. /*! no static exports found */
  56739. /***/ (function(module, exports, __webpack_require__) {
  56740. "use strict";
  56741. /** @license React v16.8.6
  56742. * react-is.development.js
  56743. *
  56744. * Copyright (c) Facebook, Inc. and its affiliates.
  56745. *
  56746. * This source code is licensed under the MIT license found in the
  56747. * LICENSE file in the root directory of this source tree.
  56748. */
  56749. if (true) {
  56750. (function() {
  56751. 'use strict';
  56752. Object.defineProperty(exports, '__esModule', { value: true });
  56753. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  56754. // nor polyfill, then a plain number is used for performance.
  56755. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  56756. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  56757. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  56758. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  56759. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  56760. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  56761. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  56762. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  56763. var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
  56764. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  56765. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  56766. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  56767. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  56768. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  56769. function isValidElementType(type) {
  56770. return typeof type === 'string' || typeof type === 'function' ||
  56771. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  56772. 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);
  56773. }
  56774. /**
  56775. * Forked from fbjs/warning:
  56776. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  56777. *
  56778. * Only change is we use console.warn instead of console.error,
  56779. * and do nothing when 'console' is not supported.
  56780. * This really simplifies the code.
  56781. * ---
  56782. * Similar to invariant but only logs a warning if the condition is not met.
  56783. * This can be used to log issues in development environments in critical
  56784. * paths. Removing the logging code for production environments will keep the
  56785. * same logic and follow the same code paths.
  56786. */
  56787. var lowPriorityWarning = function () {};
  56788. {
  56789. var printWarning = function (format) {
  56790. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  56791. args[_key - 1] = arguments[_key];
  56792. }
  56793. var argIndex = 0;
  56794. var message = 'Warning: ' + format.replace(/%s/g, function () {
  56795. return args[argIndex++];
  56796. });
  56797. if (typeof console !== 'undefined') {
  56798. console.warn(message);
  56799. }
  56800. try {
  56801. // --- Welcome to debugging React ---
  56802. // This error was thrown as a convenience so that you can use this stack
  56803. // to find the callsite that caused this warning to fire.
  56804. throw new Error(message);
  56805. } catch (x) {}
  56806. };
  56807. lowPriorityWarning = function (condition, format) {
  56808. if (format === undefined) {
  56809. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  56810. }
  56811. if (!condition) {
  56812. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  56813. args[_key2 - 2] = arguments[_key2];
  56814. }
  56815. printWarning.apply(undefined, [format].concat(args));
  56816. }
  56817. };
  56818. }
  56819. var lowPriorityWarning$1 = lowPriorityWarning;
  56820. function typeOf(object) {
  56821. if (typeof object === 'object' && object !== null) {
  56822. var $$typeof = object.$$typeof;
  56823. switch ($$typeof) {
  56824. case REACT_ELEMENT_TYPE:
  56825. var type = object.type;
  56826. switch (type) {
  56827. case REACT_ASYNC_MODE_TYPE:
  56828. case REACT_CONCURRENT_MODE_TYPE:
  56829. case REACT_FRAGMENT_TYPE:
  56830. case REACT_PROFILER_TYPE:
  56831. case REACT_STRICT_MODE_TYPE:
  56832. case REACT_SUSPENSE_TYPE:
  56833. return type;
  56834. default:
  56835. var $$typeofType = type && type.$$typeof;
  56836. switch ($$typeofType) {
  56837. case REACT_CONTEXT_TYPE:
  56838. case REACT_FORWARD_REF_TYPE:
  56839. case REACT_PROVIDER_TYPE:
  56840. return $$typeofType;
  56841. default:
  56842. return $$typeof;
  56843. }
  56844. }
  56845. case REACT_LAZY_TYPE:
  56846. case REACT_MEMO_TYPE:
  56847. case REACT_PORTAL_TYPE:
  56848. return $$typeof;
  56849. }
  56850. }
  56851. return undefined;
  56852. }
  56853. // AsyncMode is deprecated along with isAsyncMode
  56854. var AsyncMode = REACT_ASYNC_MODE_TYPE;
  56855. var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  56856. var ContextConsumer = REACT_CONTEXT_TYPE;
  56857. var ContextProvider = REACT_PROVIDER_TYPE;
  56858. var Element = REACT_ELEMENT_TYPE;
  56859. var ForwardRef = REACT_FORWARD_REF_TYPE;
  56860. var Fragment = REACT_FRAGMENT_TYPE;
  56861. var Lazy = REACT_LAZY_TYPE;
  56862. var Memo = REACT_MEMO_TYPE;
  56863. var Portal = REACT_PORTAL_TYPE;
  56864. var Profiler = REACT_PROFILER_TYPE;
  56865. var StrictMode = REACT_STRICT_MODE_TYPE;
  56866. var Suspense = REACT_SUSPENSE_TYPE;
  56867. var hasWarnedAboutDeprecatedIsAsyncMode = false;
  56868. // AsyncMode should be deprecated
  56869. function isAsyncMode(object) {
  56870. {
  56871. if (!hasWarnedAboutDeprecatedIsAsyncMode) {
  56872. hasWarnedAboutDeprecatedIsAsyncMode = true;
  56873. 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.');
  56874. }
  56875. }
  56876. return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
  56877. }
  56878. function isConcurrentMode(object) {
  56879. return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
  56880. }
  56881. function isContextConsumer(object) {
  56882. return typeOf(object) === REACT_CONTEXT_TYPE;
  56883. }
  56884. function isContextProvider(object) {
  56885. return typeOf(object) === REACT_PROVIDER_TYPE;
  56886. }
  56887. function isElement(object) {
  56888. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  56889. }
  56890. function isForwardRef(object) {
  56891. return typeOf(object) === REACT_FORWARD_REF_TYPE;
  56892. }
  56893. function isFragment(object) {
  56894. return typeOf(object) === REACT_FRAGMENT_TYPE;
  56895. }
  56896. function isLazy(object) {
  56897. return typeOf(object) === REACT_LAZY_TYPE;
  56898. }
  56899. function isMemo(object) {
  56900. return typeOf(object) === REACT_MEMO_TYPE;
  56901. }
  56902. function isPortal(object) {
  56903. return typeOf(object) === REACT_PORTAL_TYPE;
  56904. }
  56905. function isProfiler(object) {
  56906. return typeOf(object) === REACT_PROFILER_TYPE;
  56907. }
  56908. function isStrictMode(object) {
  56909. return typeOf(object) === REACT_STRICT_MODE_TYPE;
  56910. }
  56911. function isSuspense(object) {
  56912. return typeOf(object) === REACT_SUSPENSE_TYPE;
  56913. }
  56914. exports.typeOf = typeOf;
  56915. exports.AsyncMode = AsyncMode;
  56916. exports.ConcurrentMode = ConcurrentMode;
  56917. exports.ContextConsumer = ContextConsumer;
  56918. exports.ContextProvider = ContextProvider;
  56919. exports.Element = Element;
  56920. exports.ForwardRef = ForwardRef;
  56921. exports.Fragment = Fragment;
  56922. exports.Lazy = Lazy;
  56923. exports.Memo = Memo;
  56924. exports.Portal = Portal;
  56925. exports.Profiler = Profiler;
  56926. exports.StrictMode = StrictMode;
  56927. exports.Suspense = Suspense;
  56928. exports.isValidElementType = isValidElementType;
  56929. exports.isAsyncMode = isAsyncMode;
  56930. exports.isConcurrentMode = isConcurrentMode;
  56931. exports.isContextConsumer = isContextConsumer;
  56932. exports.isContextProvider = isContextProvider;
  56933. exports.isElement = isElement;
  56934. exports.isForwardRef = isForwardRef;
  56935. exports.isFragment = isFragment;
  56936. exports.isLazy = isLazy;
  56937. exports.isMemo = isMemo;
  56938. exports.isPortal = isPortal;
  56939. exports.isProfiler = isProfiler;
  56940. exports.isStrictMode = isStrictMode;
  56941. exports.isSuspense = isSuspense;
  56942. })();
  56943. }
  56944. /***/ }),
  56945. /***/ "../../node_modules/react-is/index.js":
  56946. /*!**********************************************************!*\
  56947. !*** C:/Repos/Babylon.js/node_modules/react-is/index.js ***!
  56948. \**********************************************************/
  56949. /*! no static exports found */
  56950. /***/ (function(module, exports, __webpack_require__) {
  56951. "use strict";
  56952. if (false) {} else {
  56953. module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
  56954. }
  56955. /***/ }),
  56956. /***/ "../../node_modules/react/cjs/react.development.js":
  56957. /*!***********************************************************************!*\
  56958. !*** C:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  56959. \***********************************************************************/
  56960. /*! no static exports found */
  56961. /***/ (function(module, exports, __webpack_require__) {
  56962. "use strict";
  56963. /** @license React v16.9.0
  56964. * react.development.js
  56965. *
  56966. * Copyright (c) Facebook, Inc. and its affiliates.
  56967. *
  56968. * This source code is licensed under the MIT license found in the
  56969. * LICENSE file in the root directory of this source tree.
  56970. */
  56971. if (true) {
  56972. (function() {
  56973. 'use strict';
  56974. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  56975. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  56976. // TODO: this is special because it gets imported during build.
  56977. var ReactVersion = '16.9.0';
  56978. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  56979. // nor polyfill, then a plain number is used for performance.
  56980. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  56981. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  56982. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  56983. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  56984. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  56985. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  56986. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  56987. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  56988. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  56989. // (unstable) APIs that have been removed. Can we remove the symbols?
  56990. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  56991. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  56992. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  56993. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  56994. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  56995. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  56996. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  56997. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  56998. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  56999. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  57000. function getIteratorFn(maybeIterable) {
  57001. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  57002. return null;
  57003. }
  57004. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  57005. if (typeof maybeIterator === 'function') {
  57006. return maybeIterator;
  57007. }
  57008. return null;
  57009. }
  57010. // Do not require this module directly! Use normal `invariant` calls with
  57011. // template literal strings. The messages will be converted to ReactError during
  57012. // build, and in production they will be minified.
  57013. // Do not require this module directly! Use normal `invariant` calls with
  57014. // template literal strings. The messages will be converted to ReactError during
  57015. // build, and in production they will be minified.
  57016. function ReactError(error) {
  57017. error.name = 'Invariant Violation';
  57018. return error;
  57019. }
  57020. /**
  57021. * Use invariant() to assert state which your program assumes to be true.
  57022. *
  57023. * Provide sprintf-style format (only %s is supported) and arguments
  57024. * to provide information about what broke and what you were
  57025. * expecting.
  57026. *
  57027. * The invariant message will be stripped in production, but the invariant
  57028. * will remain to ensure logic does not differ in production.
  57029. */
  57030. /**
  57031. * Forked from fbjs/warning:
  57032. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  57033. *
  57034. * Only change is we use console.warn instead of console.error,
  57035. * and do nothing when 'console' is not supported.
  57036. * This really simplifies the code.
  57037. * ---
  57038. * Similar to invariant but only logs a warning if the condition is not met.
  57039. * This can be used to log issues in development environments in critical
  57040. * paths. Removing the logging code for production environments will keep the
  57041. * same logic and follow the same code paths.
  57042. */
  57043. var lowPriorityWarning = function () {};
  57044. {
  57045. var printWarning = function (format) {
  57046. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  57047. args[_key - 1] = arguments[_key];
  57048. }
  57049. var argIndex = 0;
  57050. var message = 'Warning: ' + format.replace(/%s/g, function () {
  57051. return args[argIndex++];
  57052. });
  57053. if (typeof console !== 'undefined') {
  57054. console.warn(message);
  57055. }
  57056. try {
  57057. // --- Welcome to debugging React ---
  57058. // This error was thrown as a convenience so that you can use this stack
  57059. // to find the callsite that caused this warning to fire.
  57060. throw new Error(message);
  57061. } catch (x) {}
  57062. };
  57063. lowPriorityWarning = function (condition, format) {
  57064. if (format === undefined) {
  57065. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  57066. }
  57067. if (!condition) {
  57068. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  57069. args[_key2 - 2] = arguments[_key2];
  57070. }
  57071. printWarning.apply(undefined, [format].concat(args));
  57072. }
  57073. };
  57074. }
  57075. var lowPriorityWarning$1 = lowPriorityWarning;
  57076. /**
  57077. * Similar to invariant but only logs a warning if the condition is not met.
  57078. * This can be used to log issues in development environments in critical
  57079. * paths. Removing the logging code for production environments will keep the
  57080. * same logic and follow the same code paths.
  57081. */
  57082. var warningWithoutStack = function () {};
  57083. {
  57084. warningWithoutStack = function (condition, format) {
  57085. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  57086. args[_key - 2] = arguments[_key];
  57087. }
  57088. if (format === undefined) {
  57089. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  57090. }
  57091. if (args.length > 8) {
  57092. // Check before the condition to catch violations early.
  57093. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  57094. }
  57095. if (condition) {
  57096. return;
  57097. }
  57098. if (typeof console !== 'undefined') {
  57099. var argsWithFormat = args.map(function (item) {
  57100. return '' + item;
  57101. });
  57102. argsWithFormat.unshift('Warning: ' + format);
  57103. // We intentionally don't use spread (or .apply) directly because it
  57104. // breaks IE9: https://github.com/facebook/react/issues/13610
  57105. Function.prototype.apply.call(console.error, console, argsWithFormat);
  57106. }
  57107. try {
  57108. // --- Welcome to debugging React ---
  57109. // This error was thrown as a convenience so that you can use this stack
  57110. // to find the callsite that caused this warning to fire.
  57111. var argIndex = 0;
  57112. var message = 'Warning: ' + format.replace(/%s/g, function () {
  57113. return args[argIndex++];
  57114. });
  57115. throw new Error(message);
  57116. } catch (x) {}
  57117. };
  57118. }
  57119. var warningWithoutStack$1 = warningWithoutStack;
  57120. var didWarnStateUpdateForUnmountedComponent = {};
  57121. function warnNoop(publicInstance, callerName) {
  57122. {
  57123. var _constructor = publicInstance.constructor;
  57124. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  57125. var warningKey = componentName + '.' + callerName;
  57126. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  57127. return;
  57128. }
  57129. 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);
  57130. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  57131. }
  57132. }
  57133. /**
  57134. * This is the abstract API for an update queue.
  57135. */
  57136. var ReactNoopUpdateQueue = {
  57137. /**
  57138. * Checks whether or not this composite component is mounted.
  57139. * @param {ReactClass} publicInstance The instance we want to test.
  57140. * @return {boolean} True if mounted, false otherwise.
  57141. * @protected
  57142. * @final
  57143. */
  57144. isMounted: function (publicInstance) {
  57145. return false;
  57146. },
  57147. /**
  57148. * Forces an update. This should only be invoked when it is known with
  57149. * certainty that we are **not** in a DOM transaction.
  57150. *
  57151. * You may want to call this when you know that some deeper aspect of the
  57152. * component's state has changed but `setState` was not called.
  57153. *
  57154. * This will not invoke `shouldComponentUpdate`, but it will invoke
  57155. * `componentWillUpdate` and `componentDidUpdate`.
  57156. *
  57157. * @param {ReactClass} publicInstance The instance that should rerender.
  57158. * @param {?function} callback Called after component is updated.
  57159. * @param {?string} callerName name of the calling function in the public API.
  57160. * @internal
  57161. */
  57162. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  57163. warnNoop(publicInstance, 'forceUpdate');
  57164. },
  57165. /**
  57166. * Replaces all of the state. Always use this or `setState` to mutate state.
  57167. * You should treat `this.state` as immutable.
  57168. *
  57169. * There is no guarantee that `this.state` will be immediately updated, so
  57170. * accessing `this.state` after calling this method may return the old value.
  57171. *
  57172. * @param {ReactClass} publicInstance The instance that should rerender.
  57173. * @param {object} completeState Next state.
  57174. * @param {?function} callback Called after component is updated.
  57175. * @param {?string} callerName name of the calling function in the public API.
  57176. * @internal
  57177. */
  57178. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  57179. warnNoop(publicInstance, 'replaceState');
  57180. },
  57181. /**
  57182. * Sets a subset of the state. This only exists because _pendingState is
  57183. * internal. This provides a merging strategy that is not available to deep
  57184. * properties which is confusing. TODO: Expose pendingState or don't use it
  57185. * during the merge.
  57186. *
  57187. * @param {ReactClass} publicInstance The instance that should rerender.
  57188. * @param {object} partialState Next partial state to be merged with state.
  57189. * @param {?function} callback Called after component is updated.
  57190. * @param {?string} Name of the calling function in the public API.
  57191. * @internal
  57192. */
  57193. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  57194. warnNoop(publicInstance, 'setState');
  57195. }
  57196. };
  57197. var emptyObject = {};
  57198. {
  57199. Object.freeze(emptyObject);
  57200. }
  57201. /**
  57202. * Base class helpers for the updating state of a component.
  57203. */
  57204. function Component(props, context, updater) {
  57205. this.props = props;
  57206. this.context = context;
  57207. // If a component has string refs, we will assign a different object later.
  57208. this.refs = emptyObject;
  57209. // We initialize the default updater but the real one gets injected by the
  57210. // renderer.
  57211. this.updater = updater || ReactNoopUpdateQueue;
  57212. }
  57213. Component.prototype.isReactComponent = {};
  57214. /**
  57215. * Sets a subset of the state. Always use this to mutate
  57216. * state. You should treat `this.state` as immutable.
  57217. *
  57218. * There is no guarantee that `this.state` will be immediately updated, so
  57219. * accessing `this.state` after calling this method may return the old value.
  57220. *
  57221. * There is no guarantee that calls to `setState` will run synchronously,
  57222. * as they may eventually be batched together. You can provide an optional
  57223. * callback that will be executed when the call to setState is actually
  57224. * completed.
  57225. *
  57226. * When a function is provided to setState, it will be called at some point in
  57227. * the future (not synchronously). It will be called with the up to date
  57228. * component arguments (state, props, context). These values can be different
  57229. * from this.* because your function may be called after receiveProps but before
  57230. * shouldComponentUpdate, and this new state, props, and context will not yet be
  57231. * assigned to this.
  57232. *
  57233. * @param {object|function} partialState Next partial state or function to
  57234. * produce next partial state to be merged with current state.
  57235. * @param {?function} callback Called after state is updated.
  57236. * @final
  57237. * @protected
  57238. */
  57239. Component.prototype.setState = function (partialState, callback) {
  57240. (function () {
  57241. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  57242. {
  57243. throw ReactError(Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'));
  57244. }
  57245. }
  57246. })();
  57247. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  57248. };
  57249. /**
  57250. * Forces an update. This should only be invoked when it is known with
  57251. * certainty that we are **not** in a DOM transaction.
  57252. *
  57253. * You may want to call this when you know that some deeper aspect of the
  57254. * component's state has changed but `setState` was not called.
  57255. *
  57256. * This will not invoke `shouldComponentUpdate`, but it will invoke
  57257. * `componentWillUpdate` and `componentDidUpdate`.
  57258. *
  57259. * @param {?function} callback Called after update is complete.
  57260. * @final
  57261. * @protected
  57262. */
  57263. Component.prototype.forceUpdate = function (callback) {
  57264. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  57265. };
  57266. /**
  57267. * Deprecated APIs. These APIs used to exist on classic React classes but since
  57268. * we would like to deprecate them, we're not going to move them over to this
  57269. * modern base class. Instead, we define a getter that warns if it's accessed.
  57270. */
  57271. {
  57272. var deprecatedAPIs = {
  57273. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  57274. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  57275. };
  57276. var defineDeprecationWarning = function (methodName, info) {
  57277. Object.defineProperty(Component.prototype, methodName, {
  57278. get: function () {
  57279. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  57280. return undefined;
  57281. }
  57282. });
  57283. };
  57284. for (var fnName in deprecatedAPIs) {
  57285. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  57286. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  57287. }
  57288. }
  57289. }
  57290. function ComponentDummy() {}
  57291. ComponentDummy.prototype = Component.prototype;
  57292. /**
  57293. * Convenience component with default shallow equality check for sCU.
  57294. */
  57295. function PureComponent(props, context, updater) {
  57296. this.props = props;
  57297. this.context = context;
  57298. // If a component has string refs, we will assign a different object later.
  57299. this.refs = emptyObject;
  57300. this.updater = updater || ReactNoopUpdateQueue;
  57301. }
  57302. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  57303. pureComponentPrototype.constructor = PureComponent;
  57304. // Avoid an extra prototype jump for these methods.
  57305. _assign(pureComponentPrototype, Component.prototype);
  57306. pureComponentPrototype.isPureReactComponent = true;
  57307. // an immutable object with a single mutable value
  57308. function createRef() {
  57309. var refObject = {
  57310. current: null
  57311. };
  57312. {
  57313. Object.seal(refObject);
  57314. }
  57315. return refObject;
  57316. }
  57317. /**
  57318. * Keeps track of the current dispatcher.
  57319. */
  57320. var ReactCurrentDispatcher = {
  57321. /**
  57322. * @internal
  57323. * @type {ReactComponent}
  57324. */
  57325. current: null
  57326. };
  57327. /**
  57328. * Keeps track of the current batch's configuration such as how long an update
  57329. * should suspend for if it needs to.
  57330. */
  57331. var ReactCurrentBatchConfig = {
  57332. suspense: null
  57333. };
  57334. /**
  57335. * Keeps track of the current owner.
  57336. *
  57337. * The current owner is the component who should own any components that are
  57338. * currently being constructed.
  57339. */
  57340. var ReactCurrentOwner = {
  57341. /**
  57342. * @internal
  57343. * @type {ReactComponent}
  57344. */
  57345. current: null
  57346. };
  57347. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  57348. var describeComponentFrame = function (name, source, ownerName) {
  57349. var sourceInfo = '';
  57350. if (source) {
  57351. var path = source.fileName;
  57352. var fileName = path.replace(BEFORE_SLASH_RE, '');
  57353. {
  57354. // In DEV, include code for a common special case:
  57355. // prefer "folder/index.js" instead of just "index.js".
  57356. if (/^index\./.test(fileName)) {
  57357. var match = path.match(BEFORE_SLASH_RE);
  57358. if (match) {
  57359. var pathBeforeSlash = match[1];
  57360. if (pathBeforeSlash) {
  57361. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  57362. fileName = folderName + '/' + fileName;
  57363. }
  57364. }
  57365. }
  57366. }
  57367. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  57368. } else if (ownerName) {
  57369. sourceInfo = ' (created by ' + ownerName + ')';
  57370. }
  57371. return '\n in ' + (name || 'Unknown') + sourceInfo;
  57372. };
  57373. var Resolved = 1;
  57374. function refineResolvedLazyComponent(lazyComponent) {
  57375. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  57376. }
  57377. function getWrappedName(outerType, innerType, wrapperName) {
  57378. var functionName = innerType.displayName || innerType.name || '';
  57379. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  57380. }
  57381. function getComponentName(type) {
  57382. if (type == null) {
  57383. // Host root, text node or just invalid type.
  57384. return null;
  57385. }
  57386. {
  57387. if (typeof type.tag === 'number') {
  57388. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  57389. }
  57390. }
  57391. if (typeof type === 'function') {
  57392. return type.displayName || type.name || null;
  57393. }
  57394. if (typeof type === 'string') {
  57395. return type;
  57396. }
  57397. switch (type) {
  57398. case REACT_FRAGMENT_TYPE:
  57399. return 'Fragment';
  57400. case REACT_PORTAL_TYPE:
  57401. return 'Portal';
  57402. case REACT_PROFILER_TYPE:
  57403. return 'Profiler';
  57404. case REACT_STRICT_MODE_TYPE:
  57405. return 'StrictMode';
  57406. case REACT_SUSPENSE_TYPE:
  57407. return 'Suspense';
  57408. case REACT_SUSPENSE_LIST_TYPE:
  57409. return 'SuspenseList';
  57410. }
  57411. if (typeof type === 'object') {
  57412. switch (type.$$typeof) {
  57413. case REACT_CONTEXT_TYPE:
  57414. return 'Context.Consumer';
  57415. case REACT_PROVIDER_TYPE:
  57416. return 'Context.Provider';
  57417. case REACT_FORWARD_REF_TYPE:
  57418. return getWrappedName(type, type.render, 'ForwardRef');
  57419. case REACT_MEMO_TYPE:
  57420. return getComponentName(type.type);
  57421. case REACT_LAZY_TYPE:
  57422. {
  57423. var thenable = type;
  57424. var resolvedThenable = refineResolvedLazyComponent(thenable);
  57425. if (resolvedThenable) {
  57426. return getComponentName(resolvedThenable);
  57427. }
  57428. break;
  57429. }
  57430. }
  57431. }
  57432. return null;
  57433. }
  57434. var ReactDebugCurrentFrame = {};
  57435. var currentlyValidatingElement = null;
  57436. function setCurrentlyValidatingElement(element) {
  57437. {
  57438. currentlyValidatingElement = element;
  57439. }
  57440. }
  57441. {
  57442. // Stack implementation injected by the current renderer.
  57443. ReactDebugCurrentFrame.getCurrentStack = null;
  57444. ReactDebugCurrentFrame.getStackAddendum = function () {
  57445. var stack = '';
  57446. // Add an extra top frame while an element is being validated
  57447. if (currentlyValidatingElement) {
  57448. var name = getComponentName(currentlyValidatingElement.type);
  57449. var owner = currentlyValidatingElement._owner;
  57450. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  57451. }
  57452. // Delegate to the injected renderer-specific implementation
  57453. var impl = ReactDebugCurrentFrame.getCurrentStack;
  57454. if (impl) {
  57455. stack += impl() || '';
  57456. }
  57457. return stack;
  57458. };
  57459. }
  57460. /**
  57461. * Used by act() to track whether you're inside an act() scope.
  57462. */
  57463. var IsSomeRendererActing = {
  57464. current: false
  57465. };
  57466. var ReactSharedInternals = {
  57467. ReactCurrentDispatcher: ReactCurrentDispatcher,
  57468. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  57469. ReactCurrentOwner: ReactCurrentOwner,
  57470. IsSomeRendererActing: IsSomeRendererActing,
  57471. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  57472. assign: _assign
  57473. };
  57474. {
  57475. _assign(ReactSharedInternals, {
  57476. // These should not be included in production.
  57477. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  57478. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  57479. // TODO: remove in React 17.0.
  57480. ReactComponentTreeHook: {}
  57481. });
  57482. }
  57483. /**
  57484. * Similar to invariant but only logs a warning if the condition is not met.
  57485. * This can be used to log issues in development environments in critical
  57486. * paths. Removing the logging code for production environments will keep the
  57487. * same logic and follow the same code paths.
  57488. */
  57489. var warning = warningWithoutStack$1;
  57490. {
  57491. warning = function (condition, format) {
  57492. if (condition) {
  57493. return;
  57494. }
  57495. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  57496. var stack = ReactDebugCurrentFrame.getStackAddendum();
  57497. // eslint-disable-next-line react-internal/warning-and-invariant-args
  57498. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  57499. args[_key - 2] = arguments[_key];
  57500. }
  57501. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  57502. };
  57503. }
  57504. var warning$1 = warning;
  57505. var hasOwnProperty = Object.prototype.hasOwnProperty;
  57506. var RESERVED_PROPS = {
  57507. key: true,
  57508. ref: true,
  57509. __self: true,
  57510. __source: true
  57511. };
  57512. var specialPropKeyWarningShown = void 0;
  57513. var specialPropRefWarningShown = void 0;
  57514. function hasValidRef(config) {
  57515. {
  57516. if (hasOwnProperty.call(config, 'ref')) {
  57517. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  57518. if (getter && getter.isReactWarning) {
  57519. return false;
  57520. }
  57521. }
  57522. }
  57523. return config.ref !== undefined;
  57524. }
  57525. function hasValidKey(config) {
  57526. {
  57527. if (hasOwnProperty.call(config, 'key')) {
  57528. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  57529. if (getter && getter.isReactWarning) {
  57530. return false;
  57531. }
  57532. }
  57533. }
  57534. return config.key !== undefined;
  57535. }
  57536. function defineKeyPropWarningGetter(props, displayName) {
  57537. var warnAboutAccessingKey = function () {
  57538. if (!specialPropKeyWarningShown) {
  57539. specialPropKeyWarningShown = true;
  57540. 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);
  57541. }
  57542. };
  57543. warnAboutAccessingKey.isReactWarning = true;
  57544. Object.defineProperty(props, 'key', {
  57545. get: warnAboutAccessingKey,
  57546. configurable: true
  57547. });
  57548. }
  57549. function defineRefPropWarningGetter(props, displayName) {
  57550. var warnAboutAccessingRef = function () {
  57551. if (!specialPropRefWarningShown) {
  57552. specialPropRefWarningShown = true;
  57553. 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);
  57554. }
  57555. };
  57556. warnAboutAccessingRef.isReactWarning = true;
  57557. Object.defineProperty(props, 'ref', {
  57558. get: warnAboutAccessingRef,
  57559. configurable: true
  57560. });
  57561. }
  57562. /**
  57563. * Factory method to create a new React element. This no longer adheres to
  57564. * the class pattern, so do not use new to call it. Also, no instanceof check
  57565. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  57566. * if something is a React Element.
  57567. *
  57568. * @param {*} type
  57569. * @param {*} props
  57570. * @param {*} key
  57571. * @param {string|object} ref
  57572. * @param {*} owner
  57573. * @param {*} self A *temporary* helper to detect places where `this` is
  57574. * different from the `owner` when React.createElement is called, so that we
  57575. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  57576. * functions, and as long as `this` and owner are the same, there will be no
  57577. * change in behavior.
  57578. * @param {*} source An annotation object (added by a transpiler or otherwise)
  57579. * indicating filename, line number, and/or other information.
  57580. * @internal
  57581. */
  57582. var ReactElement = function (type, key, ref, self, source, owner, props) {
  57583. var element = {
  57584. // This tag allows us to uniquely identify this as a React Element
  57585. $$typeof: REACT_ELEMENT_TYPE,
  57586. // Built-in properties that belong on the element
  57587. type: type,
  57588. key: key,
  57589. ref: ref,
  57590. props: props,
  57591. // Record the component responsible for creating this element.
  57592. _owner: owner
  57593. };
  57594. {
  57595. // The validation flag is currently mutative. We put it on
  57596. // an external backing store so that we can freeze the whole object.
  57597. // This can be replaced with a WeakMap once they are implemented in
  57598. // commonly used development environments.
  57599. element._store = {};
  57600. // To make comparing ReactElements easier for testing purposes, we make
  57601. // the validation flag non-enumerable (where possible, which should
  57602. // include every environment we run tests in), so the test framework
  57603. // ignores it.
  57604. Object.defineProperty(element._store, 'validated', {
  57605. configurable: false,
  57606. enumerable: false,
  57607. writable: true,
  57608. value: false
  57609. });
  57610. // self and source are DEV only properties.
  57611. Object.defineProperty(element, '_self', {
  57612. configurable: false,
  57613. enumerable: false,
  57614. writable: false,
  57615. value: self
  57616. });
  57617. // Two elements created in two different places should be considered
  57618. // equal for testing purposes and therefore we hide it from enumeration.
  57619. Object.defineProperty(element, '_source', {
  57620. configurable: false,
  57621. enumerable: false,
  57622. writable: false,
  57623. value: source
  57624. });
  57625. if (Object.freeze) {
  57626. Object.freeze(element.props);
  57627. Object.freeze(element);
  57628. }
  57629. }
  57630. return element;
  57631. };
  57632. /**
  57633. * https://github.com/reactjs/rfcs/pull/107
  57634. * @param {*} type
  57635. * @param {object} props
  57636. * @param {string} key
  57637. */
  57638. /**
  57639. * https://github.com/reactjs/rfcs/pull/107
  57640. * @param {*} type
  57641. * @param {object} props
  57642. * @param {string} key
  57643. */
  57644. function jsxDEV(type, config, maybeKey, source, self) {
  57645. var propName = void 0;
  57646. // Reserved names are extracted
  57647. var props = {};
  57648. var key = null;
  57649. var ref = null;
  57650. if (hasValidRef(config)) {
  57651. ref = config.ref;
  57652. }
  57653. if (hasValidKey(config)) {
  57654. key = '' + config.key;
  57655. }
  57656. // Remaining properties are added to a new props object
  57657. for (propName in config) {
  57658. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57659. props[propName] = config[propName];
  57660. }
  57661. }
  57662. // intentionally not checking if key was set above
  57663. // this key is higher priority as it's static
  57664. if (maybeKey !== undefined) {
  57665. key = '' + maybeKey;
  57666. }
  57667. // Resolve default props
  57668. if (type && type.defaultProps) {
  57669. var defaultProps = type.defaultProps;
  57670. for (propName in defaultProps) {
  57671. if (props[propName] === undefined) {
  57672. props[propName] = defaultProps[propName];
  57673. }
  57674. }
  57675. }
  57676. if (key || ref) {
  57677. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  57678. if (key) {
  57679. defineKeyPropWarningGetter(props, displayName);
  57680. }
  57681. if (ref) {
  57682. defineRefPropWarningGetter(props, displayName);
  57683. }
  57684. }
  57685. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  57686. }
  57687. /**
  57688. * Create and return a new ReactElement of the given type.
  57689. * See https://reactjs.org/docs/react-api.html#createelement
  57690. */
  57691. function createElement(type, config, children) {
  57692. var propName = void 0;
  57693. // Reserved names are extracted
  57694. var props = {};
  57695. var key = null;
  57696. var ref = null;
  57697. var self = null;
  57698. var source = null;
  57699. if (config != null) {
  57700. if (hasValidRef(config)) {
  57701. ref = config.ref;
  57702. }
  57703. if (hasValidKey(config)) {
  57704. key = '' + config.key;
  57705. }
  57706. self = config.__self === undefined ? null : config.__self;
  57707. source = config.__source === undefined ? null : config.__source;
  57708. // Remaining properties are added to a new props object
  57709. for (propName in config) {
  57710. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57711. props[propName] = config[propName];
  57712. }
  57713. }
  57714. }
  57715. // Children can be more than one argument, and those are transferred onto
  57716. // the newly allocated props object.
  57717. var childrenLength = arguments.length - 2;
  57718. if (childrenLength === 1) {
  57719. props.children = children;
  57720. } else if (childrenLength > 1) {
  57721. var childArray = Array(childrenLength);
  57722. for (var i = 0; i < childrenLength; i++) {
  57723. childArray[i] = arguments[i + 2];
  57724. }
  57725. {
  57726. if (Object.freeze) {
  57727. Object.freeze(childArray);
  57728. }
  57729. }
  57730. props.children = childArray;
  57731. }
  57732. // Resolve default props
  57733. if (type && type.defaultProps) {
  57734. var defaultProps = type.defaultProps;
  57735. for (propName in defaultProps) {
  57736. if (props[propName] === undefined) {
  57737. props[propName] = defaultProps[propName];
  57738. }
  57739. }
  57740. }
  57741. {
  57742. if (key || ref) {
  57743. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  57744. if (key) {
  57745. defineKeyPropWarningGetter(props, displayName);
  57746. }
  57747. if (ref) {
  57748. defineRefPropWarningGetter(props, displayName);
  57749. }
  57750. }
  57751. }
  57752. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  57753. }
  57754. /**
  57755. * Return a function that produces ReactElements of a given type.
  57756. * See https://reactjs.org/docs/react-api.html#createfactory
  57757. */
  57758. function cloneAndReplaceKey(oldElement, newKey) {
  57759. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  57760. return newElement;
  57761. }
  57762. /**
  57763. * Clone and return a new ReactElement using element as the starting point.
  57764. * See https://reactjs.org/docs/react-api.html#cloneelement
  57765. */
  57766. function cloneElement(element, config, children) {
  57767. (function () {
  57768. if (!!(element === null || element === undefined)) {
  57769. {
  57770. throw ReactError(Error('React.cloneElement(...): The argument must be a React element, but you passed ' + element + '.'));
  57771. }
  57772. }
  57773. })();
  57774. var propName = void 0;
  57775. // Original props are copied
  57776. var props = _assign({}, element.props);
  57777. // Reserved names are extracted
  57778. var key = element.key;
  57779. var ref = element.ref;
  57780. // Self is preserved since the owner is preserved.
  57781. var self = element._self;
  57782. // Source is preserved since cloneElement is unlikely to be targeted by a
  57783. // transpiler, and the original source is probably a better indicator of the
  57784. // true owner.
  57785. var source = element._source;
  57786. // Owner will be preserved, unless ref is overridden
  57787. var owner = element._owner;
  57788. if (config != null) {
  57789. if (hasValidRef(config)) {
  57790. // Silently steal the ref from the parent.
  57791. ref = config.ref;
  57792. owner = ReactCurrentOwner.current;
  57793. }
  57794. if (hasValidKey(config)) {
  57795. key = '' + config.key;
  57796. }
  57797. // Remaining properties override existing props
  57798. var defaultProps = void 0;
  57799. if (element.type && element.type.defaultProps) {
  57800. defaultProps = element.type.defaultProps;
  57801. }
  57802. for (propName in config) {
  57803. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  57804. if (config[propName] === undefined && defaultProps !== undefined) {
  57805. // Resolve default props
  57806. props[propName] = defaultProps[propName];
  57807. } else {
  57808. props[propName] = config[propName];
  57809. }
  57810. }
  57811. }
  57812. }
  57813. // Children can be more than one argument, and those are transferred onto
  57814. // the newly allocated props object.
  57815. var childrenLength = arguments.length - 2;
  57816. if (childrenLength === 1) {
  57817. props.children = children;
  57818. } else if (childrenLength > 1) {
  57819. var childArray = Array(childrenLength);
  57820. for (var i = 0; i < childrenLength; i++) {
  57821. childArray[i] = arguments[i + 2];
  57822. }
  57823. props.children = childArray;
  57824. }
  57825. return ReactElement(element.type, key, ref, self, source, owner, props);
  57826. }
  57827. /**
  57828. * Verifies the object is a ReactElement.
  57829. * See https://reactjs.org/docs/react-api.html#isvalidelement
  57830. * @param {?object} object
  57831. * @return {boolean} True if `object` is a ReactElement.
  57832. * @final
  57833. */
  57834. function isValidElement(object) {
  57835. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  57836. }
  57837. var SEPARATOR = '.';
  57838. var SUBSEPARATOR = ':';
  57839. /**
  57840. * Escape and wrap key so it is safe to use as a reactid
  57841. *
  57842. * @param {string} key to be escaped.
  57843. * @return {string} the escaped key.
  57844. */
  57845. function escape(key) {
  57846. var escapeRegex = /[=:]/g;
  57847. var escaperLookup = {
  57848. '=': '=0',
  57849. ':': '=2'
  57850. };
  57851. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  57852. return escaperLookup[match];
  57853. });
  57854. return '$' + escapedString;
  57855. }
  57856. /**
  57857. * TODO: Test that a single child and an array with one item have the same key
  57858. * pattern.
  57859. */
  57860. var didWarnAboutMaps = false;
  57861. var userProvidedKeyEscapeRegex = /\/+/g;
  57862. function escapeUserProvidedKey(text) {
  57863. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  57864. }
  57865. var POOL_SIZE = 10;
  57866. var traverseContextPool = [];
  57867. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  57868. if (traverseContextPool.length) {
  57869. var traverseContext = traverseContextPool.pop();
  57870. traverseContext.result = mapResult;
  57871. traverseContext.keyPrefix = keyPrefix;
  57872. traverseContext.func = mapFunction;
  57873. traverseContext.context = mapContext;
  57874. traverseContext.count = 0;
  57875. return traverseContext;
  57876. } else {
  57877. return {
  57878. result: mapResult,
  57879. keyPrefix: keyPrefix,
  57880. func: mapFunction,
  57881. context: mapContext,
  57882. count: 0
  57883. };
  57884. }
  57885. }
  57886. function releaseTraverseContext(traverseContext) {
  57887. traverseContext.result = null;
  57888. traverseContext.keyPrefix = null;
  57889. traverseContext.func = null;
  57890. traverseContext.context = null;
  57891. traverseContext.count = 0;
  57892. if (traverseContextPool.length < POOL_SIZE) {
  57893. traverseContextPool.push(traverseContext);
  57894. }
  57895. }
  57896. /**
  57897. * @param {?*} children Children tree container.
  57898. * @param {!string} nameSoFar Name of the key path so far.
  57899. * @param {!function} callback Callback to invoke with each child found.
  57900. * @param {?*} traverseContext Used to pass information throughout the traversal
  57901. * process.
  57902. * @return {!number} The number of children in this subtree.
  57903. */
  57904. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  57905. var type = typeof children;
  57906. if (type === 'undefined' || type === 'boolean') {
  57907. // All of the above are perceived as null.
  57908. children = null;
  57909. }
  57910. var invokeCallback = false;
  57911. if (children === null) {
  57912. invokeCallback = true;
  57913. } else {
  57914. switch (type) {
  57915. case 'string':
  57916. case 'number':
  57917. invokeCallback = true;
  57918. break;
  57919. case 'object':
  57920. switch (children.$$typeof) {
  57921. case REACT_ELEMENT_TYPE:
  57922. case REACT_PORTAL_TYPE:
  57923. invokeCallback = true;
  57924. }
  57925. }
  57926. }
  57927. if (invokeCallback) {
  57928. callback(traverseContext, children,
  57929. // If it's the only child, treat the name as if it was wrapped in an array
  57930. // so that it's consistent if the number of children grows.
  57931. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  57932. return 1;
  57933. }
  57934. var child = void 0;
  57935. var nextName = void 0;
  57936. var subtreeCount = 0; // Count of children found in the current subtree.
  57937. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  57938. if (Array.isArray(children)) {
  57939. for (var i = 0; i < children.length; i++) {
  57940. child = children[i];
  57941. nextName = nextNamePrefix + getComponentKey(child, i);
  57942. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  57943. }
  57944. } else {
  57945. var iteratorFn = getIteratorFn(children);
  57946. if (typeof iteratorFn === 'function') {
  57947. {
  57948. // Warn about using Maps as children
  57949. if (iteratorFn === children.entries) {
  57950. !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;
  57951. didWarnAboutMaps = true;
  57952. }
  57953. }
  57954. var iterator = iteratorFn.call(children);
  57955. var step = void 0;
  57956. var ii = 0;
  57957. while (!(step = iterator.next()).done) {
  57958. child = step.value;
  57959. nextName = nextNamePrefix + getComponentKey(child, ii++);
  57960. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  57961. }
  57962. } else if (type === 'object') {
  57963. var addendum = '';
  57964. {
  57965. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  57966. }
  57967. var childrenString = '' + children;
  57968. (function () {
  57969. {
  57970. {
  57971. throw ReactError(Error('Objects are not valid as a React child (found: ' + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ').' + addendum));
  57972. }
  57973. }
  57974. })();
  57975. }
  57976. }
  57977. return subtreeCount;
  57978. }
  57979. /**
  57980. * Traverses children that are typically specified as `props.children`, but
  57981. * might also be specified through attributes:
  57982. *
  57983. * - `traverseAllChildren(this.props.children, ...)`
  57984. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  57985. *
  57986. * The `traverseContext` is an optional argument that is passed through the
  57987. * entire traversal. It can be used to store accumulations or anything else that
  57988. * the callback might find relevant.
  57989. *
  57990. * @param {?*} children Children tree object.
  57991. * @param {!function} callback To invoke upon traversing each child.
  57992. * @param {?*} traverseContext Context for traversal.
  57993. * @return {!number} The number of children in this subtree.
  57994. */
  57995. function traverseAllChildren(children, callback, traverseContext) {
  57996. if (children == null) {
  57997. return 0;
  57998. }
  57999. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  58000. }
  58001. /**
  58002. * Generate a key string that identifies a component within a set.
  58003. *
  58004. * @param {*} component A component that could contain a manual key.
  58005. * @param {number} index Index that is used if a manual key is not provided.
  58006. * @return {string}
  58007. */
  58008. function getComponentKey(component, index) {
  58009. // Do some typechecking here since we call this blindly. We want to ensure
  58010. // that we don't block potential future ES APIs.
  58011. if (typeof component === 'object' && component !== null && component.key != null) {
  58012. // Explicit key
  58013. return escape(component.key);
  58014. }
  58015. // Implicit key determined by the index in the set
  58016. return index.toString(36);
  58017. }
  58018. function forEachSingleChild(bookKeeping, child, name) {
  58019. var func = bookKeeping.func,
  58020. context = bookKeeping.context;
  58021. func.call(context, child, bookKeeping.count++);
  58022. }
  58023. /**
  58024. * Iterates through children that are typically specified as `props.children`.
  58025. *
  58026. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  58027. *
  58028. * The provided forEachFunc(child, index) will be called for each
  58029. * leaf child.
  58030. *
  58031. * @param {?*} children Children tree container.
  58032. * @param {function(*, int)} forEachFunc
  58033. * @param {*} forEachContext Context for forEachContext.
  58034. */
  58035. function forEachChildren(children, forEachFunc, forEachContext) {
  58036. if (children == null) {
  58037. return children;
  58038. }
  58039. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  58040. traverseAllChildren(children, forEachSingleChild, traverseContext);
  58041. releaseTraverseContext(traverseContext);
  58042. }
  58043. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  58044. var result = bookKeeping.result,
  58045. keyPrefix = bookKeeping.keyPrefix,
  58046. func = bookKeeping.func,
  58047. context = bookKeeping.context;
  58048. var mappedChild = func.call(context, child, bookKeeping.count++);
  58049. if (Array.isArray(mappedChild)) {
  58050. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  58051. return c;
  58052. });
  58053. } else if (mappedChild != null) {
  58054. if (isValidElement(mappedChild)) {
  58055. mappedChild = cloneAndReplaceKey(mappedChild,
  58056. // Keep both the (mapped) and old keys if they differ, just as
  58057. // traverseAllChildren used to do for objects as children
  58058. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  58059. }
  58060. result.push(mappedChild);
  58061. }
  58062. }
  58063. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  58064. var escapedPrefix = '';
  58065. if (prefix != null) {
  58066. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  58067. }
  58068. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  58069. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  58070. releaseTraverseContext(traverseContext);
  58071. }
  58072. /**
  58073. * Maps children that are typically specified as `props.children`.
  58074. *
  58075. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  58076. *
  58077. * The provided mapFunction(child, key, index) will be called for each
  58078. * leaf child.
  58079. *
  58080. * @param {?*} children Children tree container.
  58081. * @param {function(*, int)} func The map function.
  58082. * @param {*} context Context for mapFunction.
  58083. * @return {object} Object containing the ordered map of results.
  58084. */
  58085. function mapChildren(children, func, context) {
  58086. if (children == null) {
  58087. return children;
  58088. }
  58089. var result = [];
  58090. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  58091. return result;
  58092. }
  58093. /**
  58094. * Count the number of children that are typically specified as
  58095. * `props.children`.
  58096. *
  58097. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  58098. *
  58099. * @param {?*} children Children tree container.
  58100. * @return {number} The number of children.
  58101. */
  58102. function countChildren(children) {
  58103. return traverseAllChildren(children, function () {
  58104. return null;
  58105. }, null);
  58106. }
  58107. /**
  58108. * Flatten a children object (typically specified as `props.children`) and
  58109. * return an array with appropriately re-keyed children.
  58110. *
  58111. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  58112. */
  58113. function toArray(children) {
  58114. var result = [];
  58115. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  58116. return child;
  58117. });
  58118. return result;
  58119. }
  58120. /**
  58121. * Returns the first child in a collection of children and verifies that there
  58122. * is only one child in the collection.
  58123. *
  58124. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  58125. *
  58126. * The current implementation of this function assumes that a single child gets
  58127. * passed without a wrapper, but the purpose of this helper function is to
  58128. * abstract away the particular structure of children.
  58129. *
  58130. * @param {?object} children Child collection structure.
  58131. * @return {ReactElement} The first and only `ReactElement` contained in the
  58132. * structure.
  58133. */
  58134. function onlyChild(children) {
  58135. (function () {
  58136. if (!isValidElement(children)) {
  58137. {
  58138. throw ReactError(Error('React.Children.only expected to receive a single React element child.'));
  58139. }
  58140. }
  58141. })();
  58142. return children;
  58143. }
  58144. function createContext(defaultValue, calculateChangedBits) {
  58145. if (calculateChangedBits === undefined) {
  58146. calculateChangedBits = null;
  58147. } else {
  58148. {
  58149. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  58150. }
  58151. }
  58152. var context = {
  58153. $$typeof: REACT_CONTEXT_TYPE,
  58154. _calculateChangedBits: calculateChangedBits,
  58155. // As a workaround to support multiple concurrent renderers, we categorize
  58156. // some renderers as primary and others as secondary. We only expect
  58157. // there to be two concurrent renderers at most: React Native (primary) and
  58158. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  58159. // Secondary renderers store their context values on separate fields.
  58160. _currentValue: defaultValue,
  58161. _currentValue2: defaultValue,
  58162. // Used to track how many concurrent renderers this context currently
  58163. // supports within in a single renderer. Such as parallel server rendering.
  58164. _threadCount: 0,
  58165. // These are circular
  58166. Provider: null,
  58167. Consumer: null
  58168. };
  58169. context.Provider = {
  58170. $$typeof: REACT_PROVIDER_TYPE,
  58171. _context: context
  58172. };
  58173. var hasWarnedAboutUsingNestedContextConsumers = false;
  58174. var hasWarnedAboutUsingConsumerProvider = false;
  58175. {
  58176. // A separate object, but proxies back to the original context object for
  58177. // backwards compatibility. It has a different $$typeof, so we can properly
  58178. // warn for the incorrect usage of Context as a Consumer.
  58179. var Consumer = {
  58180. $$typeof: REACT_CONTEXT_TYPE,
  58181. _context: context,
  58182. _calculateChangedBits: context._calculateChangedBits
  58183. };
  58184. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  58185. Object.defineProperties(Consumer, {
  58186. Provider: {
  58187. get: function () {
  58188. if (!hasWarnedAboutUsingConsumerProvider) {
  58189. hasWarnedAboutUsingConsumerProvider = true;
  58190. 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?');
  58191. }
  58192. return context.Provider;
  58193. },
  58194. set: function (_Provider) {
  58195. context.Provider = _Provider;
  58196. }
  58197. },
  58198. _currentValue: {
  58199. get: function () {
  58200. return context._currentValue;
  58201. },
  58202. set: function (_currentValue) {
  58203. context._currentValue = _currentValue;
  58204. }
  58205. },
  58206. _currentValue2: {
  58207. get: function () {
  58208. return context._currentValue2;
  58209. },
  58210. set: function (_currentValue2) {
  58211. context._currentValue2 = _currentValue2;
  58212. }
  58213. },
  58214. _threadCount: {
  58215. get: function () {
  58216. return context._threadCount;
  58217. },
  58218. set: function (_threadCount) {
  58219. context._threadCount = _threadCount;
  58220. }
  58221. },
  58222. Consumer: {
  58223. get: function () {
  58224. if (!hasWarnedAboutUsingNestedContextConsumers) {
  58225. hasWarnedAboutUsingNestedContextConsumers = true;
  58226. 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?');
  58227. }
  58228. return context.Consumer;
  58229. }
  58230. }
  58231. });
  58232. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  58233. context.Consumer = Consumer;
  58234. }
  58235. {
  58236. context._currentRenderer = null;
  58237. context._currentRenderer2 = null;
  58238. }
  58239. return context;
  58240. }
  58241. function lazy(ctor) {
  58242. var lazyType = {
  58243. $$typeof: REACT_LAZY_TYPE,
  58244. _ctor: ctor,
  58245. // React uses these fields to store the result.
  58246. _status: -1,
  58247. _result: null
  58248. };
  58249. {
  58250. // In production, this would just set it on the object.
  58251. var defaultProps = void 0;
  58252. var propTypes = void 0;
  58253. Object.defineProperties(lazyType, {
  58254. defaultProps: {
  58255. configurable: true,
  58256. get: function () {
  58257. return defaultProps;
  58258. },
  58259. set: function (newDefaultProps) {
  58260. 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.');
  58261. defaultProps = newDefaultProps;
  58262. // Match production behavior more closely:
  58263. Object.defineProperty(lazyType, 'defaultProps', {
  58264. enumerable: true
  58265. });
  58266. }
  58267. },
  58268. propTypes: {
  58269. configurable: true,
  58270. get: function () {
  58271. return propTypes;
  58272. },
  58273. set: function (newPropTypes) {
  58274. 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.');
  58275. propTypes = newPropTypes;
  58276. // Match production behavior more closely:
  58277. Object.defineProperty(lazyType, 'propTypes', {
  58278. enumerable: true
  58279. });
  58280. }
  58281. }
  58282. });
  58283. }
  58284. return lazyType;
  58285. }
  58286. function forwardRef(render) {
  58287. {
  58288. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  58289. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  58290. } else if (typeof render !== 'function') {
  58291. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  58292. } else {
  58293. !(
  58294. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  58295. 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;
  58296. }
  58297. if (render != null) {
  58298. !(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;
  58299. }
  58300. }
  58301. return {
  58302. $$typeof: REACT_FORWARD_REF_TYPE,
  58303. render: render
  58304. };
  58305. }
  58306. function isValidElementType(type) {
  58307. return typeof type === 'string' || typeof type === 'function' ||
  58308. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  58309. 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);
  58310. }
  58311. function memo(type, compare) {
  58312. {
  58313. if (!isValidElementType(type)) {
  58314. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  58315. }
  58316. }
  58317. return {
  58318. $$typeof: REACT_MEMO_TYPE,
  58319. type: type,
  58320. compare: compare === undefined ? null : compare
  58321. };
  58322. }
  58323. function resolveDispatcher() {
  58324. var dispatcher = ReactCurrentDispatcher.current;
  58325. (function () {
  58326. if (!(dispatcher !== null)) {
  58327. {
  58328. 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.'));
  58329. }
  58330. }
  58331. })();
  58332. return dispatcher;
  58333. }
  58334. function useContext(Context, unstable_observedBits) {
  58335. var dispatcher = resolveDispatcher();
  58336. {
  58337. !(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;
  58338. // TODO: add a more generic warning for invalid values.
  58339. if (Context._context !== undefined) {
  58340. var realContext = Context._context;
  58341. // Don't deduplicate because this legitimately causes bugs
  58342. // and nobody should be using this in existing code.
  58343. if (realContext.Consumer === Context) {
  58344. 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?');
  58345. } else if (realContext.Provider === Context) {
  58346. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  58347. }
  58348. }
  58349. }
  58350. return dispatcher.useContext(Context, unstable_observedBits);
  58351. }
  58352. function useState(initialState) {
  58353. var dispatcher = resolveDispatcher();
  58354. return dispatcher.useState(initialState);
  58355. }
  58356. function useReducer(reducer, initialArg, init) {
  58357. var dispatcher = resolveDispatcher();
  58358. return dispatcher.useReducer(reducer, initialArg, init);
  58359. }
  58360. function useRef(initialValue) {
  58361. var dispatcher = resolveDispatcher();
  58362. return dispatcher.useRef(initialValue);
  58363. }
  58364. function useEffect(create, inputs) {
  58365. var dispatcher = resolveDispatcher();
  58366. return dispatcher.useEffect(create, inputs);
  58367. }
  58368. function useLayoutEffect(create, inputs) {
  58369. var dispatcher = resolveDispatcher();
  58370. return dispatcher.useLayoutEffect(create, inputs);
  58371. }
  58372. function useCallback(callback, inputs) {
  58373. var dispatcher = resolveDispatcher();
  58374. return dispatcher.useCallback(callback, inputs);
  58375. }
  58376. function useMemo(create, inputs) {
  58377. var dispatcher = resolveDispatcher();
  58378. return dispatcher.useMemo(create, inputs);
  58379. }
  58380. function useImperativeHandle(ref, create, inputs) {
  58381. var dispatcher = resolveDispatcher();
  58382. return dispatcher.useImperativeHandle(ref, create, inputs);
  58383. }
  58384. function useDebugValue(value, formatterFn) {
  58385. {
  58386. var dispatcher = resolveDispatcher();
  58387. return dispatcher.useDebugValue(value, formatterFn);
  58388. }
  58389. }
  58390. var emptyObject$1 = {};
  58391. function useResponder(responder, listenerProps) {
  58392. var dispatcher = resolveDispatcher();
  58393. {
  58394. if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
  58395. warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
  58396. return;
  58397. }
  58398. }
  58399. return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
  58400. }
  58401. // Within the scope of the callback, mark all updates as being allowed to suspend.
  58402. function withSuspenseConfig(scope, config) {
  58403. var previousConfig = ReactCurrentBatchConfig.suspense;
  58404. ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
  58405. try {
  58406. scope();
  58407. } finally {
  58408. ReactCurrentBatchConfig.suspense = previousConfig;
  58409. }
  58410. }
  58411. /**
  58412. * ReactElementValidator provides a wrapper around a element factory
  58413. * which validates the props passed to the element. This is intended to be
  58414. * used only in DEV and could be replaced by a static type checker for languages
  58415. * that support it.
  58416. */
  58417. var propTypesMisspellWarningShown = void 0;
  58418. {
  58419. propTypesMisspellWarningShown = false;
  58420. }
  58421. function getDeclarationErrorAddendum() {
  58422. if (ReactCurrentOwner.current) {
  58423. var name = getComponentName(ReactCurrentOwner.current.type);
  58424. if (name) {
  58425. return '\n\nCheck the render method of `' + name + '`.';
  58426. }
  58427. }
  58428. return '';
  58429. }
  58430. function getSourceInfoErrorAddendum(source) {
  58431. if (source !== undefined) {
  58432. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  58433. var lineNumber = source.lineNumber;
  58434. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  58435. }
  58436. return '';
  58437. }
  58438. function getSourceInfoErrorAddendumForProps(elementProps) {
  58439. if (elementProps !== null && elementProps !== undefined) {
  58440. return getSourceInfoErrorAddendum(elementProps.__source);
  58441. }
  58442. return '';
  58443. }
  58444. /**
  58445. * Warn if there's no key explicitly set on dynamic arrays of children or
  58446. * object keys are not valid. This allows us to keep track of children between
  58447. * updates.
  58448. */
  58449. var ownerHasKeyUseWarning = {};
  58450. function getCurrentComponentErrorInfo(parentType) {
  58451. var info = getDeclarationErrorAddendum();
  58452. if (!info) {
  58453. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  58454. if (parentName) {
  58455. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  58456. }
  58457. }
  58458. return info;
  58459. }
  58460. /**
  58461. * Warn if the element doesn't have an explicit key assigned to it.
  58462. * This element is in an array. The array could grow and shrink or be
  58463. * reordered. All children that haven't already been validated are required to
  58464. * have a "key" property assigned to it. Error statuses are cached so a warning
  58465. * will only be shown once.
  58466. *
  58467. * @internal
  58468. * @param {ReactElement} element Element that requires a key.
  58469. * @param {*} parentType element's parent's type.
  58470. */
  58471. function validateExplicitKey(element, parentType) {
  58472. if (!element._store || element._store.validated || element.key != null) {
  58473. return;
  58474. }
  58475. element._store.validated = true;
  58476. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  58477. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  58478. return;
  58479. }
  58480. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  58481. // Usually the current owner is the offender, but if it accepts children as a
  58482. // property, it may be the creator of the child that's responsible for
  58483. // assigning it a key.
  58484. var childOwner = '';
  58485. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  58486. // Give the component that originally created this child.
  58487. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  58488. }
  58489. setCurrentlyValidatingElement(element);
  58490. {
  58491. 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);
  58492. }
  58493. setCurrentlyValidatingElement(null);
  58494. }
  58495. /**
  58496. * Ensure that every element either is passed in a static location, in an
  58497. * array with an explicit keys property defined, or in an object literal
  58498. * with valid key property.
  58499. *
  58500. * @internal
  58501. * @param {ReactNode} node Statically passed child of any type.
  58502. * @param {*} parentType node's parent's type.
  58503. */
  58504. function validateChildKeys(node, parentType) {
  58505. if (typeof node !== 'object') {
  58506. return;
  58507. }
  58508. if (Array.isArray(node)) {
  58509. for (var i = 0; i < node.length; i++) {
  58510. var child = node[i];
  58511. if (isValidElement(child)) {
  58512. validateExplicitKey(child, parentType);
  58513. }
  58514. }
  58515. } else if (isValidElement(node)) {
  58516. // This element was passed in a valid location.
  58517. if (node._store) {
  58518. node._store.validated = true;
  58519. }
  58520. } else if (node) {
  58521. var iteratorFn = getIteratorFn(node);
  58522. if (typeof iteratorFn === 'function') {
  58523. // Entry iterators used to provide implicit keys,
  58524. // but now we print a separate warning for them later.
  58525. if (iteratorFn !== node.entries) {
  58526. var iterator = iteratorFn.call(node);
  58527. var step = void 0;
  58528. while (!(step = iterator.next()).done) {
  58529. if (isValidElement(step.value)) {
  58530. validateExplicitKey(step.value, parentType);
  58531. }
  58532. }
  58533. }
  58534. }
  58535. }
  58536. }
  58537. /**
  58538. * Given an element, validate that its props follow the propTypes definition,
  58539. * provided by the type.
  58540. *
  58541. * @param {ReactElement} element
  58542. */
  58543. function validatePropTypes(element) {
  58544. var type = element.type;
  58545. if (type === null || type === undefined || typeof type === 'string') {
  58546. return;
  58547. }
  58548. var name = getComponentName(type);
  58549. var propTypes = void 0;
  58550. if (typeof type === 'function') {
  58551. propTypes = type.propTypes;
  58552. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
  58553. // Note: Memo only checks outer props here.
  58554. // Inner props are checked in the reconciler.
  58555. type.$$typeof === REACT_MEMO_TYPE)) {
  58556. propTypes = type.propTypes;
  58557. } else {
  58558. return;
  58559. }
  58560. if (propTypes) {
  58561. setCurrentlyValidatingElement(element);
  58562. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  58563. setCurrentlyValidatingElement(null);
  58564. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  58565. propTypesMisspellWarningShown = true;
  58566. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  58567. }
  58568. if (typeof type.getDefaultProps === 'function') {
  58569. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  58570. }
  58571. }
  58572. /**
  58573. * Given a fragment, validate that it can only be provided with fragment props
  58574. * @param {ReactElement} fragment
  58575. */
  58576. function validateFragmentProps(fragment) {
  58577. setCurrentlyValidatingElement(fragment);
  58578. var keys = Object.keys(fragment.props);
  58579. for (var i = 0; i < keys.length; i++) {
  58580. var key = keys[i];
  58581. if (key !== 'children' && key !== 'key') {
  58582. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  58583. break;
  58584. }
  58585. }
  58586. if (fragment.ref !== null) {
  58587. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  58588. }
  58589. setCurrentlyValidatingElement(null);
  58590. }
  58591. function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  58592. var validType = isValidElementType(type);
  58593. // We warn in this case but don't throw. We expect the element creation to
  58594. // succeed and there will likely be errors in render.
  58595. if (!validType) {
  58596. var info = '';
  58597. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  58598. 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.";
  58599. }
  58600. var sourceInfo = getSourceInfoErrorAddendum(source);
  58601. if (sourceInfo) {
  58602. info += sourceInfo;
  58603. } else {
  58604. info += getDeclarationErrorAddendum();
  58605. }
  58606. var typeString = void 0;
  58607. if (type === null) {
  58608. typeString = 'null';
  58609. } else if (Array.isArray(type)) {
  58610. typeString = 'array';
  58611. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  58612. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  58613. info = ' Did you accidentally export a JSX literal instead of a component?';
  58614. } else {
  58615. typeString = typeof type;
  58616. }
  58617. 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);
  58618. }
  58619. var element = jsxDEV(type, props, key, source, self);
  58620. // The result can be nullish if a mock or a custom function is used.
  58621. // TODO: Drop this when these are no longer allowed as the type argument.
  58622. if (element == null) {
  58623. return element;
  58624. }
  58625. // Skip key warning if the type isn't valid since our key validation logic
  58626. // doesn't expect a non-string/function type and can throw confusing errors.
  58627. // We don't want exception behavior to differ between dev and prod.
  58628. // (Rendering will throw with a helpful message and as soon as the type is
  58629. // fixed, the key warnings will appear.)
  58630. if (validType) {
  58631. var children = props.children;
  58632. if (children !== undefined) {
  58633. if (isStaticChildren) {
  58634. for (var i = 0; i < children.length; i++) {
  58635. validateChildKeys(children[i], type);
  58636. }
  58637. } else {
  58638. validateChildKeys(children, type);
  58639. }
  58640. }
  58641. }
  58642. if (props.key !== undefined) {
  58643. 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} />');
  58644. }
  58645. if (type === REACT_FRAGMENT_TYPE) {
  58646. validateFragmentProps(element);
  58647. } else {
  58648. validatePropTypes(element);
  58649. }
  58650. return element;
  58651. }
  58652. // These two functions exist to still get child warnings in dev
  58653. // even with the prod transform. This means that jsxDEV is purely
  58654. // opt-in behavior for better messages but that we won't stop
  58655. // giving you warnings if you use production apis.
  58656. function jsxWithValidationStatic(type, props, key) {
  58657. return jsxWithValidation(type, props, key, true);
  58658. }
  58659. function jsxWithValidationDynamic(type, props, key) {
  58660. return jsxWithValidation(type, props, key, false);
  58661. }
  58662. function createElementWithValidation(type, props, children) {
  58663. var validType = isValidElementType(type);
  58664. // We warn in this case but don't throw. We expect the element creation to
  58665. // succeed and there will likely be errors in render.
  58666. if (!validType) {
  58667. var info = '';
  58668. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  58669. 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.";
  58670. }
  58671. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  58672. if (sourceInfo) {
  58673. info += sourceInfo;
  58674. } else {
  58675. info += getDeclarationErrorAddendum();
  58676. }
  58677. var typeString = void 0;
  58678. if (type === null) {
  58679. typeString = 'null';
  58680. } else if (Array.isArray(type)) {
  58681. typeString = 'array';
  58682. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  58683. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  58684. info = ' Did you accidentally export a JSX literal instead of a component?';
  58685. } else {
  58686. typeString = typeof type;
  58687. }
  58688. 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);
  58689. }
  58690. var element = createElement.apply(this, arguments);
  58691. // The result can be nullish if a mock or a custom function is used.
  58692. // TODO: Drop this when these are no longer allowed as the type argument.
  58693. if (element == null) {
  58694. return element;
  58695. }
  58696. // Skip key warning if the type isn't valid since our key validation logic
  58697. // doesn't expect a non-string/function type and can throw confusing errors.
  58698. // We don't want exception behavior to differ between dev and prod.
  58699. // (Rendering will throw with a helpful message and as soon as the type is
  58700. // fixed, the key warnings will appear.)
  58701. if (validType) {
  58702. for (var i = 2; i < arguments.length; i++) {
  58703. validateChildKeys(arguments[i], type);
  58704. }
  58705. }
  58706. if (type === REACT_FRAGMENT_TYPE) {
  58707. validateFragmentProps(element);
  58708. } else {
  58709. validatePropTypes(element);
  58710. }
  58711. return element;
  58712. }
  58713. function createFactoryWithValidation(type) {
  58714. var validatedFactory = createElementWithValidation.bind(null, type);
  58715. validatedFactory.type = type;
  58716. // Legacy hook: remove it
  58717. {
  58718. Object.defineProperty(validatedFactory, 'type', {
  58719. enumerable: false,
  58720. get: function () {
  58721. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  58722. Object.defineProperty(this, 'type', {
  58723. value: type
  58724. });
  58725. return type;
  58726. }
  58727. });
  58728. }
  58729. return validatedFactory;
  58730. }
  58731. function cloneElementWithValidation(element, props, children) {
  58732. var newElement = cloneElement.apply(this, arguments);
  58733. for (var i = 2; i < arguments.length; i++) {
  58734. validateChildKeys(arguments[i], newElement.type);
  58735. }
  58736. validatePropTypes(newElement);
  58737. return newElement;
  58738. }
  58739. var hasBadMapPolyfill = void 0;
  58740. {
  58741. hasBadMapPolyfill = false;
  58742. try {
  58743. var frozenObject = Object.freeze({});
  58744. var testMap = new Map([[frozenObject, null]]);
  58745. var testSet = new Set([frozenObject]);
  58746. // This is necessary for Rollup to not consider these unused.
  58747. // https://github.com/rollup/rollup/issues/1771
  58748. // TODO: we can remove these if Rollup fixes the bug.
  58749. testMap.set(0, 0);
  58750. testSet.add(0);
  58751. } catch (e) {
  58752. // TODO: Consider warning about bad polyfills
  58753. hasBadMapPolyfill = true;
  58754. }
  58755. }
  58756. function createFundamentalComponent(impl) {
  58757. // We use responder as a Map key later on. When we have a bad
  58758. // polyfill, then we can't use it as a key as the polyfill tries
  58759. // to add a property to the object.
  58760. if ( true && !hasBadMapPolyfill) {
  58761. Object.freeze(impl);
  58762. }
  58763. var fundamantalComponent = {
  58764. $$typeof: REACT_FUNDAMENTAL_TYPE,
  58765. impl: impl
  58766. };
  58767. {
  58768. Object.freeze(fundamantalComponent);
  58769. }
  58770. return fundamantalComponent;
  58771. }
  58772. function createEventResponder(displayName, responderConfig) {
  58773. var getInitialState = responderConfig.getInitialState,
  58774. onEvent = responderConfig.onEvent,
  58775. onMount = responderConfig.onMount,
  58776. onUnmount = responderConfig.onUnmount,
  58777. onOwnershipChange = responderConfig.onOwnershipChange,
  58778. onRootEvent = responderConfig.onRootEvent,
  58779. rootEventTypes = responderConfig.rootEventTypes,
  58780. targetEventTypes = responderConfig.targetEventTypes;
  58781. var eventResponder = {
  58782. $$typeof: REACT_RESPONDER_TYPE,
  58783. displayName: displayName,
  58784. getInitialState: getInitialState || null,
  58785. onEvent: onEvent || null,
  58786. onMount: onMount || null,
  58787. onOwnershipChange: onOwnershipChange || null,
  58788. onRootEvent: onRootEvent || null,
  58789. onUnmount: onUnmount || null,
  58790. rootEventTypes: rootEventTypes || null,
  58791. targetEventTypes: targetEventTypes || null
  58792. };
  58793. // We use responder as a Map key later on. When we have a bad
  58794. // polyfill, then we can't use it as a key as the polyfill tries
  58795. // to add a property to the object.
  58796. if ( true && !hasBadMapPolyfill) {
  58797. Object.freeze(eventResponder);
  58798. }
  58799. return eventResponder;
  58800. }
  58801. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  58802. // In some cases, StrictMode should also double-render lifecycles.
  58803. // This can be confusing for tests though,
  58804. // And it can be bad for performance in production.
  58805. // This feature flag can be used to control the behavior:
  58806. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  58807. // replay the begin phase of a failed component inside invokeGuardedCallback.
  58808. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  58809. // Gather advanced timing metrics for Profiler subtrees.
  58810. // Trace which interactions trigger each commit.
  58811. // Only used in www builds.
  58812. // TODO: true? Here it might just be false.
  58813. // Only used in www builds.
  58814. // Only used in www builds.
  58815. // Disable javascript: URL strings in href for XSS protection.
  58816. // React Fire: prevent the value and checked attributes from syncing
  58817. // with their related DOM properties
  58818. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  58819. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  58820. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  58821. // This is a flag so we can fix warnings in RN core before turning it on
  58822. // Experimental React Flare event system and event components support.
  58823. var enableFlareAPI = false;
  58824. // Experimental Host Component support.
  58825. var enableFundamentalAPI = false;
  58826. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  58827. var enableJSXTransformAPI = false;
  58828. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  58829. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  58830. // Temporary flag to revert the fix in #15650
  58831. // For tests, we flush suspense fallbacks in an act scope;
  58832. // *except* in some of our own tests, where we test incremental loading states.
  58833. // Changes priority of some events like mousemove to user-blocking priority,
  58834. // but without making them discrete. The flag exists in case it causes
  58835. // starvation problems.
  58836. // Add a callback property to suspense to notify which promises are currently
  58837. // in the update queue. This allows reporting and tracing of what is causing
  58838. // the user to see a loading state.
  58839. // Part of the simplification of React.createElement so we can eventually move
  58840. // from React.createElement to React.jsx
  58841. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  58842. var React = {
  58843. Children: {
  58844. map: mapChildren,
  58845. forEach: forEachChildren,
  58846. count: countChildren,
  58847. toArray: toArray,
  58848. only: onlyChild
  58849. },
  58850. createRef: createRef,
  58851. Component: Component,
  58852. PureComponent: PureComponent,
  58853. createContext: createContext,
  58854. forwardRef: forwardRef,
  58855. lazy: lazy,
  58856. memo: memo,
  58857. useCallback: useCallback,
  58858. useContext: useContext,
  58859. useEffect: useEffect,
  58860. useImperativeHandle: useImperativeHandle,
  58861. useDebugValue: useDebugValue,
  58862. useLayoutEffect: useLayoutEffect,
  58863. useMemo: useMemo,
  58864. useReducer: useReducer,
  58865. useRef: useRef,
  58866. useState: useState,
  58867. Fragment: REACT_FRAGMENT_TYPE,
  58868. Profiler: REACT_PROFILER_TYPE,
  58869. StrictMode: REACT_STRICT_MODE_TYPE,
  58870. Suspense: REACT_SUSPENSE_TYPE,
  58871. unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
  58872. createElement: createElementWithValidation,
  58873. cloneElement: cloneElementWithValidation,
  58874. createFactory: createFactoryWithValidation,
  58875. isValidElement: isValidElement,
  58876. version: ReactVersion,
  58877. unstable_withSuspenseConfig: withSuspenseConfig,
  58878. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  58879. };
  58880. if (enableFlareAPI) {
  58881. React.unstable_useResponder = useResponder;
  58882. React.unstable_createResponder = createEventResponder;
  58883. }
  58884. if (enableFundamentalAPI) {
  58885. React.unstable_createFundamental = createFundamentalComponent;
  58886. }
  58887. // Note: some APIs are added with feature flags.
  58888. // Make sure that stable builds for open source
  58889. // don't modify the React object to avoid deopts.
  58890. // Also let's not expose their names in stable builds.
  58891. if (enableJSXTransformAPI) {
  58892. {
  58893. React.jsxDEV = jsxWithValidation;
  58894. React.jsx = jsxWithValidationDynamic;
  58895. React.jsxs = jsxWithValidationStatic;
  58896. }
  58897. }
  58898. var React$2 = Object.freeze({
  58899. default: React
  58900. });
  58901. var React$3 = ( React$2 && React ) || React$2;
  58902. // TODO: decide on the top-level export form.
  58903. // This is hacky but makes it work with both Rollup and Jest.
  58904. var react = React$3.default || React$3;
  58905. module.exports = react;
  58906. })();
  58907. }
  58908. /***/ }),
  58909. /***/ "../../node_modules/react/index.js":
  58910. /*!*******************************************************!*\
  58911. !*** C:/Repos/Babylon.js/node_modules/react/index.js ***!
  58912. \*******************************************************/
  58913. /*! no static exports found */
  58914. /***/ (function(module, exports, __webpack_require__) {
  58915. "use strict";
  58916. if (false) {} else {
  58917. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  58918. }
  58919. /***/ }),
  58920. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  58921. /*!***************************************************************************************!*\
  58922. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  58923. \***************************************************************************************/
  58924. /*! no static exports found */
  58925. /***/ (function(module, exports, __webpack_require__) {
  58926. "use strict";
  58927. /** @license React v0.15.0
  58928. * scheduler-tracing.development.js
  58929. *
  58930. * Copyright (c) Facebook, Inc. and its affiliates.
  58931. *
  58932. * This source code is licensed under the MIT license found in the
  58933. * LICENSE file in the root directory of this source tree.
  58934. */
  58935. if (true) {
  58936. (function() {
  58937. 'use strict';
  58938. Object.defineProperty(exports, '__esModule', { value: true });
  58939. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  58940. // In some cases, StrictMode should also double-render lifecycles.
  58941. // This can be confusing for tests though,
  58942. // And it can be bad for performance in production.
  58943. // This feature flag can be used to control the behavior:
  58944. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  58945. // replay the begin phase of a failed component inside invokeGuardedCallback.
  58946. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  58947. // Gather advanced timing metrics for Profiler subtrees.
  58948. // Trace which interactions trigger each commit.
  58949. var enableSchedulerTracing = true;
  58950. // Only used in www builds.
  58951. // TODO: true? Here it might just be false.
  58952. // Only used in www builds.
  58953. // Only used in www builds.
  58954. // Disable javascript: URL strings in href for XSS protection.
  58955. // React Fire: prevent the value and checked attributes from syncing
  58956. // with their related DOM properties
  58957. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  58958. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  58959. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  58960. // This is a flag so we can fix warnings in RN core before turning it on
  58961. // Experimental React Flare event system and event components support.
  58962. // Experimental Host Component support.
  58963. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  58964. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  58965. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  58966. // Temporary flag to revert the fix in #15650
  58967. // For tests, we flush suspense fallbacks in an act scope;
  58968. // *except* in some of our own tests, where we test incremental loading states.
  58969. // Changes priority of some events like mousemove to user-blocking priority,
  58970. // but without making them discrete. The flag exists in case it causes
  58971. // starvation problems.
  58972. // Add a callback property to suspense to notify which promises are currently
  58973. // in the update queue. This allows reporting and tracing of what is causing
  58974. // the user to see a loading state.
  58975. // Part of the simplification of React.createElement so we can eventually move
  58976. // from React.createElement to React.jsx
  58977. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  58978. var DEFAULT_THREAD_ID = 0;
  58979. // Counters used to generate unique IDs.
  58980. var interactionIDCounter = 0;
  58981. var threadIDCounter = 0;
  58982. // Set of currently traced interactions.
  58983. // Interactions "stack"–
  58984. // Meaning that newly traced interactions are appended to the previously active set.
  58985. // When an interaction goes out of scope, the previous set (if any) is restored.
  58986. exports.__interactionsRef = null;
  58987. // Listener(s) to notify when interactions begin and end.
  58988. exports.__subscriberRef = null;
  58989. if (enableSchedulerTracing) {
  58990. exports.__interactionsRef = {
  58991. current: new Set()
  58992. };
  58993. exports.__subscriberRef = {
  58994. current: null
  58995. };
  58996. }
  58997. function unstable_clear(callback) {
  58998. if (!enableSchedulerTracing) {
  58999. return callback();
  59000. }
  59001. var prevInteractions = exports.__interactionsRef.current;
  59002. exports.__interactionsRef.current = new Set();
  59003. try {
  59004. return callback();
  59005. } finally {
  59006. exports.__interactionsRef.current = prevInteractions;
  59007. }
  59008. }
  59009. function unstable_getCurrent() {
  59010. if (!enableSchedulerTracing) {
  59011. return null;
  59012. } else {
  59013. return exports.__interactionsRef.current;
  59014. }
  59015. }
  59016. function unstable_getThreadID() {
  59017. return ++threadIDCounter;
  59018. }
  59019. function unstable_trace(name, timestamp, callback) {
  59020. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  59021. if (!enableSchedulerTracing) {
  59022. return callback();
  59023. }
  59024. var interaction = {
  59025. __count: 1,
  59026. id: interactionIDCounter++,
  59027. name: name,
  59028. timestamp: timestamp
  59029. };
  59030. var prevInteractions = exports.__interactionsRef.current;
  59031. // Traced interactions should stack/accumulate.
  59032. // To do that, clone the current interactions.
  59033. // The previous set will be restored upon completion.
  59034. var interactions = new Set(prevInteractions);
  59035. interactions.add(interaction);
  59036. exports.__interactionsRef.current = interactions;
  59037. var subscriber = exports.__subscriberRef.current;
  59038. var returnValue = void 0;
  59039. try {
  59040. if (subscriber !== null) {
  59041. subscriber.onInteractionTraced(interaction);
  59042. }
  59043. } finally {
  59044. try {
  59045. if (subscriber !== null) {
  59046. subscriber.onWorkStarted(interactions, threadID);
  59047. }
  59048. } finally {
  59049. try {
  59050. returnValue = callback();
  59051. } finally {
  59052. exports.__interactionsRef.current = prevInteractions;
  59053. try {
  59054. if (subscriber !== null) {
  59055. subscriber.onWorkStopped(interactions, threadID);
  59056. }
  59057. } finally {
  59058. interaction.__count--;
  59059. // If no async work was scheduled for this interaction,
  59060. // Notify subscribers that it's completed.
  59061. if (subscriber !== null && interaction.__count === 0) {
  59062. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59063. }
  59064. }
  59065. }
  59066. }
  59067. }
  59068. return returnValue;
  59069. }
  59070. function unstable_wrap(callback) {
  59071. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  59072. if (!enableSchedulerTracing) {
  59073. return callback;
  59074. }
  59075. var wrappedInteractions = exports.__interactionsRef.current;
  59076. var subscriber = exports.__subscriberRef.current;
  59077. if (subscriber !== null) {
  59078. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  59079. }
  59080. // Update the pending async work count for the current interactions.
  59081. // Update after calling subscribers in case of error.
  59082. wrappedInteractions.forEach(function (interaction) {
  59083. interaction.__count++;
  59084. });
  59085. var hasRun = false;
  59086. function wrapped() {
  59087. var prevInteractions = exports.__interactionsRef.current;
  59088. exports.__interactionsRef.current = wrappedInteractions;
  59089. subscriber = exports.__subscriberRef.current;
  59090. try {
  59091. var returnValue = void 0;
  59092. try {
  59093. if (subscriber !== null) {
  59094. subscriber.onWorkStarted(wrappedInteractions, threadID);
  59095. }
  59096. } finally {
  59097. try {
  59098. returnValue = callback.apply(undefined, arguments);
  59099. } finally {
  59100. exports.__interactionsRef.current = prevInteractions;
  59101. if (subscriber !== null) {
  59102. subscriber.onWorkStopped(wrappedInteractions, threadID);
  59103. }
  59104. }
  59105. }
  59106. return returnValue;
  59107. } finally {
  59108. if (!hasRun) {
  59109. // We only expect a wrapped function to be executed once,
  59110. // But in the event that it's executed more than once–
  59111. // Only decrement the outstanding interaction counts once.
  59112. hasRun = true;
  59113. // Update pending async counts for all wrapped interactions.
  59114. // If this was the last scheduled async work for any of them,
  59115. // Mark them as completed.
  59116. wrappedInteractions.forEach(function (interaction) {
  59117. interaction.__count--;
  59118. if (subscriber !== null && interaction.__count === 0) {
  59119. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59120. }
  59121. });
  59122. }
  59123. }
  59124. }
  59125. wrapped.cancel = function cancel() {
  59126. subscriber = exports.__subscriberRef.current;
  59127. try {
  59128. if (subscriber !== null) {
  59129. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  59130. }
  59131. } finally {
  59132. // Update pending async counts for all wrapped interactions.
  59133. // If this was the last scheduled async work for any of them,
  59134. // Mark them as completed.
  59135. wrappedInteractions.forEach(function (interaction) {
  59136. interaction.__count--;
  59137. if (subscriber && interaction.__count === 0) {
  59138. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59139. }
  59140. });
  59141. }
  59142. };
  59143. return wrapped;
  59144. }
  59145. var subscribers = null;
  59146. if (enableSchedulerTracing) {
  59147. subscribers = new Set();
  59148. }
  59149. function unstable_subscribe(subscriber) {
  59150. if (enableSchedulerTracing) {
  59151. subscribers.add(subscriber);
  59152. if (subscribers.size === 1) {
  59153. exports.__subscriberRef.current = {
  59154. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  59155. onInteractionTraced: onInteractionTraced,
  59156. onWorkCanceled: onWorkCanceled,
  59157. onWorkScheduled: onWorkScheduled,
  59158. onWorkStarted: onWorkStarted,
  59159. onWorkStopped: onWorkStopped
  59160. };
  59161. }
  59162. }
  59163. }
  59164. function unstable_unsubscribe(subscriber) {
  59165. if (enableSchedulerTracing) {
  59166. subscribers.delete(subscriber);
  59167. if (subscribers.size === 0) {
  59168. exports.__subscriberRef.current = null;
  59169. }
  59170. }
  59171. }
  59172. function onInteractionTraced(interaction) {
  59173. var didCatchError = false;
  59174. var caughtError = null;
  59175. subscribers.forEach(function (subscriber) {
  59176. try {
  59177. subscriber.onInteractionTraced(interaction);
  59178. } catch (error) {
  59179. if (!didCatchError) {
  59180. didCatchError = true;
  59181. caughtError = error;
  59182. }
  59183. }
  59184. });
  59185. if (didCatchError) {
  59186. throw caughtError;
  59187. }
  59188. }
  59189. function onInteractionScheduledWorkCompleted(interaction) {
  59190. var didCatchError = false;
  59191. var caughtError = null;
  59192. subscribers.forEach(function (subscriber) {
  59193. try {
  59194. subscriber.onInteractionScheduledWorkCompleted(interaction);
  59195. } catch (error) {
  59196. if (!didCatchError) {
  59197. didCatchError = true;
  59198. caughtError = error;
  59199. }
  59200. }
  59201. });
  59202. if (didCatchError) {
  59203. throw caughtError;
  59204. }
  59205. }
  59206. function onWorkScheduled(interactions, threadID) {
  59207. var didCatchError = false;
  59208. var caughtError = null;
  59209. subscribers.forEach(function (subscriber) {
  59210. try {
  59211. subscriber.onWorkScheduled(interactions, threadID);
  59212. } catch (error) {
  59213. if (!didCatchError) {
  59214. didCatchError = true;
  59215. caughtError = error;
  59216. }
  59217. }
  59218. });
  59219. if (didCatchError) {
  59220. throw caughtError;
  59221. }
  59222. }
  59223. function onWorkStarted(interactions, threadID) {
  59224. var didCatchError = false;
  59225. var caughtError = null;
  59226. subscribers.forEach(function (subscriber) {
  59227. try {
  59228. subscriber.onWorkStarted(interactions, threadID);
  59229. } catch (error) {
  59230. if (!didCatchError) {
  59231. didCatchError = true;
  59232. caughtError = error;
  59233. }
  59234. }
  59235. });
  59236. if (didCatchError) {
  59237. throw caughtError;
  59238. }
  59239. }
  59240. function onWorkStopped(interactions, threadID) {
  59241. var didCatchError = false;
  59242. var caughtError = null;
  59243. subscribers.forEach(function (subscriber) {
  59244. try {
  59245. subscriber.onWorkStopped(interactions, threadID);
  59246. } catch (error) {
  59247. if (!didCatchError) {
  59248. didCatchError = true;
  59249. caughtError = error;
  59250. }
  59251. }
  59252. });
  59253. if (didCatchError) {
  59254. throw caughtError;
  59255. }
  59256. }
  59257. function onWorkCanceled(interactions, threadID) {
  59258. var didCatchError = false;
  59259. var caughtError = null;
  59260. subscribers.forEach(function (subscriber) {
  59261. try {
  59262. subscriber.onWorkCanceled(interactions, threadID);
  59263. } catch (error) {
  59264. if (!didCatchError) {
  59265. didCatchError = true;
  59266. caughtError = error;
  59267. }
  59268. }
  59269. });
  59270. if (didCatchError) {
  59271. throw caughtError;
  59272. }
  59273. }
  59274. exports.unstable_clear = unstable_clear;
  59275. exports.unstable_getCurrent = unstable_getCurrent;
  59276. exports.unstable_getThreadID = unstable_getThreadID;
  59277. exports.unstable_trace = unstable_trace;
  59278. exports.unstable_wrap = unstable_wrap;
  59279. exports.unstable_subscribe = unstable_subscribe;
  59280. exports.unstable_unsubscribe = unstable_unsubscribe;
  59281. })();
  59282. }
  59283. /***/ }),
  59284. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  59285. /*!*******************************************************************************!*\
  59286. !*** C:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  59287. \*******************************************************************************/
  59288. /*! no static exports found */
  59289. /***/ (function(module, exports, __webpack_require__) {
  59290. "use strict";
  59291. /** @license React v0.15.0
  59292. * scheduler.development.js
  59293. *
  59294. * Copyright (c) Facebook, Inc. and its affiliates.
  59295. *
  59296. * This source code is licensed under the MIT license found in the
  59297. * LICENSE file in the root directory of this source tree.
  59298. */
  59299. if (true) {
  59300. (function() {
  59301. 'use strict';
  59302. Object.defineProperty(exports, '__esModule', { value: true });
  59303. var enableSchedulerDebugging = false;
  59304. var enableIsInputPending = false;
  59305. var requestIdleCallbackBeforeFirstFrame = false;
  59306. var requestTimerEventBeforeFirstFrame = false;
  59307. var enableMessageLoopImplementation = false;
  59308. // The DOM Scheduler implementation is similar to requestIdleCallback. It
  59309. // works by scheduling a requestAnimationFrame, storing the time for the start
  59310. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  59311. // Within the postMessage handler do as much work as possible until time + frame
  59312. // rate. By separating the idle call into a separate event tick we ensure that
  59313. // layout, paint and other browser work is counted against the available time.
  59314. // The frame rate is dynamically adjusted.
  59315. var requestHostCallback = void 0;
  59316. var requestHostTimeout = void 0;
  59317. var cancelHostTimeout = void 0;
  59318. var shouldYieldToHost = void 0;
  59319. var requestPaint = void 0;
  59320. exports.unstable_now = void 0;
  59321. exports.unstable_forceFrameRate = void 0;
  59322. if (
  59323. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  59324. // implementation using setTimeout.
  59325. typeof window === 'undefined' ||
  59326. // Check if MessageChannel is supported, too.
  59327. typeof MessageChannel !== 'function') {
  59328. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  59329. // fallback to a naive implementation.
  59330. var _callback = null;
  59331. var _timeoutID = null;
  59332. var _flushCallback = function () {
  59333. if (_callback !== null) {
  59334. try {
  59335. var currentTime = exports.unstable_now();
  59336. var hasRemainingTime = true;
  59337. _callback(hasRemainingTime, currentTime);
  59338. _callback = null;
  59339. } catch (e) {
  59340. setTimeout(_flushCallback, 0);
  59341. throw e;
  59342. }
  59343. }
  59344. };
  59345. exports.unstable_now = function () {
  59346. return Date.now();
  59347. };
  59348. requestHostCallback = function (cb) {
  59349. if (_callback !== null) {
  59350. // Protect against re-entrancy.
  59351. setTimeout(requestHostCallback, 0, cb);
  59352. } else {
  59353. _callback = cb;
  59354. setTimeout(_flushCallback, 0);
  59355. }
  59356. };
  59357. requestHostTimeout = function (cb, ms) {
  59358. _timeoutID = setTimeout(cb, ms);
  59359. };
  59360. cancelHostTimeout = function () {
  59361. clearTimeout(_timeoutID);
  59362. };
  59363. shouldYieldToHost = function () {
  59364. return false;
  59365. };
  59366. requestPaint = exports.unstable_forceFrameRate = function () {};
  59367. } else {
  59368. // Capture local references to native APIs, in case a polyfill overrides them.
  59369. var performance = window.performance;
  59370. var _Date = window.Date;
  59371. var _setTimeout = window.setTimeout;
  59372. var _clearTimeout = window.clearTimeout;
  59373. var requestAnimationFrame = window.requestAnimationFrame;
  59374. var cancelAnimationFrame = window.cancelAnimationFrame;
  59375. var requestIdleCallback = window.requestIdleCallback;
  59376. if (typeof console !== 'undefined') {
  59377. // TODO: Remove fb.me link
  59378. if (typeof requestAnimationFrame !== 'function') {
  59379. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  59380. }
  59381. if (typeof cancelAnimationFrame !== 'function') {
  59382. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  59383. }
  59384. }
  59385. var requestIdleCallbackBeforeFirstFrame$1 = requestIdleCallbackBeforeFirstFrame && typeof requestIdleCallback === 'function' && typeof cancelIdleCallback === 'function';
  59386. exports.unstable_now = typeof performance === 'object' && typeof performance.now === 'function' ? function () {
  59387. return performance.now();
  59388. } : function () {
  59389. return _Date.now();
  59390. };
  59391. var isRAFLoopRunning = false;
  59392. var isMessageLoopRunning = false;
  59393. var scheduledHostCallback = null;
  59394. var rAFTimeoutID = -1;
  59395. var taskTimeoutID = -1;
  59396. var frameLength = enableMessageLoopImplementation ? // We won't attempt to align with the vsync. Instead we'll yield multiple
  59397. // times per frame, often enough to keep it responsive even at really
  59398. // high frame rates > 120.
  59399. 5 : // Use a heuristic to measure the frame rate and yield at the end of the
  59400. // frame. We start out assuming that we run at 30fps but then the
  59401. // heuristic tracking will adjust this value to a faster fps if we get
  59402. // more frequent animation frames.
  59403. 33.33;
  59404. var prevRAFTime = -1;
  59405. var prevRAFInterval = -1;
  59406. var frameDeadline = 0;
  59407. var fpsLocked = false;
  59408. // TODO: Make this configurable
  59409. // TODO: Adjust this based on priority?
  59410. var maxFrameLength = 300;
  59411. var needsPaint = false;
  59412. if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
  59413. var scheduling = navigator.scheduling;
  59414. shouldYieldToHost = function () {
  59415. var currentTime = exports.unstable_now();
  59416. if (currentTime >= frameDeadline) {
  59417. // There's no time left in the frame. We may want to yield control of
  59418. // the main thread, so the browser can perform high priority tasks. The
  59419. // main ones are painting and user input. If there's a pending paint or
  59420. // a pending input, then we should yield. But if there's neither, then
  59421. // we can yield less often while remaining responsive. We'll eventually
  59422. // yield regardless, since there could be a pending paint that wasn't
  59423. // accompanied by a call to `requestPaint`, or other main thread tasks
  59424. // like network events.
  59425. if (needsPaint || scheduling.isInputPending()) {
  59426. // There is either a pending paint or a pending input.
  59427. return true;
  59428. }
  59429. // There's no pending input. Only yield if we've reached the max
  59430. // frame length.
  59431. return currentTime >= frameDeadline + maxFrameLength;
  59432. } else {
  59433. // There's still time left in the frame.
  59434. return false;
  59435. }
  59436. };
  59437. requestPaint = function () {
  59438. needsPaint = true;
  59439. };
  59440. } else {
  59441. // `isInputPending` is not available. Since we have no way of knowing if
  59442. // there's pending input, always yield at the end of the frame.
  59443. shouldYieldToHost = function () {
  59444. return exports.unstable_now() >= frameDeadline;
  59445. };
  59446. // Since we yield every frame regardless, `requestPaint` has no effect.
  59447. requestPaint = function () {};
  59448. }
  59449. exports.unstable_forceFrameRate = function (fps) {
  59450. if (fps < 0 || fps > 125) {
  59451. console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  59452. return;
  59453. }
  59454. if (fps > 0) {
  59455. frameLength = Math.floor(1000 / fps);
  59456. fpsLocked = true;
  59457. } else {
  59458. // reset the framerate
  59459. frameLength = 33.33;
  59460. fpsLocked = false;
  59461. }
  59462. };
  59463. var performWorkUntilDeadline = function () {
  59464. if (enableMessageLoopImplementation) {
  59465. if (scheduledHostCallback !== null) {
  59466. var currentTime = exports.unstable_now();
  59467. // Yield after `frameLength` ms, regardless of where we are in the vsync
  59468. // cycle. This means there's always time remaining at the beginning of
  59469. // the message event.
  59470. frameDeadline = currentTime + frameLength;
  59471. var hasTimeRemaining = true;
  59472. try {
  59473. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  59474. if (!hasMoreWork) {
  59475. isMessageLoopRunning = false;
  59476. scheduledHostCallback = null;
  59477. } else {
  59478. // If there's more work, schedule the next message event at the end
  59479. // of the preceding one.
  59480. port.postMessage(null);
  59481. }
  59482. } catch (error) {
  59483. // If a scheduler task throws, exit the current browser task so the
  59484. // error can be observed.
  59485. port.postMessage(null);
  59486. throw error;
  59487. }
  59488. }
  59489. // Yielding to the browser will give it a chance to paint, so we can
  59490. // reset this.
  59491. needsPaint = false;
  59492. } else {
  59493. if (scheduledHostCallback !== null) {
  59494. var _currentTime = exports.unstable_now();
  59495. var _hasTimeRemaining = frameDeadline - _currentTime > 0;
  59496. try {
  59497. var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
  59498. if (!_hasMoreWork) {
  59499. scheduledHostCallback = null;
  59500. }
  59501. } catch (error) {
  59502. // If a scheduler task throws, exit the current browser task so the
  59503. // error can be observed, and post a new task as soon as possible
  59504. // so we can continue where we left off.
  59505. port.postMessage(null);
  59506. throw error;
  59507. }
  59508. }
  59509. // Yielding to the browser will give it a chance to paint, so we can
  59510. // reset this.
  59511. needsPaint = false;
  59512. }
  59513. };
  59514. var channel = new MessageChannel();
  59515. var port = channel.port2;
  59516. channel.port1.onmessage = performWorkUntilDeadline;
  59517. var onAnimationFrame = function (rAFTime) {
  59518. if (scheduledHostCallback === null) {
  59519. // No scheduled work. Exit.
  59520. prevRAFTime = -1;
  59521. prevRAFInterval = -1;
  59522. isRAFLoopRunning = false;
  59523. return;
  59524. }
  59525. // Eagerly schedule the next animation callback at the beginning of the
  59526. // frame. If the scheduler queue is not empty at the end of the frame, it
  59527. // will continue flushing inside that callback. If the queue *is* empty,
  59528. // then it will exit immediately. Posting the callback at the start of the
  59529. // frame ensures it's fired within the earliest possible frame. If we
  59530. // waited until the end of the frame to post the callback, we risk the
  59531. // browser skipping a frame and not firing the callback until the frame
  59532. // after that.
  59533. isRAFLoopRunning = true;
  59534. requestAnimationFrame(function (nextRAFTime) {
  59535. _clearTimeout(rAFTimeoutID);
  59536. onAnimationFrame(nextRAFTime);
  59537. });
  59538. // requestAnimationFrame is throttled when the tab is backgrounded. We
  59539. // don't want to stop working entirely. So we'll fallback to a timeout loop.
  59540. // TODO: Need a better heuristic for backgrounded work.
  59541. var onTimeout = function () {
  59542. frameDeadline = exports.unstable_now() + frameLength / 2;
  59543. performWorkUntilDeadline();
  59544. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  59545. };
  59546. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  59547. if (prevRAFTime !== -1 &&
  59548. // Make sure this rAF time is different from the previous one. This check
  59549. // could fail if two rAFs fire in the same frame.
  59550. rAFTime - prevRAFTime > 0.1) {
  59551. var rAFInterval = rAFTime - prevRAFTime;
  59552. if (!fpsLocked && prevRAFInterval !== -1) {
  59553. // We've observed two consecutive frame intervals. We'll use this to
  59554. // dynamically adjust the frame rate.
  59555. //
  59556. // If one frame goes long, then the next one can be short to catch up.
  59557. // If two frames are short in a row, then that's an indication that we
  59558. // actually have a higher frame rate than what we're currently
  59559. // optimizing. For example, if we're running on 120hz display or 90hz VR
  59560. // display. Take the max of the two in case one of them was an anomaly
  59561. // due to missed frame deadlines.
  59562. if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
  59563. frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
  59564. if (frameLength < 8.33) {
  59565. // Defensive coding. We don't support higher frame rates than 120hz.
  59566. // If the calculated frame length gets lower than 8, it is probably
  59567. // a bug.
  59568. frameLength = 8.33;
  59569. }
  59570. }
  59571. }
  59572. prevRAFInterval = rAFInterval;
  59573. }
  59574. prevRAFTime = rAFTime;
  59575. frameDeadline = rAFTime + frameLength;
  59576. // We use the postMessage trick to defer idle work until after the repaint.
  59577. port.postMessage(null);
  59578. };
  59579. requestHostCallback = function (callback) {
  59580. scheduledHostCallback = callback;
  59581. if (enableMessageLoopImplementation) {
  59582. if (!isMessageLoopRunning) {
  59583. isMessageLoopRunning = true;
  59584. port.postMessage(null);
  59585. }
  59586. } else {
  59587. if (!isRAFLoopRunning) {
  59588. // Start a rAF loop.
  59589. isRAFLoopRunning = true;
  59590. requestAnimationFrame(function (rAFTime) {
  59591. if (requestIdleCallbackBeforeFirstFrame$1) {
  59592. cancelIdleCallback(idleCallbackID);
  59593. }
  59594. if (requestTimerEventBeforeFirstFrame) {
  59595. _clearTimeout(idleTimeoutID);
  59596. }
  59597. onAnimationFrame(rAFTime);
  59598. });
  59599. // If we just missed the last vsync, the next rAF might not happen for
  59600. // another frame. To claim as much idle time as possible, post a
  59601. // callback with `requestIdleCallback`, which should fire if there's
  59602. // idle time left in the frame.
  59603. //
  59604. // This should only be an issue for the first rAF in the loop;
  59605. // subsequent rAFs are scheduled at the beginning of the
  59606. // preceding frame.
  59607. var idleCallbackID = void 0;
  59608. if (requestIdleCallbackBeforeFirstFrame$1) {
  59609. idleCallbackID = requestIdleCallback(function onIdleCallbackBeforeFirstFrame() {
  59610. if (requestTimerEventBeforeFirstFrame) {
  59611. _clearTimeout(idleTimeoutID);
  59612. }
  59613. frameDeadline = exports.unstable_now() + frameLength;
  59614. performWorkUntilDeadline();
  59615. });
  59616. }
  59617. // Alternate strategy to address the same problem. Scheduler a timer
  59618. // with no delay. If this fires before the rAF, that likely indicates
  59619. // that there's idle time before the next vsync. This isn't always the
  59620. // case, but we'll be aggressive and assume it is, as a trade off to
  59621. // prevent idle periods.
  59622. var idleTimeoutID = void 0;
  59623. if (requestTimerEventBeforeFirstFrame) {
  59624. idleTimeoutID = _setTimeout(function onTimerEventBeforeFirstFrame() {
  59625. if (requestIdleCallbackBeforeFirstFrame$1) {
  59626. cancelIdleCallback(idleCallbackID);
  59627. }
  59628. frameDeadline = exports.unstable_now() + frameLength;
  59629. performWorkUntilDeadline();
  59630. }, 0);
  59631. }
  59632. }
  59633. }
  59634. };
  59635. requestHostTimeout = function (callback, ms) {
  59636. taskTimeoutID = _setTimeout(function () {
  59637. callback(exports.unstable_now());
  59638. }, ms);
  59639. };
  59640. cancelHostTimeout = function () {
  59641. _clearTimeout(taskTimeoutID);
  59642. taskTimeoutID = -1;
  59643. };
  59644. }
  59645. /* eslint-disable no-var */
  59646. // TODO: Use symbols?
  59647. var ImmediatePriority = 1;
  59648. var UserBlockingPriority = 2;
  59649. var NormalPriority = 3;
  59650. var LowPriority = 4;
  59651. var IdlePriority = 5;
  59652. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  59653. // Math.pow(2, 30) - 1
  59654. // 0b111111111111111111111111111111
  59655. var maxSigned31BitInt = 1073741823;
  59656. // Times out immediately
  59657. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  59658. // Eventually times out
  59659. var USER_BLOCKING_PRIORITY = 250;
  59660. var NORMAL_PRIORITY_TIMEOUT = 5000;
  59661. var LOW_PRIORITY_TIMEOUT = 10000;
  59662. // Never times out
  59663. var IDLE_PRIORITY = maxSigned31BitInt;
  59664. // Tasks are stored as a circular, doubly linked list.
  59665. var firstTask = null;
  59666. var firstDelayedTask = null;
  59667. // Pausing the scheduler is useful for debugging.
  59668. var isSchedulerPaused = false;
  59669. var currentTask = null;
  59670. var currentPriorityLevel = NormalPriority;
  59671. // This is set while performing work, to prevent re-entrancy.
  59672. var isPerformingWork = false;
  59673. var isHostCallbackScheduled = false;
  59674. var isHostTimeoutScheduled = false;
  59675. function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
  59676. return callback(didTimeout);
  59677. }
  59678. function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
  59679. return callback(didTimeout);
  59680. }
  59681. function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
  59682. return callback(didTimeout);
  59683. }
  59684. function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
  59685. return callback(didTimeout);
  59686. }
  59687. function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
  59688. return callback(didTimeout);
  59689. }
  59690. function flushTask(task, currentTime) {
  59691. // Remove the task from the list before calling the callback. That way the
  59692. // list is in a consistent state even if the callback throws.
  59693. var next = task.next;
  59694. if (next === task) {
  59695. // This is the only scheduled task. Clear the list.
  59696. firstTask = null;
  59697. } else {
  59698. // Remove the task from its position in the list.
  59699. if (task === firstTask) {
  59700. firstTask = next;
  59701. }
  59702. var previous = task.previous;
  59703. previous.next = next;
  59704. next.previous = previous;
  59705. }
  59706. task.next = task.previous = null;
  59707. // Now it's safe to execute the task.
  59708. var callback = task.callback;
  59709. var previousPriorityLevel = currentPriorityLevel;
  59710. var previousTask = currentTask;
  59711. currentPriorityLevel = task.priorityLevel;
  59712. currentTask = task;
  59713. var continuationCallback;
  59714. try {
  59715. var didUserCallbackTimeout = task.expirationTime <= currentTime;
  59716. // Add an extra function to the callstack. Profiling tools can use this
  59717. // to infer the priority of work that appears higher in the stack.
  59718. switch (currentPriorityLevel) {
  59719. case ImmediatePriority:
  59720. continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
  59721. break;
  59722. case UserBlockingPriority:
  59723. continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
  59724. break;
  59725. case NormalPriority:
  59726. continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
  59727. break;
  59728. case LowPriority:
  59729. continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
  59730. break;
  59731. case IdlePriority:
  59732. continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
  59733. break;
  59734. }
  59735. } catch (error) {
  59736. throw error;
  59737. } finally {
  59738. currentPriorityLevel = previousPriorityLevel;
  59739. currentTask = previousTask;
  59740. }
  59741. // A callback may return a continuation. The continuation should be scheduled
  59742. // with the same priority and expiration as the just-finished callback.
  59743. if (typeof continuationCallback === 'function') {
  59744. var expirationTime = task.expirationTime;
  59745. var continuationTask = task;
  59746. continuationTask.callback = continuationCallback;
  59747. // Insert the new callback into the list, sorted by its timeout. This is
  59748. // almost the same as the code in `scheduleCallback`, except the callback
  59749. // is inserted into the list *before* callbacks of equal timeout instead
  59750. // of after.
  59751. if (firstTask === null) {
  59752. // This is the first callback in the list.
  59753. firstTask = continuationTask.next = continuationTask.previous = continuationTask;
  59754. } else {
  59755. var nextAfterContinuation = null;
  59756. var t = firstTask;
  59757. do {
  59758. if (expirationTime <= t.expirationTime) {
  59759. // This task times out at or after the continuation. We will insert
  59760. // the continuation *before* this task.
  59761. nextAfterContinuation = t;
  59762. break;
  59763. }
  59764. t = t.next;
  59765. } while (t !== firstTask);
  59766. if (nextAfterContinuation === null) {
  59767. // No equal or lower priority task was found, which means the new task
  59768. // is the lowest priority task in the list.
  59769. nextAfterContinuation = firstTask;
  59770. } else if (nextAfterContinuation === firstTask) {
  59771. // The new task is the highest priority task in the list.
  59772. firstTask = continuationTask;
  59773. }
  59774. var _previous = nextAfterContinuation.previous;
  59775. _previous.next = nextAfterContinuation.previous = continuationTask;
  59776. continuationTask.next = nextAfterContinuation;
  59777. continuationTask.previous = _previous;
  59778. }
  59779. }
  59780. }
  59781. function advanceTimers(currentTime) {
  59782. // Check for tasks that are no longer delayed and add them to the queue.
  59783. if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
  59784. do {
  59785. var task = firstDelayedTask;
  59786. var next = task.next;
  59787. if (task === next) {
  59788. firstDelayedTask = null;
  59789. } else {
  59790. firstDelayedTask = next;
  59791. var previous = task.previous;
  59792. previous.next = next;
  59793. next.previous = previous;
  59794. }
  59795. task.next = task.previous = null;
  59796. insertScheduledTask(task, task.expirationTime);
  59797. } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
  59798. }
  59799. }
  59800. function handleTimeout(currentTime) {
  59801. isHostTimeoutScheduled = false;
  59802. advanceTimers(currentTime);
  59803. if (!isHostCallbackScheduled) {
  59804. if (firstTask !== null) {
  59805. isHostCallbackScheduled = true;
  59806. requestHostCallback(flushWork);
  59807. } else if (firstDelayedTask !== null) {
  59808. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  59809. }
  59810. }
  59811. }
  59812. function flushWork(hasTimeRemaining, initialTime) {
  59813. // Exit right away if we're currently paused
  59814. if (enableSchedulerDebugging && isSchedulerPaused) {
  59815. return;
  59816. }
  59817. // We'll need a host callback the next time work is scheduled.
  59818. isHostCallbackScheduled = false;
  59819. if (isHostTimeoutScheduled) {
  59820. // We scheduled a timeout but it's no longer needed. Cancel it.
  59821. isHostTimeoutScheduled = false;
  59822. cancelHostTimeout();
  59823. }
  59824. var currentTime = initialTime;
  59825. advanceTimers(currentTime);
  59826. isPerformingWork = true;
  59827. try {
  59828. if (!hasTimeRemaining) {
  59829. // Flush all the expired callbacks without yielding.
  59830. // TODO: Split flushWork into two separate functions instead of using
  59831. // a boolean argument?
  59832. while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
  59833. flushTask(firstTask, currentTime);
  59834. currentTime = exports.unstable_now();
  59835. advanceTimers(currentTime);
  59836. }
  59837. } else {
  59838. // Keep flushing callbacks until we run out of time in the frame.
  59839. if (firstTask !== null) {
  59840. do {
  59841. flushTask(firstTask, currentTime);
  59842. currentTime = exports.unstable_now();
  59843. advanceTimers(currentTime);
  59844. } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
  59845. }
  59846. }
  59847. // Return whether there's additional work
  59848. if (firstTask !== null) {
  59849. return true;
  59850. } else {
  59851. if (firstDelayedTask !== null) {
  59852. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  59853. }
  59854. return false;
  59855. }
  59856. } finally {
  59857. isPerformingWork = false;
  59858. }
  59859. }
  59860. function unstable_runWithPriority(priorityLevel, eventHandler) {
  59861. switch (priorityLevel) {
  59862. case ImmediatePriority:
  59863. case UserBlockingPriority:
  59864. case NormalPriority:
  59865. case LowPriority:
  59866. case IdlePriority:
  59867. break;
  59868. default:
  59869. priorityLevel = NormalPriority;
  59870. }
  59871. var previousPriorityLevel = currentPriorityLevel;
  59872. currentPriorityLevel = priorityLevel;
  59873. try {
  59874. return eventHandler();
  59875. } finally {
  59876. currentPriorityLevel = previousPriorityLevel;
  59877. }
  59878. }
  59879. function unstable_next(eventHandler) {
  59880. var priorityLevel;
  59881. switch (currentPriorityLevel) {
  59882. case ImmediatePriority:
  59883. case UserBlockingPriority:
  59884. case NormalPriority:
  59885. // Shift down to normal priority
  59886. priorityLevel = NormalPriority;
  59887. break;
  59888. default:
  59889. // Anything lower than normal priority should remain at the current level.
  59890. priorityLevel = currentPriorityLevel;
  59891. break;
  59892. }
  59893. var previousPriorityLevel = currentPriorityLevel;
  59894. currentPriorityLevel = priorityLevel;
  59895. try {
  59896. return eventHandler();
  59897. } finally {
  59898. currentPriorityLevel = previousPriorityLevel;
  59899. }
  59900. }
  59901. function unstable_wrapCallback(callback) {
  59902. var parentPriorityLevel = currentPriorityLevel;
  59903. return function () {
  59904. // This is a fork of runWithPriority, inlined for performance.
  59905. var previousPriorityLevel = currentPriorityLevel;
  59906. currentPriorityLevel = parentPriorityLevel;
  59907. try {
  59908. return callback.apply(this, arguments);
  59909. } finally {
  59910. currentPriorityLevel = previousPriorityLevel;
  59911. }
  59912. };
  59913. }
  59914. function timeoutForPriorityLevel(priorityLevel) {
  59915. switch (priorityLevel) {
  59916. case ImmediatePriority:
  59917. return IMMEDIATE_PRIORITY_TIMEOUT;
  59918. case UserBlockingPriority:
  59919. return USER_BLOCKING_PRIORITY;
  59920. case IdlePriority:
  59921. return IDLE_PRIORITY;
  59922. case LowPriority:
  59923. return LOW_PRIORITY_TIMEOUT;
  59924. case NormalPriority:
  59925. default:
  59926. return NORMAL_PRIORITY_TIMEOUT;
  59927. }
  59928. }
  59929. function unstable_scheduleCallback(priorityLevel, callback, options) {
  59930. var currentTime = exports.unstable_now();
  59931. var startTime;
  59932. var timeout;
  59933. if (typeof options === 'object' && options !== null) {
  59934. var delay = options.delay;
  59935. if (typeof delay === 'number' && delay > 0) {
  59936. startTime = currentTime + delay;
  59937. } else {
  59938. startTime = currentTime;
  59939. }
  59940. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  59941. } else {
  59942. timeout = timeoutForPriorityLevel(priorityLevel);
  59943. startTime = currentTime;
  59944. }
  59945. var expirationTime = startTime + timeout;
  59946. var newTask = {
  59947. callback: callback,
  59948. priorityLevel: priorityLevel,
  59949. startTime: startTime,
  59950. expirationTime: expirationTime,
  59951. next: null,
  59952. previous: null
  59953. };
  59954. if (startTime > currentTime) {
  59955. // This is a delayed task.
  59956. insertDelayedTask(newTask, startTime);
  59957. if (firstTask === null && firstDelayedTask === newTask) {
  59958. // All tasks are delayed, and this is the task with the earliest delay.
  59959. if (isHostTimeoutScheduled) {
  59960. // Cancel an existing timeout.
  59961. cancelHostTimeout();
  59962. } else {
  59963. isHostTimeoutScheduled = true;
  59964. }
  59965. // Schedule a timeout.
  59966. requestHostTimeout(handleTimeout, startTime - currentTime);
  59967. }
  59968. } else {
  59969. insertScheduledTask(newTask, expirationTime);
  59970. // Schedule a host callback, if needed. If we're already performing work,
  59971. // wait until the next time we yield.
  59972. if (!isHostCallbackScheduled && !isPerformingWork) {
  59973. isHostCallbackScheduled = true;
  59974. requestHostCallback(flushWork);
  59975. }
  59976. }
  59977. return newTask;
  59978. }
  59979. function insertScheduledTask(newTask, expirationTime) {
  59980. // Insert the new task into the list, ordered first by its timeout, then by
  59981. // insertion. So the new task is inserted after any other task the
  59982. // same timeout
  59983. if (firstTask === null) {
  59984. // This is the first task in the list.
  59985. firstTask = newTask.next = newTask.previous = newTask;
  59986. } else {
  59987. var next = null;
  59988. var task = firstTask;
  59989. do {
  59990. if (expirationTime < task.expirationTime) {
  59991. // The new task times out before this one.
  59992. next = task;
  59993. break;
  59994. }
  59995. task = task.next;
  59996. } while (task !== firstTask);
  59997. if (next === null) {
  59998. // No task with a later timeout was found, which means the new task has
  59999. // the latest timeout in the list.
  60000. next = firstTask;
  60001. } else if (next === firstTask) {
  60002. // The new task has the earliest expiration in the entire list.
  60003. firstTask = newTask;
  60004. }
  60005. var previous = next.previous;
  60006. previous.next = next.previous = newTask;
  60007. newTask.next = next;
  60008. newTask.previous = previous;
  60009. }
  60010. }
  60011. function insertDelayedTask(newTask, startTime) {
  60012. // Insert the new task into the list, ordered by its start time.
  60013. if (firstDelayedTask === null) {
  60014. // This is the first task in the list.
  60015. firstDelayedTask = newTask.next = newTask.previous = newTask;
  60016. } else {
  60017. var next = null;
  60018. var task = firstDelayedTask;
  60019. do {
  60020. if (startTime < task.startTime) {
  60021. // The new task times out before this one.
  60022. next = task;
  60023. break;
  60024. }
  60025. task = task.next;
  60026. } while (task !== firstDelayedTask);
  60027. if (next === null) {
  60028. // No task with a later timeout was found, which means the new task has
  60029. // the latest timeout in the list.
  60030. next = firstDelayedTask;
  60031. } else if (next === firstDelayedTask) {
  60032. // The new task has the earliest expiration in the entire list.
  60033. firstDelayedTask = newTask;
  60034. }
  60035. var previous = next.previous;
  60036. previous.next = next.previous = newTask;
  60037. newTask.next = next;
  60038. newTask.previous = previous;
  60039. }
  60040. }
  60041. function unstable_pauseExecution() {
  60042. isSchedulerPaused = true;
  60043. }
  60044. function unstable_continueExecution() {
  60045. isSchedulerPaused = false;
  60046. if (!isHostCallbackScheduled && !isPerformingWork) {
  60047. isHostCallbackScheduled = true;
  60048. requestHostCallback(flushWork);
  60049. }
  60050. }
  60051. function unstable_getFirstCallbackNode() {
  60052. return firstTask;
  60053. }
  60054. function unstable_cancelCallback(task) {
  60055. var next = task.next;
  60056. if (next === null) {
  60057. // Already cancelled.
  60058. return;
  60059. }
  60060. if (task === next) {
  60061. if (task === firstTask) {
  60062. firstTask = null;
  60063. } else if (task === firstDelayedTask) {
  60064. firstDelayedTask = null;
  60065. }
  60066. } else {
  60067. if (task === firstTask) {
  60068. firstTask = next;
  60069. } else if (task === firstDelayedTask) {
  60070. firstDelayedTask = next;
  60071. }
  60072. var previous = task.previous;
  60073. previous.next = next;
  60074. next.previous = previous;
  60075. }
  60076. task.next = task.previous = null;
  60077. }
  60078. function unstable_getCurrentPriorityLevel() {
  60079. return currentPriorityLevel;
  60080. }
  60081. function unstable_shouldYield() {
  60082. var currentTime = exports.unstable_now();
  60083. advanceTimers(currentTime);
  60084. return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  60085. }
  60086. var unstable_requestPaint = requestPaint;
  60087. exports.unstable_ImmediatePriority = ImmediatePriority;
  60088. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  60089. exports.unstable_NormalPriority = NormalPriority;
  60090. exports.unstable_IdlePriority = IdlePriority;
  60091. exports.unstable_LowPriority = LowPriority;
  60092. exports.unstable_runWithPriority = unstable_runWithPriority;
  60093. exports.unstable_next = unstable_next;
  60094. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  60095. exports.unstable_cancelCallback = unstable_cancelCallback;
  60096. exports.unstable_wrapCallback = unstable_wrapCallback;
  60097. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  60098. exports.unstable_shouldYield = unstable_shouldYield;
  60099. exports.unstable_requestPaint = unstable_requestPaint;
  60100. exports.unstable_continueExecution = unstable_continueExecution;
  60101. exports.unstable_pauseExecution = unstable_pauseExecution;
  60102. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  60103. })();
  60104. }
  60105. /***/ }),
  60106. /***/ "../../node_modules/scheduler/index.js":
  60107. /*!***********************************************************!*\
  60108. !*** C:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  60109. \***********************************************************/
  60110. /*! no static exports found */
  60111. /***/ (function(module, exports, __webpack_require__) {
  60112. "use strict";
  60113. if (false) {} else {
  60114. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  60115. }
  60116. /***/ }),
  60117. /***/ "../../node_modules/scheduler/tracing.js":
  60118. /*!*************************************************************!*\
  60119. !*** C:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  60120. \*************************************************************/
  60121. /*! no static exports found */
  60122. /***/ (function(module, exports, __webpack_require__) {
  60123. "use strict";
  60124. if (false) {} else {
  60125. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  60126. }
  60127. /***/ }),
  60128. /***/ "../../node_modules/setimmediate/setImmediate.js":
  60129. /*!*********************************************************************!*\
  60130. !*** C:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  60131. \*********************************************************************/
  60132. /*! no static exports found */
  60133. /***/ (function(module, exports, __webpack_require__) {
  60134. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  60135. "use strict";
  60136. if (global.setImmediate) {
  60137. return;
  60138. }
  60139. var nextHandle = 1; // Spec says greater than zero
  60140. var tasksByHandle = {};
  60141. var currentlyRunningATask = false;
  60142. var doc = global.document;
  60143. var registerImmediate;
  60144. function setImmediate(callback) {
  60145. // Callback can either be a function or a string
  60146. if (typeof callback !== "function") {
  60147. callback = new Function("" + callback);
  60148. }
  60149. // Copy function arguments
  60150. var args = new Array(arguments.length - 1);
  60151. for (var i = 0; i < args.length; i++) {
  60152. args[i] = arguments[i + 1];
  60153. }
  60154. // Store and register the task
  60155. var task = { callback: callback, args: args };
  60156. tasksByHandle[nextHandle] = task;
  60157. registerImmediate(nextHandle);
  60158. return nextHandle++;
  60159. }
  60160. function clearImmediate(handle) {
  60161. delete tasksByHandle[handle];
  60162. }
  60163. function run(task) {
  60164. var callback = task.callback;
  60165. var args = task.args;
  60166. switch (args.length) {
  60167. case 0:
  60168. callback();
  60169. break;
  60170. case 1:
  60171. callback(args[0]);
  60172. break;
  60173. case 2:
  60174. callback(args[0], args[1]);
  60175. break;
  60176. case 3:
  60177. callback(args[0], args[1], args[2]);
  60178. break;
  60179. default:
  60180. callback.apply(undefined, args);
  60181. break;
  60182. }
  60183. }
  60184. function runIfPresent(handle) {
  60185. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  60186. // So if we're currently running a task, we'll need to delay this invocation.
  60187. if (currentlyRunningATask) {
  60188. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  60189. // "too much recursion" error.
  60190. setTimeout(runIfPresent, 0, handle);
  60191. } else {
  60192. var task = tasksByHandle[handle];
  60193. if (task) {
  60194. currentlyRunningATask = true;
  60195. try {
  60196. run(task);
  60197. } finally {
  60198. clearImmediate(handle);
  60199. currentlyRunningATask = false;
  60200. }
  60201. }
  60202. }
  60203. }
  60204. function installNextTickImplementation() {
  60205. registerImmediate = function(handle) {
  60206. process.nextTick(function () { runIfPresent(handle); });
  60207. };
  60208. }
  60209. function canUsePostMessage() {
  60210. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  60211. // where `global.postMessage` means something completely different and can't be used for this purpose.
  60212. if (global.postMessage && !global.importScripts) {
  60213. var postMessageIsAsynchronous = true;
  60214. var oldOnMessage = global.onmessage;
  60215. global.onmessage = function() {
  60216. postMessageIsAsynchronous = false;
  60217. };
  60218. global.postMessage("", "*");
  60219. global.onmessage = oldOnMessage;
  60220. return postMessageIsAsynchronous;
  60221. }
  60222. }
  60223. function installPostMessageImplementation() {
  60224. // Installs an event handler on `global` for the `message` event: see
  60225. // * https://developer.mozilla.org/en/DOM/window.postMessage
  60226. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  60227. var messagePrefix = "setImmediate$" + Math.random() + "$";
  60228. var onGlobalMessage = function(event) {
  60229. if (event.source === global &&
  60230. typeof event.data === "string" &&
  60231. event.data.indexOf(messagePrefix) === 0) {
  60232. runIfPresent(+event.data.slice(messagePrefix.length));
  60233. }
  60234. };
  60235. if (global.addEventListener) {
  60236. global.addEventListener("message", onGlobalMessage, false);
  60237. } else {
  60238. global.attachEvent("onmessage", onGlobalMessage);
  60239. }
  60240. registerImmediate = function(handle) {
  60241. global.postMessage(messagePrefix + handle, "*");
  60242. };
  60243. }
  60244. function installMessageChannelImplementation() {
  60245. var channel = new MessageChannel();
  60246. channel.port1.onmessage = function(event) {
  60247. var handle = event.data;
  60248. runIfPresent(handle);
  60249. };
  60250. registerImmediate = function(handle) {
  60251. channel.port2.postMessage(handle);
  60252. };
  60253. }
  60254. function installReadyStateChangeImplementation() {
  60255. var html = doc.documentElement;
  60256. registerImmediate = function(handle) {
  60257. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  60258. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  60259. var script = doc.createElement("script");
  60260. script.onreadystatechange = function () {
  60261. runIfPresent(handle);
  60262. script.onreadystatechange = null;
  60263. html.removeChild(script);
  60264. script = null;
  60265. };
  60266. html.appendChild(script);
  60267. };
  60268. }
  60269. function installSetTimeoutImplementation() {
  60270. registerImmediate = function(handle) {
  60271. setTimeout(runIfPresent, 0, handle);
  60272. };
  60273. }
  60274. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  60275. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  60276. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  60277. // Don't get fooled by e.g. browserify environments.
  60278. if ({}.toString.call(global.process) === "[object process]") {
  60279. // For Node.js before 0.9
  60280. installNextTickImplementation();
  60281. } else if (canUsePostMessage()) {
  60282. // For non-IE10 modern browsers
  60283. installPostMessageImplementation();
  60284. } else if (global.MessageChannel) {
  60285. // For web workers, where supported
  60286. installMessageChannelImplementation();
  60287. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  60288. // For IE 6–8
  60289. installReadyStateChangeImplementation();
  60290. } else {
  60291. // For older browsers
  60292. installSetTimeoutImplementation();
  60293. }
  60294. attachTo.setImmediate = setImmediate;
  60295. attachTo.clearImmediate = clearImmediate;
  60296. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  60297. /* 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")))
  60298. /***/ }),
  60299. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  60300. /*!**************************************************************************!*\
  60301. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  60302. \**************************************************************************/
  60303. /*! no static exports found */
  60304. /***/ (function(module, exports, __webpack_require__) {
  60305. (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};
  60306. //!-------------- FACTORIES ------------
  60307. 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}}}])});
  60308. //# sourceMappingURL=main.js.map
  60309. /***/ }),
  60310. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  60311. /*!********************************************************************************!*\
  60312. !*** C:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  60313. \********************************************************************************/
  60314. /*! no static exports found */
  60315. /***/ (function(module, exports, __webpack_require__) {
  60316. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  60317. if(typeof content === 'string') content = [[module.i, content, '']];
  60318. var transform;
  60319. var insertInto;
  60320. var options = {"hmr":true}
  60321. options.transform = transform
  60322. options.insertInto = undefined;
  60323. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  60324. if(content.locals) module.exports = content.locals;
  60325. if(false) {}
  60326. /***/ }),
  60327. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  60328. /*!**********************************************************************!*\
  60329. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  60330. \**********************************************************************/
  60331. /*! no static exports found */
  60332. /***/ (function(module, exports, __webpack_require__) {
  60333. /*
  60334. MIT License http://www.opensource.org/licenses/mit-license.php
  60335. Author Tobias Koppers @sokra
  60336. */
  60337. var stylesInDom = {};
  60338. var memoize = function (fn) {
  60339. var memo;
  60340. return function () {
  60341. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  60342. return memo;
  60343. };
  60344. };
  60345. var isOldIE = memoize(function () {
  60346. // Test for IE <= 9 as proposed by Browserhacks
  60347. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  60348. // Tests for existence of standard globals is to allow style-loader
  60349. // to operate correctly into non-standard environments
  60350. // @see https://github.com/webpack-contrib/style-loader/issues/177
  60351. return window && document && document.all && !window.atob;
  60352. });
  60353. var getTarget = function (target) {
  60354. return document.querySelector(target);
  60355. };
  60356. var getElement = (function (fn) {
  60357. var memo = {};
  60358. return function(target) {
  60359. // If passing function in options, then use it for resolve "head" element.
  60360. // Useful for Shadow Root style i.e
  60361. // {
  60362. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  60363. // }
  60364. if (typeof target === 'function') {
  60365. return target();
  60366. }
  60367. if (typeof memo[target] === "undefined") {
  60368. var styleTarget = getTarget.call(this, target);
  60369. // Special case to return head of iframe instead of iframe itself
  60370. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  60371. try {
  60372. // This will throw an exception if access to iframe is blocked
  60373. // due to cross-origin restrictions
  60374. styleTarget = styleTarget.contentDocument.head;
  60375. } catch(e) {
  60376. styleTarget = null;
  60377. }
  60378. }
  60379. memo[target] = styleTarget;
  60380. }
  60381. return memo[target]
  60382. };
  60383. })();
  60384. var singleton = null;
  60385. var singletonCounter = 0;
  60386. var stylesInsertedAtTop = [];
  60387. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  60388. module.exports = function(list, options) {
  60389. if (typeof DEBUG !== "undefined" && DEBUG) {
  60390. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  60391. }
  60392. options = options || {};
  60393. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  60394. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  60395. // tags it will allow on a page
  60396. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  60397. // By default, add <style> tags to the <head> element
  60398. if (!options.insertInto) options.insertInto = "head";
  60399. // By default, add <style> tags to the bottom of the target
  60400. if (!options.insertAt) options.insertAt = "bottom";
  60401. var styles = listToStyles(list, options);
  60402. addStylesToDom(styles, options);
  60403. return function update (newList) {
  60404. var mayRemove = [];
  60405. for (var i = 0; i < styles.length; i++) {
  60406. var item = styles[i];
  60407. var domStyle = stylesInDom[item.id];
  60408. domStyle.refs--;
  60409. mayRemove.push(domStyle);
  60410. }
  60411. if(newList) {
  60412. var newStyles = listToStyles(newList, options);
  60413. addStylesToDom(newStyles, options);
  60414. }
  60415. for (var i = 0; i < mayRemove.length; i++) {
  60416. var domStyle = mayRemove[i];
  60417. if(domStyle.refs === 0) {
  60418. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  60419. delete stylesInDom[domStyle.id];
  60420. }
  60421. }
  60422. };
  60423. };
  60424. function addStylesToDom (styles, options) {
  60425. for (var i = 0; i < styles.length; i++) {
  60426. var item = styles[i];
  60427. var domStyle = stylesInDom[item.id];
  60428. if(domStyle) {
  60429. domStyle.refs++;
  60430. for(var j = 0; j < domStyle.parts.length; j++) {
  60431. domStyle.parts[j](item.parts[j]);
  60432. }
  60433. for(; j < item.parts.length; j++) {
  60434. domStyle.parts.push(addStyle(item.parts[j], options));
  60435. }
  60436. } else {
  60437. var parts = [];
  60438. for(var j = 0; j < item.parts.length; j++) {
  60439. parts.push(addStyle(item.parts[j], options));
  60440. }
  60441. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  60442. }
  60443. }
  60444. }
  60445. function listToStyles (list, options) {
  60446. var styles = [];
  60447. var newStyles = {};
  60448. for (var i = 0; i < list.length; i++) {
  60449. var item = list[i];
  60450. var id = options.base ? item[0] + options.base : item[0];
  60451. var css = item[1];
  60452. var media = item[2];
  60453. var sourceMap = item[3];
  60454. var part = {css: css, media: media, sourceMap: sourceMap};
  60455. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  60456. else newStyles[id].parts.push(part);
  60457. }
  60458. return styles;
  60459. }
  60460. function insertStyleElement (options, style) {
  60461. var target = getElement(options.insertInto)
  60462. if (!target) {
  60463. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  60464. }
  60465. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  60466. if (options.insertAt === "top") {
  60467. if (!lastStyleElementInsertedAtTop) {
  60468. target.insertBefore(style, target.firstChild);
  60469. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  60470. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  60471. } else {
  60472. target.appendChild(style);
  60473. }
  60474. stylesInsertedAtTop.push(style);
  60475. } else if (options.insertAt === "bottom") {
  60476. target.appendChild(style);
  60477. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  60478. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  60479. target.insertBefore(style, nextSibling);
  60480. } else {
  60481. 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");
  60482. }
  60483. }
  60484. function removeStyleElement (style) {
  60485. if (style.parentNode === null) return false;
  60486. style.parentNode.removeChild(style);
  60487. var idx = stylesInsertedAtTop.indexOf(style);
  60488. if(idx >= 0) {
  60489. stylesInsertedAtTop.splice(idx, 1);
  60490. }
  60491. }
  60492. function createStyleElement (options) {
  60493. var style = document.createElement("style");
  60494. if(options.attrs.type === undefined) {
  60495. options.attrs.type = "text/css";
  60496. }
  60497. addAttrs(style, options.attrs);
  60498. insertStyleElement(options, style);
  60499. return style;
  60500. }
  60501. function createLinkElement (options) {
  60502. var link = document.createElement("link");
  60503. if(options.attrs.type === undefined) {
  60504. options.attrs.type = "text/css";
  60505. }
  60506. options.attrs.rel = "stylesheet";
  60507. addAttrs(link, options.attrs);
  60508. insertStyleElement(options, link);
  60509. return link;
  60510. }
  60511. function addAttrs (el, attrs) {
  60512. Object.keys(attrs).forEach(function (key) {
  60513. el.setAttribute(key, attrs[key]);
  60514. });
  60515. }
  60516. function addStyle (obj, options) {
  60517. var style, update, remove, result;
  60518. // If a transform function was defined, run it on the css
  60519. if (options.transform && obj.css) {
  60520. result = options.transform(obj.css);
  60521. if (result) {
  60522. // If transform returns a value, use that instead of the original css.
  60523. // This allows running runtime transformations on the css.
  60524. obj.css = result;
  60525. } else {
  60526. // If the transform function returns a falsy value, don't add this css.
  60527. // This allows conditional loading of css
  60528. return function() {
  60529. // noop
  60530. };
  60531. }
  60532. }
  60533. if (options.singleton) {
  60534. var styleIndex = singletonCounter++;
  60535. style = singleton || (singleton = createStyleElement(options));
  60536. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  60537. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  60538. } else if (
  60539. obj.sourceMap &&
  60540. typeof URL === "function" &&
  60541. typeof URL.createObjectURL === "function" &&
  60542. typeof URL.revokeObjectURL === "function" &&
  60543. typeof Blob === "function" &&
  60544. typeof btoa === "function"
  60545. ) {
  60546. style = createLinkElement(options);
  60547. update = updateLink.bind(null, style, options);
  60548. remove = function () {
  60549. removeStyleElement(style);
  60550. if(style.href) URL.revokeObjectURL(style.href);
  60551. };
  60552. } else {
  60553. style = createStyleElement(options);
  60554. update = applyToTag.bind(null, style);
  60555. remove = function () {
  60556. removeStyleElement(style);
  60557. };
  60558. }
  60559. update(obj);
  60560. return function updateStyle (newObj) {
  60561. if (newObj) {
  60562. if (
  60563. newObj.css === obj.css &&
  60564. newObj.media === obj.media &&
  60565. newObj.sourceMap === obj.sourceMap
  60566. ) {
  60567. return;
  60568. }
  60569. update(obj = newObj);
  60570. } else {
  60571. remove();
  60572. }
  60573. };
  60574. }
  60575. var replaceText = (function () {
  60576. var textStore = [];
  60577. return function (index, replacement) {
  60578. textStore[index] = replacement;
  60579. return textStore.filter(Boolean).join('\n');
  60580. };
  60581. })();
  60582. function applyToSingletonTag (style, index, remove, obj) {
  60583. var css = remove ? "" : obj.css;
  60584. if (style.styleSheet) {
  60585. style.styleSheet.cssText = replaceText(index, css);
  60586. } else {
  60587. var cssNode = document.createTextNode(css);
  60588. var childNodes = style.childNodes;
  60589. if (childNodes[index]) style.removeChild(childNodes[index]);
  60590. if (childNodes.length) {
  60591. style.insertBefore(cssNode, childNodes[index]);
  60592. } else {
  60593. style.appendChild(cssNode);
  60594. }
  60595. }
  60596. }
  60597. function applyToTag (style, obj) {
  60598. var css = obj.css;
  60599. var media = obj.media;
  60600. if(media) {
  60601. style.setAttribute("media", media)
  60602. }
  60603. if(style.styleSheet) {
  60604. style.styleSheet.cssText = css;
  60605. } else {
  60606. while(style.firstChild) {
  60607. style.removeChild(style.firstChild);
  60608. }
  60609. style.appendChild(document.createTextNode(css));
  60610. }
  60611. }
  60612. function updateLink (link, options, obj) {
  60613. var css = obj.css;
  60614. var sourceMap = obj.sourceMap;
  60615. /*
  60616. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  60617. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  60618. on by default. Otherwise default to the convertToAbsoluteUrls option
  60619. directly
  60620. */
  60621. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  60622. if (options.convertToAbsoluteUrls || autoFixUrls) {
  60623. css = fixUrls(css);
  60624. }
  60625. if (sourceMap) {
  60626. // http://stackoverflow.com/a/26603875
  60627. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  60628. }
  60629. var blob = new Blob([css], { type: "text/css" });
  60630. var oldSrc = link.href;
  60631. link.href = URL.createObjectURL(blob);
  60632. if(oldSrc) URL.revokeObjectURL(oldSrc);
  60633. }
  60634. /***/ }),
  60635. /***/ "../../node_modules/style-loader/lib/urls.js":
  60636. /*!*****************************************************************!*\
  60637. !*** C:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  60638. \*****************************************************************/
  60639. /*! no static exports found */
  60640. /***/ (function(module, exports) {
  60641. /**
  60642. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  60643. * embed the css on the page. This breaks all relative urls because now they are relative to a
  60644. * bundle instead of the current page.
  60645. *
  60646. * One solution is to only use full urls, but that may be impossible.
  60647. *
  60648. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  60649. *
  60650. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  60651. *
  60652. */
  60653. module.exports = function (css) {
  60654. // get current location
  60655. var location = typeof window !== "undefined" && window.location;
  60656. if (!location) {
  60657. throw new Error("fixUrls requires window.location");
  60658. }
  60659. // blank or null?
  60660. if (!css || typeof css !== "string") {
  60661. return css;
  60662. }
  60663. var baseUrl = location.protocol + "//" + location.host;
  60664. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  60665. // convert each url(...)
  60666. /*
  60667. This regular expression is just a way to recursively match brackets within
  60668. a string.
  60669. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  60670. ( = Start a capturing group
  60671. (?: = Start a non-capturing group
  60672. [^)(] = Match anything that isn't a parentheses
  60673. | = OR
  60674. \( = Match a start parentheses
  60675. (?: = Start another non-capturing groups
  60676. [^)(]+ = Match anything that isn't a parentheses
  60677. | = OR
  60678. \( = Match a start parentheses
  60679. [^)(]* = Match anything that isn't a parentheses
  60680. \) = Match a end parentheses
  60681. ) = End Group
  60682. *\) = Match anything and then a close parens
  60683. ) = Close non-capturing group
  60684. * = Match anything
  60685. ) = Close capturing group
  60686. \) = Match a close parens
  60687. /gi = Get all matches, not the first. Be case insensitive.
  60688. */
  60689. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  60690. // strip quotes (if they exist)
  60691. var unquotedOrigUrl = origUrl
  60692. .trim()
  60693. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  60694. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  60695. // already a full url? no change
  60696. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  60697. return fullMatch;
  60698. }
  60699. // convert the url to a full url
  60700. var newUrl;
  60701. if (unquotedOrigUrl.indexOf("//") === 0) {
  60702. //TODO: should we add protocol?
  60703. newUrl = unquotedOrigUrl;
  60704. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  60705. // path should be relative to the base url
  60706. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  60707. } else {
  60708. // path should be relative to current directory
  60709. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  60710. }
  60711. // send back the fixed url(...)
  60712. return "url(" + JSON.stringify(newUrl) + ")";
  60713. });
  60714. // send back the fixed css
  60715. return fixedCss;
  60716. };
  60717. /***/ }),
  60718. /***/ "../../node_modules/timers-browserify/main.js":
  60719. /*!******************************************************************!*\
  60720. !*** C:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  60721. \******************************************************************/
  60722. /*! no static exports found */
  60723. /***/ (function(module, exports, __webpack_require__) {
  60724. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  60725. (typeof self !== "undefined" && self) ||
  60726. window;
  60727. var apply = Function.prototype.apply;
  60728. // DOM APIs, for completeness
  60729. exports.setTimeout = function() {
  60730. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  60731. };
  60732. exports.setInterval = function() {
  60733. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  60734. };
  60735. exports.clearTimeout =
  60736. exports.clearInterval = function(timeout) {
  60737. if (timeout) {
  60738. timeout.close();
  60739. }
  60740. };
  60741. function Timeout(id, clearFn) {
  60742. this._id = id;
  60743. this._clearFn = clearFn;
  60744. }
  60745. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  60746. Timeout.prototype.close = function() {
  60747. this._clearFn.call(scope, this._id);
  60748. };
  60749. // Does not start the time, just sets up the members needed.
  60750. exports.enroll = function(item, msecs) {
  60751. clearTimeout(item._idleTimeoutId);
  60752. item._idleTimeout = msecs;
  60753. };
  60754. exports.unenroll = function(item) {
  60755. clearTimeout(item._idleTimeoutId);
  60756. item._idleTimeout = -1;
  60757. };
  60758. exports._unrefActive = exports.active = function(item) {
  60759. clearTimeout(item._idleTimeoutId);
  60760. var msecs = item._idleTimeout;
  60761. if (msecs >= 0) {
  60762. item._idleTimeoutId = setTimeout(function onTimeout() {
  60763. if (item._onTimeout)
  60764. item._onTimeout();
  60765. }, msecs);
  60766. }
  60767. };
  60768. // setimmediate attaches itself to the global object
  60769. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  60770. // On some exotic environments, it's not clear which object `setimmediate` was
  60771. // able to install onto. Search each possibility in the same order as the
  60772. // `setimmediate` library.
  60773. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  60774. (typeof global !== "undefined" && global.setImmediate) ||
  60775. (this && this.setImmediate);
  60776. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  60777. (typeof global !== "undefined" && global.clearImmediate) ||
  60778. (this && this.clearImmediate);
  60779. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  60780. /***/ }),
  60781. /***/ "../../node_modules/tslib/tslib.es6.js":
  60782. /*!***********************************************************!*\
  60783. !*** C:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  60784. \***********************************************************/
  60785. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  60786. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60787. "use strict";
  60788. __webpack_require__.r(__webpack_exports__);
  60789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  60790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  60791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  60792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  60793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  60794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  60795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  60796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  60797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  60798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  60799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  60800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  60801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  60802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  60803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  60804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  60805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  60806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  60807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  60808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  60809. /*! *****************************************************************************
  60810. Copyright (c) Microsoft Corporation. All rights reserved.
  60811. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  60812. this file except in compliance with the License. You may obtain a copy of the
  60813. License at http://www.apache.org/licenses/LICENSE-2.0
  60814. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  60815. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  60816. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  60817. MERCHANTABLITY OR NON-INFRINGEMENT.
  60818. See the Apache Version 2.0 License for specific language governing permissions
  60819. and limitations under the License.
  60820. ***************************************************************************** */
  60821. /* global Reflect, Promise */
  60822. var extendStatics = function(d, b) {
  60823. extendStatics = Object.setPrototypeOf ||
  60824. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  60825. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  60826. return extendStatics(d, b);
  60827. };
  60828. function __extends(d, b) {
  60829. extendStatics(d, b);
  60830. function __() { this.constructor = d; }
  60831. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  60832. }
  60833. var __assign = function() {
  60834. __assign = Object.assign || function __assign(t) {
  60835. for (var s, i = 1, n = arguments.length; i < n; i++) {
  60836. s = arguments[i];
  60837. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  60838. }
  60839. return t;
  60840. }
  60841. return __assign.apply(this, arguments);
  60842. }
  60843. function __rest(s, e) {
  60844. var t = {};
  60845. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  60846. t[p] = s[p];
  60847. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  60848. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  60849. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  60850. t[p[i]] = s[p[i]];
  60851. }
  60852. return t;
  60853. }
  60854. function __decorate(decorators, target, key, desc) {
  60855. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  60856. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  60857. 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;
  60858. return c > 3 && r && Object.defineProperty(target, key, r), r;
  60859. }
  60860. function __param(paramIndex, decorator) {
  60861. return function (target, key) { decorator(target, key, paramIndex); }
  60862. }
  60863. function __metadata(metadataKey, metadataValue) {
  60864. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  60865. }
  60866. function __awaiter(thisArg, _arguments, P, generator) {
  60867. return new (P || (P = Promise))(function (resolve, reject) {
  60868. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  60869. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  60870. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  60871. step((generator = generator.apply(thisArg, _arguments || [])).next());
  60872. });
  60873. }
  60874. function __generator(thisArg, body) {
  60875. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  60876. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  60877. function verb(n) { return function (v) { return step([n, v]); }; }
  60878. function step(op) {
  60879. if (f) throw new TypeError("Generator is already executing.");
  60880. while (_) try {
  60881. 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;
  60882. if (y = 0, t) op = [op[0] & 2, t.value];
  60883. switch (op[0]) {
  60884. case 0: case 1: t = op; break;
  60885. case 4: _.label++; return { value: op[1], done: false };
  60886. case 5: _.label++; y = op[1]; op = [0]; continue;
  60887. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  60888. default:
  60889. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  60890. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  60891. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  60892. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  60893. if (t[2]) _.ops.pop();
  60894. _.trys.pop(); continue;
  60895. }
  60896. op = body.call(thisArg, _);
  60897. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  60898. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  60899. }
  60900. }
  60901. function __exportStar(m, exports) {
  60902. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  60903. }
  60904. function __values(o) {
  60905. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  60906. if (m) return m.call(o);
  60907. return {
  60908. next: function () {
  60909. if (o && i >= o.length) o = void 0;
  60910. return { value: o && o[i++], done: !o };
  60911. }
  60912. };
  60913. }
  60914. function __read(o, n) {
  60915. var m = typeof Symbol === "function" && o[Symbol.iterator];
  60916. if (!m) return o;
  60917. var i = m.call(o), r, ar = [], e;
  60918. try {
  60919. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  60920. }
  60921. catch (error) { e = { error: error }; }
  60922. finally {
  60923. try {
  60924. if (r && !r.done && (m = i["return"])) m.call(i);
  60925. }
  60926. finally { if (e) throw e.error; }
  60927. }
  60928. return ar;
  60929. }
  60930. function __spread() {
  60931. for (var ar = [], i = 0; i < arguments.length; i++)
  60932. ar = ar.concat(__read(arguments[i]));
  60933. return ar;
  60934. }
  60935. function __spreadArrays() {
  60936. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  60937. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  60938. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  60939. r[k] = a[j];
  60940. return r;
  60941. };
  60942. function __await(v) {
  60943. return this instanceof __await ? (this.v = v, this) : new __await(v);
  60944. }
  60945. function __asyncGenerator(thisArg, _arguments, generator) {
  60946. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  60947. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  60948. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  60949. 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); }); }; }
  60950. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  60951. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  60952. function fulfill(value) { resume("next", value); }
  60953. function reject(value) { resume("throw", value); }
  60954. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  60955. }
  60956. function __asyncDelegator(o) {
  60957. var i, p;
  60958. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  60959. 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; }
  60960. }
  60961. function __asyncValues(o) {
  60962. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  60963. var m = o[Symbol.asyncIterator], i;
  60964. 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);
  60965. 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); }); }; }
  60966. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  60967. }
  60968. function __makeTemplateObject(cooked, raw) {
  60969. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  60970. return cooked;
  60971. };
  60972. function __importStar(mod) {
  60973. if (mod && mod.__esModule) return mod;
  60974. var result = {};
  60975. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  60976. result.default = mod;
  60977. return result;
  60978. }
  60979. function __importDefault(mod) {
  60980. return (mod && mod.__esModule) ? mod : { default: mod };
  60981. }
  60982. /***/ }),
  60983. /***/ "../../node_modules/webpack/buildin/global.js":
  60984. /*!***********************************!*\
  60985. !*** (webpack)/buildin/global.js ***!
  60986. \***********************************/
  60987. /*! no static exports found */
  60988. /***/ (function(module, exports) {
  60989. var g;
  60990. // This works in non-strict mode
  60991. g = (function() {
  60992. return this;
  60993. })();
  60994. try {
  60995. // This works if eval is allowed (see CSP)
  60996. g = g || new Function("return this")();
  60997. } catch (e) {
  60998. // This works if the window reference is available
  60999. if (typeof window === "object") g = window;
  61000. }
  61001. // g can still be undefined, but nothing to do about it...
  61002. // We return undefined, instead of nothing here, so it's
  61003. // easier to handle this case. if(!global) { ...}
  61004. module.exports = g;
  61005. /***/ }),
  61006. /***/ "../../node_modules/webpack/buildin/module.js":
  61007. /*!***********************************!*\
  61008. !*** (webpack)/buildin/module.js ***!
  61009. \***********************************/
  61010. /*! no static exports found */
  61011. /***/ (function(module, exports) {
  61012. module.exports = function(module) {
  61013. if (!module.webpackPolyfill) {
  61014. module.deprecate = function() {};
  61015. module.paths = [];
  61016. // module.parent = undefined by default
  61017. if (!module.children) module.children = [];
  61018. Object.defineProperty(module, "loaded", {
  61019. enumerable: true,
  61020. get: function() {
  61021. return module.l;
  61022. }
  61023. });
  61024. Object.defineProperty(module, "id", {
  61025. enumerable: true,
  61026. get: function() {
  61027. return module.i;
  61028. }
  61029. });
  61030. module.webpackPolyfill = 1;
  61031. }
  61032. return module;
  61033. };
  61034. /***/ }),
  61035. /***/ "./blockTools.ts":
  61036. /*!***********************!*\
  61037. !*** ./blockTools.ts ***!
  61038. \***********************/
  61039. /*! exports provided: BlockTools */
  61040. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61041. "use strict";
  61042. __webpack_require__.r(__webpack_exports__);
  61043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  61044. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/discardBlock */ "babylonjs/Misc/observable");
  61045. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__);
  61046. var BlockTools = /** @class */ (function () {
  61047. function BlockTools() {
  61048. }
  61049. BlockTools.GetBlockFromString = function (data, scene) {
  61050. switch (data) {
  61051. case "BonesBlock":
  61052. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  61053. case "InstancesBlock":
  61054. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  61055. case "MorphTargetsBlock":
  61056. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  61057. case "DiscardBlock":
  61058. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DiscardBlock"]("Discard");
  61059. case "ImageProcessingBlock":
  61060. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  61061. case "ColorMergerBlock":
  61062. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  61063. case "VectorMergerBlock":
  61064. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  61065. case "ColorSplitterBlock":
  61066. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  61067. case "VectorSplitterBlock":
  61068. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  61069. case "TextureBlock":
  61070. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  61071. case "ReflectionTextureBlock":
  61072. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Texture");
  61073. case "LightBlock":
  61074. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  61075. case "FogBlock":
  61076. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  61077. case "VertexOutputBlock":
  61078. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  61079. case "FragmentOutputBlock":
  61080. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  61081. case "AddBlock":
  61082. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  61083. case "ClampBlock":
  61084. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  61085. case "ScaleBlock":
  61086. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  61087. case "CrossBlock":
  61088. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  61089. case "DotBlock":
  61090. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  61091. case "PowBlock":
  61092. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  61093. case "MultiplyBlock":
  61094. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  61095. case "TransformBlock":
  61096. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  61097. case "TrigonometryBlock":
  61098. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  61099. case "RemapBlock":
  61100. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  61101. case "NormalizeBlock":
  61102. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  61103. case "FresnelBlock":
  61104. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  61105. case "LerpBlock":
  61106. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  61107. case "DivideBlock":
  61108. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  61109. case "SubtractBlock":
  61110. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  61111. case "StepBlock":
  61112. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  61113. case "OneMinusBlock":
  61114. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  61115. case "ViewDirectionBlock":
  61116. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  61117. case "LightInformationBlock":
  61118. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  61119. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  61120. return lightInformationBlock;
  61121. case "MaxBlock":
  61122. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  61123. case "MinBlock":
  61124. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  61125. case "LengthBlock":
  61126. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  61127. case "DistanceBlock":
  61128. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  61129. case "NegateBlock":
  61130. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  61131. case "PerturbNormalBlock":
  61132. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  61133. case "CosBlock": {
  61134. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  61135. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  61136. return cosBlock;
  61137. }
  61138. case "SinBlock": {
  61139. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  61140. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  61141. return sinBlock;
  61142. }
  61143. case "AbsBlock": {
  61144. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  61145. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  61146. return absBlock;
  61147. }
  61148. case "SqrtBlock": {
  61149. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  61150. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  61151. return sqrtBlock;
  61152. }
  61153. case "ExpBlock": {
  61154. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  61155. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  61156. return expBlock;
  61157. }
  61158. case "Exp2Block": {
  61159. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  61160. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  61161. return exp2Block;
  61162. }
  61163. case "RoundBlock": {
  61164. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  61165. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  61166. return roundBlock;
  61167. }
  61168. case "CeilingBlock": {
  61169. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  61170. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  61171. return ceilingBlock;
  61172. }
  61173. case "FloorBlock": {
  61174. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  61175. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  61176. return floorBlock;
  61177. }
  61178. case "WorldMatrixBlock": {
  61179. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  61180. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  61181. return worldMatrixBlock;
  61182. }
  61183. case "WorldViewMatrixBlock": {
  61184. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  61185. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  61186. return worldViewMatrixBlock;
  61187. }
  61188. case "WorldViewProjectionMatrixBlock": {
  61189. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  61190. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  61191. return worldViewProjectionMatrixBlock;
  61192. }
  61193. case "ViewMatrixBlock": {
  61194. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  61195. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  61196. return viewMatrixBlock;
  61197. }
  61198. case "ViewProjectionMatrixBlock": {
  61199. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  61200. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  61201. return viewProjectionMatrixBlock;
  61202. }
  61203. case "ProjectionMatrixBlock": {
  61204. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  61205. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  61206. return projectionMatrixBlock;
  61207. }
  61208. case "CameraPositionBlock": {
  61209. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  61210. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  61211. return cameraPosition;
  61212. }
  61213. case "FogColorBlock": {
  61214. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  61215. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  61216. return FogColor;
  61217. }
  61218. case "PositionBlock": {
  61219. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  61220. meshPosition.setAsAttribute("position");
  61221. return meshPosition;
  61222. }
  61223. case "UVBlock": {
  61224. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  61225. meshUV.setAsAttribute("uv");
  61226. return meshUV;
  61227. }
  61228. case "ColorBlock": {
  61229. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  61230. meshColor.setAsAttribute("color");
  61231. return meshColor;
  61232. }
  61233. case "NormalBlock": {
  61234. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  61235. meshNormal.setAsAttribute("normal");
  61236. return meshNormal;
  61237. }
  61238. case "TangentBlock": {
  61239. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  61240. meshTangent.setAsAttribute("tangent");
  61241. return meshTangent;
  61242. }
  61243. case "MatrixIndicesBlock": {
  61244. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  61245. meshMatrixIndices.setAsAttribute("matricesIndices");
  61246. return meshMatrixIndices;
  61247. }
  61248. case "MatrixWeightsBlock": {
  61249. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  61250. meshMatrixWeights.setAsAttribute("matricesWeights");
  61251. return meshMatrixWeights;
  61252. }
  61253. case "TimeBlock": {
  61254. var timeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Time", undefined, babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float);
  61255. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  61256. return timeBlock;
  61257. }
  61258. }
  61259. return null;
  61260. };
  61261. BlockTools.GetColorFromConnectionNodeType = function (type) {
  61262. var color = "Red";
  61263. switch (type) {
  61264. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  61265. color = "#ca9e27";
  61266. break;
  61267. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61268. color = "#16bcb1";
  61269. break;
  61270. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61271. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61272. color = "#b786cb";
  61273. break;
  61274. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61275. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61276. color = "#be5126";
  61277. break;
  61278. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61279. color = "#591990";
  61280. break;
  61281. }
  61282. return color;
  61283. };
  61284. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  61285. switch (type) {
  61286. case "Float":
  61287. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  61288. case "Vector2":
  61289. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  61290. case "Vector3":
  61291. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  61292. case "Vector4":
  61293. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  61294. case "Matrix":
  61295. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  61296. case "Color3":
  61297. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  61298. case "Color4":
  61299. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  61300. }
  61301. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  61302. };
  61303. BlockTools.GetStringFromConnectionNodeType = function (type) {
  61304. switch (type) {
  61305. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  61306. return "Float";
  61307. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61308. return "Vector2";
  61309. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61310. return "Vector3";
  61311. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61312. return "Vector4";
  61313. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61314. return "Color3";
  61315. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61316. return "Color4";
  61317. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61318. return "Matrix";
  61319. }
  61320. return "";
  61321. };
  61322. return BlockTools;
  61323. }());
  61324. /***/ }),
  61325. /***/ "./components/diagram/clamp/clampNodeFactory.tsx":
  61326. /*!*******************************************************!*\
  61327. !*** ./components/diagram/clamp/clampNodeFactory.tsx ***!
  61328. \*******************************************************/
  61329. /*! exports provided: ClampNodeFactory */
  61330. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61331. "use strict";
  61332. __webpack_require__.r(__webpack_exports__);
  61333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeFactory", function() { return ClampNodeFactory; });
  61334. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61335. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61336. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61337. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61338. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  61339. /* harmony import */ var _clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodeWidget */ "./components/diagram/clamp/clampNodeWidget.tsx");
  61340. /* harmony import */ var _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  61341. var ClampNodeFactory = /** @class */ (function (_super) {
  61342. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeFactory, _super);
  61343. function ClampNodeFactory(globalState) {
  61344. var _this = _super.call(this, "clamp") || this;
  61345. _this._globalState = globalState;
  61346. return _this;
  61347. }
  61348. ClampNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61349. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__["ClampNodeWidget"], { node: node, globalState: this._globalState });
  61350. };
  61351. ClampNodeFactory.prototype.getNewInstance = function () {
  61352. return new _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__["ClampNodeModel"]();
  61353. };
  61354. return ClampNodeFactory;
  61355. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61356. /***/ }),
  61357. /***/ "./components/diagram/clamp/clampNodeModel.tsx":
  61358. /*!*****************************************************!*\
  61359. !*** ./components/diagram/clamp/clampNodeModel.tsx ***!
  61360. \*****************************************************/
  61361. /*! exports provided: ClampNodeModel */
  61362. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61363. "use strict";
  61364. __webpack_require__.r(__webpack_exports__);
  61365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeModel", function() { return ClampNodeModel; });
  61366. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61367. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61368. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61369. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61370. /* harmony import */ var _clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodePropertyComponent */ "./components/diagram/clamp/clampNodePropertyComponent.tsx");
  61371. var ClampNodeModel = /** @class */ (function (_super) {
  61372. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeModel, _super);
  61373. /**
  61374. * Constructs the node model
  61375. */
  61376. function ClampNodeModel() {
  61377. return _super.call(this, "clamp") || this;
  61378. }
  61379. Object.defineProperty(ClampNodeModel.prototype, "clampBlock", {
  61380. get: function () {
  61381. return this.block;
  61382. },
  61383. enumerable: true,
  61384. configurable: true
  61385. });
  61386. ClampNodeModel.prototype.renderProperties = function (globalState) {
  61387. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["ClampPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  61388. };
  61389. return ClampNodeModel;
  61390. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61391. /***/ }),
  61392. /***/ "./components/diagram/clamp/clampNodePropertyComponent.tsx":
  61393. /*!*****************************************************************!*\
  61394. !*** ./components/diagram/clamp/clampNodePropertyComponent.tsx ***!
  61395. \*****************************************************************/
  61396. /*! exports provided: ClampPropertyTabComponentProps */
  61397. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61398. "use strict";
  61399. __webpack_require__.r(__webpack_exports__);
  61400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampPropertyTabComponentProps", function() { return ClampPropertyTabComponentProps; });
  61401. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61402. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61403. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61404. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61405. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61406. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61407. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  61408. var ClampPropertyTabComponentProps = /** @class */ (function (_super) {
  61409. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampPropertyTabComponentProps, _super);
  61410. function ClampPropertyTabComponentProps(props) {
  61411. return _super.call(this, props) || this;
  61412. }
  61413. ClampPropertyTabComponentProps.prototype.forceRebuild = function () {
  61414. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  61415. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61416. };
  61417. ClampPropertyTabComponentProps.prototype.render = function () {
  61418. var _this = this;
  61419. var clampBlock = this.props.remapNode.clampBlock;
  61420. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61421. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  61422. 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(); } }),
  61423. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: clampBlock.getClassName() })),
  61424. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  61425. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Minimum", propertyName: "minimum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }),
  61426. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Maximum", propertyName: "maximum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }))));
  61427. };
  61428. return ClampPropertyTabComponentProps;
  61429. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61430. /***/ }),
  61431. /***/ "./components/diagram/clamp/clampNodeWidget.tsx":
  61432. /*!******************************************************!*\
  61433. !*** ./components/diagram/clamp/clampNodeWidget.tsx ***!
  61434. \******************************************************/
  61435. /*! exports provided: ClampNodeWidget */
  61436. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61437. "use strict";
  61438. __webpack_require__.r(__webpack_exports__);
  61439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeWidget", function() { return ClampNodeWidget; });
  61440. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61441. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61442. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61443. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  61444. var ClampNodeWidget = /** @class */ (function (_super) {
  61445. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeWidget, _super);
  61446. function ClampNodeWidget(props) {
  61447. var _this = _super.call(this, props) || this;
  61448. _this.state = {};
  61449. if (_this.props.node) {
  61450. _this.props.node.addListener({
  61451. selectionChanged: function () {
  61452. var selected = _this.props.node.selected;
  61453. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  61454. }
  61455. });
  61456. }
  61457. return _this;
  61458. }
  61459. ClampNodeWidget.prototype.renderValue = function (value) {
  61460. if (value) {
  61461. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  61462. }
  61463. return null;
  61464. };
  61465. ClampNodeWidget.prototype.render = function () {
  61466. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, true);
  61467. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  61468. var clampBlock = this.props.node.block;
  61469. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  61470. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, clampBlock.name),
  61471. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  61472. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  61473. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]")));
  61474. };
  61475. return ClampNodeWidget;
  61476. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61477. /***/ }),
  61478. /***/ "./components/diagram/defaultNodeModel.ts":
  61479. /*!************************************************!*\
  61480. !*** ./components/diagram/defaultNodeModel.ts ***!
  61481. \************************************************/
  61482. /*! exports provided: DefaultNodeModel */
  61483. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61484. "use strict";
  61485. __webpack_require__.r(__webpack_exports__);
  61486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  61487. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61488. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61489. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61490. /* harmony import */ var _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  61491. /**
  61492. * Generic node model which stores information about a node editor block
  61493. */
  61494. var DefaultNodeModel = /** @class */ (function (_super) {
  61495. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  61496. /**
  61497. * Constructs the node model
  61498. */
  61499. function DefaultNodeModel(key) {
  61500. var _this = _super.call(this, key) || this;
  61501. /**
  61502. * The babylon block this node represents
  61503. */
  61504. _this.block = null;
  61505. return _this;
  61506. }
  61507. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  61508. var _this = this;
  61509. this.block = options.nodeMaterialBlock || null;
  61510. if (!options.nodeMaterialBlock) {
  61511. return;
  61512. }
  61513. // Create output ports
  61514. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  61515. var outputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "output");
  61516. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  61517. _this.addPort(outputPort);
  61518. });
  61519. // Create input ports and nodes if they exist
  61520. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  61521. var inputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "input");
  61522. inputPort.connection = connection;
  61523. _this.addPort(inputPort);
  61524. if (connection.connectedPoint) {
  61525. // Block is not a leaf node, create node for the given block type
  61526. var connectedNode;
  61527. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  61528. if (existingNodes.length == 0) {
  61529. connectedNode = graphEditor.createNodeFromObject({ nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  61530. }
  61531. else {
  61532. connectedNode = existingNodes[0];
  61533. }
  61534. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  61535. if (graphEditor._toAdd) {
  61536. graphEditor._toAdd.push(link);
  61537. }
  61538. else {
  61539. model.addAll(link);
  61540. }
  61541. }
  61542. });
  61543. };
  61544. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  61545. return null;
  61546. };
  61547. return DefaultNodeModel;
  61548. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  61549. /***/ }),
  61550. /***/ "./components/diagram/diagram.scss":
  61551. /*!*****************************************!*\
  61552. !*** ./components/diagram/diagram.scss ***!
  61553. \*****************************************/
  61554. /*! no static exports found */
  61555. /***/ (function(module, exports, __webpack_require__) {
  61556. 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");
  61557. if(typeof content === 'string') content = [[module.i, content, '']];
  61558. var transform;
  61559. var insertInto;
  61560. var options = {"hmr":true}
  61561. options.transform = transform
  61562. options.insertInto = undefined;
  61563. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  61564. if(content.locals) module.exports = content.locals;
  61565. if(false) {}
  61566. /***/ }),
  61567. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  61568. /*!***********************************************************!*\
  61569. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  61570. \***********************************************************/
  61571. /*! exports provided: GenericNodeFactory */
  61572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61573. "use strict";
  61574. __webpack_require__.r(__webpack_exports__);
  61575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  61576. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61577. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61578. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61579. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  61580. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  61581. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61582. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  61583. /**
  61584. * Node factory which creates editor nodes
  61585. */
  61586. var GenericNodeFactory = /** @class */ (function (_super) {
  61587. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  61588. /**
  61589. * Constructs a GenericNodeFactory
  61590. */
  61591. function GenericNodeFactory(globalState) {
  61592. var _this = _super.call(this, "generic") || this;
  61593. _this._globalState = globalState;
  61594. return _this;
  61595. }
  61596. /**
  61597. * Generates a node widget
  61598. * @param diagramEngine diagram engine
  61599. * @param node node to generate
  61600. * @returns node widget jsx
  61601. */
  61602. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61603. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  61604. };
  61605. /**
  61606. * Gets a new instance of a node model
  61607. * @returns generic node model
  61608. */
  61609. GenericNodeFactory.prototype.getNewInstance = function () {
  61610. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  61611. };
  61612. return GenericNodeFactory;
  61613. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61614. /***/ }),
  61615. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  61616. /*!*********************************************************!*\
  61617. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  61618. \*********************************************************/
  61619. /*! exports provided: GenericNodeModel */
  61620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61621. "use strict";
  61622. __webpack_require__.r(__webpack_exports__);
  61623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  61624. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61626. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61627. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61628. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61629. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61630. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61631. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  61632. /**
  61633. * Generic node model which stores information about a node editor block
  61634. */
  61635. var GenericNodeModel = /** @class */ (function (_super) {
  61636. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  61637. /**
  61638. * Constructs the node model
  61639. */
  61640. function GenericNodeModel() {
  61641. var _this = _super.call(this, "generic") || this;
  61642. /**
  61643. * Vector2 for the node if it exists
  61644. */
  61645. _this.vector2 = null;
  61646. /**
  61647. * Vector3 for the node if it exists
  61648. */
  61649. _this.vector3 = null;
  61650. /**
  61651. * Vector4 for the node if it exists
  61652. */
  61653. _this.vector4 = null;
  61654. /**
  61655. * Matrix for the node if it exists
  61656. */
  61657. _this.matrix = null;
  61658. return _this;
  61659. }
  61660. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  61661. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  61662. };
  61663. GenericNodeModel.prototype.renderProperties = function (globalState) {
  61664. var _this = this;
  61665. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61666. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "GENERAL" },
  61667. 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(); } }),
  61668. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })),
  61669. this.block.getClassName() === "TransformBlock" &&
  61670. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  61671. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  61672. var transformBlock = _this.block;
  61673. if (value) {
  61674. transformBlock.complementW = 0;
  61675. }
  61676. else {
  61677. transformBlock.complementW = 1;
  61678. }
  61679. globalState.onRebuildRequiredObservable.notifyObservers();
  61680. }, isSelected: function () { return _this.block.complementW === 0; } })),
  61681. this.block.getClassName() === "PerturbNormalBlock" &&
  61682. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  61683. 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(); } }),
  61684. 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(); } }))));
  61685. };
  61686. return GenericNodeModel;
  61687. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61688. /***/ }),
  61689. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  61690. /*!**********************************************************!*\
  61691. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  61692. \**********************************************************/
  61693. /*! exports provided: GenericNodeWidget */
  61694. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61695. "use strict";
  61696. __webpack_require__.r(__webpack_exports__);
  61697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  61698. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61700. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61701. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  61702. /**
  61703. * Used to display a node block for the node editor
  61704. */
  61705. var GenericNodeWidget = /** @class */ (function (_super) {
  61706. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  61707. /**
  61708. * Creates a GenericNodeWidget
  61709. * @param props
  61710. */
  61711. function GenericNodeWidget(props) {
  61712. var _this = _super.call(this, props) || this;
  61713. _this.state = {};
  61714. if (_this.props.node) {
  61715. _this.props.node.addListener({
  61716. selectionChanged: function () {
  61717. var selected = _this.props.node.selected;
  61718. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  61719. }
  61720. });
  61721. }
  61722. return _this;
  61723. }
  61724. GenericNodeWidget.prototype.render = function () {
  61725. // Header label
  61726. var header = "";
  61727. if (this.props.node && this.props.node.block) {
  61728. header = this.props.node.block.name;
  61729. }
  61730. // Input/Output ports
  61731. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  61732. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  61733. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  61734. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  61735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  61736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  61737. };
  61738. return GenericNodeWidget;
  61739. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  61740. /***/ }),
  61741. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  61742. /*!*******************************************************!*\
  61743. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  61744. \*******************************************************/
  61745. /*! exports provided: InputNodeFactory */
  61746. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61747. "use strict";
  61748. __webpack_require__.r(__webpack_exports__);
  61749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  61750. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61751. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  61752. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  61753. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61754. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  61755. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  61756. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  61757. /**
  61758. * Node factory which creates editor nodes
  61759. */
  61760. var InputNodeFactory = /** @class */ (function (_super) {
  61761. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  61762. /**
  61763. * Constructs a GenericNodeFactory
  61764. */
  61765. function InputNodeFactory(globalState) {
  61766. var _this = _super.call(this, "input") || this;
  61767. _this._globalState = globalState;
  61768. return _this;
  61769. }
  61770. /**
  61771. * Generates a node widget
  61772. * @param diagramEngine diagram engine
  61773. * @param node node to generate
  61774. * @returns node widget jsx
  61775. */
  61776. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  61777. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  61778. };
  61779. /**
  61780. * Gets a new instance of a node model
  61781. * @returns input node model
  61782. */
  61783. InputNodeFactory.prototype.getNewInstance = function () {
  61784. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  61785. };
  61786. return InputNodeFactory;
  61787. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  61788. /***/ }),
  61789. /***/ "./components/diagram/input/inputNodeModel.tsx":
  61790. /*!*****************************************************!*\
  61791. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  61792. \*****************************************************/
  61793. /*! exports provided: InputNodeModel */
  61794. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61795. "use strict";
  61796. __webpack_require__.r(__webpack_exports__);
  61797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  61798. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61799. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61800. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61801. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  61802. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  61803. /**
  61804. * Generic node model which stores information about a node editor block
  61805. */
  61806. var InputNodeModel = /** @class */ (function (_super) {
  61807. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  61808. /**
  61809. * Constructs the node model
  61810. */
  61811. function InputNodeModel() {
  61812. return _super.call(this, "input") || this;
  61813. }
  61814. Object.defineProperty(InputNodeModel.prototype, "inputBlock", {
  61815. get: function () {
  61816. return this.block;
  61817. },
  61818. enumerable: true,
  61819. configurable: true
  61820. });
  61821. InputNodeModel.prototype.renderProperties = function (globalState) {
  61822. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  61823. };
  61824. return InputNodeModel;
  61825. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  61826. /***/ }),
  61827. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  61828. /*!*****************************************************************!*\
  61829. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  61830. \*****************************************************************/
  61831. /*! exports provided: InputPropertyTabComponentProps */
  61832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61833. "use strict";
  61834. __webpack_require__.r(__webpack_exports__);
  61835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  61836. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  61837. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  61838. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  61839. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  61840. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  61841. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  61842. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__);
  61843. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  61844. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  61845. /* harmony import */ var _propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  61846. /* harmony import */ var _propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  61847. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  61848. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  61849. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  61850. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  61851. /* harmony import */ var _propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  61852. /* harmony import */ var _propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  61853. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  61854. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  61855. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  61856. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  61857. function InputPropertyTabComponentProps(props) {
  61858. return _super.call(this, props) || this;
  61859. }
  61860. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  61861. var _this = this;
  61862. var inputBlock = this.props.inputNode.inputBlock;
  61863. switch (inputBlock.type) {
  61864. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float: {
  61865. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  61866. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  61867. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__["FloatLineComponent"], { label: "Min", target: inputBlock, propertyName: "min", onChange: function () {
  61868. _this.forceUpdate();
  61869. } }),
  61870. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__["FloatLineComponent"], { label: "Max", target: inputBlock, propertyName: "max", onChange: function () {
  61871. _this.forceUpdate();
  61872. } }),
  61873. cantDisplaySlider &&
  61874. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  61875. !cantDisplaySlider &&
  61876. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_16__["SliderLineComponent"], { label: "Value", target: inputBlock, propertyName: "value", step: 0.1, minimum: inputBlock.min, maximum: inputBlock.max, onChange: function () {
  61877. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  61878. } })));
  61879. }
  61880. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61881. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61882. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61883. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61884. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61885. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61886. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61887. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61888. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61889. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61890. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  61891. }
  61892. return null;
  61893. };
  61894. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  61895. var inputBlock = this.props.inputNode.inputBlock;
  61896. inputBlock.setDefaultValue();
  61897. };
  61898. InputPropertyTabComponentProps.prototype.render = function () {
  61899. var _this = this;
  61900. var inputBlock = this.props.inputNode.inputBlock;
  61901. var systemValuesOptions = [];
  61902. var attributeOptions = [];
  61903. var animationOptions = [];
  61904. switch (inputBlock.type) {
  61905. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float:
  61906. animationOptions = [
  61907. { label: "None", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None },
  61908. { label: "Time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].Time },
  61909. ];
  61910. break;
  61911. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  61912. systemValuesOptions = [
  61913. { label: "World", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].World },
  61914. { label: "World x View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldView },
  61915. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldViewProjection },
  61916. { label: "View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].View },
  61917. { label: "View x Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].ViewProjection },
  61918. { label: "Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].Projection }
  61919. ];
  61920. break;
  61921. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  61922. systemValuesOptions = [
  61923. { label: "Fog color", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].FogColor }
  61924. ];
  61925. break;
  61926. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  61927. attributeOptions = [
  61928. { label: "color", value: "color" }
  61929. ];
  61930. break;
  61931. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  61932. attributeOptions = [
  61933. { label: "uv", value: "uv" },
  61934. { label: "uv2", value: "uv2" },
  61935. ];
  61936. break;
  61937. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  61938. systemValuesOptions = [
  61939. { label: "Camera position", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].CameraPosition }
  61940. ];
  61941. attributeOptions = [
  61942. { label: "position", value: "position" },
  61943. { label: "normal", value: "normal" },
  61944. { label: "tangent", value: "tangent" },
  61945. ];
  61946. break;
  61947. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  61948. attributeOptions = [
  61949. { label: "matricesIndices", value: "matricesIndices" },
  61950. { label: "matricesWeights", value: "matricesWeights" }
  61951. ];
  61952. break;
  61953. }
  61954. var modeOptions = [
  61955. { label: "User-defined", value: 0 }
  61956. ];
  61957. if (attributeOptions.length > 0) {
  61958. modeOptions.push({ label: "Mesh attribute", value: 1 });
  61959. }
  61960. if (systemValuesOptions.length > 0) {
  61961. modeOptions.push({ label: "System value", value: 2 });
  61962. }
  61963. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  61964. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "GENERAL" },
  61965. !inputBlock.isAttribute &&
  61966. 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(); } }),
  61967. 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) })),
  61968. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "PROPERTIES" },
  61969. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  61970. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Visible in the Inspector", target: inputBlock, propertyName: "visibleInInspector" }),
  61971. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  61972. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "IsConstant", target: inputBlock, propertyName: "isConstant", onValueChanged: function () { return _this.props.globalState.onRebuildRequiredObservable.notifyObservers(); } }),
  61973. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  61974. if (block.isAttribute) {
  61975. return 1;
  61976. }
  61977. if (block.isSystemValue) {
  61978. return 2;
  61979. }
  61980. return 0;
  61981. }, onSelect: function (value) {
  61982. switch (value) {
  61983. case 0:
  61984. inputBlock.isUniform = true;
  61985. inputBlock.setAsSystemValue(null);
  61986. _this.setDefaultValue();
  61987. break;
  61988. case 1:
  61989. inputBlock.setAsAttribute(attributeOptions[0].value);
  61990. break;
  61991. case 2:
  61992. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  61993. break;
  61994. }
  61995. _this.forceUpdate();
  61996. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  61997. } }),
  61998. inputBlock.isAttribute &&
  61999. 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) {
  62000. inputBlock.setAsAttribute(value);
  62001. _this.forceUpdate();
  62002. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62003. } }),
  62004. inputBlock.isUniform && animationOptions.length > 0 &&
  62005. 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) {
  62006. _this.forceUpdate();
  62007. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62008. } }),
  62009. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  62010. this.renderValue(this.props.globalState),
  62011. inputBlock.isUniform && inputBlock.isSystemValue &&
  62012. 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) {
  62013. inputBlock.setAsSystemValue(value);
  62014. _this.forceUpdate();
  62015. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62016. } }))));
  62017. };
  62018. return InputPropertyTabComponentProps;
  62019. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62020. /***/ }),
  62021. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  62022. /*!******************************************************!*\
  62023. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  62024. \******************************************************/
  62025. /*! exports provided: InputNodeWidget */
  62026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62027. "use strict";
  62028. __webpack_require__.r(__webpack_exports__);
  62029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  62030. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62031. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62032. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62033. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialSystemValues */ "babylonjs/Misc/observable");
  62034. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__);
  62035. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  62036. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62037. /**
  62038. * Used to display a node block for the node editor
  62039. */
  62040. var InputNodeWidget = /** @class */ (function (_super) {
  62041. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  62042. /**
  62043. * Creates a GenericNodeWidget
  62044. * @param props
  62045. */
  62046. function InputNodeWidget(props) {
  62047. var _this = _super.call(this, props) || this;
  62048. _this.state = {};
  62049. if (_this.props.node) {
  62050. _this.props.node.addListener({
  62051. selectionChanged: function () {
  62052. var selected = _this.props.node.selected;
  62053. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62054. }
  62055. });
  62056. }
  62057. return _this;
  62058. }
  62059. InputNodeWidget.prototype.renderValue = function (value) {
  62060. if (value !== "") {
  62061. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  62062. }
  62063. return null;
  62064. };
  62065. InputNodeWidget.prototype.render = function () {
  62066. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_4__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  62067. var inputBlock = this.props.node.inputBlock;
  62068. var value = "";
  62069. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  62070. var color = "";
  62071. if (inputBlock) {
  62072. if (inputBlock.isAttribute) {
  62073. value = "mesh." + inputBlock.name;
  62074. name = _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type);
  62075. }
  62076. else if (inputBlock.isSystemValue) {
  62077. switch (inputBlock.systemValue) {
  62078. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].World:
  62079. value = "World";
  62080. break;
  62081. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldView:
  62082. value = "World x View";
  62083. break;
  62084. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldViewProjection:
  62085. value = "World x View x Projection";
  62086. break;
  62087. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].View:
  62088. value = "View";
  62089. break;
  62090. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].ViewProjection:
  62091. value = "View x Projection";
  62092. break;
  62093. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].Projection:
  62094. value = "Projection";
  62095. break;
  62096. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].CameraPosition:
  62097. value = "Camera position";
  62098. break;
  62099. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].FogColor:
  62100. value = "Fog color";
  62101. break;
  62102. }
  62103. }
  62104. else {
  62105. if (!inputBlock || !inputBlock.isUniform) {
  62106. return null;
  62107. }
  62108. switch (inputBlock.type) {
  62109. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  62110. if (inputBlock.animationType !== babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"].None) {
  62111. value = babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"][inputBlock.animationType];
  62112. }
  62113. else {
  62114. value = inputBlock.value.toFixed(2);
  62115. }
  62116. break;
  62117. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  62118. var vec2Value = inputBlock.value;
  62119. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  62120. break;
  62121. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  62122. var vec3Value = inputBlock.value;
  62123. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  62124. break;
  62125. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  62126. var vec4Value = inputBlock.value;
  62127. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  62128. break;
  62129. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  62130. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  62131. color = inputBlock.value.toHexString();
  62132. break;
  62133. }
  62134. }
  62135. }
  62136. }
  62137. else {
  62138. name = "Not connected input";
  62139. }
  62140. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (inputBlock && inputBlock.isAttribute ? " attribute" : ""), style: {
  62141. background: color
  62142. } },
  62143. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, name),
  62144. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  62145. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, this.renderValue(value))));
  62146. };
  62147. return InputNodeWidget;
  62148. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62149. /***/ }),
  62150. /***/ "./components/diagram/light/lightNodeFactory.tsx":
  62151. /*!*******************************************************!*\
  62152. !*** ./components/diagram/light/lightNodeFactory.tsx ***!
  62153. \*******************************************************/
  62154. /*! exports provided: LightNodeFactory */
  62155. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62156. "use strict";
  62157. __webpack_require__.r(__webpack_exports__);
  62158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeFactory", function() { return LightNodeFactory; });
  62159. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62160. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62161. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62162. /* harmony import */ var _lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightNodeWidget */ "./components/diagram/light/lightNodeWidget.tsx");
  62163. /* harmony import */ var _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  62164. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62165. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62166. /**
  62167. * Node factory which creates editor nodes
  62168. */
  62169. var LightNodeFactory = /** @class */ (function (_super) {
  62170. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeFactory, _super);
  62171. /**
  62172. * Constructs a LightNodeFactory
  62173. */
  62174. function LightNodeFactory(globalState) {
  62175. var _this = _super.call(this, "light") || this;
  62176. _this._globalState = globalState;
  62177. return _this;
  62178. }
  62179. /**
  62180. * Generates a node widget
  62181. * @param diagramEngine diagram engine
  62182. * @param node node to generate
  62183. * @returns node widget jsx
  62184. */
  62185. LightNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62186. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightNodeWidget"], { node: node, globalState: this._globalState });
  62187. };
  62188. /**
  62189. * Gets a new instance of a node model
  62190. * @returns light node model
  62191. */
  62192. LightNodeFactory.prototype.getNewInstance = function () {
  62193. return new _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightNodeModel"]();
  62194. };
  62195. return LightNodeFactory;
  62196. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62197. /***/ }),
  62198. /***/ "./components/diagram/light/lightNodeModel.tsx":
  62199. /*!*****************************************************!*\
  62200. !*** ./components/diagram/light/lightNodeModel.tsx ***!
  62201. \*****************************************************/
  62202. /*! exports provided: LightNodeModel */
  62203. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62204. "use strict";
  62205. __webpack_require__.r(__webpack_exports__);
  62206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeModel", function() { return LightNodeModel; });
  62207. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62208. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62209. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62210. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62211. /* harmony import */ var _lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightPropertyTabComponent */ "./components/diagram/light/lightPropertyTabComponent.tsx");
  62212. /**
  62213. * Light node model which stores information about a node editor block
  62214. */
  62215. var LightNodeModel = /** @class */ (function (_super) {
  62216. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeModel, _super);
  62217. /**
  62218. * Constructs the node model
  62219. */
  62220. function LightNodeModel() {
  62221. return _super.call(this, "light") || this;
  62222. }
  62223. Object.defineProperty(LightNodeModel.prototype, "light", {
  62224. /**
  62225. * Light for the node if it exists
  62226. */
  62227. get: function () {
  62228. return this._block.light;
  62229. },
  62230. set: function (value) {
  62231. this._block.light = value;
  62232. },
  62233. enumerable: true,
  62234. configurable: true
  62235. });
  62236. LightNodeModel.prototype.renderProperties = function (globalState) {
  62237. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"], { globalState: globalState, node: this }));
  62238. };
  62239. LightNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  62240. this._block = options.nodeMaterialBlock;
  62241. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  62242. };
  62243. return LightNodeModel;
  62244. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62245. /***/ }),
  62246. /***/ "./components/diagram/light/lightNodeWidget.tsx":
  62247. /*!******************************************************!*\
  62248. !*** ./components/diagram/light/lightNodeWidget.tsx ***!
  62249. \******************************************************/
  62250. /*! exports provided: LightNodeWidget */
  62251. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62252. "use strict";
  62253. __webpack_require__.r(__webpack_exports__);
  62254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeWidget", function() { return LightNodeWidget; });
  62255. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62256. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62257. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62258. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62259. /**
  62260. * Used to display a node block for the node editor
  62261. */
  62262. var LightNodeWidget = /** @class */ (function (_super) {
  62263. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeWidget, _super);
  62264. /**
  62265. * Creates a GenericNodeWidget
  62266. * @param props
  62267. */
  62268. function LightNodeWidget(props) {
  62269. var _this = _super.call(this, props) || this;
  62270. _this.state = {};
  62271. if (_this.props.node) {
  62272. _this.props.node.addListener({
  62273. selectionChanged: function () {
  62274. var selected = _this.props.node.selected;
  62275. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62276. }
  62277. });
  62278. }
  62279. return _this;
  62280. }
  62281. LightNodeWidget.prototype.render = function () {
  62282. // Input/Output ports
  62283. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62284. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  62285. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  62286. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  62287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62288. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  62289. };
  62290. return LightNodeWidget;
  62291. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62292. /***/ }),
  62293. /***/ "./components/diagram/light/lightPropertyTabComponent.tsx":
  62294. /*!****************************************************************!*\
  62295. !*** ./components/diagram/light/lightPropertyTabComponent.tsx ***!
  62296. \****************************************************************/
  62297. /*! exports provided: LightPropertyTabComponent */
  62298. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62299. "use strict";
  62300. __webpack_require__.r(__webpack_exports__);
  62301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  62302. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62303. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62304. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62305. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62306. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62307. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62308. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  62309. var LightPropertyTabComponent = /** @class */ (function (_super) {
  62310. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightPropertyTabComponent, _super);
  62311. function LightPropertyTabComponent() {
  62312. return _super !== null && _super.apply(this, arguments) || this;
  62313. }
  62314. LightPropertyTabComponent.prototype.render = function () {
  62315. var _this = this;
  62316. var scene = this.props.globalState.nodeMaterial.getScene();
  62317. var lightOptions = scene.lights.map(function (l) {
  62318. return { label: l.name, value: l.name };
  62319. });
  62320. lightOptions.splice(0, 0, { label: "All", value: "" });
  62321. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62322. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  62323. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightBlock" }),
  62324. 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(); } })),
  62325. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  62326. 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) {
  62327. if (name === "") {
  62328. _this.props.node.light = null;
  62329. }
  62330. else {
  62331. _this.props.node.light = scene.getLightByName(name);
  62332. }
  62333. _this.forceUpdate();
  62334. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62335. } }))));
  62336. };
  62337. return LightPropertyTabComponent;
  62338. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62339. /***/ }),
  62340. /***/ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx":
  62341. /*!*****************************************************************************!*\
  62342. !*** ./components/diagram/lightInformation/lightInformationNodeFactory.tsx ***!
  62343. \*****************************************************************************/
  62344. /*! exports provided: LightInformationNodeFactory */
  62345. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62346. "use strict";
  62347. __webpack_require__.r(__webpack_exports__);
  62348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeFactory", function() { return LightInformationNodeFactory; });
  62349. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62350. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62351. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62352. /* harmony import */ var _lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightInformationNodeWidget */ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx");
  62353. /* harmony import */ var _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  62354. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62355. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62356. /**
  62357. * Node factory which creates editor nodes
  62358. */
  62359. var LightInformationNodeFactory = /** @class */ (function (_super) {
  62360. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeFactory, _super);
  62361. /**
  62362. * Constructs a LightNodeFactory
  62363. */
  62364. function LightInformationNodeFactory(globalState) {
  62365. var _this = _super.call(this, "light-information") || this;
  62366. _this._globalState = globalState;
  62367. return _this;
  62368. }
  62369. /**
  62370. * Generates a node widget
  62371. * @param diagramEngine diagram engine
  62372. * @param node node to generate
  62373. * @returns node widget jsx
  62374. */
  62375. LightInformationNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62376. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightInformationNodeWidget"], { node: node, globalState: this._globalState });
  62377. };
  62378. /**
  62379. * Gets a new instance of a node model
  62380. * @returns light node model
  62381. */
  62382. LightInformationNodeFactory.prototype.getNewInstance = function () {
  62383. return new _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightInformationNodeModel"]();
  62384. };
  62385. return LightInformationNodeFactory;
  62386. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62387. /***/ }),
  62388. /***/ "./components/diagram/lightInformation/lightInformationNodeModel.tsx":
  62389. /*!***************************************************************************!*\
  62390. !*** ./components/diagram/lightInformation/lightInformationNodeModel.tsx ***!
  62391. \***************************************************************************/
  62392. /*! exports provided: LightInformationNodeModel */
  62393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62394. "use strict";
  62395. __webpack_require__.r(__webpack_exports__);
  62396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeModel", function() { return LightInformationNodeModel; });
  62397. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62398. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62399. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62400. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62401. /* harmony import */ var _lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationPropertyTabComponent */ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx");
  62402. var LightInformationNodeModel = /** @class */ (function (_super) {
  62403. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeModel, _super);
  62404. /**
  62405. * Constructs the node model
  62406. */
  62407. function LightInformationNodeModel() {
  62408. return _super.call(this, "light-information") || this;
  62409. }
  62410. Object.defineProperty(LightInformationNodeModel.prototype, "light", {
  62411. /**
  62412. * Light for the node if it exists
  62413. */
  62414. get: function () {
  62415. return this._block.light;
  62416. },
  62417. set: function (value) {
  62418. this._block.light = value;
  62419. },
  62420. enumerable: true,
  62421. configurable: true
  62422. });
  62423. LightInformationNodeModel.prototype.renderProperties = function (globalState) {
  62424. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightInformationPropertyTabComponent"], { globalState: globalState, node: this }));
  62425. };
  62426. LightInformationNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  62427. this._block = options.nodeMaterialBlock;
  62428. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  62429. };
  62430. return LightInformationNodeModel;
  62431. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62432. /***/ }),
  62433. /***/ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx":
  62434. /*!****************************************************************************!*\
  62435. !*** ./components/diagram/lightInformation/lightInformationNodeWidget.tsx ***!
  62436. \****************************************************************************/
  62437. /*! exports provided: LightInformationNodeWidget */
  62438. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62439. "use strict";
  62440. __webpack_require__.r(__webpack_exports__);
  62441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeWidget", function() { return LightInformationNodeWidget; });
  62442. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62443. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62444. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62445. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62446. /**
  62447. * Used to display a node block for the node editor
  62448. */
  62449. var LightInformationNodeWidget = /** @class */ (function (_super) {
  62450. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeWidget, _super);
  62451. /**
  62452. * Creates a GenericNodeWidget
  62453. * @param props
  62454. */
  62455. function LightInformationNodeWidget(props) {
  62456. var _this = _super.call(this, props) || this;
  62457. _this.state = {};
  62458. if (_this.props.node) {
  62459. _this.props.node.addListener({
  62460. selectionChanged: function () {
  62461. var selected = _this.props.node.selected;
  62462. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62463. }
  62464. });
  62465. }
  62466. return _this;
  62467. }
  62468. LightInformationNodeWidget.prototype.render = function () {
  62469. // Input/Output ports
  62470. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62471. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  62472. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  62473. 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") + ")"),
  62474. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62475. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  62476. };
  62477. return LightInformationNodeWidget;
  62478. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62479. /***/ }),
  62480. /***/ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx":
  62481. /*!**************************************************************************************!*\
  62482. !*** ./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx ***!
  62483. \**************************************************************************************/
  62484. /*! exports provided: LightInformationPropertyTabComponent */
  62485. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62486. "use strict";
  62487. __webpack_require__.r(__webpack_exports__);
  62488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  62489. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62490. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62491. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62492. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62493. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62494. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62495. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  62496. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  62497. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationPropertyTabComponent, _super);
  62498. function LightInformationPropertyTabComponent() {
  62499. return _super !== null && _super.apply(this, arguments) || this;
  62500. }
  62501. LightInformationPropertyTabComponent.prototype.render = function () {
  62502. var _this = this;
  62503. var scene = this.props.globalState.nodeMaterial.getScene();
  62504. var lightOptions = scene.lights.map(function (l) {
  62505. return { label: l.name, value: l.name };
  62506. });
  62507. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  62509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightInformationBlock" }),
  62510. 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(); } })),
  62511. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  62512. 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) {
  62513. _this.props.node.light = scene.getLightByName(name);
  62514. _this.forceUpdate();
  62515. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62516. } }))));
  62517. };
  62518. return LightInformationPropertyTabComponent;
  62519. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62520. /***/ }),
  62521. /***/ "./components/diagram/link/advancedLinkFactory.tsx":
  62522. /*!*********************************************************!*\
  62523. !*** ./components/diagram/link/advancedLinkFactory.tsx ***!
  62524. \*********************************************************/
  62525. /*! exports provided: AdvancedLinkFactory */
  62526. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62527. "use strict";
  62528. __webpack_require__.r(__webpack_exports__);
  62529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkFactory", function() { return AdvancedLinkFactory; });
  62530. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62531. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62532. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62533. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62534. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62535. /* harmony import */ var _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  62536. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../blockTools */ "./blockTools.ts");
  62537. var AdvancedLinkFactory = /** @class */ (function (_super) {
  62538. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkFactory, _super);
  62539. function AdvancedLinkFactory() {
  62540. var _this = _super.call(this) || this;
  62541. _this.type = "advanced";
  62542. return _this;
  62543. }
  62544. AdvancedLinkFactory.prototype.getNewInstance = function (initialConfig) {
  62545. return new _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__["AdvancedLinkModel"]();
  62546. };
  62547. AdvancedLinkFactory.prototype.generateLinkSegment = function (model, widget, selected, path) {
  62548. var portModel = (model.getTargetPort() || model.getSourcePort());
  62549. var type = portModel.connection.type;
  62550. var color = _blockTools__WEBPACK_IMPORTED_MODULE_4__["BlockTools"].GetColorFromConnectionNodeType(type);
  62551. var width = 3;
  62552. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("path", { className: selected ? widget.bem("--path-selected") : "", strokeWidth: width, stroke: color, d: path }));
  62553. };
  62554. return AdvancedLinkFactory;
  62555. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkFactory"]));
  62556. /***/ }),
  62557. /***/ "./components/diagram/link/advancedLinkModel.tsx":
  62558. /*!*******************************************************!*\
  62559. !*** ./components/diagram/link/advancedLinkModel.tsx ***!
  62560. \*******************************************************/
  62561. /*! exports provided: AdvancedLinkModel */
  62562. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62563. "use strict";
  62564. __webpack_require__.r(__webpack_exports__);
  62565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkModel", function() { return AdvancedLinkModel; });
  62566. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62567. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62568. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62569. var AdvancedLinkModel = /** @class */ (function (_super) {
  62570. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkModel, _super);
  62571. function AdvancedLinkModel() {
  62572. return _super.call(this, "advanced") || this;
  62573. }
  62574. return AdvancedLinkModel;
  62575. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]));
  62576. /***/ }),
  62577. /***/ "./components/diagram/port/defaultPortModel.ts":
  62578. /*!*****************************************************!*\
  62579. !*** ./components/diagram/port/defaultPortModel.ts ***!
  62580. \*****************************************************/
  62581. /*! exports provided: DefaultPortModel */
  62582. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62583. "use strict";
  62584. __webpack_require__.r(__webpack_exports__);
  62585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  62586. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62587. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62588. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62589. /* harmony import */ var _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link/advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  62590. /**
  62591. * Port model
  62592. */
  62593. var DefaultPortModel = /** @class */ (function (_super) {
  62594. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  62595. function DefaultPortModel(name, type) {
  62596. if (type === void 0) { type = "input"; }
  62597. var _this = _super.call(this, name, "generic") || this;
  62598. /**
  62599. * What the port is connected to
  62600. */
  62601. _this.connection = null;
  62602. _this.position = type;
  62603. DefaultPortModel.idCounter++;
  62604. return _this;
  62605. }
  62606. DefaultPortModel.prototype.canLinkToPort = function (port) {
  62607. if (!this.connection || !port.connection) {
  62608. return true;
  62609. }
  62610. return this.connection.canConnectTo(port.connection);
  62611. };
  62612. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  62613. this.connection = connection;
  62614. this.name = connection.name;
  62615. };
  62616. DefaultPortModel.prototype.getNodeModel = function () {
  62617. return this.parent;
  62618. };
  62619. DefaultPortModel.prototype.link = function (outPort) {
  62620. var link = this.createLinkModel();
  62621. link.setSourcePort(this);
  62622. link.setTargetPort(outPort);
  62623. return link;
  62624. };
  62625. DefaultPortModel.prototype.createLinkModel = function () {
  62626. return new _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__["AdvancedLinkModel"]();
  62627. };
  62628. DefaultPortModel.SortInputOutput = function (a, b) {
  62629. if (!a || !b) {
  62630. return null;
  62631. }
  62632. else if (a.position == "output" && b.position == "input") {
  62633. return {
  62634. input: b,
  62635. output: a
  62636. };
  62637. }
  62638. else if (b.position == "output" && a.position == "input") {
  62639. return {
  62640. input: a,
  62641. output: b
  62642. };
  62643. }
  62644. else {
  62645. return null;
  62646. }
  62647. };
  62648. DefaultPortModel.idCounter = 0;
  62649. return DefaultPortModel;
  62650. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  62651. /***/ }),
  62652. /***/ "./components/diagram/port/defaultPortWidget.tsx":
  62653. /*!*******************************************************!*\
  62654. !*** ./components/diagram/port/defaultPortWidget.tsx ***!
  62655. \*******************************************************/
  62656. /*! exports provided: DefaultPortWidget */
  62657. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62658. "use strict";
  62659. __webpack_require__.r(__webpack_exports__);
  62660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortWidget", function() { return DefaultPortWidget; });
  62661. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62662. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62663. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62664. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62665. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62666. var DefaultPortWidget = /** @class */ (function (_super) {
  62667. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortWidget, _super);
  62668. function DefaultPortWidget(props) {
  62669. var _this = _super.call(this, "srd-port", props) || this;
  62670. _this.state = {
  62671. selected: false
  62672. };
  62673. return _this;
  62674. }
  62675. DefaultPortWidget.prototype.getClassName = function () {
  62676. return "port " + _super.prototype.getClassName.call(this) + (this.state.selected ? this.bem("--selected") : "");
  62677. };
  62678. DefaultPortWidget.prototype.render = function () {
  62679. var _this = this;
  62680. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({ style: this.props.style }, this.getProps(), { onMouseEnter: function () {
  62681. _this.setState({ selected: true });
  62682. }, onMouseLeave: function () {
  62683. _this.setState({ selected: false });
  62684. }, "data-name": this.props.name, "data-nodeid": this.props.node.getID() })));
  62685. };
  62686. return DefaultPortWidget;
  62687. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["BaseWidget"]));
  62688. /***/ }),
  62689. /***/ "./components/diagram/portHelper.tsx":
  62690. /*!*******************************************!*\
  62691. !*** ./components/diagram/portHelper.tsx ***!
  62692. \*******************************************/
  62693. /*! exports provided: PortHelper */
  62694. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62695. "use strict";
  62696. __webpack_require__.r(__webpack_exports__);
  62697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortHelper", function() { return PortHelper; });
  62698. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62699. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  62700. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  62701. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__);
  62702. /* harmony import */ var _port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortWidget */ "./components/diagram/port/defaultPortWidget.tsx");
  62703. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  62704. var PortHelper = /** @class */ (function () {
  62705. function PortHelper() {
  62706. }
  62707. PortHelper._GetPortTypeIndicator = function (connection) {
  62708. switch (connection.type) {
  62709. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  62710. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  62711. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABESURBVDhPY/z//z8DJYAJSpMNRg3Ab4APEL+GYhAbK8AXjSCNIhAmwxsgFoUwUQFNvZAJxCCbQRjExgpGU+LAG8DAAAA+ghAthzG18wAAAABJRU5ErkJggg==" });
  62712. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  62713. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSpMN8BngA8SvoRjExgrweQGkUQTCZHgDxKIQJiqgqRcygRhkMwiD2FjB4I4FosBoNA6DaGRgAABqpx09dHGG2QAAAABJRU5ErkJggg==" });
  62714. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  62715. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  62716. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSmMDPkD8GopBbKwAnwtAGkUgTIY3QCwKYaICfC4gCuAzIBOIQTaDMIiNFYwG4mgggsCQD0QGBgD0QypNGzDYqQAAAABJRU5ErkJggg==" });
  62717. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  62718. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  62719. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABRSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQYGkBeQ8GsghgEQm5A45V6AmwTFIUAMsgGEQWxC4gyDLxZIBqPpAAiQTQPiIZcOGBgAyCDrTTmX3gcAAAAASUVORK5CYII=" });
  62720. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  62721. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAABuSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQZ0L4AUiECYOMEbIBaFMGnghUwoDQKhQMwIxSA2DCCrwfACCMAEQBqRAVZxqnuBZEB1A9DjHgZwsQdpOgDZAMLo6QAmTjAdkAQo9AIDAwD62SHFU/Hk8QAAAABJRU5ErkJggg==" });
  62722. }
  62723. return null;
  62724. };
  62725. PortHelper._GetPortStyle = function (type) {
  62726. return {
  62727. background: _blockTools__WEBPACK_IMPORTED_MODULE_3__["BlockTools"].GetColorFromConnectionNodeType(type)
  62728. };
  62729. };
  62730. PortHelper.GenerateOutputPorts = function (node, ignoreLabel) {
  62731. if (!node) {
  62732. return new Array();
  62733. }
  62734. var outputPorts = [];
  62735. for (var key in node.ports) {
  62736. var port = node.ports[key];
  62737. if (port.position === "output") {
  62738. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  62739. var style = this._GetPortStyle(port.connection.type);
  62740. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "output-port" },
  62741. !ignoreLabel &&
  62742. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-label" }, port.connection.name),
  62743. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-plug" },
  62744. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-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: "output-port-type" }, typeIndicator))));
  62747. }
  62748. }
  62749. return outputPorts;
  62750. };
  62751. PortHelper.GenerateInputPorts = function (node, includeOnly, ignoreLabel) {
  62752. if (ignoreLabel === void 0) { ignoreLabel = false; }
  62753. if (!node) {
  62754. return new Array();
  62755. }
  62756. var inputPorts = [];
  62757. for (var key in node.ports) {
  62758. var port = node.ports[key];
  62759. if (port.position === "input") {
  62760. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  62761. var style = this._GetPortStyle(port.connection.type);
  62762. if (!includeOnly || includeOnly.indexOf(port.name) !== -1) {
  62763. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "input-port" },
  62764. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-plug" },
  62765. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-border" }),
  62766. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  62767. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-type" }, typeIndicator)),
  62768. !ignoreLabel &&
  62769. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-label" }, port.connection.name)));
  62770. }
  62771. }
  62772. }
  62773. return inputPorts;
  62774. };
  62775. return PortHelper;
  62776. }());
  62777. /***/ }),
  62778. /***/ "./components/diagram/remap/remapNodeFactory.tsx":
  62779. /*!*******************************************************!*\
  62780. !*** ./components/diagram/remap/remapNodeFactory.tsx ***!
  62781. \*******************************************************/
  62782. /*! exports provided: RemapNodeFactory */
  62783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62784. "use strict";
  62785. __webpack_require__.r(__webpack_exports__);
  62786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeFactory", function() { return RemapNodeFactory; });
  62787. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62788. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62789. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62790. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62791. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  62792. /* harmony import */ var _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  62793. /* harmony import */ var _remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remapNodeWidget */ "./components/diagram/remap/remapNodeWidget.tsx");
  62794. /**
  62795. * Node factory which creates editor nodes
  62796. */
  62797. var RemapNodeFactory = /** @class */ (function (_super) {
  62798. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeFactory, _super);
  62799. /**
  62800. * Constructs a GenericNodeFactory
  62801. */
  62802. function RemapNodeFactory(globalState) {
  62803. var _this = _super.call(this, "remap") || this;
  62804. _this._globalState = globalState;
  62805. return _this;
  62806. }
  62807. /**
  62808. * Generates a node widget
  62809. * @param diagramEngine diagram engine
  62810. * @param node node to generate
  62811. * @returns node widget jsx
  62812. */
  62813. RemapNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  62814. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__["RemapNodeWidget"], { node: node, globalState: this._globalState });
  62815. };
  62816. /**
  62817. * Gets a new instance of a node model
  62818. * @returns input node model
  62819. */
  62820. RemapNodeFactory.prototype.getNewInstance = function () {
  62821. return new _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__["RemapNodeModel"]();
  62822. };
  62823. return RemapNodeFactory;
  62824. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  62825. /***/ }),
  62826. /***/ "./components/diagram/remap/remapNodeModel.tsx":
  62827. /*!*****************************************************!*\
  62828. !*** ./components/diagram/remap/remapNodeModel.tsx ***!
  62829. \*****************************************************/
  62830. /*! exports provided: RemapNodeModel */
  62831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62832. "use strict";
  62833. __webpack_require__.r(__webpack_exports__);
  62834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeModel", function() { return RemapNodeModel; });
  62835. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62836. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62837. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62838. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  62839. /* harmony import */ var _remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodePropertyComponent */ "./components/diagram/remap/remapNodePropertyComponent.tsx");
  62840. /**
  62841. * Generic node model which stores information about a node editor block
  62842. */
  62843. var RemapNodeModel = /** @class */ (function (_super) {
  62844. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeModel, _super);
  62845. /**
  62846. * Constructs the node model
  62847. */
  62848. function RemapNodeModel() {
  62849. return _super.call(this, "remap") || this;
  62850. }
  62851. Object.defineProperty(RemapNodeModel.prototype, "remapBlock", {
  62852. get: function () {
  62853. return this.block;
  62854. },
  62855. enumerable: true,
  62856. configurable: true
  62857. });
  62858. RemapNodeModel.prototype.renderProperties = function (globalState) {
  62859. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["RemapPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  62860. };
  62861. return RemapNodeModel;
  62862. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  62863. /***/ }),
  62864. /***/ "./components/diagram/remap/remapNodePropertyComponent.tsx":
  62865. /*!*****************************************************************!*\
  62866. !*** ./components/diagram/remap/remapNodePropertyComponent.tsx ***!
  62867. \*****************************************************************/
  62868. /*! exports provided: RemapPropertyTabComponentProps */
  62869. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62870. "use strict";
  62871. __webpack_require__.r(__webpack_exports__);
  62872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapPropertyTabComponentProps", function() { return RemapPropertyTabComponentProps; });
  62873. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62874. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62875. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62876. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  62877. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  62878. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  62879. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  62880. var RemapPropertyTabComponentProps = /** @class */ (function (_super) {
  62881. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapPropertyTabComponentProps, _super);
  62882. function RemapPropertyTabComponentProps(props) {
  62883. return _super.call(this, props) || this;
  62884. }
  62885. RemapPropertyTabComponentProps.prototype.forceRebuild = function () {
  62886. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  62887. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  62888. };
  62889. RemapPropertyTabComponentProps.prototype.render = function () {
  62890. var _this = this;
  62891. var remapBlock = this.props.remapNode.remapBlock;
  62892. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  62893. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  62894. 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(); } }),
  62895. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Type", value: remapBlock.getClassName() })),
  62896. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  62897. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "From", propertyName: "sourceRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }),
  62898. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "To", propertyName: "targetRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }))));
  62899. };
  62900. return RemapPropertyTabComponentProps;
  62901. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62902. /***/ }),
  62903. /***/ "./components/diagram/remap/remapNodeWidget.tsx":
  62904. /*!******************************************************!*\
  62905. !*** ./components/diagram/remap/remapNodeWidget.tsx ***!
  62906. \******************************************************/
  62907. /*! exports provided: RemapNodeWidget */
  62908. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62909. "use strict";
  62910. __webpack_require__.r(__webpack_exports__);
  62911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeWidget", function() { return RemapNodeWidget; });
  62912. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62913. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62914. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  62915. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  62916. /**
  62917. * Used to display a node block for the node editor
  62918. */
  62919. var RemapNodeWidget = /** @class */ (function (_super) {
  62920. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeWidget, _super);
  62921. /**
  62922. * Creates a GenericNodeWidget
  62923. * @param props
  62924. */
  62925. function RemapNodeWidget(props) {
  62926. var _this = _super.call(this, props) || this;
  62927. _this.state = {};
  62928. if (_this.props.node) {
  62929. _this.props.node.addListener({
  62930. selectionChanged: function () {
  62931. var selected = _this.props.node.selected;
  62932. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  62933. }
  62934. });
  62935. }
  62936. return _this;
  62937. }
  62938. RemapNodeWidget.prototype.renderValue = function (value) {
  62939. if (value) {
  62940. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  62941. }
  62942. return null;
  62943. };
  62944. RemapNodeWidget.prototype.extractInputValue = function (connectionPoint) {
  62945. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  62946. if (connectedBlock.isInput) {
  62947. var inputBlock = connectedBlock;
  62948. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  62949. return inputBlock.value;
  62950. }
  62951. }
  62952. return "?";
  62953. };
  62954. RemapNodeWidget.prototype.render = function () {
  62955. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, false);
  62956. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  62957. var remapBlock = this.props.node.block;
  62958. var sourceRangeX = remapBlock.sourceMin.isConnected ? this.extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  62959. var sourceRangeY = remapBlock.sourceMax.isConnected ? this.extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  62960. var targetRangeX = remapBlock.targetMin.isConnected ? this.extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  62961. var targetRangeY = remapBlock.targetMax.isConnected ? this.extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  62962. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  62963. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, remapBlock.name),
  62964. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  62965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  62966. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]")));
  62967. };
  62968. return RemapNodeWidget;
  62969. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  62970. /***/ }),
  62971. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  62972. /*!***********************************************************!*\
  62973. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  62974. \***********************************************************/
  62975. /*! exports provided: TextureNodeFactory */
  62976. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62977. "use strict";
  62978. __webpack_require__.r(__webpack_exports__);
  62979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  62980. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  62981. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  62982. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  62983. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  62984. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  62985. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  62986. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  62987. /**
  62988. * Node factory which creates editor nodes
  62989. */
  62990. var TextureNodeFactory = /** @class */ (function (_super) {
  62991. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  62992. /**
  62993. * Constructs a TextureNodeFactory
  62994. */
  62995. function TextureNodeFactory(globalState) {
  62996. var _this = _super.call(this, "texture") || this;
  62997. _this._globalState = globalState;
  62998. return _this;
  62999. }
  63000. /**
  63001. * Generates a node widget
  63002. * @param diagramEngine diagram engine
  63003. * @param node node to generate
  63004. * @returns node widget jsx
  63005. */
  63006. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  63007. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  63008. };
  63009. /**
  63010. * Gets a new instance of a node model
  63011. * @returns texture node model
  63012. */
  63013. TextureNodeFactory.prototype.getNewInstance = function () {
  63014. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  63015. };
  63016. return TextureNodeFactory;
  63017. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  63018. /***/ }),
  63019. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  63020. /*!*********************************************************!*\
  63021. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  63022. \*********************************************************/
  63023. /*! exports provided: TextureNodeModel */
  63024. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63025. "use strict";
  63026. __webpack_require__.r(__webpack_exports__);
  63027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  63028. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63029. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63030. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63031. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  63032. /* harmony import */ var _texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./texturePropertyTabComponent */ "./components/diagram/texture/texturePropertyTabComponent.tsx");
  63033. /**
  63034. * Texture node model which stores information about a node editor block
  63035. */
  63036. var TextureNodeModel = /** @class */ (function (_super) {
  63037. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  63038. /**
  63039. * Constructs the node model
  63040. */
  63041. function TextureNodeModel() {
  63042. return _super.call(this, "texture") || this;
  63043. }
  63044. Object.defineProperty(TextureNodeModel.prototype, "texture", {
  63045. /**
  63046. * Texture for the node if it exists
  63047. */
  63048. get: function () {
  63049. return this._block.texture;
  63050. },
  63051. set: function (value) {
  63052. this._block.texture = value;
  63053. },
  63054. enumerable: true,
  63055. configurable: true
  63056. });
  63057. TextureNodeModel.prototype.renderProperties = function (globalState) {
  63058. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  63059. };
  63060. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  63061. this._block = options.nodeMaterialBlock;
  63062. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  63063. };
  63064. return TextureNodeModel;
  63065. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  63066. /***/ }),
  63067. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  63068. /*!**********************************************************!*\
  63069. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  63070. \**********************************************************/
  63071. /*! exports provided: TextureNodeWidget */
  63072. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63073. "use strict";
  63074. __webpack_require__.r(__webpack_exports__);
  63075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  63076. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63077. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63078. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63079. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  63080. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  63081. /**
  63082. * Used to display a node block for the node editor
  63083. */
  63084. var TextureNodeWidget = /** @class */ (function (_super) {
  63085. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  63086. /**
  63087. * Creates a GenericNodeWidget
  63088. * @param props
  63089. */
  63090. function TextureNodeWidget(props) {
  63091. var _this = _super.call(this, props) || this;
  63092. _this.state = {};
  63093. if (_this.props.node) {
  63094. _this.props.node.addListener({
  63095. selectionChanged: function () {
  63096. var selected = _this.props.node.selected;
  63097. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  63098. }
  63099. });
  63100. }
  63101. return _this;
  63102. }
  63103. TextureNodeWidget.prototype.render = function () {
  63104. // Input/Output ports
  63105. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  63106. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateInputPorts(this.props.node, ["uv"]);
  63107. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock texture-block" },
  63108. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  63109. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  63110. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  63111. this.props.node && this.props.node.texture &&
  63112. 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 })));
  63113. };
  63114. return TextureNodeWidget;
  63115. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63116. /***/ }),
  63117. /***/ "./components/diagram/texture/texturePropertyTabComponent.tsx":
  63118. /*!********************************************************************!*\
  63119. !*** ./components/diagram/texture/texturePropertyTabComponent.tsx ***!
  63120. \********************************************************************/
  63121. /*! exports provided: TexturePropertyTabComponent */
  63122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63123. "use strict";
  63124. __webpack_require__.r(__webpack_exports__);
  63125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  63126. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63127. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63128. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63129. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  63130. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  63131. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  63132. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  63133. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63134. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  63135. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  63136. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  63137. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  63138. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  63139. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  63140. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  63141. function TexturePropertyTabComponent(props) {
  63142. var _this = _super.call(this, props) || this;
  63143. var texture = _this.props.node.texture;
  63144. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) !== "http" };
  63145. return _this;
  63146. }
  63147. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  63148. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  63149. var r = Math.random() * 10 | 0;
  63150. return r.toString();
  63151. });
  63152. };
  63153. TexturePropertyTabComponent.prototype.updateAftertextureLoad = function () {
  63154. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63155. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  63156. };
  63157. /**
  63158. * Replaces the texture of the node
  63159. * @param file the file of the texture to use
  63160. */
  63161. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  63162. var _this = this;
  63163. if (!this.props.node) {
  63164. return;
  63165. }
  63166. var texture = this.props.node.texture;
  63167. if (!texture) {
  63168. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](null, this.props.globalState.nodeMaterial.getScene(), false, false);
  63169. texture = this.props.node.texture;
  63170. }
  63171. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  63172. var blob = new Blob([data], { type: "octet/stream" });
  63173. var reader = new FileReader();
  63174. reader.readAsDataURL(blob);
  63175. reader.onloadend = function () {
  63176. var base64data = reader.result;
  63177. if (texture.isCube) {
  63178. var extension = undefined;
  63179. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  63180. extension = ".dds";
  63181. }
  63182. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  63183. extension = ".env";
  63184. }
  63185. texture.updateURL(base64data, extension, function () { return _this.updateAftertextureLoad(); });
  63186. }
  63187. else {
  63188. texture.updateURL(base64data, null, function () { return _this.updateAftertextureLoad(); });
  63189. }
  63190. };
  63191. }, undefined, true);
  63192. };
  63193. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  63194. var _this = this;
  63195. var texture = this.props.node.texture;
  63196. if (!texture) {
  63197. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](url, this.props.globalState.nodeMaterial.getScene(), false, false, undefined, function () {
  63198. _this.updateAftertextureLoad();
  63199. });
  63200. return;
  63201. }
  63202. texture.updateURL(url, null, function () { return _this.updateAftertextureLoad(); });
  63203. };
  63204. TexturePropertyTabComponent.prototype.render = function () {
  63205. var _this = this;
  63206. var url = "";
  63207. var texture = this.props.node.texture;
  63208. if (texture && texture.name && texture.name.substring(0, 4) === "http") {
  63209. url = texture.name;
  63210. }
  63211. url = url.replace(/\?nocache=\d+/, "");
  63212. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63213. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "GENERAL" },
  63214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: "Texture" }),
  63215. 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(); } })),
  63216. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "PROPERTIES" },
  63217. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.node.block }),
  63218. texture &&
  63219. 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) {
  63220. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  63221. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63222. } }),
  63223. texture &&
  63224. 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) {
  63225. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  63226. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63227. } }),
  63228. texture &&
  63229. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Offset U", target: texture, propertyName: "uOffset", onChange: function () {
  63230. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63231. } }),
  63232. texture &&
  63233. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Offset U", target: texture, propertyName: "vOffset", onChange: function () {
  63234. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63235. } }),
  63236. texture &&
  63237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Scale U", target: texture, propertyName: "uScale", onChange: function () {
  63238. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63239. } }),
  63240. texture &&
  63241. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Scale V", target: texture, propertyName: "vScale", onChange: function () {
  63242. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63243. } }),
  63244. texture &&
  63245. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__["SliderLineComponent"], { label: "Rotation U", target: texture, propertyName: "uAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  63246. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63247. } }),
  63248. texture &&
  63249. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__["SliderLineComponent"], { label: "Rotation V", target: texture, propertyName: "vAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  63250. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63251. } }),
  63252. texture &&
  63253. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__["SliderLineComponent"], { label: "Rotation W", target: texture, propertyName: "wAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  63254. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63255. } })),
  63256. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "SOURCE" },
  63257. 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) {
  63258. _this.setState({ isEmbedded: value });
  63259. _this.props.node.texture = null;
  63260. _this.updateAftertextureLoad();
  63261. } }),
  63262. this.state.isEmbedded &&
  63263. 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" }),
  63264. !this.state.isEmbedded &&
  63265. 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); } }),
  63266. !this.state.isEmbedded && url &&
  63267. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }))));
  63268. };
  63269. return TexturePropertyTabComponent;
  63270. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63271. /***/ }),
  63272. /***/ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx":
  63273. /*!*********************************************************************!*\
  63274. !*** ./components/diagram/trigonometry/trigonometryNodeFactory.tsx ***!
  63275. \*********************************************************************/
  63276. /*! exports provided: TrigonometryNodeFactory */
  63277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63278. "use strict";
  63279. __webpack_require__.r(__webpack_exports__);
  63280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeFactory", function() { return TrigonometryNodeFactory; });
  63281. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63282. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  63283. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  63284. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63285. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  63286. /* harmony import */ var _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  63287. /* harmony import */ var _trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trigonometryNodeWidget */ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx");
  63288. /**
  63289. * Node factory which creates editor nodes
  63290. */
  63291. var TrigonometryNodeFactory = /** @class */ (function (_super) {
  63292. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeFactory, _super);
  63293. /**
  63294. * Constructs a GenericNodeFactory
  63295. */
  63296. function TrigonometryNodeFactory(globalState) {
  63297. var _this = _super.call(this, "trigonometry") || this;
  63298. _this._globalState = globalState;
  63299. return _this;
  63300. }
  63301. /**
  63302. * Generates a node widget
  63303. * @param diagramEngine diagram engine
  63304. * @param node node to generate
  63305. * @returns node widget jsx
  63306. */
  63307. TrigonometryNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  63308. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__["TrigonometryNodeWidget"], { node: node, globalState: this._globalState });
  63309. };
  63310. /**
  63311. * Gets a new instance of a node model
  63312. * @returns input node model
  63313. */
  63314. TrigonometryNodeFactory.prototype.getNewInstance = function () {
  63315. return new _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__["TrigonometryNodeModel"]();
  63316. };
  63317. return TrigonometryNodeFactory;
  63318. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  63319. /***/ }),
  63320. /***/ "./components/diagram/trigonometry/trigonometryNodeModel.tsx":
  63321. /*!*******************************************************************!*\
  63322. !*** ./components/diagram/trigonometry/trigonometryNodeModel.tsx ***!
  63323. \*******************************************************************/
  63324. /*! exports provided: TrigonometryNodeModel */
  63325. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63326. "use strict";
  63327. __webpack_require__.r(__webpack_exports__);
  63328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeModel", function() { return TrigonometryNodeModel; });
  63329. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63330. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63331. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63332. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  63333. /* harmony import */ var _trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodePropertyComponent */ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx");
  63334. /**
  63335. * Generic node model which stores information about a node editor block
  63336. */
  63337. var TrigonometryNodeModel = /** @class */ (function (_super) {
  63338. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeModel, _super);
  63339. /**
  63340. * Constructs the node model
  63341. */
  63342. function TrigonometryNodeModel() {
  63343. return _super.call(this, "trigonometry") || this;
  63344. }
  63345. Object.defineProperty(TrigonometryNodeModel.prototype, "trigonometryBlock", {
  63346. get: function () {
  63347. return this.block;
  63348. },
  63349. enumerable: true,
  63350. configurable: true
  63351. });
  63352. TrigonometryNodeModel.prototype.renderProperties = function (globalState) {
  63353. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["TrigonometryPropertyTabComponentProps"], { globalState: globalState, trigonometryNode: this }));
  63354. };
  63355. return TrigonometryNodeModel;
  63356. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  63357. /***/ }),
  63358. /***/ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx":
  63359. /*!*******************************************************************************!*\
  63360. !*** ./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx ***!
  63361. \*******************************************************************************/
  63362. /*! exports provided: TrigonometryPropertyTabComponentProps */
  63363. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63364. "use strict";
  63365. __webpack_require__.r(__webpack_exports__);
  63366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponentProps", function() { return TrigonometryPropertyTabComponentProps; });
  63367. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63368. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63369. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63370. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  63371. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63372. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  63373. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  63374. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  63375. /* 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__);
  63376. var TrigonometryPropertyTabComponentProps = /** @class */ (function (_super) {
  63377. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryPropertyTabComponentProps, _super);
  63378. function TrigonometryPropertyTabComponentProps(props) {
  63379. return _super.call(this, props) || this;
  63380. }
  63381. TrigonometryPropertyTabComponentProps.prototype.render = function () {
  63382. var _this = this;
  63383. var trigonometryBlock = this.props.trigonometryNode.trigonometryBlock;
  63384. var operationOptions = [
  63385. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Cos },
  63386. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Sin },
  63387. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Abs },
  63388. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp },
  63389. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp2 },
  63390. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Round },
  63391. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Ceiling },
  63392. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Floor }
  63393. ];
  63394. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  63395. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  63396. 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 () {
  63397. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63398. } }),
  63399. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: trigonometryBlock.getClassName() })),
  63400. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  63401. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  63402. _this.forceUpdate();
  63403. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  63404. } }))));
  63405. };
  63406. return TrigonometryPropertyTabComponentProps;
  63407. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63408. /***/ }),
  63409. /***/ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx":
  63410. /*!********************************************************************!*\
  63411. !*** ./components/diagram/trigonometry/trigonometryNodeWidget.tsx ***!
  63412. \********************************************************************/
  63413. /*! exports provided: TrigonometryNodeWidget */
  63414. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63415. "use strict";
  63416. __webpack_require__.r(__webpack_exports__);
  63417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeWidget", function() { return TrigonometryNodeWidget; });
  63418. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63419. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63420. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63421. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  63422. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  63423. /* 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__);
  63424. /**
  63425. * Used to display a node block for the node editor
  63426. */
  63427. var TrigonometryNodeWidget = /** @class */ (function (_super) {
  63428. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeWidget, _super);
  63429. /**
  63430. * Creates a GenericNodeWidget
  63431. * @param props
  63432. */
  63433. function TrigonometryNodeWidget(props) {
  63434. var _this = _super.call(this, props) || this;
  63435. _this.state = {};
  63436. if (_this.props.node) {
  63437. _this.props.node.addListener({
  63438. selectionChanged: function () {
  63439. var selected = _this.props.node.selected;
  63440. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  63441. }
  63442. });
  63443. }
  63444. return _this;
  63445. }
  63446. TrigonometryNodeWidget.prototype.render = function () {
  63447. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  63448. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  63449. var trigonometryBlock = this.props.node.trigonometryBlock;
  63450. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock trigonometry" },
  63451. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, trigonometryBlock.name),
  63452. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  63453. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  63454. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  63455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__["TrigonometryBlockOperations"][trigonometryBlock.operation]))));
  63456. };
  63457. return TrigonometryNodeWidget;
  63458. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63459. /***/ }),
  63460. /***/ "./components/log/log.scss":
  63461. /*!*********************************!*\
  63462. !*** ./components/log/log.scss ***!
  63463. \*********************************/
  63464. /*! no static exports found */
  63465. /***/ (function(module, exports, __webpack_require__) {
  63466. 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");
  63467. if(typeof content === 'string') content = [[module.i, content, '']];
  63468. var transform;
  63469. var insertInto;
  63470. var options = {"hmr":true}
  63471. options.transform = transform
  63472. options.insertInto = undefined;
  63473. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  63474. if(content.locals) module.exports = content.locals;
  63475. if(false) {}
  63476. /***/ }),
  63477. /***/ "./components/log/logComponent.tsx":
  63478. /*!*****************************************!*\
  63479. !*** ./components/log/logComponent.tsx ***!
  63480. \*****************************************/
  63481. /*! exports provided: LogEntry, LogComponent */
  63482. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63483. "use strict";
  63484. __webpack_require__.r(__webpack_exports__);
  63485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  63486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  63487. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63488. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63489. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63490. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  63491. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  63492. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  63493. var LogEntry = /** @class */ (function () {
  63494. function LogEntry(message, isError) {
  63495. this.message = message;
  63496. this.isError = isError;
  63497. }
  63498. return LogEntry;
  63499. }());
  63500. var LogComponent = /** @class */ (function (_super) {
  63501. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LogComponent, _super);
  63502. function LogComponent(props) {
  63503. var _this = _super.call(this, props) || this;
  63504. _this.state = { logs: [] };
  63505. return _this;
  63506. }
  63507. LogComponent.prototype.componentDidMount = function () {
  63508. var _this = this;
  63509. this.props.globalState.onLogRequiredObservable.add(function (log) {
  63510. var currentLogs = _this.state.logs;
  63511. currentLogs.push(log);
  63512. _this.setState({ logs: currentLogs });
  63513. });
  63514. };
  63515. LogComponent.prototype.componentDidUpdate = function () {
  63516. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  63517. if (!logConsole) {
  63518. return;
  63519. }
  63520. logConsole.scrollTop = logConsole.scrollHeight;
  63521. };
  63522. LogComponent.prototype.render = function () {
  63523. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  63524. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, l.message));
  63525. })));
  63526. };
  63527. return LogComponent;
  63528. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63529. /***/ }),
  63530. /***/ "./components/nodeList/nodeList.scss":
  63531. /*!*******************************************!*\
  63532. !*** ./components/nodeList/nodeList.scss ***!
  63533. \*******************************************/
  63534. /*! no static exports found */
  63535. /***/ (function(module, exports, __webpack_require__) {
  63536. 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");
  63537. if(typeof content === 'string') content = [[module.i, content, '']];
  63538. var transform;
  63539. var insertInto;
  63540. var options = {"hmr":true}
  63541. options.transform = transform
  63542. options.insertInto = undefined;
  63543. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  63544. if(content.locals) module.exports = content.locals;
  63545. if(false) {}
  63546. /***/ }),
  63547. /***/ "./components/nodeList/nodeListComponent.tsx":
  63548. /*!***************************************************!*\
  63549. !*** ./components/nodeList/nodeListComponent.tsx ***!
  63550. \***************************************************/
  63551. /*! exports provided: NodeListComponent */
  63552. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63553. "use strict";
  63554. __webpack_require__.r(__webpack_exports__);
  63555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  63556. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63557. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63558. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63559. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  63560. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  63561. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  63562. var NodeListComponent = /** @class */ (function (_super) {
  63563. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  63564. function NodeListComponent(props) {
  63565. var _this = _super.call(this, props) || this;
  63566. _this.state = { filter: "" };
  63567. return _this;
  63568. }
  63569. NodeListComponent.prototype.filterContent = function (filter) {
  63570. this.setState({ filter: filter });
  63571. };
  63572. NodeListComponent.prototype.render = function () {
  63573. var _this = this;
  63574. // Block types used to create the menu from
  63575. var allBlocks = {
  63576. Animation: ["BonesBlock", "MorphTargetsBlock"],
  63577. Basic_Math: ["AddBlock", "DivideBlock", "MultiplyBlock", "ScaleBlock", "SubtractBlock", "OneMinusBlock", "MaxBlock", "MinBlock", "LengthBlock", "DistanceBlock", "NegateBlock"],
  63578. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  63579. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "TimeBlock"],
  63580. Interpolation: ["LerpBlock"],
  63581. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  63582. Mesh_Attributes: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock"],
  63583. Output_Blocks: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
  63584. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  63585. Round: ["StepBlock", "RoundBlock", "CeilingBlock", "FloorBlock"],
  63586. Scene_Attributes: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ReflectionTextureBlock", "ViewDirectionBlock", "PerturbNormalBlock"],
  63587. Trigonometry: ["CosBlock", "SinBlock", "AbsBlock", "ExpBlock", "Exp2Block", "SqrtBlock", "PowBlock"],
  63588. Vector_Math: ["CrossBlock", "DotBlock", "TransformBlock", "FresnelBlock"],
  63589. };
  63590. // Create node menu
  63591. var blockMenu = [];
  63592. for (var key in allBlocks) {
  63593. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  63594. .sort(function (a, b) { return a.localeCompare(b); })
  63595. .map(function (block, i) {
  63596. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block });
  63597. });
  63598. if (blockList.length) {
  63599. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key.replace("_", " "), closed: false }, blockList));
  63600. }
  63601. }
  63602. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  63603. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  63604. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  63605. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  63606. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  63607. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  63608. };
  63609. return NodeListComponent;
  63610. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63611. /***/ }),
  63612. /***/ "./components/preview/previewAreaComponent.tsx":
  63613. /*!*****************************************************!*\
  63614. !*** ./components/preview/previewAreaComponent.tsx ***!
  63615. \*****************************************************/
  63616. /*! exports provided: PreviewAreaComponent */
  63617. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63618. "use strict";
  63619. __webpack_require__.r(__webpack_exports__);
  63620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  63621. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63622. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63623. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63624. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63625. /* 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");
  63626. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  63627. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  63628. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  63629. var PreviewAreaComponent = /** @class */ (function (_super) {
  63630. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewAreaComponent, _super);
  63631. function PreviewAreaComponent() {
  63632. return _super !== null && _super.apply(this, arguments) || this;
  63633. }
  63634. PreviewAreaComponent.prototype.changeAnimation = function () {
  63635. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  63636. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  63637. this.forceUpdate();
  63638. };
  63639. PreviewAreaComponent.prototype.changeBackground = function (value) {
  63640. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(value);
  63641. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorR", newColor.r);
  63642. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorG", newColor.g);
  63643. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorB", newColor.b);
  63644. this.props.globalState.backgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromColor3(newColor, 1.0);
  63645. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  63646. };
  63647. PreviewAreaComponent.prototype.render = function () {
  63648. var _this = this;
  63649. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  63650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  63651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" })),
  63652. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  63653. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeAnimation(); }, className: "button" },
  63654. 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"] })),
  63655. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  63656. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "color-picker", id: "color-picker-label" },
  63657. 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"] })),
  63658. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "color-picker", id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } })))));
  63659. };
  63660. return PreviewAreaComponent;
  63661. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63662. /***/ }),
  63663. /***/ "./components/preview/previewManager.ts":
  63664. /*!**********************************************!*\
  63665. !*** ./components/preview/previewManager.ts ***!
  63666. \**********************************************/
  63667. /*! exports provided: PreviewManager */
  63668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63669. "use strict";
  63670. __webpack_require__.r(__webpack_exports__);
  63671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  63672. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/observable");
  63673. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  63674. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  63675. var PreviewManager = /** @class */ (function () {
  63676. function PreviewManager(targetCanvas, globalState) {
  63677. var _this = this;
  63678. this._nodeMaterial = globalState.nodeMaterial;
  63679. this._globalState = globalState;
  63680. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  63681. var serializationObject = nodeMaterial.serialize();
  63682. _this._updatePreview(serializationObject);
  63683. });
  63684. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function () {
  63685. _this._refreshPreviewMesh();
  63686. });
  63687. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  63688. var serializationObject = _this._nodeMaterial.serialize();
  63689. _this._updatePreview(serializationObject);
  63690. });
  63691. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  63692. _this._scene.clearColor = _this._globalState.backgroundColor;
  63693. });
  63694. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  63695. _this._handleAnimations();
  63696. });
  63697. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  63698. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  63699. 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);
  63700. this._camera.lowerRadiusLimit = 3;
  63701. this._camera.upperRadiusLimit = 10;
  63702. this._camera.wheelPrecision = 20;
  63703. this._camera.minZ = 0.1;
  63704. this._camera.attachControl(targetCanvas, false);
  63705. this._refreshPreviewMesh();
  63706. this._engine.runRenderLoop(function () {
  63707. _this._engine.resize();
  63708. _this._scene.render();
  63709. });
  63710. }
  63711. PreviewManager.prototype._handleAnimations = function () {
  63712. this._scene.stopAllAnimations();
  63713. if (this._globalState.rotatePreview) {
  63714. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  63715. var root = _a[_i];
  63716. var transformNode = root;
  63717. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh") {
  63718. if (transformNode.rotationQuaternion) {
  63719. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  63720. transformNode.rotationQuaternion = null;
  63721. }
  63722. 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);
  63723. }
  63724. }
  63725. }
  63726. };
  63727. PreviewManager.prototype._prepareMeshes = function () {
  63728. // Light
  63729. if (!this._scene.lights.length) {
  63730. 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);
  63731. }
  63732. // Framing
  63733. this._camera.useFramingBehavior = true;
  63734. var framingBehavior = this._camera.getBehaviorByName("Framing");
  63735. framingBehavior.framingTime = 0;
  63736. framingBehavior.elevationReturnTime = -1;
  63737. if (this._scene.meshes.length) {
  63738. var worldExtends = this._scene.getWorldExtends();
  63739. this._camera.lowerRadiusLimit = null;
  63740. this._camera.upperRadiusLimit = null;
  63741. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  63742. }
  63743. this._camera.pinchPrecision = 200 / this._camera.radius;
  63744. this._camera.upperRadiusLimit = 5 * this._camera.radius;
  63745. this._camera.wheelDeltaPercentage = 0.01;
  63746. this._camera.pinchDeltaPercentage = 0.01;
  63747. // Animations
  63748. this._handleAnimations();
  63749. // Material
  63750. var serializationObject = this._nodeMaterial.serialize();
  63751. this._updatePreview(serializationObject);
  63752. };
  63753. PreviewManager.prototype._refreshPreviewMesh = function () {
  63754. var _this = this;
  63755. if (this._currentType !== this._globalState.previewMeshType || this._currentType === _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom) {
  63756. this._currentType = this._globalState.previewMeshType;
  63757. if (this._meshes && this._meshes.length) {
  63758. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63759. var mesh = _a[_i];
  63760. mesh.dispose();
  63761. }
  63762. }
  63763. this._meshes = [];
  63764. var lights = this._scene.lights.slice(0);
  63765. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  63766. var light = lights_1[_b];
  63767. light.dispose();
  63768. }
  63769. switch (this._globalState.previewMeshType) {
  63770. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  63771. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateBox("dummy-box", 2, this._scene));
  63772. break;
  63773. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  63774. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  63775. break;
  63776. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  63777. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  63778. break;
  63779. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  63780. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  63781. var _a;
  63782. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  63783. _this._prepareMeshes();
  63784. });
  63785. return;
  63786. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Plane:
  63787. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene));
  63788. break;
  63789. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].ShaderBall:
  63790. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  63791. var _a;
  63792. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  63793. _this._prepareMeshes();
  63794. });
  63795. return;
  63796. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom:
  63797. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewMeshFile, this._scene).then(function () {
  63798. var _a;
  63799. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  63800. _this._prepareMeshes();
  63801. });
  63802. return;
  63803. }
  63804. this._prepareMeshes();
  63805. }
  63806. };
  63807. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  63808. return material.forceCompilationAsync(mesh);
  63809. };
  63810. PreviewManager.prototype._updatePreview = function (serializationObject) {
  63811. var _this = this;
  63812. try {
  63813. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  63814. if (this._meshes.length) {
  63815. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  63816. Promise.all(tasks).then(function () {
  63817. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  63818. var mesh = _a[_i];
  63819. mesh.material = tempMaterial_1;
  63820. }
  63821. if (_this._material) {
  63822. _this._material.dispose();
  63823. }
  63824. _this._material = tempMaterial_1;
  63825. });
  63826. }
  63827. else {
  63828. this._material = tempMaterial_1;
  63829. }
  63830. }
  63831. catch (err) {
  63832. // Ignore the error
  63833. }
  63834. };
  63835. PreviewManager.prototype.dispose = function () {
  63836. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  63837. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  63838. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  63839. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  63840. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  63841. if (this._material) {
  63842. this._material.dispose();
  63843. }
  63844. this._camera.dispose();
  63845. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  63846. var mesh = _a[_i];
  63847. mesh.dispose();
  63848. }
  63849. if (this._light) {
  63850. this._light.dispose();
  63851. }
  63852. this._scene.dispose();
  63853. this._engine.dispose();
  63854. };
  63855. return PreviewManager;
  63856. }());
  63857. /***/ }),
  63858. /***/ "./components/preview/previewMeshControlComponent.tsx":
  63859. /*!************************************************************!*\
  63860. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  63861. \************************************************************/
  63862. /*! exports provided: PreviewMeshControlComponent */
  63863. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63864. "use strict";
  63865. __webpack_require__.r(__webpack_exports__);
  63866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  63867. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63868. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63869. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63870. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  63871. /* 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");
  63872. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  63873. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  63874. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  63875. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewMeshControlComponent, _super);
  63876. function PreviewMeshControlComponent() {
  63877. return _super !== null && _super.apply(this, arguments) || this;
  63878. }
  63879. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  63880. if (this.props.globalState.previewMeshType === newOne) {
  63881. return;
  63882. }
  63883. this.props.globalState.previewMeshType = newOne;
  63884. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  63885. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("PreviewMeshType", newOne);
  63886. this.forceUpdate();
  63887. };
  63888. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  63889. var files = evt.target.files;
  63890. if (files && files.length) {
  63891. var file = files[0];
  63892. this.props.globalState.previewMeshFile = file;
  63893. this.props.globalState.previewMeshType = _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Custom;
  63894. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  63895. this.forceUpdate();
  63896. }
  63897. document.getElementById("file-picker").value = "";
  63898. };
  63899. PreviewMeshControlComponent.prototype.render = function () {
  63900. var _this = this;
  63901. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  63902. 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" : "") },
  63903. 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"] })),
  63904. 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" : "") },
  63905. 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"] })),
  63906. 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" : "") },
  63907. 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"] })),
  63908. 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" : "") },
  63909. 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"] })),
  63910. 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" : "") },
  63911. 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"] })),
  63912. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].ShaderBall); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].ShaderBall ? " selected" : "") },
  63913. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faDotCircle"] })),
  63914. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  63915. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-picker", id: "file-picker-label" },
  63916. 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"] })),
  63917. 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" }))));
  63918. };
  63919. return PreviewMeshControlComponent;
  63920. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63921. /***/ }),
  63922. /***/ "./components/preview/previewMeshType.ts":
  63923. /*!***********************************************!*\
  63924. !*** ./components/preview/previewMeshType.ts ***!
  63925. \***********************************************/
  63926. /*! exports provided: PreviewMeshType */
  63927. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63928. "use strict";
  63929. __webpack_require__.r(__webpack_exports__);
  63930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  63931. var PreviewMeshType;
  63932. (function (PreviewMeshType) {
  63933. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  63934. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  63935. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  63936. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  63937. PreviewMeshType[PreviewMeshType["Plane"] = 4] = "Plane";
  63938. PreviewMeshType[PreviewMeshType["ShaderBall"] = 5] = "ShaderBall";
  63939. PreviewMeshType[PreviewMeshType["Custom"] = 6] = "Custom";
  63940. })(PreviewMeshType || (PreviewMeshType = {}));
  63941. /***/ }),
  63942. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  63943. /*!**************************************************************************!*\
  63944. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  63945. \**************************************************************************/
  63946. /*! exports provided: Color3PropertyTabComponent */
  63947. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63948. "use strict";
  63949. __webpack_require__.r(__webpack_exports__);
  63950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  63951. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63952. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63953. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63954. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  63955. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  63956. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3PropertyTabComponent, _super);
  63957. function Color3PropertyTabComponent() {
  63958. return _super !== null && _super.apply(this, arguments) || this;
  63959. }
  63960. Color3PropertyTabComponent.prototype.render = function () {
  63961. var _this = this;
  63962. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63963. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63964. } }));
  63965. };
  63966. return Color3PropertyTabComponent;
  63967. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63968. /***/ }),
  63969. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  63970. /*!*************************************************************************!*\
  63971. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  63972. \*************************************************************************/
  63973. /*! exports provided: FloatPropertyTabComponent */
  63974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63975. "use strict";
  63976. __webpack_require__.r(__webpack_exports__);
  63977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  63978. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  63979. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  63980. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  63981. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  63982. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  63983. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatPropertyTabComponent, _super);
  63984. function FloatPropertyTabComponent() {
  63985. return _super !== null && _super.apply(this, arguments) || this;
  63986. }
  63987. FloatPropertyTabComponent.prototype.render = function () {
  63988. var _this = this;
  63989. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  63990. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  63991. } }));
  63992. };
  63993. return FloatPropertyTabComponent;
  63994. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  63995. /***/ }),
  63996. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  63997. /*!**************************************************************************!*\
  63998. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  63999. \**************************************************************************/
  64000. /*! exports provided: MatrixPropertyTabComponent */
  64001. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64002. "use strict";
  64003. __webpack_require__.r(__webpack_exports__);
  64004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  64005. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64006. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64007. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64008. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  64009. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  64010. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixPropertyTabComponent, _super);
  64011. function MatrixPropertyTabComponent() {
  64012. return _super !== null && _super.apply(this, arguments) || this;
  64013. }
  64014. MatrixPropertyTabComponent.prototype.render = function () {
  64015. var _this = this;
  64016. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__["MatrixLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  64017. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  64018. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  64019. _this.props.inputBlock.matrixMode = mode;
  64020. } }));
  64021. };
  64022. return MatrixPropertyTabComponent;
  64023. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64024. /***/ }),
  64025. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  64026. /*!***************************************************************************!*\
  64027. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  64028. \***************************************************************************/
  64029. /*! exports provided: Vector2PropertyTabComponent */
  64030. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64031. "use strict";
  64032. __webpack_require__.r(__webpack_exports__);
  64033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  64034. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64035. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64036. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64037. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  64038. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  64039. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  64040. function Vector2PropertyTabComponent() {
  64041. return _super !== null && _super.apply(this, arguments) || this;
  64042. }
  64043. Vector2PropertyTabComponent.prototype.render = function () {
  64044. var _this = this;
  64045. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  64046. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  64047. } }));
  64048. };
  64049. return Vector2PropertyTabComponent;
  64050. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64051. /***/ }),
  64052. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  64053. /*!***************************************************************************!*\
  64054. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  64055. \***************************************************************************/
  64056. /*! exports provided: Vector3PropertyTabComponent */
  64057. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64058. "use strict";
  64059. __webpack_require__.r(__webpack_exports__);
  64060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  64061. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64062. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64063. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64064. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  64065. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  64066. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  64067. function Vector3PropertyTabComponent() {
  64068. return _super !== null && _super.apply(this, arguments) || this;
  64069. }
  64070. Vector3PropertyTabComponent.prototype.render = function () {
  64071. var _this = this;
  64072. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  64073. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  64074. } }));
  64075. };
  64076. return Vector3PropertyTabComponent;
  64077. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64078. /***/ }),
  64079. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  64080. /*!***************************************************************************!*\
  64081. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  64082. \***************************************************************************/
  64083. /*! exports provided: Vector4PropertyTabComponent */
  64084. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64085. "use strict";
  64086. __webpack_require__.r(__webpack_exports__);
  64087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  64088. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64089. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64090. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64091. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  64092. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  64093. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4PropertyTabComponent, _super);
  64094. function Vector4PropertyTabComponent() {
  64095. return _super !== null && _super.apply(this, arguments) || this;
  64096. }
  64097. Vector4PropertyTabComponent.prototype.render = function () {
  64098. var _this = this;
  64099. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  64100. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  64101. } }));
  64102. };
  64103. return Vector4PropertyTabComponent;
  64104. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64105. /***/ }),
  64106. /***/ "./components/propertyTab/propertyTab.scss":
  64107. /*!*************************************************!*\
  64108. !*** ./components/propertyTab/propertyTab.scss ***!
  64109. \*************************************************/
  64110. /*! no static exports found */
  64111. /***/ (function(module, exports, __webpack_require__) {
  64112. 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");
  64113. if(typeof content === 'string') content = [[module.i, content, '']];
  64114. var transform;
  64115. var insertInto;
  64116. var options = {"hmr":true}
  64117. options.transform = transform
  64118. options.insertInto = undefined;
  64119. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  64120. if(content.locals) module.exports = content.locals;
  64121. if(false) {}
  64122. /***/ }),
  64123. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  64124. /*!*********************************************************!*\
  64125. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  64126. \*********************************************************/
  64127. /*! exports provided: PropertyTabComponent */
  64128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64129. "use strict";
  64130. __webpack_require__.r(__webpack_exports__);
  64131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  64132. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64133. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64134. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  64135. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  64136. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  64137. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  64138. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  64139. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  64140. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  64141. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  64142. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  64143. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  64144. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  64145. var PropertyTabComponent = /** @class */ (function (_super) {
  64146. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  64147. function PropertyTabComponent(props) {
  64148. var _this = _super.call(this, props) || this;
  64149. _this.state = { currentNode: null };
  64150. return _this;
  64151. }
  64152. PropertyTabComponent.prototype.componentDidMount = function () {
  64153. var _this = this;
  64154. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  64155. _this.setState({ currentNode: block });
  64156. });
  64157. };
  64158. PropertyTabComponent.prototype.load = function (file) {
  64159. var _this = this;
  64160. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  64161. var decoder = new TextDecoder("utf-8");
  64162. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  64163. }, undefined, true);
  64164. };
  64165. PropertyTabComponent.prototype.save = function () {
  64166. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  64167. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  64168. };
  64169. PropertyTabComponent.prototype.customSave = function () {
  64170. var _this = this;
  64171. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  64172. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  64173. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  64174. }).catch(function (err) {
  64175. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  64176. });
  64177. };
  64178. PropertyTabComponent.prototype.render = function () {
  64179. var _this = this;
  64180. if (this.state.currentNode) {
  64181. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  64182. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  64183. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  64184. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  64185. this.state.currentNode.renderProperties(this.props.globalState)));
  64186. }
  64187. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  64188. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  64189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  64190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  64191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  64192. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  64193. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  64194. _this.props.globalState.nodeMaterial.setToDefault();
  64195. _this.props.globalState.onResetRequiredObservable.notifyObservers(null);
  64196. } })),
  64197. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  64198. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  64199. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  64200. } }),
  64201. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  64202. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  64203. } })),
  64204. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  64205. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Embed textures when saving", isSelected: function () { return _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].ReadBoolean("EmbedTextures", true); }, onSelect: function (value) {
  64206. _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].StoreBoolean("EmbedTextures", value);
  64207. } })),
  64208. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  64209. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  64210. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  64211. _this.save();
  64212. } }),
  64213. this.props.globalState.customSave &&
  64214. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  64215. _this.customSave();
  64216. } }),
  64217. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  64218. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  64219. } }),
  64220. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  64221. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  64222. } })))));
  64223. };
  64224. return PropertyTabComponent;
  64225. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  64226. /***/ }),
  64227. /***/ "./dataStorage.ts":
  64228. /*!************************!*\
  64229. !*** ./dataStorage.ts ***!
  64230. \************************/
  64231. /*! exports provided: DataStorage */
  64232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64233. "use strict";
  64234. __webpack_require__.r(__webpack_exports__);
  64235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStorage", function() { return DataStorage; });
  64236. var DataStorage = /** @class */ (function () {
  64237. function DataStorage() {
  64238. }
  64239. DataStorage.ReadBoolean = function (key, defaultValue) {
  64240. try {
  64241. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  64242. return this._InMemoryStorage[key];
  64243. }
  64244. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  64245. return localStorage.getItem(key) === "true";
  64246. }
  64247. else {
  64248. return defaultValue;
  64249. }
  64250. }
  64251. catch (e) {
  64252. this._InMemoryStorage = {};
  64253. this._InMemoryStorage[key] = defaultValue;
  64254. return defaultValue;
  64255. }
  64256. };
  64257. DataStorage.StoreBoolean = function (key, value) {
  64258. try {
  64259. if (this._InMemoryStorage) {
  64260. this._InMemoryStorage[key] = value;
  64261. }
  64262. else if (typeof (Storage) !== "undefined") {
  64263. localStorage.setItem(key, value ? "true" : "false");
  64264. }
  64265. }
  64266. catch (e) {
  64267. this._InMemoryStorage = {};
  64268. this._InMemoryStorage[key] = value;
  64269. }
  64270. };
  64271. DataStorage.ReadNumber = function (key, defaultValue) {
  64272. try {
  64273. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  64274. return this._InMemoryStorage[key];
  64275. }
  64276. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  64277. return parseFloat(localStorage.getItem(key));
  64278. }
  64279. else {
  64280. return defaultValue;
  64281. }
  64282. }
  64283. catch (e) {
  64284. this._InMemoryStorage = {};
  64285. this._InMemoryStorage[key] = defaultValue;
  64286. return defaultValue;
  64287. }
  64288. };
  64289. DataStorage.StoreNumber = function (key, value) {
  64290. try {
  64291. if (this._InMemoryStorage) {
  64292. this._InMemoryStorage[key] = value;
  64293. }
  64294. else if (typeof (Storage) !== "undefined") {
  64295. localStorage.setItem(key, value.toString());
  64296. }
  64297. }
  64298. catch (e) {
  64299. this._InMemoryStorage = {};
  64300. this._InMemoryStorage[key] = value;
  64301. }
  64302. };
  64303. return DataStorage;
  64304. }());
  64305. /***/ }),
  64306. /***/ "./globalState.ts":
  64307. /*!************************!*\
  64308. !*** ./globalState.ts ***!
  64309. \************************/
  64310. /*! exports provided: GlobalState */
  64311. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64312. "use strict";
  64313. __webpack_require__.r(__webpack_exports__);
  64314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  64315. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  64316. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  64317. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  64318. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  64319. var GlobalState = /** @class */ (function () {
  64320. function GlobalState() {
  64321. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64322. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64323. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64324. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64325. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64326. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64327. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64328. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64329. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64330. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64331. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  64332. this.blockKeyboardEvents = false;
  64333. this.previewMeshType = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  64334. var r = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorR", 0.37);
  64335. var g = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorG", 0.37);
  64336. var b = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorB", 0.37);
  64337. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  64338. }
  64339. return GlobalState;
  64340. }());
  64341. /***/ }),
  64342. /***/ "./graphEditor.tsx":
  64343. /*!*************************!*\
  64344. !*** ./graphEditor.tsx ***!
  64345. \*************************/
  64346. /*! exports provided: NodeCreationOptions, GraphEditor */
  64347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64348. "use strict";
  64349. __webpack_require__.r(__webpack_exports__);
  64350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  64351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  64352. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64353. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  64354. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  64355. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  64356. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  64357. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  64358. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  64359. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  64360. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  64361. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  64362. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  64363. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  64364. /* harmony import */ var _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  64365. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  64366. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  64367. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/observable");
  64368. /* 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__);
  64369. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  64370. /* harmony import */ var _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/diagram/light/lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  64371. /* harmony import */ var _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/diagram/light/lightNodeFactory */ "./components/diagram/light/lightNodeFactory.tsx");
  64372. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  64373. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  64374. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  64375. /* harmony import */ var _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/diagram/link/advancedLinkFactory */ "./components/diagram/link/advancedLinkFactory.tsx");
  64376. /* harmony import */ var _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeFactory */ "./components/diagram/remap/remapNodeFactory.tsx");
  64377. /* harmony import */ var _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  64378. /* harmony import */ var _graphHelper__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./graphHelper */ "./graphHelper.ts");
  64379. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  64380. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  64381. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeFactory */ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx");
  64382. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  64383. /* harmony import */ var _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeFactory */ "./components/diagram/clamp/clampNodeFactory.tsx");
  64384. /* harmony import */ var _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  64385. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeFactory */ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx");
  64386. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  64387. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  64388. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  64389. __webpack_require__(/*! ./main.scss */ "./main.scss");
  64390. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  64391. var NodeCreationOptions = /** @class */ (function () {
  64392. function NodeCreationOptions() {
  64393. }
  64394. return NodeCreationOptions;
  64395. }());
  64396. var GraphEditor = /** @class */ (function (_super) {
  64397. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  64398. function GraphEditor(props) {
  64399. var _this = _super.call(this, props) || this;
  64400. _this.NodeWidth = 100;
  64401. _this._leftWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("LeftWidth", 200);
  64402. _this._rightWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("RightWidth", 300);
  64403. _this._nodes = new Array();
  64404. _this._blocks = new Array();
  64405. _this._copiedNodes = [];
  64406. _this._mouseLocationX = 0;
  64407. _this._mouseLocationY = 0;
  64408. /** @hidden */
  64409. _this._toAdd = [];
  64410. // setup the diagram engine
  64411. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  64412. _this._engine.installDefaultFactories();
  64413. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  64414. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  64415. _this._engine.registerNodeFactory(new _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__["LightNodeFactory"](_this.props.globalState));
  64416. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  64417. _this._engine.registerNodeFactory(new _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__["RemapNodeFactory"](_this.props.globalState));
  64418. _this._engine.registerNodeFactory(new _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__["TrigonometryNodeFactory"](_this.props.globalState));
  64419. _this._engine.registerNodeFactory(new _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__["ClampNodeFactory"](_this.props.globalState));
  64420. _this._engine.registerNodeFactory(new _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__["LightInformationNodeFactory"](_this.props.globalState));
  64421. _this._engine.registerLinkFactory(new _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__["AdvancedLinkFactory"]());
  64422. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  64423. if (_this.props.globalState.nodeMaterial) {
  64424. _this.buildMaterial();
  64425. }
  64426. _this.forceUpdate();
  64427. });
  64428. _this.props.globalState.onResetRequiredObservable.add(function (locations) {
  64429. _this.build(false, locations);
  64430. if (_this.props.globalState.nodeMaterial) {
  64431. _this.buildMaterial();
  64432. }
  64433. });
  64434. _this.props.globalState.onUpdateRequiredObservable.add(function () {
  64435. _this.forceUpdate();
  64436. });
  64437. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  64438. _this.zoomToFit();
  64439. });
  64440. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  64441. _this.reOrganize();
  64442. });
  64443. _this.props.globalState.onGetNodeFromBlock = function (block) {
  64444. return _this._nodes.filter(function (n) { return n.block === block; })[0];
  64445. };
  64446. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  64447. if (!evt.ctrlKey) {
  64448. return;
  64449. }
  64450. if (evt.key === "c") {
  64451. var selectedItems = _this._engine.diagramModel.getSelectedItems();
  64452. if (!selectedItems.length) {
  64453. return;
  64454. }
  64455. var selectedItem = selectedItems[0];
  64456. if (!selectedItem.block) {
  64457. return;
  64458. }
  64459. _this._copiedNodes = selectedItems.map(function (i) { return i; });
  64460. }
  64461. else if (evt.key === "v") {
  64462. if (!_this._copiedNodes.length) {
  64463. return;
  64464. }
  64465. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  64466. var zoomLevel = _this._engine.diagramModel.getZoomLevel() / 100.0;
  64467. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._engine.diagramModel.getOffsetX() - _this.NodeWidth) / zoomLevel;
  64468. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  64469. var originalNode = null;
  64470. for (var _i = 0, _a = _this._copiedNodes; _i < _a.length; _i++) {
  64471. var node = _a[_i];
  64472. var block = node.block;
  64473. if (!block) {
  64474. continue;
  64475. }
  64476. var clone = block.clone(_this.props.globalState.nodeMaterial.getScene());
  64477. if (!clone) {
  64478. return;
  64479. }
  64480. var newNode = _this.createNodeFromObject({ nodeMaterialBlock: clone });
  64481. var x = 0;
  64482. var y = 0;
  64483. if (originalNode) {
  64484. x = currentX + node.x - originalNode.x;
  64485. y = currentY + node.y - originalNode.y;
  64486. }
  64487. else {
  64488. originalNode = node;
  64489. x = currentX;
  64490. y = currentY;
  64491. }
  64492. newNode.setPosition(x, y);
  64493. }
  64494. _this._engine.repaintCanvas();
  64495. }
  64496. }, false);
  64497. _this.build(true);
  64498. return _this;
  64499. }
  64500. /**
  64501. * Creates a node and recursivly creates its parent nodes from it's input
  64502. * @param nodeMaterialBlock
  64503. */
  64504. GraphEditor.prototype.createNodeFromObject = function (options) {
  64505. if (this._blocks.indexOf(options.nodeMaterialBlock) !== -1) {
  64506. return this._nodes.filter(function (n) { return n.block === options.nodeMaterialBlock; })[0];
  64507. }
  64508. this._blocks.push(options.nodeMaterialBlock);
  64509. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(options.nodeMaterialBlock) === -1) {
  64510. this.props.globalState.nodeMaterial.attachedBlocks.push(options.nodeMaterialBlock);
  64511. }
  64512. // Create new node in the graph
  64513. var newNode;
  64514. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  64515. newNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  64516. }
  64517. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightBlock"]) {
  64518. newNode = new _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__["LightNodeModel"]();
  64519. }
  64520. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"]) {
  64521. newNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  64522. }
  64523. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TrigonometryBlock"]) {
  64524. newNode = new _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__["TrigonometryNodeModel"]();
  64525. }
  64526. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["RemapBlock"]) {
  64527. newNode = new _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__["RemapNodeModel"]();
  64528. }
  64529. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["ClampBlock"]) {
  64530. newNode = new _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__["ClampNodeModel"]();
  64531. }
  64532. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightInformationBlock"]) {
  64533. newNode = new _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__["LightInformationNodeModel"]();
  64534. }
  64535. else {
  64536. newNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  64537. }
  64538. if (options.nodeMaterialBlock.isFinalMerger) {
  64539. this.props.globalState.nodeMaterial.addOutputNode(options.nodeMaterialBlock);
  64540. }
  64541. this._nodes.push(newNode);
  64542. this._model.addAll(newNode);
  64543. if (options.nodeMaterialBlock) {
  64544. newNode.prepare(options, this._nodes, this._model, this);
  64545. }
  64546. return newNode;
  64547. };
  64548. GraphEditor.prototype.addValueNode = function (type) {
  64549. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetConnectionNodeTypeFromString(type);
  64550. var newInputBlock = new babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"](type, undefined, nodeType);
  64551. var localNode = this.createNodeFromObject({ type: type, nodeMaterialBlock: newInputBlock });
  64552. return localNode;
  64553. };
  64554. GraphEditor.prototype.onWidgetKeyUp = function (evt) {
  64555. var widget = this.refs["test"];
  64556. if (!widget || this.props.globalState.blockKeyboardEvents) {
  64557. return;
  64558. }
  64559. widget.onKeyUp(evt);
  64560. };
  64561. GraphEditor.prototype.componentDidMount = function () {
  64562. if (this.props.globalState.hostDocument) {
  64563. var widget = this.refs["test"];
  64564. widget.setState({ document: this.props.globalState.hostDocument });
  64565. this._onWidgetKeyUpPointer = this.onWidgetKeyUp.bind(this);
  64566. this.props.globalState.hostDocument.addEventListener("keyup", this._onWidgetKeyUpPointer, false);
  64567. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  64568. }
  64569. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  64570. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  64571. }
  64572. };
  64573. GraphEditor.prototype.componentWillUnmount = function () {
  64574. if (this.props.globalState.hostDocument) {
  64575. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  64576. }
  64577. if (this._previewManager) {
  64578. this._previewManager.dispose();
  64579. }
  64580. };
  64581. GraphEditor.prototype.zoomToFit = function (retry) {
  64582. var _this = this;
  64583. if (retry === void 0) { retry = 0; }
  64584. var xFactor = this._engine.canvas.clientWidth / this._engine.canvas.scrollWidth;
  64585. var yFactor = this._engine.canvas.clientHeight / this._engine.canvas.scrollHeight;
  64586. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  64587. if (zoomFactor === 1) {
  64588. return;
  64589. }
  64590. this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel() * zoomFactor);
  64591. this._engine.diagramModel.setOffset(0, 0);
  64592. this._engine.repaintCanvas();
  64593. retry++;
  64594. if (retry < 4) {
  64595. setTimeout(function () { return _this.zoomToFit(retry); }, 1);
  64596. }
  64597. };
  64598. GraphEditor.prototype.buildMaterial = function () {
  64599. if (!this.props.globalState.nodeMaterial) {
  64600. return;
  64601. }
  64602. try {
  64603. this.props.globalState.nodeMaterial.build(true);
  64604. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"]("Node material build successful", false));
  64605. }
  64606. catch (err) {
  64607. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"](err, true));
  64608. }
  64609. };
  64610. GraphEditor.prototype.applyFragmentOutputConstraints = function (rootInput) {
  64611. var model = rootInput.parent;
  64612. for (var inputKey in model.getPorts()) {
  64613. var input = model.getPorts()[inputKey];
  64614. if (rootInput.name === "rgba" && (inputKey === "a" || inputKey === "rgb")
  64615. ||
  64616. (rootInput.name === "a" || rootInput.name === "rgb") && inputKey === "rgba") {
  64617. for (var key in input.links) {
  64618. var other = input.links[key];
  64619. other.remove();
  64620. }
  64621. continue;
  64622. }
  64623. }
  64624. };
  64625. GraphEditor.prototype.build = function (needToWait, locations) {
  64626. var _this = this;
  64627. if (needToWait === void 0) { needToWait = false; }
  64628. if (locations === void 0) { locations = null; }
  64629. // setup the diagram model
  64630. this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  64631. this._nodes = [];
  64632. this._blocks = [];
  64633. // Listen to events
  64634. this._model.addListener({
  64635. nodesUpdated: function (e) {
  64636. if (!e.isCreated) {
  64637. // Block is deleted
  64638. var targetBlock = e.node.block;
  64639. if (targetBlock) {
  64640. var attachedBlockIndex = _this.props.globalState.nodeMaterial.attachedBlocks.indexOf(targetBlock);
  64641. if (attachedBlockIndex > -1) {
  64642. _this.props.globalState.nodeMaterial.attachedBlocks.splice(attachedBlockIndex, 1);
  64643. }
  64644. if (targetBlock.isFinalMerger) {
  64645. _this.props.globalState.nodeMaterial.removeOutputNode(targetBlock);
  64646. }
  64647. var blockIndex = _this._blocks.indexOf(targetBlock);
  64648. if (blockIndex > -1) {
  64649. _this._blocks.splice(blockIndex, 1);
  64650. }
  64651. }
  64652. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64653. }
  64654. else {
  64655. }
  64656. },
  64657. linksUpdated: function (e) {
  64658. if (!e.isCreated) {
  64659. // Link is deleted
  64660. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  64661. var sourcePort = e.link.sourcePort;
  64662. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(sourcePort, e.link.targetPort);
  64663. if (link) {
  64664. if (link.input.connection && link.output.connection) {
  64665. if (link.input.connection.connectedPoint) {
  64666. // Disconnect standard nodes
  64667. link.output.connection.disconnectFrom(link.input.connection);
  64668. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  64669. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  64670. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  64671. }
  64672. }
  64673. }
  64674. else {
  64675. if (!e.link.targetPort && e.link.sourcePort && e.link.sourcePort.position === "input" && !e.link.sourcePort.connection.isConnected) {
  64676. // Drag from input port, we are going to build an input for it
  64677. var input_1 = e.link.sourcePort;
  64678. if (input_1.connection.type == babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["NodeMaterialBlockConnectionPointTypes"].AutoDetect) {
  64679. return;
  64680. }
  64681. var nodeModel_1 = _this.addValueNode(_blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetStringFromConnectionNodeType(input_1.connection.type));
  64682. var link_1 = nodeModel_1.ports.output.link(input_1);
  64683. nodeModel_1.x = e.link.points[1].x - _this.NodeWidth;
  64684. nodeModel_1.y = e.link.points[1].y;
  64685. setTimeout(function () {
  64686. _this._model.addLink(link_1);
  64687. input_1.syncWithNodeMaterialConnectionPoint(input_1.connection);
  64688. nodeModel_1.ports.output.syncWithNodeMaterialConnectionPoint(nodeModel_1.ports.output.connection);
  64689. var isFragmentOutput = input_1.parent.block.getClassName() === "FragmentOutputBlock";
  64690. if (isFragmentOutput) {
  64691. _this.applyFragmentOutputConstraints(input_1);
  64692. }
  64693. _this.forceUpdate();
  64694. }, 1);
  64695. nodeModel_1.ports.output.connection.connectTo(input_1.connection);
  64696. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  64697. }
  64698. }
  64699. _this.forceUpdate();
  64700. return;
  64701. }
  64702. else {
  64703. e.link.addListener({
  64704. sourcePortChanged: function () {
  64705. },
  64706. targetPortChanged: function (evt) {
  64707. // Link is created with a target port
  64708. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  64709. if (link) {
  64710. if (link.output.connection && link.input.connection) {
  64711. var currentBlock = link.input.connection.ownerBlock;
  64712. var isFragmentOutput = currentBlock.getClassName() === "FragmentOutputBlock";
  64713. // Disconnect previous connection
  64714. for (var key in link.input.links) {
  64715. var other = link.input.links[key];
  64716. var sourcePortConnection = other.getSourcePort().connection;
  64717. var targetPortConnection = other.getTargetPort().connection;
  64718. if (sourcePortConnection !== link.output.connection &&
  64719. targetPortConnection !== link.output.connection) {
  64720. other.remove();
  64721. }
  64722. }
  64723. if (link.output.connection.canConnectTo(link.input.connection)) {
  64724. if (isFragmentOutput) {
  64725. _this.applyFragmentOutputConstraints(link.input);
  64726. }
  64727. link.output.connection.connectTo(link.input.connection);
  64728. }
  64729. else {
  64730. evt.entity.remove();
  64731. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Cannot connect two different connection types");
  64732. }
  64733. _this.forceUpdate();
  64734. }
  64735. if (_this.props.globalState.nodeMaterial) {
  64736. _this.buildMaterial();
  64737. }
  64738. }
  64739. }
  64740. });
  64741. }
  64742. }
  64743. });
  64744. // Load graph of nodes from the material
  64745. if (this.props.globalState.nodeMaterial) {
  64746. var material = this.props.globalState.nodeMaterial;
  64747. material._vertexOutputNodes.forEach(function (n) {
  64748. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64749. });
  64750. material._fragmentOutputNodes.forEach(function (n) {
  64751. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64752. });
  64753. material.attachedBlocks.forEach(function (n) {
  64754. _this.createNodeFromObject({ nodeMaterialBlock: n });
  64755. });
  64756. }
  64757. // load model into engine
  64758. setTimeout(function () {
  64759. var _a;
  64760. if (_this._toAdd) {
  64761. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  64762. }
  64763. _this._toAdd = null;
  64764. _this._engine.setDiagramModel(_this._model);
  64765. _this.forceUpdate();
  64766. _this.reOrganize(locations);
  64767. }, needToWait ? 500 : 1);
  64768. };
  64769. GraphEditor.prototype.reOrganize = function (locations) {
  64770. var _this = this;
  64771. if (locations === void 0) { locations = null; }
  64772. if (!locations) {
  64773. var nodes = _graphHelper__WEBPACK_IMPORTED_MODULE_23__["GraphHelper"].DistributeGraph(this._model);
  64774. nodes.forEach(function (node) {
  64775. for (var nodeName in _this._model.nodes) {
  64776. var modelNode = _this._model.nodes[nodeName];
  64777. if (modelNode.id === node.id) {
  64778. modelNode.setPosition(node.x - node.width / 2, node.y - node.height / 2);
  64779. return;
  64780. }
  64781. }
  64782. });
  64783. }
  64784. else {
  64785. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  64786. var location = locations_1[_i];
  64787. for (var _a = 0, _b = this._nodes; _a < _b.length; _a++) {
  64788. var node = _b[_a];
  64789. if (node.block && node.block.uniqueId === location.blockId) {
  64790. node.setPosition(location.x, location.y);
  64791. break;
  64792. }
  64793. }
  64794. }
  64795. }
  64796. this._engine.repaintCanvas();
  64797. };
  64798. GraphEditor.prototype.onPointerDown = function (evt) {
  64799. this._startX = evt.clientX;
  64800. this._moveInProgress = true;
  64801. evt.currentTarget.setPointerCapture(evt.pointerId);
  64802. };
  64803. GraphEditor.prototype.onPointerUp = function (evt) {
  64804. this._moveInProgress = false;
  64805. evt.currentTarget.releasePointerCapture(evt.pointerId);
  64806. };
  64807. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  64808. if (forLeft === void 0) { forLeft = true; }
  64809. if (!this._moveInProgress) {
  64810. return;
  64811. }
  64812. var deltaX = evt.clientX - this._startX;
  64813. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  64814. if (forLeft) {
  64815. this._leftWidth += deltaX;
  64816. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  64817. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("LeftWidth", this._leftWidth);
  64818. }
  64819. else {
  64820. this._rightWidth -= deltaX;
  64821. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  64822. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("RightWidth", this._rightWidth);
  64823. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  64824. }
  64825. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  64826. this._startX = evt.clientX;
  64827. };
  64828. GraphEditor.prototype.buildColumnLayout = function () {
  64829. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  64830. };
  64831. GraphEditor.prototype.emitNewBlock = function (event) {
  64832. var _this = this;
  64833. var data = event.dataTransfer.getData("babylonjs-material-node");
  64834. var nodeModel = null;
  64835. if (data.indexOf("Block") === -1) {
  64836. nodeModel = this.addValueNode(data);
  64837. }
  64838. else {
  64839. var block = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene());
  64840. if (block) {
  64841. this._toAdd = [];
  64842. block.autoConfigure(this.props.globalState.nodeMaterial);
  64843. nodeModel = this.createNodeFromObject({ nodeMaterialBlock: block });
  64844. }
  64845. }
  64846. ;
  64847. if (nodeModel) {
  64848. var zoomLevel = this._engine.diagramModel.getZoomLevel() / 100.0;
  64849. var x_1 = (event.clientX - event.currentTarget.offsetLeft - this._engine.diagramModel.getOffsetX() - this.NodeWidth) / zoomLevel;
  64850. var y_1 = (event.clientY - event.currentTarget.offsetTop - this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  64851. nodeModel.setPosition(x_1, y_1);
  64852. var block = nodeModel.block;
  64853. x_1 -= this.NodeWidth + 150;
  64854. block._inputs.forEach(function (connection) {
  64855. if (connection.connectedPoint) {
  64856. var existingNodes = _this._nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  64857. var connectedNode = existingNodes[0];
  64858. if (connectedNode.x === 0 && connectedNode.y === 0) {
  64859. connectedNode.setPosition(x_1, y_1);
  64860. y_1 += 80;
  64861. }
  64862. }
  64863. });
  64864. this._engine.repaintCanvas();
  64865. setTimeout(function () {
  64866. var _a;
  64867. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  64868. _this._toAdd = null;
  64869. _this._model.clearSelection();
  64870. nodeModel.setSelected(true);
  64871. _this._engine.repaintCanvas();
  64872. }, 150);
  64873. }
  64874. this.forceUpdate();
  64875. };
  64876. GraphEditor.prototype.render = function () {
  64877. var _this = this;
  64878. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  64879. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root", style: {
  64880. gridTemplateColumns: this.buildColumnLayout()
  64881. }, onMouseMove: function (evt) {
  64882. _this._mouseLocationX = evt.pageX;
  64883. _this._mouseLocationY = evt.pageY;
  64884. }, onMouseDown: function (evt) {
  64885. if (evt.target.nodeName === "INPUT") {
  64886. return;
  64887. }
  64888. _this.props.globalState.blockKeyboardEvents = false;
  64889. } },
  64890. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState }),
  64891. 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); } }),
  64892. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  64893. _this.emitNewBlock(event);
  64894. }, onDragOver: function (event) {
  64895. event.preventDefault();
  64896. } },
  64897. 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 })),
  64898. 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); } }),
  64899. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "right-panel" },
  64900. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }),
  64901. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__["PreviewMeshControlComponent"], { globalState: this.props.globalState }),
  64902. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__["PreviewAreaComponent"], { globalState: this.props.globalState, width: this._rightWidth })),
  64903. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogComponent"], { globalState: this.props.globalState })),
  64904. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__["MessageDialogComponent"], { globalState: this.props.globalState }),
  64905. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop")));
  64906. };
  64907. return GraphEditor;
  64908. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  64909. /***/ }),
  64910. /***/ "./graphHelper.ts":
  64911. /*!************************!*\
  64912. !*** ./graphHelper.ts ***!
  64913. \************************/
  64914. /*! exports provided: GraphHelper */
  64915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64916. "use strict";
  64917. __webpack_require__.r(__webpack_exports__);
  64918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphHelper", function() { return GraphHelper; });
  64919. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  64920. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  64921. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  64922. var GraphHelper = /** @class */ (function () {
  64923. function GraphHelper() {
  64924. }
  64925. GraphHelper.DistributeGraph = function (model) {
  64926. var nodes = this._MapElements(model);
  64927. var edges = this._MapEdges(model);
  64928. var graph = new dagre__WEBPACK_IMPORTED_MODULE_1__["graphlib"].Graph();
  64929. graph.setGraph({});
  64930. graph.setDefaultEdgeLabel(function () { return ({}); });
  64931. graph.graph().rankdir = "LR";
  64932. //add elements to dagre graph
  64933. nodes.forEach(function (node) {
  64934. graph.setNode(node.id, node.metadata);
  64935. });
  64936. edges.forEach(function (edge) {
  64937. if (edge.from && edge.to) {
  64938. graph.setEdge(edge.from.id, edge.to.id);
  64939. }
  64940. });
  64941. //auto-distribute
  64942. dagre__WEBPACK_IMPORTED_MODULE_1__["layout"](graph);
  64943. return graph.nodes().map(function (node) { return graph.node(node); });
  64944. };
  64945. GraphHelper._MapElements = function (model) {
  64946. var output = [];
  64947. // dagre compatible format
  64948. for (var nodeName in model.nodes) {
  64949. var node = model.nodes[nodeName];
  64950. var size = {
  64951. width: node.width | 200,
  64952. height: node.height | 100
  64953. };
  64954. output.push({ id: node.id, metadata: tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, size, { id: node.id }) });
  64955. }
  64956. return output;
  64957. };
  64958. GraphHelper._MapEdges = function (model) {
  64959. // returns links which connects nodes
  64960. // we check are there both from and to nodes in the model. Sometimes links can be detached
  64961. var output = [];
  64962. for (var linkName in model.links) {
  64963. var link = model.links[linkName];
  64964. output.push({
  64965. from: link.sourcePort.parent,
  64966. to: link.targetPort.parent
  64967. });
  64968. }
  64969. return output;
  64970. };
  64971. return GraphHelper;
  64972. }());
  64973. /***/ }),
  64974. /***/ "./index.ts":
  64975. /*!******************!*\
  64976. !*** ./index.ts ***!
  64977. \******************/
  64978. /*! exports provided: NodeEditor */
  64979. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64980. "use strict";
  64981. __webpack_require__.r(__webpack_exports__);
  64982. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  64983. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  64984. /***/ }),
  64985. /***/ "./legacy/legacy.ts":
  64986. /*!**************************!*\
  64987. !*** ./legacy/legacy.ts ***!
  64988. \**************************/
  64989. /*! exports provided: NodeEditor */
  64990. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64991. "use strict";
  64992. __webpack_require__.r(__webpack_exports__);
  64993. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  64994. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  64995. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  64996. if (typeof globalObject !== "undefined") {
  64997. globalObject.BABYLON = globalObject.BABYLON || {};
  64998. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  64999. }
  65000. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  65001. /***/ }),
  65002. /***/ "./main.scss":
  65003. /*!*******************!*\
  65004. !*** ./main.scss ***!
  65005. \*******************/
  65006. /*! no static exports found */
  65007. /***/ (function(module, exports, __webpack_require__) {
  65008. 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");
  65009. if(typeof content === 'string') content = [[module.i, content, '']];
  65010. var transform;
  65011. var insertInto;
  65012. var options = {"hmr":true}
  65013. options.transform = transform
  65014. options.insertInto = undefined;
  65015. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  65016. if(content.locals) module.exports = content.locals;
  65017. if(false) {}
  65018. /***/ }),
  65019. /***/ "./nodeEditor.ts":
  65020. /*!***********************!*\
  65021. !*** ./nodeEditor.ts ***!
  65022. \***********************/
  65023. /*! exports provided: NodeEditor */
  65024. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65025. "use strict";
  65026. __webpack_require__.r(__webpack_exports__);
  65027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  65028. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65029. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  65030. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  65031. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  65032. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  65033. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  65034. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  65035. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  65036. /**
  65037. * Class used to create a node editor
  65038. */
  65039. var NodeEditor = /** @class */ (function () {
  65040. function NodeEditor() {
  65041. }
  65042. /**
  65043. * Show the node editor
  65044. * @param options defines the options to use to configure the node editor
  65045. */
  65046. NodeEditor.Show = function (options) {
  65047. if (this._CurrentState) {
  65048. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  65049. if (popupWindow) {
  65050. popupWindow.close();
  65051. }
  65052. }
  65053. var hostElement = options.hostElement;
  65054. if (!hostElement) {
  65055. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  65056. }
  65057. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  65058. globalState.nodeMaterial = options.nodeMaterial;
  65059. globalState.hostElement = hostElement;
  65060. globalState.hostDocument = hostElement.ownerDocument;
  65061. globalState.customSave = options.customSave;
  65062. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  65063. globalState: globalState
  65064. });
  65065. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  65066. if (options.customLoadObservable) {
  65067. options.customLoadObservable.add(function (data) {
  65068. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  65069. });
  65070. }
  65071. this._CurrentState = globalState;
  65072. // Close the popup window when the page is refreshed or scene is disposed
  65073. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  65074. if (globalState.nodeMaterial && popupWindow) {
  65075. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  65076. if (popupWindow) {
  65077. popupWindow.close();
  65078. }
  65079. });
  65080. window.onbeforeunload = function () {
  65081. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  65082. if (popupWindow) {
  65083. popupWindow.close();
  65084. }
  65085. };
  65086. }
  65087. };
  65088. return NodeEditor;
  65089. }());
  65090. /***/ }),
  65091. /***/ "./portal.tsx":
  65092. /*!********************!*\
  65093. !*** ./portal.tsx ***!
  65094. \********************/
  65095. /*! exports provided: Portal */
  65096. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65097. "use strict";
  65098. __webpack_require__.r(__webpack_exports__);
  65099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  65100. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65101. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65102. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65103. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  65104. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  65105. var Portal = /** @class */ (function (_super) {
  65106. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  65107. function Portal() {
  65108. return _super !== null && _super.apply(this, arguments) || this;
  65109. }
  65110. Portal.prototype.render = function () {
  65111. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  65112. };
  65113. return Portal;
  65114. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65115. /***/ }),
  65116. /***/ "./serializationTools.ts":
  65117. /*!*******************************!*\
  65118. !*** ./serializationTools.ts ***!
  65119. \*******************************/
  65120. /*! exports provided: SerializationTools */
  65121. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65122. "use strict";
  65123. __webpack_require__.r(__webpack_exports__);
  65124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  65125. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/observable");
  65126. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  65127. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  65128. var SerializationTools = /** @class */ (function () {
  65129. function SerializationTools() {
  65130. }
  65131. SerializationTools.Serialize = function (material, globalState) {
  65132. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  65133. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = _dataStorage__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].ReadBoolean("EmbedTextures", true);
  65134. var serializationObject = material.serialize();
  65135. // Store node locations
  65136. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  65137. var block = _a[_i];
  65138. var node = globalState.onGetNodeFromBlock(block);
  65139. if (!serializationObject.locations) {
  65140. serializationObject.locations = [];
  65141. }
  65142. serializationObject.locations.push({
  65143. blockId: block.uniqueId,
  65144. x: node ? node.x : 0,
  65145. y: node ? node.y : 0
  65146. });
  65147. }
  65148. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  65149. return JSON.stringify(serializationObject, undefined, 2);
  65150. };
  65151. SerializationTools.Deserialize = function (serializationObject, globalState) {
  65152. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  65153. // Check for id mapping
  65154. if (serializationObject.locations && serializationObject.map) {
  65155. var map = serializationObject.map;
  65156. var locations = serializationObject.locations;
  65157. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  65158. var location = locations_1[_i];
  65159. location.blockId = map[location.blockId];
  65160. }
  65161. }
  65162. globalState.onResetRequiredObservable.notifyObservers(serializationObject.locations);
  65163. };
  65164. return SerializationTools;
  65165. }());
  65166. /***/ }),
  65167. /***/ "./sharedComponents/buttonLineComponent.tsx":
  65168. /*!**************************************************!*\
  65169. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  65170. \**************************************************/
  65171. /*! exports provided: ButtonLineComponent */
  65172. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65173. "use strict";
  65174. __webpack_require__.r(__webpack_exports__);
  65175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  65176. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65177. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65178. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65179. var ButtonLineComponent = /** @class */ (function (_super) {
  65180. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  65181. function ButtonLineComponent(props) {
  65182. return _super.call(this, props) || this;
  65183. }
  65184. ButtonLineComponent.prototype.render = function () {
  65185. var _this = this;
  65186. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  65187. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  65188. };
  65189. return ButtonLineComponent;
  65190. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65191. /***/ }),
  65192. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  65193. /*!****************************************************!*\
  65194. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  65195. \****************************************************/
  65196. /*! exports provided: CheckBoxLineComponent */
  65197. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65198. "use strict";
  65199. __webpack_require__.r(__webpack_exports__);
  65200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  65201. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65202. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65203. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65204. var CheckBoxLineComponent = /** @class */ (function (_super) {
  65205. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  65206. function CheckBoxLineComponent(props) {
  65207. var _this = _super.call(this, props) || this;
  65208. _this._localChange = false;
  65209. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  65210. if (_this.props.isSelected) {
  65211. _this.state = { isSelected: _this.props.isSelected() };
  65212. }
  65213. else {
  65214. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  65215. }
  65216. return _this;
  65217. }
  65218. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65219. var currentState;
  65220. if (nextProps.isSelected) {
  65221. currentState = nextProps.isSelected();
  65222. }
  65223. else {
  65224. currentState = nextProps.target[nextProps.propertyName] === true;
  65225. }
  65226. if (currentState !== nextState.isSelected || this._localChange) {
  65227. nextState.isSelected = currentState;
  65228. this._localChange = false;
  65229. return true;
  65230. }
  65231. return false;
  65232. };
  65233. CheckBoxLineComponent.prototype.onChange = function () {
  65234. this._localChange = true;
  65235. if (this.props.onSelect) {
  65236. this.props.onSelect(!this.state.isSelected);
  65237. }
  65238. else {
  65239. if (this.props.onPropertyChangedObservable) {
  65240. this.props.onPropertyChangedObservable.notifyObservers({
  65241. object: this.props.target,
  65242. property: this.props.propertyName,
  65243. value: !this.state.isSelected,
  65244. initialValue: this.state.isSelected
  65245. });
  65246. }
  65247. this.props.target[this.props.propertyName] = !this.state.isSelected;
  65248. }
  65249. if (this.props.onValueChanged) {
  65250. this.props.onValueChanged();
  65251. }
  65252. this.setState({ isSelected: !this.state.isSelected });
  65253. };
  65254. CheckBoxLineComponent.prototype.render = function () {
  65255. var _this = this;
  65256. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  65257. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65258. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  65259. 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(); } }),
  65260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  65261. };
  65262. CheckBoxLineComponent._UniqueIdSeed = 0;
  65263. return CheckBoxLineComponent;
  65264. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65265. /***/ }),
  65266. /***/ "./sharedComponents/color3LineComponent.tsx":
  65267. /*!**************************************************!*\
  65268. !*** ./sharedComponents/color3LineComponent.tsx ***!
  65269. \**************************************************/
  65270. /*! exports provided: Color3LineComponent */
  65271. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65272. "use strict";
  65273. __webpack_require__.r(__webpack_exports__);
  65274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  65275. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65276. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65277. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65278. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  65279. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  65280. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  65281. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65282. /* 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");
  65283. var Color3LineComponent = /** @class */ (function (_super) {
  65284. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3LineComponent, _super);
  65285. function Color3LineComponent(props) {
  65286. var _this = _super.call(this, props) || this;
  65287. _this._localChange = false;
  65288. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  65289. return _this;
  65290. }
  65291. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65292. var currentState = nextProps.target[nextProps.propertyName];
  65293. if (!currentState.equals(nextState.color) || this._localChange) {
  65294. nextState.color = currentState.clone();
  65295. this._localChange = false;
  65296. return true;
  65297. }
  65298. return false;
  65299. };
  65300. Color3LineComponent.prototype.onChange = function (newValue) {
  65301. this._localChange = true;
  65302. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  65303. if (this.props.onPropertyChangedObservable) {
  65304. this.props.onPropertyChangedObservable.notifyObservers({
  65305. object: this.props.target,
  65306. property: this.props.propertyName,
  65307. value: newColor,
  65308. initialValue: this.state.color
  65309. });
  65310. }
  65311. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  65312. this.props.target[this.props.propertyName] = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  65313. }
  65314. else {
  65315. this.props.target[this.props.propertyName] = newColor;
  65316. }
  65317. this.setState({ color: newColor });
  65318. if (this.props.onChange) {
  65319. this.props.onChange();
  65320. }
  65321. };
  65322. Color3LineComponent.prototype.switchExpandState = function () {
  65323. this._localChange = true;
  65324. this.setState({ isExpanded: !this.state.isExpanded });
  65325. };
  65326. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  65327. if (!this.props.onPropertyChangedObservable) {
  65328. return;
  65329. }
  65330. this.props.onPropertyChangedObservable.notifyObservers({
  65331. object: this.props.target,
  65332. property: this.props.propertyName,
  65333. value: this.state.color,
  65334. initialValue: previousValue
  65335. });
  65336. };
  65337. Color3LineComponent.prototype.updateStateR = function (value) {
  65338. this._localChange = true;
  65339. var store = this.state.color.clone();
  65340. this.props.target[this.props.propertyName].x = value;
  65341. this.state.color.r = value;
  65342. this.props.target[this.props.propertyName] = this.state.color;
  65343. this.setState({ color: this.state.color });
  65344. this.raiseOnPropertyChanged(store);
  65345. };
  65346. Color3LineComponent.prototype.updateStateG = function (value) {
  65347. this._localChange = true;
  65348. var store = this.state.color.clone();
  65349. this.props.target[this.props.propertyName].g = value;
  65350. this.state.color.g = value;
  65351. this.props.target[this.props.propertyName] = this.state.color;
  65352. this.setState({ color: this.state.color });
  65353. this.raiseOnPropertyChanged(store);
  65354. };
  65355. Color3LineComponent.prototype.updateStateB = function (value) {
  65356. this._localChange = true;
  65357. var store = this.state.color.clone();
  65358. this.props.target[this.props.propertyName].b = value;
  65359. this.state.color.b = value;
  65360. this.props.target[this.props.propertyName] = this.state.color;
  65361. this.setState({ color: this.state.color });
  65362. this.raiseOnPropertyChanged(store);
  65363. };
  65364. Color3LineComponent.prototype.copyToClipboard = function () {
  65365. var element = document.createElement('div');
  65366. element.textContent = this.state.color.toHexString();
  65367. document.body.appendChild(element);
  65368. if (window.getSelection) {
  65369. var range = document.createRange();
  65370. range.selectNode(element);
  65371. window.getSelection().removeAllRanges();
  65372. window.getSelection().addRange(range);
  65373. }
  65374. document.execCommand('copy');
  65375. element.remove();
  65376. };
  65377. Color3LineComponent.prototype.render = function () {
  65378. var _this = this;
  65379. 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"] });
  65380. 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);
  65381. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  65382. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  65383. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65384. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  65385. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  65386. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  65387. 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"] })),
  65388. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  65389. this.state.isExpanded &&
  65390. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65391. 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); } }),
  65392. 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); } }),
  65393. 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); } }))));
  65394. };
  65395. return Color3LineComponent;
  65396. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65397. /***/ }),
  65398. /***/ "./sharedComponents/draggableLineComponent.tsx":
  65399. /*!*****************************************************!*\
  65400. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  65401. \*****************************************************/
  65402. /*! exports provided: DraggableLineComponent */
  65403. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65404. "use strict";
  65405. __webpack_require__.r(__webpack_exports__);
  65406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  65407. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65408. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65409. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65410. var DraggableLineComponent = /** @class */ (function (_super) {
  65411. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DraggableLineComponent, _super);
  65412. function DraggableLineComponent(props) {
  65413. return _super.call(this, props) || this;
  65414. }
  65415. DraggableLineComponent.prototype.render = function () {
  65416. var _this = this;
  65417. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", draggable: true, onDragStart: function (event) {
  65418. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  65419. } }, this.props.data.replace("Block", "")));
  65420. };
  65421. return DraggableLineComponent;
  65422. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65423. /***/ }),
  65424. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  65425. /*!******************************************************!*\
  65426. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  65427. \******************************************************/
  65428. /*! exports provided: FileButtonLineComponent */
  65429. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65430. "use strict";
  65431. __webpack_require__.r(__webpack_exports__);
  65432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  65433. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65434. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65435. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65436. var FileButtonLineComponent = /** @class */ (function (_super) {
  65437. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  65438. function FileButtonLineComponent(props) {
  65439. return _super.call(this, props) || this;
  65440. }
  65441. FileButtonLineComponent.prototype.onChange = function (evt) {
  65442. var files = evt.target.files;
  65443. if (files && files.length) {
  65444. this.props.onClick(files[0]);
  65445. }
  65446. evt.target.value = "";
  65447. };
  65448. FileButtonLineComponent.prototype.render = function () {
  65449. var _this = this;
  65450. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  65451. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  65452. 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); } })));
  65453. };
  65454. return FileButtonLineComponent;
  65455. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65456. /***/ }),
  65457. /***/ "./sharedComponents/floatLineComponent.tsx":
  65458. /*!*************************************************!*\
  65459. !*** ./sharedComponents/floatLineComponent.tsx ***!
  65460. \*************************************************/
  65461. /*! exports provided: FloatLineComponent */
  65462. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65463. "use strict";
  65464. __webpack_require__.r(__webpack_exports__);
  65465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  65466. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65467. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65468. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65469. var FloatLineComponent = /** @class */ (function (_super) {
  65470. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatLineComponent, _super);
  65471. function FloatLineComponent(props) {
  65472. var _this = _super.call(this, props) || this;
  65473. _this._localChange = false;
  65474. var currentValue = _this.props.target[_this.props.propertyName];
  65475. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  65476. _this._store = currentValue;
  65477. return _this;
  65478. }
  65479. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65480. if (this._localChange) {
  65481. this._localChange = false;
  65482. return true;
  65483. }
  65484. var newValue = nextProps.target[nextProps.propertyName];
  65485. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  65486. if (newValueString !== nextState.value) {
  65487. nextState.value = newValueString;
  65488. return true;
  65489. }
  65490. return false;
  65491. };
  65492. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  65493. if (this.props.onChange) {
  65494. this.props.onChange(newValue);
  65495. }
  65496. if (!this.props.onPropertyChangedObservable) {
  65497. return;
  65498. }
  65499. this.props.onPropertyChangedObservable.notifyObservers({
  65500. object: this.props.target,
  65501. property: this.props.propertyName,
  65502. value: newValue,
  65503. initialValue: previousValue
  65504. });
  65505. };
  65506. FloatLineComponent.prototype.updateValue = function (valueString) {
  65507. if (/[^0-9\.\-]/g.test(valueString)) {
  65508. return;
  65509. }
  65510. var valueAsNumber;
  65511. if (this.props.isInteger) {
  65512. valueAsNumber = parseInt(valueString);
  65513. }
  65514. else {
  65515. valueAsNumber = parseFloat(valueString);
  65516. }
  65517. this._localChange = true;
  65518. this.setState({ value: valueString });
  65519. if (isNaN(valueAsNumber)) {
  65520. return;
  65521. }
  65522. this.props.target[this.props.propertyName] = valueAsNumber;
  65523. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  65524. this._store = valueAsNumber;
  65525. };
  65526. FloatLineComponent.prototype.render = function () {
  65527. var _this = this;
  65528. 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" },
  65529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  65531. 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); } })))));
  65532. };
  65533. return FloatLineComponent;
  65534. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65535. /***/ }),
  65536. /***/ "./sharedComponents/lineContainerComponent.tsx":
  65537. /*!*****************************************************!*\
  65538. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  65539. \*****************************************************/
  65540. /*! exports provided: LineContainerComponent */
  65541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65542. "use strict";
  65543. __webpack_require__.r(__webpack_exports__);
  65544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  65545. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65546. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65547. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65548. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  65549. /* 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");
  65550. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  65551. var LineContainerComponent = /** @class */ (function (_super) {
  65552. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  65553. function LineContainerComponent(props) {
  65554. var _this = _super.call(this, props) || this;
  65555. var initialState = _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  65556. _this.state = { isExpanded: initialState };
  65557. return _this;
  65558. }
  65559. LineContainerComponent.prototype.switchExpandedState = function () {
  65560. var newState = !this.state.isExpanded;
  65561. _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].StoreBoolean(this.props.title, newState);
  65562. this.setState({ isExpanded: newState });
  65563. };
  65564. LineContainerComponent.prototype.renderHeader = function () {
  65565. var _this = this;
  65566. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  65567. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  65568. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  65569. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  65570. 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"] }))));
  65571. };
  65572. LineContainerComponent.prototype.render = function () {
  65573. if (!this.state.isExpanded) {
  65574. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  65575. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  65576. }
  65577. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  65578. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  65579. this.renderHeader(),
  65580. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  65581. };
  65582. return LineContainerComponent;
  65583. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65584. /***/ }),
  65585. /***/ "./sharedComponents/matrixLineComponent.tsx":
  65586. /*!**************************************************!*\
  65587. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  65588. \**************************************************/
  65589. /*! exports provided: MatrixLineComponent */
  65590. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65591. "use strict";
  65592. __webpack_require__.r(__webpack_exports__);
  65593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  65594. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65595. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65596. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65597. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  65598. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  65599. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  65600. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  65601. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  65602. var MatrixLineComponent = /** @class */ (function (_super) {
  65603. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixLineComponent, _super);
  65604. function MatrixLineComponent(props) {
  65605. var _this = _super.call(this, props) || this;
  65606. _this._localChange = false;
  65607. var matrix = _this.props.target[_this.props.propertyName].clone();
  65608. var angle = 0;
  65609. if (_this.props.mode) {
  65610. var quat = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  65611. matrix.decompose(undefined, quat);
  65612. var euler = quat.toEulerAngles();
  65613. switch (_this.props.mode) {
  65614. case 1:
  65615. angle = euler.x;
  65616. break;
  65617. case 2:
  65618. angle = euler.y;
  65619. break;
  65620. case 3:
  65621. angle = euler.z;
  65622. break;
  65623. }
  65624. }
  65625. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  65626. return _this;
  65627. }
  65628. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65629. var nextPropsValue = nextProps.target[nextProps.propertyName];
  65630. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  65631. nextState.value = nextPropsValue.clone();
  65632. this._localChange = false;
  65633. return true;
  65634. }
  65635. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  65636. };
  65637. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  65638. if (this.props.onChange) {
  65639. this.props.onChange(this.state.value);
  65640. }
  65641. if (!this.props.onPropertyChangedObservable) {
  65642. return;
  65643. }
  65644. this.props.onPropertyChangedObservable.notifyObservers({
  65645. object: this.props.target,
  65646. property: this.props.propertyName,
  65647. value: this.state.value,
  65648. initialValue: previousValue
  65649. });
  65650. };
  65651. MatrixLineComponent.prototype.updateMatrix = function () {
  65652. var store = this.props.target[this.props.propertyName].clone();
  65653. this.props.target[this.props.propertyName] = this.state.value;
  65654. this.setState({ value: store });
  65655. this.raiseOnPropertyChanged(store);
  65656. };
  65657. MatrixLineComponent.prototype.updateRow = function (value, row) {
  65658. this._localChange = true;
  65659. this.state.value.setRow(row, value);
  65660. this.updateMatrix();
  65661. };
  65662. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  65663. switch (this.state.mode) {
  65664. case 1: {
  65665. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  65666. break;
  65667. }
  65668. case 2: {
  65669. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  65670. break;
  65671. }
  65672. case 3: {
  65673. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  65674. break;
  65675. }
  65676. }
  65677. this.updateMatrix();
  65678. this.setState({ angle: value });
  65679. };
  65680. MatrixLineComponent.prototype.render = function () {
  65681. var _this = this;
  65682. var modeOptions = [
  65683. { label: "User-defined", value: 0 },
  65684. { label: "Rotation over X axis", value: 1 },
  65685. { label: "Rotation over Y axis", value: 2 },
  65686. { label: "Rotation over Z axis", value: 3 },
  65687. ];
  65688. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  65689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  65690. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  65691. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65692. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__["OptionsLineComponent"], { label: "Mode", className: "no-right-margin", options: modeOptions, target: this, noDirectUpdate: true, getSelection: function () {
  65693. return _this.state.mode;
  65694. }, onSelect: function (value) {
  65695. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  65696. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  65697. _this.setState({ mode: value, angle: 0 });
  65698. _this.updateMatrix();
  65699. if (_this.props.onModeChange) {
  65700. _this.props.onModeChange(value);
  65701. }
  65702. } })),
  65703. this.state.mode === 0 &&
  65704. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65705. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #0", value: this.state.value.getRow(0), onChange: function (value) { return _this.updateRow(value, 0); } }),
  65706. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #1", value: this.state.value.getRow(1), onChange: function (value) { return _this.updateRow(value, 1); } }),
  65707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #2", value: this.state.value.getRow(2), onChange: function (value) { return _this.updateRow(value, 2); } }),
  65708. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #3", value: this.state.value.getRow(3), onChange: function (value) { return _this.updateRow(value, 3); } })),
  65709. this.state.mode !== 0 &&
  65710. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  65711. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Angle", minimum: 0, maximum: 2 * Math.PI, useEuler: true, step: 0.1, directValue: this.state.angle, onChange: function (value) { return _this.updateBasedOnMode(value); } }))));
  65712. };
  65713. return MatrixLineComponent;
  65714. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65715. /***/ }),
  65716. /***/ "./sharedComponents/messageDialog.tsx":
  65717. /*!********************************************!*\
  65718. !*** ./sharedComponents/messageDialog.tsx ***!
  65719. \********************************************/
  65720. /*! exports provided: MessageDialogComponent */
  65721. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65722. "use strict";
  65723. __webpack_require__.r(__webpack_exports__);
  65724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  65725. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65726. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65727. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65728. var MessageDialogComponent = /** @class */ (function (_super) {
  65729. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MessageDialogComponent, _super);
  65730. function MessageDialogComponent(props) {
  65731. var _this = _super.call(this, props) || this;
  65732. _this.state = { message: "", isError: false };
  65733. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  65734. _this.setState({ message: message, isError: true });
  65735. });
  65736. return _this;
  65737. }
  65738. MessageDialogComponent.prototype.render = function () {
  65739. var _this = this;
  65740. if (!this.state.message) {
  65741. return null;
  65742. }
  65743. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  65744. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  65745. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  65746. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  65747. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  65748. };
  65749. return MessageDialogComponent;
  65750. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65751. /***/ }),
  65752. /***/ "./sharedComponents/numericInputComponent.tsx":
  65753. /*!****************************************************!*\
  65754. !*** ./sharedComponents/numericInputComponent.tsx ***!
  65755. \****************************************************/
  65756. /*! exports provided: NumericInputComponent */
  65757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65758. "use strict";
  65759. __webpack_require__.r(__webpack_exports__);
  65760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  65761. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65762. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65763. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65764. var NumericInputComponent = /** @class */ (function (_super) {
  65765. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  65766. function NumericInputComponent(props) {
  65767. var _this = _super.call(this, props) || this;
  65768. _this._localChange = false;
  65769. _this.state = { value: _this.props.value.toFixed(3) };
  65770. return _this;
  65771. }
  65772. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65773. if (this._localChange) {
  65774. this._localChange = false;
  65775. return true;
  65776. }
  65777. if (nextProps.value.toString() !== nextState.value) {
  65778. nextState.value = nextProps.value.toFixed(3);
  65779. return true;
  65780. }
  65781. return false;
  65782. };
  65783. NumericInputComponent.prototype.updateValue = function (evt) {
  65784. var value = evt.target.value;
  65785. if (/[^0-9\.\-]/g.test(value)) {
  65786. return;
  65787. }
  65788. var valueAsNumber = parseFloat(value);
  65789. this._localChange = true;
  65790. this.setState({ value: value });
  65791. if (isNaN(valueAsNumber)) {
  65792. return;
  65793. }
  65794. this.props.onChange(valueAsNumber);
  65795. };
  65796. NumericInputComponent.prototype.render = function () {
  65797. var _this = this;
  65798. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  65799. this.props.label &&
  65800. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  65801. 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); } })));
  65802. };
  65803. NumericInputComponent.defaultProps = {
  65804. step: 1,
  65805. };
  65806. return NumericInputComponent;
  65807. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65808. /***/ }),
  65809. /***/ "./sharedComponents/optionsLineComponent.tsx":
  65810. /*!***************************************************!*\
  65811. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  65812. \***************************************************/
  65813. /*! exports provided: OptionsLineComponent */
  65814. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65815. "use strict";
  65816. __webpack_require__.r(__webpack_exports__);
  65817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  65818. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65819. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65820. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65821. var ListLineOption = /** @class */ (function () {
  65822. function ListLineOption() {
  65823. }
  65824. return ListLineOption;
  65825. }());
  65826. var OptionsLineComponent = /** @class */ (function (_super) {
  65827. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  65828. function OptionsLineComponent(props) {
  65829. var _this = _super.call(this, props) || this;
  65830. _this._localChange = false;
  65831. _this.state = { value: _this._getValue(props) };
  65832. return _this;
  65833. }
  65834. OptionsLineComponent.prototype._getValue = function (props) {
  65835. if (props.getSelection) {
  65836. return props.getSelection(props.target);
  65837. }
  65838. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  65839. };
  65840. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  65841. if (this._localChange) {
  65842. this._localChange = false;
  65843. return true;
  65844. }
  65845. var newValue = this._getValue(nextProps);
  65846. if (newValue != null && newValue !== nextState.value) {
  65847. nextState.value = newValue;
  65848. return true;
  65849. }
  65850. return false;
  65851. };
  65852. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  65853. if (!this.props.onPropertyChangedObservable) {
  65854. return;
  65855. }
  65856. this.props.onPropertyChangedObservable.notifyObservers({
  65857. object: this.props.target,
  65858. property: this.props.propertyName,
  65859. value: newValue,
  65860. initialValue: previousValue
  65861. });
  65862. };
  65863. OptionsLineComponent.prototype.updateValue = function (valueString) {
  65864. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  65865. this._localChange = true;
  65866. var store = this.state.value;
  65867. if (!this.props.noDirectUpdate) {
  65868. this.props.target[this.props.propertyName] = value;
  65869. }
  65870. this.setState({ value: value });
  65871. this.raiseOnPropertyChanged(value, store);
  65872. if (this.props.onSelect) {
  65873. this.props.onSelect(value);
  65874. }
  65875. };
  65876. OptionsLineComponent.prototype.render = function () {
  65877. var _this = this;
  65878. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  65879. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  65880. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  65881. 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) {
  65882. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  65883. })))));
  65884. };
  65885. return OptionsLineComponent;
  65886. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  65887. /***/ }),
  65888. /***/ "./sharedComponents/popup.ts":
  65889. /*!***********************************!*\
  65890. !*** ./sharedComponents/popup.ts ***!
  65891. \***********************************/
  65892. /*! exports provided: Popup */
  65893. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65894. "use strict";
  65895. __webpack_require__.r(__webpack_exports__);
  65896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  65897. var Popup = /** @class */ (function () {
  65898. function Popup() {
  65899. }
  65900. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  65901. var _this = this;
  65902. if (width === void 0) { width = 300; }
  65903. if (height === void 0) { height = 800; }
  65904. var windowCreationOptionsList = {
  65905. width: width,
  65906. height: height,
  65907. top: (window.innerHeight - width) / 2 + window.screenY,
  65908. left: (window.innerWidth - height) / 2 + window.screenX
  65909. };
  65910. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  65911. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  65912. .join(',');
  65913. var popupWindow = window.open("", title, windowCreationOptions);
  65914. if (!popupWindow) {
  65915. return null;
  65916. }
  65917. var parentDocument = popupWindow.document;
  65918. // Font
  65919. var newLinkEl = parentDocument.createElement('link');
  65920. newLinkEl.rel = 'stylesheet';
  65921. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  65922. parentDocument.head.appendChild(newLinkEl);
  65923. parentDocument.title = title;
  65924. parentDocument.body.style.width = "100%";
  65925. parentDocument.body.style.height = "100%";
  65926. parentDocument.body.style.margin = "0";
  65927. parentDocument.body.style.padding = "0";
  65928. var parentControl = parentDocument.createElement("div");
  65929. parentControl.style.width = "100%";
  65930. parentControl.style.height = "100%";
  65931. parentControl.style.margin = "0";
  65932. parentControl.style.padding = "0";
  65933. popupWindow.document.body.appendChild(parentControl);
  65934. this._CopyStyles(window.document, parentDocument);
  65935. setTimeout(function () {
  65936. _this._CopyStyles(window.document, parentDocument);
  65937. }, 0);
  65938. this[windowVariableName] = popupWindow;
  65939. return parentControl;
  65940. };
  65941. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  65942. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  65943. var styleSheet = sourceDoc.styleSheets[index];
  65944. try {
  65945. if (styleSheet.cssRules) { // for <style> elements
  65946. var newStyleEl = sourceDoc.createElement('style');
  65947. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  65948. var cssRule = _a[_i];
  65949. // write the text of each rule into the body of the style element
  65950. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  65951. }
  65952. targetDoc.head.appendChild(newStyleEl);
  65953. }
  65954. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  65955. var newLinkEl = sourceDoc.createElement('link');
  65956. newLinkEl.rel = 'stylesheet';
  65957. newLinkEl.href = styleSheet.href;
  65958. targetDoc.head.appendChild(newLinkEl);
  65959. }
  65960. }
  65961. catch (e) {
  65962. console.log(e);
  65963. }
  65964. }
  65965. };
  65966. return Popup;
  65967. }());
  65968. /***/ }),
  65969. /***/ "./sharedComponents/sliderLineComponent.tsx":
  65970. /*!**************************************************!*\
  65971. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  65972. \**************************************************/
  65973. /*! exports provided: SliderLineComponent */
  65974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  65975. "use strict";
  65976. __webpack_require__.r(__webpack_exports__);
  65977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  65978. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  65979. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  65980. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  65981. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  65982. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  65983. var SliderLineComponent = /** @class */ (function (_super) {
  65984. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SliderLineComponent, _super);
  65985. function SliderLineComponent(props) {
  65986. var _this = _super.call(this, props) || this;
  65987. _this._localChange = false;
  65988. if (_this.props.directValue !== undefined) {
  65989. _this.state = {
  65990. value: _this.props.directValue
  65991. };
  65992. }
  65993. else {
  65994. var value = _this.props.target[_this.props.propertyName];
  65995. if (value === undefined) {
  65996. value = _this.props.maximum;
  65997. }
  65998. _this.state = { value: value };
  65999. }
  66000. return _this;
  66001. }
  66002. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66003. if (nextProps.directValue !== undefined) {
  66004. nextState.value = nextProps.directValue;
  66005. return true;
  66006. }
  66007. var currentState = nextProps.target[nextProps.propertyName];
  66008. if (currentState === undefined) {
  66009. currentState = nextProps.maximum;
  66010. }
  66011. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  66012. nextState.value = currentState;
  66013. this._localChange = false;
  66014. return true;
  66015. }
  66016. return false;
  66017. };
  66018. SliderLineComponent.prototype.onChange = function (newValueString) {
  66019. this._localChange = true;
  66020. var newValue = parseFloat(newValueString);
  66021. if (this.props.useEuler) {
  66022. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  66023. }
  66024. if (this.props.target) {
  66025. if (this.props.onPropertyChangedObservable) {
  66026. this.props.onPropertyChangedObservable.notifyObservers({
  66027. object: this.props.target,
  66028. property: this.props.propertyName,
  66029. value: newValue,
  66030. initialValue: this.state.value
  66031. });
  66032. }
  66033. this.props.target[this.props.propertyName] = newValue;
  66034. }
  66035. if (this.props.onChange) {
  66036. this.props.onChange(newValue);
  66037. }
  66038. this.setState({ value: newValue });
  66039. };
  66040. SliderLineComponent.prototype.onInput = function (newValueString) {
  66041. var newValue = parseFloat(newValueString);
  66042. if (this.props.onInput) {
  66043. this.props.onInput(newValue);
  66044. }
  66045. };
  66046. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  66047. if (this.props.useEuler) {
  66048. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  66049. }
  66050. return value;
  66051. };
  66052. SliderLineComponent.prototype.render = function () {
  66053. var _this = this;
  66054. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  66055. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  66056. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66057. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  66058. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  66059. "\u00A0",
  66060. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: this.props.step, min: this.prepareDataToRead(this.props.minimum), max: this.prepareDataToRead(this.props.maximum), value: this.prepareDataToRead(this.state.value), onInput: function (evt) { return _this.onInput(evt.target.value); }, onChange: function (evt) { return _this.onChange(evt.target.value); } }))));
  66061. };
  66062. return SliderLineComponent;
  66063. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66064. /***/ }),
  66065. /***/ "./sharedComponents/textInputLineComponent.tsx":
  66066. /*!*****************************************************!*\
  66067. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  66068. \*****************************************************/
  66069. /*! exports provided: TextInputLineComponent */
  66070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66071. "use strict";
  66072. __webpack_require__.r(__webpack_exports__);
  66073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  66074. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66075. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66076. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66077. var TextInputLineComponent = /** @class */ (function (_super) {
  66078. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextInputLineComponent, _super);
  66079. function TextInputLineComponent(props) {
  66080. var _this = _super.call(this, props) || this;
  66081. _this._localChange = false;
  66082. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  66083. return _this;
  66084. }
  66085. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66086. if (this._localChange) {
  66087. this._localChange = false;
  66088. return true;
  66089. }
  66090. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  66091. if (newValue !== nextState.value) {
  66092. nextState.value = newValue || "";
  66093. return true;
  66094. }
  66095. return false;
  66096. };
  66097. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  66098. if (this.props.onChange) {
  66099. this.props.onChange(newValue);
  66100. return;
  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: newValue,
  66109. initialValue: previousValue
  66110. });
  66111. };
  66112. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  66113. this._localChange = true;
  66114. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  66115. this.setState({ value: value });
  66116. if (raisePropertyChanged) {
  66117. this.raiseOnPropertyChanged(value, store);
  66118. }
  66119. if (this.props.propertyName) {
  66120. this.props.target[this.props.propertyName] = value;
  66121. }
  66122. };
  66123. TextInputLineComponent.prototype.render = function () {
  66124. var _this = this;
  66125. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  66126. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66127. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  66128. 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) {
  66129. if (evt.keyCode !== 13) {
  66130. return;
  66131. }
  66132. _this.updateValue(_this.state.value, true);
  66133. }, onBlur: function (evt) {
  66134. _this.updateValue(evt.target.value, true);
  66135. _this.props.globalState.blockKeyboardEvents = false;
  66136. } }))));
  66137. };
  66138. return TextInputLineComponent;
  66139. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66140. /***/ }),
  66141. /***/ "./sharedComponents/textLineComponent.tsx":
  66142. /*!************************************************!*\
  66143. !*** ./sharedComponents/textLineComponent.tsx ***!
  66144. \************************************************/
  66145. /*! exports provided: TextLineComponent */
  66146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66147. "use strict";
  66148. __webpack_require__.r(__webpack_exports__);
  66149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  66150. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66151. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66152. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66153. var TextLineComponent = /** @class */ (function (_super) {
  66154. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  66155. function TextLineComponent(props) {
  66156. return _super.call(this, props) || this;
  66157. }
  66158. TextLineComponent.prototype.onLink = function () {
  66159. if (!this.props.onLink) {
  66160. return;
  66161. }
  66162. this.props.onLink();
  66163. };
  66164. TextLineComponent.prototype.renderContent = function () {
  66165. var _this = this;
  66166. if (this.props.onLink) {
  66167. 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"));
  66168. }
  66169. 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"));
  66170. };
  66171. TextLineComponent.prototype.render = function () {
  66172. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  66173. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66174. this.renderContent()));
  66175. };
  66176. return TextLineComponent;
  66177. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66178. /***/ }),
  66179. /***/ "./sharedComponents/textureLineComponent.tsx":
  66180. /*!***************************************************!*\
  66181. !*** ./sharedComponents/textureLineComponent.tsx ***!
  66182. \***************************************************/
  66183. /*! exports provided: TextureLineComponent */
  66184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66185. "use strict";
  66186. __webpack_require__.r(__webpack_exports__);
  66187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  66188. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66189. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66190. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66191. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  66192. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  66193. var TextureLineComponent = /** @class */ (function (_super) {
  66194. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  66195. function TextureLineComponent(props) {
  66196. var _this = _super.call(this, props) || this;
  66197. _this.state = {
  66198. displayRed: true,
  66199. displayGreen: true,
  66200. displayBlue: true,
  66201. displayAlpha: true,
  66202. face: 0
  66203. };
  66204. return _this;
  66205. }
  66206. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66207. return true;
  66208. };
  66209. TextureLineComponent.prototype.componentDidMount = function () {
  66210. this.updatePreview();
  66211. };
  66212. TextureLineComponent.prototype.componentDidUpdate = function () {
  66213. this.updatePreview();
  66214. };
  66215. TextureLineComponent.prototype.updatePreview = function () {
  66216. var _this = this;
  66217. var texture = this.props.texture;
  66218. if (!texture.isReady() && texture._texture) {
  66219. texture._texture.onLoadedObservable.addOnce(function () {
  66220. _this.updatePreview();
  66221. });
  66222. }
  66223. var scene = texture.getScene();
  66224. var engine = scene.getEngine();
  66225. var size = texture.getSize();
  66226. var ratio = size.width / size.height;
  66227. var width = this.props.width;
  66228. var height = (width / ratio) | 1;
  66229. var passPostProcess;
  66230. if (!texture.isCube) {
  66231. 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);
  66232. }
  66233. else {
  66234. 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);
  66235. passCubePostProcess.face = this.state.face;
  66236. passPostProcess = passCubePostProcess;
  66237. }
  66238. if (!passPostProcess.getEffect().isReady()) {
  66239. // Try again later
  66240. passPostProcess.dispose();
  66241. setTimeout(function () { return _this.updatePreview(); }, 250);
  66242. return;
  66243. }
  66244. var previewCanvas = this.refs.canvas;
  66245. if (this.props.globalState) {
  66246. this.props.globalState.blockMutationUpdates = true;
  66247. }
  66248. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  66249. passPostProcess.onApply = function (effect) {
  66250. effect.setTexture("textureSampler", texture);
  66251. };
  66252. var internalTexture = rtt.getInternalTexture();
  66253. if (internalTexture) {
  66254. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  66255. // Read the contents of the framebuffer
  66256. var numberOfChannelsByLine = width * 4;
  66257. var halfHeight = height / 2;
  66258. //Reading datas from WebGL
  66259. var data = engine.readPixels(0, 0, width, height);
  66260. if (!texture.isCube) {
  66261. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  66262. for (var i = 0; i < width * height * 4; i += 4) {
  66263. if (!this.state.displayRed) {
  66264. data[i] = 0;
  66265. }
  66266. if (!this.state.displayGreen) {
  66267. data[i + 1] = 0;
  66268. }
  66269. if (!this.state.displayBlue) {
  66270. data[i + 2] = 0;
  66271. }
  66272. if (this.state.displayAlpha) {
  66273. var alpha = data[i + 2];
  66274. data[i] = alpha;
  66275. data[i + 1] = alpha;
  66276. data[i + 2] = alpha;
  66277. data[i + 2] = 0;
  66278. }
  66279. }
  66280. }
  66281. }
  66282. //To flip image on Y axis.
  66283. if (texture.invertY || texture.isCube) {
  66284. for (var i = 0; i < halfHeight; i++) {
  66285. for (var j = 0; j < numberOfChannelsByLine; j++) {
  66286. var currentCell = j + i * numberOfChannelsByLine;
  66287. var targetLine = height - i - 1;
  66288. var targetCell = j + targetLine * numberOfChannelsByLine;
  66289. var temp = data[currentCell];
  66290. data[currentCell] = data[targetCell];
  66291. data[targetCell] = temp;
  66292. }
  66293. }
  66294. }
  66295. previewCanvas.width = width;
  66296. previewCanvas.height = height;
  66297. var context = previewCanvas.getContext('2d');
  66298. if (context) {
  66299. // Copy the pixels to the preview canvas
  66300. var imageData = context.createImageData(width, height);
  66301. var castData = imageData.data;
  66302. castData.set(data);
  66303. context.putImageData(imageData, 0, 0);
  66304. }
  66305. // Unbind
  66306. engine.unBindFramebuffer(internalTexture);
  66307. }
  66308. rtt.dispose();
  66309. passPostProcess.dispose();
  66310. previewCanvas.style.height = height + "px";
  66311. if (this.props.globalState) {
  66312. this.props.globalState.blockMutationUpdates = false;
  66313. }
  66314. };
  66315. TextureLineComponent.prototype.render = function () {
  66316. var _this = this;
  66317. var texture = this.props.texture;
  66318. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  66319. !this.props.hideChannelSelect && texture.isCube &&
  66320. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  66321. 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"),
  66322. 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"),
  66323. 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"),
  66324. 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"),
  66325. 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"),
  66326. 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")),
  66327. !this.props.hideChannelSelect && !texture.isCube &&
  66328. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  66329. 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"),
  66330. 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"),
  66331. 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"),
  66332. 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"),
  66333. 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")),
  66334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  66335. };
  66336. return TextureLineComponent;
  66337. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66338. /***/ }),
  66339. /***/ "./sharedComponents/vector2LineComponent.tsx":
  66340. /*!***************************************************!*\
  66341. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  66342. \***************************************************/
  66343. /*! exports provided: Vector2LineComponent */
  66344. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66345. "use strict";
  66346. __webpack_require__.r(__webpack_exports__);
  66347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  66348. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66349. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66350. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66351. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66352. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66353. /* 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");
  66354. var Vector2LineComponent = /** @class */ (function (_super) {
  66355. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  66356. function Vector2LineComponent(props) {
  66357. var _this = _super.call(this, props) || this;
  66358. _this._localChange = false;
  66359. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  66360. return _this;
  66361. }
  66362. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66363. var nextPropsValue = nextProps.target[nextProps.propertyName];
  66364. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66365. nextState.value = nextPropsValue.clone();
  66366. this._localChange = false;
  66367. return true;
  66368. }
  66369. return false;
  66370. };
  66371. Vector2LineComponent.prototype.switchExpandState = function () {
  66372. this._localChange = true;
  66373. this.setState({ isExpanded: !this.state.isExpanded });
  66374. };
  66375. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66376. if (this.props.onChange) {
  66377. this.props.onChange(this.state.value);
  66378. }
  66379. if (!this.props.onPropertyChangedObservable) {
  66380. return;
  66381. }
  66382. this.props.onPropertyChangedObservable.notifyObservers({
  66383. object: this.props.target,
  66384. property: this.props.propertyName,
  66385. value: this.state.value,
  66386. initialValue: previousValue
  66387. });
  66388. };
  66389. Vector2LineComponent.prototype.updateStateX = function (value) {
  66390. this._localChange = true;
  66391. var store = this.state.value.clone();
  66392. this.props.target[this.props.propertyName].x = value;
  66393. this.state.value.x = value;
  66394. this.setState({ value: this.state.value });
  66395. this.raiseOnPropertyChanged(store);
  66396. };
  66397. Vector2LineComponent.prototype.updateStateY = function (value) {
  66398. this._localChange = true;
  66399. var store = this.state.value.clone();
  66400. this.props.target[this.props.propertyName].y = value;
  66401. this.state.value.y = value;
  66402. this.setState({ value: this.state.value });
  66403. this.raiseOnPropertyChanged(store);
  66404. };
  66405. Vector2LineComponent.prototype.render = function () {
  66406. var _this = this;
  66407. 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"] });
  66408. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66409. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66410. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66411. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  66412. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66413. this.state.isExpanded &&
  66414. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66415. 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); } }),
  66416. 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); } }))));
  66417. };
  66418. Vector2LineComponent.defaultProps = {
  66419. step: 0.001,
  66420. };
  66421. return Vector2LineComponent;
  66422. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66423. /***/ }),
  66424. /***/ "./sharedComponents/vector3LineComponent.tsx":
  66425. /*!***************************************************!*\
  66426. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  66427. \***************************************************/
  66428. /*! exports provided: Vector3LineComponent */
  66429. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66430. "use strict";
  66431. __webpack_require__.r(__webpack_exports__);
  66432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  66433. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66434. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66435. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66436. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66437. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66438. /* 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");
  66439. var Vector3LineComponent = /** @class */ (function (_super) {
  66440. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  66441. function Vector3LineComponent(props) {
  66442. var _this = _super.call(this, props) || this;
  66443. _this._localChange = false;
  66444. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  66445. return _this;
  66446. }
  66447. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66448. var nextPropsValue = nextProps.target[nextProps.propertyName];
  66449. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66450. nextState.value = nextPropsValue.clone();
  66451. this._localChange = false;
  66452. return true;
  66453. }
  66454. return false;
  66455. };
  66456. Vector3LineComponent.prototype.switchExpandState = function () {
  66457. this._localChange = true;
  66458. this.setState({ isExpanded: !this.state.isExpanded });
  66459. };
  66460. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66461. if (this.props.onChange) {
  66462. this.props.onChange(this.state.value);
  66463. }
  66464. if (!this.props.onPropertyChangedObservable) {
  66465. return;
  66466. }
  66467. this.props.onPropertyChangedObservable.notifyObservers({
  66468. object: this.props.target,
  66469. property: this.props.propertyName,
  66470. value: this.state.value,
  66471. initialValue: previousValue
  66472. });
  66473. };
  66474. Vector3LineComponent.prototype.updateVector3 = function () {
  66475. var store = this.props.target[this.props.propertyName].clone();
  66476. this.props.target[this.props.propertyName] = this.state.value;
  66477. this.setState({ value: store });
  66478. this.raiseOnPropertyChanged(store);
  66479. };
  66480. Vector3LineComponent.prototype.updateStateX = function (value) {
  66481. this._localChange = true;
  66482. this.state.value.x = value;
  66483. this.updateVector3();
  66484. };
  66485. Vector3LineComponent.prototype.updateStateY = function (value) {
  66486. this._localChange = true;
  66487. this.state.value.y = value;
  66488. this.updateVector3();
  66489. };
  66490. Vector3LineComponent.prototype.updateStateZ = function (value) {
  66491. this._localChange = true;
  66492. this.state.value.z = value;
  66493. this.updateVector3();
  66494. };
  66495. Vector3LineComponent.prototype.render = function () {
  66496. var _this = this;
  66497. 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"] });
  66498. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66499. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66501. 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)),
  66502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66503. this.state.isExpanded &&
  66504. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66505. 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); } }),
  66506. 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); } }),
  66507. 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); } }))));
  66508. };
  66509. Vector3LineComponent.defaultProps = {
  66510. step: 0.001,
  66511. };
  66512. return Vector3LineComponent;
  66513. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66514. /***/ }),
  66515. /***/ "./sharedComponents/vector4LineComponent.tsx":
  66516. /*!***************************************************!*\
  66517. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  66518. \***************************************************/
  66519. /*! exports provided: Vector4LineComponent */
  66520. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66521. "use strict";
  66522. __webpack_require__.r(__webpack_exports__);
  66523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  66524. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  66525. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  66526. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  66527. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  66528. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  66529. /* 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");
  66530. var Vector4LineComponent = /** @class */ (function (_super) {
  66531. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4LineComponent, _super);
  66532. function Vector4LineComponent(props) {
  66533. var _this = _super.call(this, props) || this;
  66534. _this._localChange = false;
  66535. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  66536. return _this;
  66537. }
  66538. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  66539. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  66540. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  66541. nextState.value = nextPropsValue.clone();
  66542. this._localChange = false;
  66543. return true;
  66544. }
  66545. return false;
  66546. };
  66547. Vector4LineComponent.prototype.switchExpandState = function () {
  66548. this._localChange = true;
  66549. this.setState({ isExpanded: !this.state.isExpanded });
  66550. };
  66551. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  66552. if (this.props.onChange) {
  66553. this.props.onChange(this.state.value);
  66554. }
  66555. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  66556. return;
  66557. }
  66558. this.props.onPropertyChangedObservable.notifyObservers({
  66559. object: this.props.target,
  66560. property: this.props.propertyName,
  66561. value: this.state.value,
  66562. initialValue: previousValue
  66563. });
  66564. };
  66565. Vector4LineComponent.prototype.updateVector4 = function () {
  66566. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  66567. if (this.props.value) {
  66568. this.props.value.copyFrom(this.state.value);
  66569. }
  66570. else {
  66571. this.props.target[this.props.propertyName] = this.state.value;
  66572. }
  66573. this.forceUpdate();
  66574. this.raiseOnPropertyChanged(store);
  66575. };
  66576. Vector4LineComponent.prototype.updateStateX = function (value) {
  66577. this._localChange = true;
  66578. this.state.value.x = value;
  66579. this.updateVector4();
  66580. };
  66581. Vector4LineComponent.prototype.updateStateY = function (value) {
  66582. this._localChange = true;
  66583. this.state.value.y = value;
  66584. this.updateVector4();
  66585. };
  66586. Vector4LineComponent.prototype.updateStateZ = function (value) {
  66587. this._localChange = true;
  66588. this.state.value.z = value;
  66589. this.updateVector4();
  66590. };
  66591. Vector4LineComponent.prototype.updateStateW = function (value) {
  66592. this._localChange = true;
  66593. this.state.value.w = value;
  66594. this.updateVector4();
  66595. };
  66596. Vector4LineComponent.prototype.render = function () {
  66597. var _this = this;
  66598. 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"] });
  66599. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  66600. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  66601. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  66602. 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)),
  66603. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  66604. this.state.isExpanded &&
  66605. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  66606. 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); } }),
  66607. 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); } }),
  66608. 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); } }),
  66609. 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); } }))));
  66610. };
  66611. Vector4LineComponent.defaultProps = {
  66612. step: 0.001,
  66613. };
  66614. return Vector4LineComponent;
  66615. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  66616. /***/ }),
  66617. /***/ "./stringTools.ts":
  66618. /*!************************!*\
  66619. !*** ./stringTools.ts ***!
  66620. \************************/
  66621. /*! exports provided: StringTools */
  66622. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  66623. "use strict";
  66624. __webpack_require__.r(__webpack_exports__);
  66625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  66626. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  66627. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__);
  66628. var StringTools = /** @class */ (function () {
  66629. function StringTools() {
  66630. }
  66631. /*
  66632. * Based on FileSaver.js
  66633. * A saveAs() FileSaver implementation.
  66634. *
  66635. * By Eli Grey, http://eligrey.com
  66636. *
  66637. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  66638. * source : http://purl.eligrey.com/github/FileSaver.js
  66639. */
  66640. StringTools._SaveAs = function (blob, name, document) {
  66641. var _this = this;
  66642. if ('download' in HTMLAnchorElement.prototype) {
  66643. var URL = window.URL || window.webkitURL;
  66644. var a = document.createElement('a');
  66645. a.download = name;
  66646. a.rel = 'noopener'; // tabnabbing
  66647. a.href = URL.createObjectURL(blob);
  66648. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  66649. setTimeout(function () { _this._Click(a, document); }, 0);
  66650. return;
  66651. }
  66652. // Open a popup immediately do go around popup blocker
  66653. // Mostly only available on user interaction and the fileReader is async so...
  66654. var popup = open('', '_blank');
  66655. if (popup) {
  66656. popup.document.title = popup.document.body.innerText = 'downloading...';
  66657. }
  66658. var force = blob.type === 'application/octet-stream';
  66659. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  66660. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  66661. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  66662. // Safari doesn't allow downloading of blob URLs
  66663. var reader = new FileReader();
  66664. reader.onloadend = function () {
  66665. var url = reader.result;
  66666. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  66667. if (popup) {
  66668. popup.location.href = url;
  66669. }
  66670. else {
  66671. location = url;
  66672. }
  66673. popup = null;
  66674. };
  66675. reader.readAsDataURL(blob);
  66676. }
  66677. else {
  66678. var URL = window.URL || window.webkitURL;
  66679. var url = URL.createObjectURL(blob);
  66680. if (popup) {
  66681. popup.location.href = url;
  66682. }
  66683. else {
  66684. location.href = url;
  66685. }
  66686. popup = null;
  66687. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  66688. }
  66689. };
  66690. StringTools._Click = function (node, document) {
  66691. try {
  66692. node.dispatchEvent(new MouseEvent('click'));
  66693. }
  66694. catch (e) {
  66695. var evt = document.createEvent('MouseEvents');
  66696. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  66697. node.dispatchEvent(evt);
  66698. }
  66699. };
  66700. /**
  66701. * Gets the base math type of node material block connection point.
  66702. * @param type Type to parse.
  66703. */
  66704. StringTools.GetBaseType = function (type) {
  66705. return babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  66706. };
  66707. /**
  66708. * Download a string into a file that will be saved locally by the browser
  66709. * @param content defines the string to download locally as a file
  66710. */
  66711. StringTools.DownloadAsFile = function (document, content, filename) {
  66712. var blob = new Blob([content], {
  66713. type: "application/octet-stream"
  66714. });
  66715. this._SaveAs(blob, filename, document);
  66716. };
  66717. return StringTools;
  66718. }());
  66719. /***/ }),
  66720. /***/ "babylonjs/Misc/observable":
  66721. /*!****************************************************************************************************!*\
  66722. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  66723. \****************************************************************************************************/
  66724. /*! no static exports found */
  66725. /***/ (function(module, exports) {
  66726. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  66727. /***/ })
  66728. /******/ });
  66729. });
  66730. //# sourceMappingURL=babylon.nodeEditor.max.js.map