babylon.nodeEditor.max.js 3.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354
  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. !*** E:/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 TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  257. var PRODUCTION = function () {
  258. try {
  259. return "development" === 'production';
  260. } catch (e) {
  261. return false;
  262. }
  263. }();
  264. var PREFIX_TO_STYLE = {
  265. 'fas': 'solid',
  266. 'far': 'regular',
  267. 'fal': 'light',
  268. 'fab': 'brands',
  269. 'fa': 'solid'
  270. };
  271. var STYLE_TO_PREFIX = {
  272. 'solid': 'fas',
  273. 'regular': 'far',
  274. 'light': 'fal',
  275. 'brands': 'fab'
  276. };
  277. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  278. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  279. var FONT_WEIGHT_TO_PREFIX = {
  280. '900': 'fas',
  281. '400': 'far',
  282. 'normal': 'far',
  283. '300': 'fal'
  284. };
  285. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  286. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  287. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  288. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  289. return "".concat(n, "x");
  290. })).concat(oneToTwenty.map(function (n) {
  291. return "w-".concat(n);
  292. }));
  293. var initial = WINDOW.FontAwesomeConfig || {};
  294. function getAttrConfig(attr) {
  295. var element = DOCUMENT.querySelector('script[' + attr + ']');
  296. if (element) {
  297. return element.getAttribute(attr);
  298. }
  299. }
  300. function coerce(val) {
  301. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  302. // We'll assume that this is an indication that it should be toggled to true
  303. // For example <script data-search-pseudo-elements src="..."></script>
  304. if (val === '') return true;
  305. if (val === 'false') return false;
  306. if (val === 'true') return true;
  307. return val;
  308. }
  309. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  310. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  311. attrs.forEach(function (_ref) {
  312. var _ref2 = _slicedToArray(_ref, 2),
  313. attr = _ref2[0],
  314. key = _ref2[1];
  315. var val = coerce(getAttrConfig(attr));
  316. if (val !== undefined && val !== null) {
  317. initial[key] = val;
  318. }
  319. });
  320. }
  321. var _default = {
  322. familyPrefix: DEFAULT_FAMILY_PREFIX,
  323. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  324. autoReplaceSvg: true,
  325. autoAddCss: true,
  326. autoA11y: true,
  327. searchPseudoElements: false,
  328. observeMutations: true,
  329. keepOriginalSource: true,
  330. measurePerformance: false,
  331. showMissingIcons: true
  332. };
  333. var _config = _objectSpread({}, _default, initial);
  334. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  335. var config = _objectSpread({}, _config);
  336. WINDOW.FontAwesomeConfig = config;
  337. var w = WINDOW || {};
  338. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  339. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  340. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  341. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  342. var namespace = w[NAMESPACE_IDENTIFIER];
  343. var functions = [];
  344. var listener = function listener() {
  345. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  346. loaded = 1;
  347. functions.map(function (fn) {
  348. return fn();
  349. });
  350. };
  351. var loaded = false;
  352. if (IS_DOM) {
  353. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  354. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  355. }
  356. function domready (fn) {
  357. if (!IS_DOM) return;
  358. loaded ? setTimeout(fn, 0) : functions.push(fn);
  359. }
  360. var PENDING = 'pending';
  361. var SETTLED = 'settled';
  362. var FULFILLED = 'fulfilled';
  363. var REJECTED = 'rejected';
  364. var NOOP = function NOOP() {};
  365. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  366. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  367. var asyncQueue = [];
  368. var asyncTimer;
  369. function asyncFlush() {
  370. // run promise callbacks
  371. for (var i = 0; i < asyncQueue.length; i++) {
  372. asyncQueue[i][0](asyncQueue[i][1]);
  373. } // reset async asyncQueue
  374. asyncQueue = [];
  375. asyncTimer = false;
  376. }
  377. function asyncCall(callback, arg) {
  378. asyncQueue.push([callback, arg]);
  379. if (!asyncTimer) {
  380. asyncTimer = true;
  381. asyncSetTimer(asyncFlush, 0);
  382. }
  383. }
  384. function invokeResolver(resolver, promise) {
  385. function resolvePromise(value) {
  386. resolve(promise, value);
  387. }
  388. function rejectPromise(reason) {
  389. reject(promise, reason);
  390. }
  391. try {
  392. resolver(resolvePromise, rejectPromise);
  393. } catch (e) {
  394. rejectPromise(e);
  395. }
  396. }
  397. function invokeCallback(subscriber) {
  398. var owner = subscriber.owner;
  399. var settled = owner._state;
  400. var value = owner._data;
  401. var callback = subscriber[settled];
  402. var promise = subscriber.then;
  403. if (typeof callback === 'function') {
  404. settled = FULFILLED;
  405. try {
  406. value = callback(value);
  407. } catch (e) {
  408. reject(promise, e);
  409. }
  410. }
  411. if (!handleThenable(promise, value)) {
  412. if (settled === FULFILLED) {
  413. resolve(promise, value);
  414. }
  415. if (settled === REJECTED) {
  416. reject(promise, value);
  417. }
  418. }
  419. }
  420. function handleThenable(promise, value) {
  421. var resolved;
  422. try {
  423. if (promise === value) {
  424. throw new TypeError('A promises callback cannot return that same promise.');
  425. }
  426. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  427. // then should be retrieved only once
  428. var then = value.then;
  429. if (typeof then === 'function') {
  430. then.call(value, function (val) {
  431. if (!resolved) {
  432. resolved = true;
  433. if (value === val) {
  434. fulfill(promise, val);
  435. } else {
  436. resolve(promise, val);
  437. }
  438. }
  439. }, function (reason) {
  440. if (!resolved) {
  441. resolved = true;
  442. reject(promise, reason);
  443. }
  444. });
  445. return true;
  446. }
  447. }
  448. } catch (e) {
  449. if (!resolved) {
  450. reject(promise, e);
  451. }
  452. return true;
  453. }
  454. return false;
  455. }
  456. function resolve(promise, value) {
  457. if (promise === value || !handleThenable(promise, value)) {
  458. fulfill(promise, value);
  459. }
  460. }
  461. function fulfill(promise, value) {
  462. if (promise._state === PENDING) {
  463. promise._state = SETTLED;
  464. promise._data = value;
  465. asyncCall(publishFulfillment, promise);
  466. }
  467. }
  468. function reject(promise, reason) {
  469. if (promise._state === PENDING) {
  470. promise._state = SETTLED;
  471. promise._data = reason;
  472. asyncCall(publishRejection, promise);
  473. }
  474. }
  475. function publish(promise) {
  476. promise._then = promise._then.forEach(invokeCallback);
  477. }
  478. function publishFulfillment(promise) {
  479. promise._state = FULFILLED;
  480. publish(promise);
  481. }
  482. function publishRejection(promise) {
  483. promise._state = REJECTED;
  484. publish(promise);
  485. if (!promise._handled && isNode) {
  486. global.process.emit('unhandledRejection', promise._data, promise);
  487. }
  488. }
  489. function notifyRejectionHandled(promise) {
  490. global.process.emit('rejectionHandled', promise);
  491. }
  492. /**
  493. * @class
  494. */
  495. function P(resolver) {
  496. if (typeof resolver !== 'function') {
  497. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  498. }
  499. if (this instanceof P === false) {
  500. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  501. }
  502. this._then = [];
  503. invokeResolver(resolver, this);
  504. }
  505. P.prototype = {
  506. constructor: P,
  507. _state: PENDING,
  508. _then: null,
  509. _data: undefined,
  510. _handled: false,
  511. then: function then(onFulfillment, onRejection) {
  512. var subscriber = {
  513. owner: this,
  514. then: new this.constructor(NOOP),
  515. fulfilled: onFulfillment,
  516. rejected: onRejection
  517. };
  518. if ((onRejection || onFulfillment) && !this._handled) {
  519. this._handled = true;
  520. if (this._state === REJECTED && isNode) {
  521. asyncCall(notifyRejectionHandled, this);
  522. }
  523. }
  524. if (this._state === FULFILLED || this._state === REJECTED) {
  525. // already resolved, call callback async
  526. asyncCall(invokeCallback, subscriber);
  527. } else {
  528. // subscribe
  529. this._then.push(subscriber);
  530. }
  531. return subscriber.then;
  532. },
  533. catch: function _catch(onRejection) {
  534. return this.then(null, onRejection);
  535. }
  536. };
  537. P.all = function (promises) {
  538. if (!Array.isArray(promises)) {
  539. throw new TypeError('You must pass an array to Promise.all().');
  540. }
  541. return new P(function (resolve, reject) {
  542. var results = [];
  543. var remaining = 0;
  544. function resolver(index) {
  545. remaining++;
  546. return function (value) {
  547. results[index] = value;
  548. if (! --remaining) {
  549. resolve(results);
  550. }
  551. };
  552. }
  553. for (var i = 0, promise; i < promises.length; i++) {
  554. promise = promises[i];
  555. if (promise && typeof promise.then === 'function') {
  556. promise.then(resolver(i), reject);
  557. } else {
  558. results[i] = promise;
  559. }
  560. }
  561. if (!remaining) {
  562. resolve(results);
  563. }
  564. });
  565. };
  566. P.race = function (promises) {
  567. if (!Array.isArray(promises)) {
  568. throw new TypeError('You must pass an array to Promise.race().');
  569. }
  570. return new P(function (resolve, reject) {
  571. for (var i = 0, promise; i < promises.length; i++) {
  572. promise = promises[i];
  573. if (promise && typeof promise.then === 'function') {
  574. promise.then(resolve, reject);
  575. } else {
  576. resolve(promise);
  577. }
  578. }
  579. });
  580. };
  581. P.resolve = function (value) {
  582. if (value && _typeof(value) === 'object' && value.constructor === P) {
  583. return value;
  584. }
  585. return new P(function (resolve) {
  586. resolve(value);
  587. });
  588. };
  589. P.reject = function (reason) {
  590. return new P(function (resolve, reject) {
  591. reject(reason);
  592. });
  593. };
  594. var picked = typeof Promise === 'function' ? Promise : P;
  595. var d = UNITS_IN_GRID;
  596. var meaninglessTransform = {
  597. size: 16,
  598. x: 0,
  599. y: 0,
  600. rotate: 0,
  601. flipX: false,
  602. flipY: false
  603. };
  604. function isReserved(name) {
  605. return ~RESERVED_CLASSES.indexOf(name);
  606. }
  607. function insertCss(css) {
  608. if (!css || !IS_DOM) {
  609. return;
  610. }
  611. var style = DOCUMENT.createElement('style');
  612. style.setAttribute('type', 'text/css');
  613. style.innerHTML = css;
  614. var headChildren = DOCUMENT.head.childNodes;
  615. var beforeChild = null;
  616. for (var i = headChildren.length - 1; i > -1; i--) {
  617. var child = headChildren[i];
  618. var tagName = (child.tagName || '').toUpperCase();
  619. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  620. beforeChild = child;
  621. }
  622. }
  623. DOCUMENT.head.insertBefore(style, beforeChild);
  624. return css;
  625. }
  626. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  627. function nextUniqueId() {
  628. var size = 12;
  629. var id = '';
  630. while (size-- > 0) {
  631. id += idPool[Math.random() * 62 | 0];
  632. }
  633. return id;
  634. }
  635. function toArray(obj) {
  636. var array = [];
  637. for (var i = (obj || []).length >>> 0; i--;) {
  638. array[i] = obj[i];
  639. }
  640. return array;
  641. }
  642. function classArray(node) {
  643. if (node.classList) {
  644. return toArray(node.classList);
  645. } else {
  646. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  647. return i;
  648. });
  649. }
  650. }
  651. function getIconName(familyPrefix, cls) {
  652. var parts = cls.split('-');
  653. var prefix = parts[0];
  654. var iconName = parts.slice(1).join('-');
  655. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  656. return iconName;
  657. } else {
  658. return null;
  659. }
  660. }
  661. function htmlEscape(str) {
  662. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  663. }
  664. function joinAttributes(attributes) {
  665. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  666. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  667. }, '').trim();
  668. }
  669. function joinStyles(styles) {
  670. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  671. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  672. }, '');
  673. }
  674. function transformIsMeaningful(transform) {
  675. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  676. }
  677. function transformForSvg(_ref) {
  678. var transform = _ref.transform,
  679. containerWidth = _ref.containerWidth,
  680. iconWidth = _ref.iconWidth;
  681. var outer = {
  682. transform: "translate(".concat(containerWidth / 2, " 256)")
  683. };
  684. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  685. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  686. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  687. var inner = {
  688. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  689. };
  690. var path = {
  691. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  692. };
  693. return {
  694. outer: outer,
  695. inner: inner,
  696. path: path
  697. };
  698. }
  699. function transformForCss(_ref2) {
  700. var transform = _ref2.transform,
  701. _ref2$width = _ref2.width,
  702. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  703. _ref2$height = _ref2.height,
  704. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  705. _ref2$startCentered = _ref2.startCentered,
  706. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  707. var val = '';
  708. if (startCentered && IS_IE) {
  709. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  710. } else if (startCentered) {
  711. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  712. } else {
  713. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  714. }
  715. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  716. val += "rotate(".concat(transform.rotate, "deg) ");
  717. return val;
  718. }
  719. var ALL_SPACE = {
  720. x: 0,
  721. y: 0,
  722. width: '100%',
  723. height: '100%'
  724. };
  725. function makeIconMasking (_ref) {
  726. var children = _ref.children,
  727. attributes = _ref.attributes,
  728. main = _ref.main,
  729. mask = _ref.mask,
  730. transform = _ref.transform;
  731. var mainWidth = main.width,
  732. mainPath = main.icon;
  733. var maskWidth = mask.width,
  734. maskPath = mask.icon;
  735. var trans = transformForSvg({
  736. transform: transform,
  737. containerWidth: maskWidth,
  738. iconWidth: mainWidth
  739. });
  740. var maskRect = {
  741. tag: 'rect',
  742. attributes: _objectSpread({}, ALL_SPACE, {
  743. fill: 'white'
  744. })
  745. };
  746. var maskInnerGroup = {
  747. tag: 'g',
  748. attributes: _objectSpread({}, trans.inner),
  749. children: [{
  750. tag: 'path',
  751. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  752. fill: 'black'
  753. })
  754. }]
  755. };
  756. var maskOuterGroup = {
  757. tag: 'g',
  758. attributes: _objectSpread({}, trans.outer),
  759. children: [maskInnerGroup]
  760. };
  761. var maskId = "mask-".concat(nextUniqueId());
  762. var clipId = "clip-".concat(nextUniqueId());
  763. var maskTag = {
  764. tag: 'mask',
  765. attributes: _objectSpread({}, ALL_SPACE, {
  766. id: maskId,
  767. maskUnits: 'userSpaceOnUse',
  768. maskContentUnits: 'userSpaceOnUse'
  769. }),
  770. children: [maskRect, maskOuterGroup]
  771. };
  772. var defs = {
  773. tag: 'defs',
  774. children: [{
  775. tag: 'clipPath',
  776. attributes: {
  777. id: clipId
  778. },
  779. children: [maskPath]
  780. }, maskTag]
  781. };
  782. children.push(defs, {
  783. tag: 'rect',
  784. attributes: _objectSpread({
  785. fill: 'currentColor',
  786. 'clip-path': "url(#".concat(clipId, ")"),
  787. mask: "url(#".concat(maskId, ")")
  788. }, ALL_SPACE)
  789. });
  790. return {
  791. children: children,
  792. attributes: attributes
  793. };
  794. }
  795. function makeIconStandard (_ref) {
  796. var children = _ref.children,
  797. attributes = _ref.attributes,
  798. main = _ref.main,
  799. transform = _ref.transform,
  800. styles = _ref.styles;
  801. var styleString = joinStyles(styles);
  802. if (styleString.length > 0) {
  803. attributes['style'] = styleString;
  804. }
  805. if (transformIsMeaningful(transform)) {
  806. var trans = transformForSvg({
  807. transform: transform,
  808. containerWidth: main.width,
  809. iconWidth: main.width
  810. });
  811. children.push({
  812. tag: 'g',
  813. attributes: _objectSpread({}, trans.outer),
  814. children: [{
  815. tag: 'g',
  816. attributes: _objectSpread({}, trans.inner),
  817. children: [{
  818. tag: main.icon.tag,
  819. children: main.icon.children,
  820. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  821. }]
  822. }]
  823. });
  824. } else {
  825. children.push(main.icon);
  826. }
  827. return {
  828. children: children,
  829. attributes: attributes
  830. };
  831. }
  832. function asIcon (_ref) {
  833. var children = _ref.children,
  834. main = _ref.main,
  835. mask = _ref.mask,
  836. attributes = _ref.attributes,
  837. styles = _ref.styles,
  838. transform = _ref.transform;
  839. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  840. var width = main.width,
  841. height = main.height;
  842. var offset = {
  843. x: width / height / 2,
  844. y: 0.5
  845. };
  846. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  847. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  848. }));
  849. }
  850. return [{
  851. tag: 'svg',
  852. attributes: attributes,
  853. children: children
  854. }];
  855. }
  856. function asSymbol (_ref) {
  857. var prefix = _ref.prefix,
  858. iconName = _ref.iconName,
  859. children = _ref.children,
  860. attributes = _ref.attributes,
  861. symbol = _ref.symbol;
  862. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  863. return [{
  864. tag: 'svg',
  865. attributes: {
  866. style: 'display: none;'
  867. },
  868. children: [{
  869. tag: 'symbol',
  870. attributes: _objectSpread({}, attributes, {
  871. id: id
  872. }),
  873. children: children
  874. }]
  875. }];
  876. }
  877. function makeInlineSvgAbstract(params) {
  878. var _params$icons = params.icons,
  879. main = _params$icons.main,
  880. mask = _params$icons.mask,
  881. prefix = params.prefix,
  882. iconName = params.iconName,
  883. transform = params.transform,
  884. symbol = params.symbol,
  885. title = params.title,
  886. extra = params.extra,
  887. _params$watchable = params.watchable,
  888. watchable = _params$watchable === void 0 ? false : _params$watchable;
  889. var _ref = mask.found ? mask : main,
  890. width = _ref.width,
  891. height = _ref.height;
  892. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  893. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  894. return extra.classes.indexOf(c) === -1;
  895. }).concat(extra.classes).join(' ');
  896. var content = {
  897. children: [],
  898. attributes: _objectSpread({}, extra.attributes, {
  899. 'data-prefix': prefix,
  900. 'data-icon': iconName,
  901. 'class': attrClass,
  902. 'role': 'img',
  903. 'xmlns': 'http://www.w3.org/2000/svg',
  904. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  905. })
  906. };
  907. if (watchable) {
  908. content.attributes[DATA_FA_I2SVG] = '';
  909. }
  910. if (title) content.children.push({
  911. tag: 'title',
  912. attributes: {
  913. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  914. },
  915. children: [title]
  916. });
  917. var args = _objectSpread({}, content, {
  918. prefix: prefix,
  919. iconName: iconName,
  920. main: main,
  921. mask: mask,
  922. transform: transform,
  923. symbol: symbol,
  924. styles: extra.styles
  925. });
  926. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  927. children = _ref2.children,
  928. attributes = _ref2.attributes;
  929. args.children = children;
  930. args.attributes = attributes;
  931. if (symbol) {
  932. return asSymbol(args);
  933. } else {
  934. return asIcon(args);
  935. }
  936. }
  937. function makeLayersTextAbstract(params) {
  938. var content = params.content,
  939. width = params.width,
  940. height = params.height,
  941. transform = params.transform,
  942. title = params.title,
  943. extra = params.extra,
  944. _params$watchable2 = params.watchable,
  945. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  946. var attributes = _objectSpread({}, extra.attributes, title ? {
  947. 'title': title
  948. } : {}, {
  949. 'class': extra.classes.join(' ')
  950. });
  951. if (watchable) {
  952. attributes[DATA_FA_I2SVG] = '';
  953. }
  954. var styles = _objectSpread({}, extra.styles);
  955. if (transformIsMeaningful(transform)) {
  956. styles['transform'] = transformForCss({
  957. transform: transform,
  958. startCentered: true,
  959. width: width,
  960. height: height
  961. });
  962. styles['-webkit-transform'] = styles['transform'];
  963. }
  964. var styleString = joinStyles(styles);
  965. if (styleString.length > 0) {
  966. attributes['style'] = styleString;
  967. }
  968. var val = [];
  969. val.push({
  970. tag: 'span',
  971. attributes: attributes,
  972. children: [content]
  973. });
  974. if (title) {
  975. val.push({
  976. tag: 'span',
  977. attributes: {
  978. class: 'sr-only'
  979. },
  980. children: [title]
  981. });
  982. }
  983. return val;
  984. }
  985. function makeLayersCounterAbstract(params) {
  986. var content = params.content,
  987. title = params.title,
  988. extra = params.extra;
  989. var attributes = _objectSpread({}, extra.attributes, title ? {
  990. 'title': title
  991. } : {}, {
  992. 'class': extra.classes.join(' ')
  993. });
  994. var styleString = joinStyles(extra.styles);
  995. if (styleString.length > 0) {
  996. attributes['style'] = styleString;
  997. }
  998. var val = [];
  999. val.push({
  1000. tag: 'span',
  1001. attributes: attributes,
  1002. children: [content]
  1003. });
  1004. if (title) {
  1005. val.push({
  1006. tag: 'span',
  1007. attributes: {
  1008. class: 'sr-only'
  1009. },
  1010. children: [title]
  1011. });
  1012. }
  1013. return val;
  1014. }
  1015. var noop$1 = function noop() {};
  1016. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  1017. mark: noop$1,
  1018. measure: noop$1
  1019. };
  1020. var preamble = "FA \"5.7.1\"";
  1021. var begin = function begin(name) {
  1022. p.mark("".concat(preamble, " ").concat(name, " begins"));
  1023. return function () {
  1024. return end(name);
  1025. };
  1026. };
  1027. var end = function end(name) {
  1028. p.mark("".concat(preamble, " ").concat(name, " ends"));
  1029. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  1030. };
  1031. var perf = {
  1032. begin: begin,
  1033. end: end
  1034. };
  1035. /**
  1036. * Internal helper to bind a function known to have 4 arguments
  1037. * to a given context.
  1038. */
  1039. var bindInternal4 = function bindInternal4(func, thisContext) {
  1040. return function (a, b, c, d) {
  1041. return func.call(thisContext, a, b, c, d);
  1042. };
  1043. };
  1044. /**
  1045. * # Reduce
  1046. *
  1047. * A fast object `.reduce()` implementation.
  1048. *
  1049. * @param {Object} subject The object to reduce over.
  1050. * @param {Function} fn The reducer function.
  1051. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  1052. * @param {Object} thisContext The context for the reducer.
  1053. * @return {mixed} The final result.
  1054. */
  1055. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  1056. var keys = Object.keys(subject),
  1057. length = keys.length,
  1058. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  1059. i,
  1060. key,
  1061. result;
  1062. if (initialValue === undefined) {
  1063. i = 1;
  1064. result = subject[keys[0]];
  1065. } else {
  1066. i = 0;
  1067. result = initialValue;
  1068. }
  1069. for (; i < length; i++) {
  1070. key = keys[i];
  1071. result = iterator(result, subject[key], key, subject);
  1072. }
  1073. return result;
  1074. };
  1075. function defineIcons(prefix, icons) {
  1076. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1077. var _params$skipHooks = params.skipHooks,
  1078. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  1079. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1080. var icon = icons[iconName];
  1081. var expanded = !!icon.icon;
  1082. if (expanded) {
  1083. acc[icon.iconName] = icon.icon;
  1084. } else {
  1085. acc[iconName] = icon;
  1086. }
  1087. return acc;
  1088. }, {});
  1089. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  1090. namespace.hooks.addPack(prefix, normalized);
  1091. } else {
  1092. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1093. }
  1094. /**
  1095. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1096. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1097. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1098. * this as well.
  1099. */
  1100. if (prefix === 'fas') {
  1101. defineIcons('fa', icons);
  1102. }
  1103. }
  1104. var styles = namespace.styles,
  1105. shims = namespace.shims;
  1106. var _byUnicode = {};
  1107. var _byLigature = {};
  1108. var _byOldName = {};
  1109. var build = function build() {
  1110. var lookup = function lookup(reducer) {
  1111. return reduce(styles, function (o, style, prefix) {
  1112. o[prefix] = reduce(style, reducer, {});
  1113. return o;
  1114. }, {});
  1115. };
  1116. _byUnicode = lookup(function (acc, icon, iconName) {
  1117. if (icon[3]) {
  1118. acc[icon[3]] = iconName;
  1119. }
  1120. return acc;
  1121. });
  1122. _byLigature = lookup(function (acc, icon, iconName) {
  1123. var ligatures = icon[2];
  1124. acc[iconName] = iconName;
  1125. ligatures.forEach(function (ligature) {
  1126. acc[ligature] = iconName;
  1127. });
  1128. return acc;
  1129. });
  1130. var hasRegular = 'far' in styles;
  1131. _byOldName = reduce(shims, function (acc, shim) {
  1132. var oldName = shim[0];
  1133. var prefix = shim[1];
  1134. var iconName = shim[2];
  1135. if (prefix === 'far' && !hasRegular) {
  1136. prefix = 'fas';
  1137. }
  1138. acc[oldName] = {
  1139. prefix: prefix,
  1140. iconName: iconName
  1141. };
  1142. return acc;
  1143. }, {});
  1144. };
  1145. build();
  1146. function byUnicode(prefix, unicode) {
  1147. return _byUnicode[prefix][unicode];
  1148. }
  1149. function byLigature(prefix, ligature) {
  1150. return _byLigature[prefix][ligature];
  1151. }
  1152. function byOldName(name) {
  1153. return _byOldName[name] || {
  1154. prefix: null,
  1155. iconName: null
  1156. };
  1157. }
  1158. var styles$1 = namespace.styles;
  1159. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  1160. return {
  1161. prefix: null,
  1162. iconName: null,
  1163. rest: []
  1164. };
  1165. };
  1166. function getCanonicalIcon(values) {
  1167. return values.reduce(function (acc, cls) {
  1168. var iconName = getIconName(config.familyPrefix, cls);
  1169. if (styles$1[cls]) {
  1170. acc.prefix = cls;
  1171. } else if (config.autoFetchSvg && ['fas', 'far', 'fal', 'fab', 'fa'].indexOf(cls) > -1) {
  1172. acc.prefix = cls;
  1173. } else if (iconName) {
  1174. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  1175. acc.iconName = shim.iconName || iconName;
  1176. acc.prefix = shim.prefix || acc.prefix;
  1177. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  1178. acc.rest.push(cls);
  1179. }
  1180. return acc;
  1181. }, emptyCanonicalIcon());
  1182. }
  1183. function iconFromMapping(mapping, prefix, iconName) {
  1184. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  1185. return {
  1186. prefix: prefix,
  1187. iconName: iconName,
  1188. icon: mapping[prefix][iconName]
  1189. };
  1190. }
  1191. }
  1192. function toHtml(abstractNodes) {
  1193. var tag = abstractNodes.tag,
  1194. _abstractNodes$attrib = abstractNodes.attributes,
  1195. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  1196. _abstractNodes$childr = abstractNodes.children,
  1197. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  1198. if (typeof abstractNodes === 'string') {
  1199. return htmlEscape(abstractNodes);
  1200. } else {
  1201. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  1202. }
  1203. }
  1204. var noop$2 = function noop() {};
  1205. function isWatched(node) {
  1206. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  1207. return typeof i2svg === 'string';
  1208. }
  1209. function getMutator() {
  1210. if (config.autoReplaceSvg === true) {
  1211. return mutators.replace;
  1212. }
  1213. var mutator = mutators[config.autoReplaceSvg];
  1214. return mutator || mutators.replace;
  1215. }
  1216. var mutators = {
  1217. replace: function replace(mutation) {
  1218. var node = mutation[0];
  1219. var abstract = mutation[1];
  1220. var newOuterHTML = abstract.map(function (a) {
  1221. return toHtml(a);
  1222. }).join('\n');
  1223. if (node.parentNode && node.outerHTML) {
  1224. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  1225. } else if (node.parentNode) {
  1226. var newNode = document.createElement('span');
  1227. node.parentNode.replaceChild(newNode, node);
  1228. newNode.outerHTML = newOuterHTML;
  1229. }
  1230. },
  1231. nest: function nest(mutation) {
  1232. var node = mutation[0];
  1233. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  1234. // Short-circuit to the standard replacement
  1235. if (~classArray(node).indexOf(config.replacementClass)) {
  1236. return mutators.replace(mutation);
  1237. }
  1238. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  1239. delete abstract[0].attributes.style;
  1240. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  1241. if (cls === config.replacementClass || cls.match(forSvg)) {
  1242. acc.toSvg.push(cls);
  1243. } else {
  1244. acc.toNode.push(cls);
  1245. }
  1246. return acc;
  1247. }, {
  1248. toNode: [],
  1249. toSvg: []
  1250. });
  1251. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  1252. var newInnerHTML = abstract.map(function (a) {
  1253. return toHtml(a);
  1254. }).join('\n');
  1255. node.setAttribute('class', splitClasses.toNode.join(' '));
  1256. node.setAttribute(DATA_FA_I2SVG, '');
  1257. node.innerHTML = newInnerHTML;
  1258. }
  1259. };
  1260. function perform(mutations, callback) {
  1261. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  1262. if (mutations.length === 0) {
  1263. callbackFunction();
  1264. } else {
  1265. var frame = WINDOW.requestAnimationFrame || function (op) {
  1266. return op();
  1267. };
  1268. frame(function () {
  1269. var mutator = getMutator();
  1270. var mark = perf.begin('mutate');
  1271. mutations.map(mutator);
  1272. mark();
  1273. callbackFunction();
  1274. });
  1275. }
  1276. }
  1277. var disabled = false;
  1278. function disableObservation() {
  1279. disabled = true;
  1280. }
  1281. function enableObservation() {
  1282. disabled = false;
  1283. }
  1284. var mo = null;
  1285. function observe(options) {
  1286. if (!MUTATION_OBSERVER) {
  1287. return;
  1288. }
  1289. if (!config.observeMutations) {
  1290. return;
  1291. }
  1292. var treeCallback = options.treeCallback,
  1293. nodeCallback = options.nodeCallback,
  1294. pseudoElementsCallback = options.pseudoElementsCallback,
  1295. _options$observeMutat = options.observeMutationsRoot,
  1296. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  1297. mo = new MUTATION_OBSERVER(function (objects) {
  1298. if (disabled) return;
  1299. toArray(objects).forEach(function (mutationRecord) {
  1300. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  1301. if (config.searchPseudoElements) {
  1302. pseudoElementsCallback(mutationRecord.target);
  1303. }
  1304. treeCallback(mutationRecord.target);
  1305. }
  1306. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1307. pseudoElementsCallback(mutationRecord.target.parentNode);
  1308. }
  1309. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1310. if (mutationRecord.attributeName === 'class') {
  1311. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1312. prefix = _getCanonicalIcon.prefix,
  1313. iconName = _getCanonicalIcon.iconName;
  1314. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1315. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1316. } else {
  1317. nodeCallback(mutationRecord.target);
  1318. }
  1319. }
  1320. });
  1321. });
  1322. if (!IS_DOM) return;
  1323. mo.observe(observeMutationsRoot, {
  1324. childList: true,
  1325. attributes: true,
  1326. characterData: true,
  1327. subtree: true
  1328. });
  1329. }
  1330. function disconnect() {
  1331. if (!mo) return;
  1332. mo.disconnect();
  1333. }
  1334. function styleParser (node) {
  1335. var style = node.getAttribute('style');
  1336. var val = [];
  1337. if (style) {
  1338. val = style.split(';').reduce(function (acc, style) {
  1339. var styles = style.split(':');
  1340. var prop = styles[0];
  1341. var value = styles.slice(1);
  1342. if (prop && value.length > 0) {
  1343. acc[prop] = value.join(':').trim();
  1344. }
  1345. return acc;
  1346. }, {});
  1347. }
  1348. return val;
  1349. }
  1350. function toHex(unicode) {
  1351. var result = '';
  1352. for (var i = 0; i < unicode.length; i++) {
  1353. var hex = unicode.charCodeAt(i).toString(16);
  1354. result += ('000' + hex).slice(-4);
  1355. }
  1356. return result;
  1357. }
  1358. function classParser (node) {
  1359. var existingPrefix = node.getAttribute('data-prefix');
  1360. var existingIconName = node.getAttribute('data-icon');
  1361. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1362. var val = getCanonicalIcon(classArray(node));
  1363. if (existingPrefix && existingIconName) {
  1364. val.prefix = existingPrefix;
  1365. val.iconName = existingIconName;
  1366. }
  1367. if (val.prefix && innerText.length > 1) {
  1368. val.iconName = byLigature(val.prefix, node.innerText);
  1369. } else if (val.prefix && innerText.length === 1) {
  1370. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1371. }
  1372. return val;
  1373. }
  1374. var parseTransformString = function parseTransformString(transformString) {
  1375. var transform = {
  1376. size: 16,
  1377. x: 0,
  1378. y: 0,
  1379. flipX: false,
  1380. flipY: false,
  1381. rotate: 0
  1382. };
  1383. if (!transformString) {
  1384. return transform;
  1385. } else {
  1386. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1387. var parts = n.toLowerCase().split('-');
  1388. var first = parts[0];
  1389. var rest = parts.slice(1).join('-');
  1390. if (first && rest === 'h') {
  1391. acc.flipX = true;
  1392. return acc;
  1393. }
  1394. if (first && rest === 'v') {
  1395. acc.flipY = true;
  1396. return acc;
  1397. }
  1398. rest = parseFloat(rest);
  1399. if (isNaN(rest)) {
  1400. return acc;
  1401. }
  1402. switch (first) {
  1403. case 'grow':
  1404. acc.size = acc.size + rest;
  1405. break;
  1406. case 'shrink':
  1407. acc.size = acc.size - rest;
  1408. break;
  1409. case 'left':
  1410. acc.x = acc.x - rest;
  1411. break;
  1412. case 'right':
  1413. acc.x = acc.x + rest;
  1414. break;
  1415. case 'up':
  1416. acc.y = acc.y - rest;
  1417. break;
  1418. case 'down':
  1419. acc.y = acc.y + rest;
  1420. break;
  1421. case 'rotate':
  1422. acc.rotate = acc.rotate + rest;
  1423. break;
  1424. }
  1425. return acc;
  1426. }, transform);
  1427. }
  1428. };
  1429. function transformParser (node) {
  1430. return parseTransformString(node.getAttribute('data-fa-transform'));
  1431. }
  1432. function symbolParser (node) {
  1433. var symbol = node.getAttribute('data-fa-symbol');
  1434. return symbol === null ? false : symbol === '' ? true : symbol;
  1435. }
  1436. function attributesParser (node) {
  1437. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1438. if (acc.name !== 'class' && acc.name !== 'style') {
  1439. acc[attr.name] = attr.value;
  1440. }
  1441. return acc;
  1442. }, {});
  1443. var title = node.getAttribute('title');
  1444. if (config.autoA11y) {
  1445. if (title) {
  1446. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1447. } else {
  1448. extraAttributes['aria-hidden'] = 'true';
  1449. extraAttributes['focusable'] = 'false';
  1450. }
  1451. }
  1452. return extraAttributes;
  1453. }
  1454. function maskParser (node) {
  1455. var mask = node.getAttribute('data-fa-mask');
  1456. if (!mask) {
  1457. return emptyCanonicalIcon();
  1458. } else {
  1459. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1460. return i.trim();
  1461. }));
  1462. }
  1463. }
  1464. function blankMeta() {
  1465. return {
  1466. iconName: null,
  1467. title: null,
  1468. prefix: null,
  1469. transform: meaninglessTransform,
  1470. symbol: false,
  1471. mask: null,
  1472. extra: {
  1473. classes: [],
  1474. styles: {},
  1475. attributes: {}
  1476. }
  1477. };
  1478. }
  1479. function parseMeta(node) {
  1480. var _classParser = classParser(node),
  1481. iconName = _classParser.iconName,
  1482. prefix = _classParser.prefix,
  1483. extraClasses = _classParser.rest;
  1484. var extraStyles = styleParser(node);
  1485. var transform = transformParser(node);
  1486. var symbol = symbolParser(node);
  1487. var extraAttributes = attributesParser(node);
  1488. var mask = maskParser(node);
  1489. return {
  1490. iconName: iconName,
  1491. title: node.getAttribute('title'),
  1492. prefix: prefix,
  1493. transform: transform,
  1494. symbol: symbol,
  1495. mask: mask,
  1496. extra: {
  1497. classes: extraClasses,
  1498. styles: extraStyles,
  1499. attributes: extraAttributes
  1500. }
  1501. };
  1502. }
  1503. function MissingIcon(error) {
  1504. this.name = 'MissingIcon';
  1505. this.message = error || 'Icon unavailable';
  1506. this.stack = new Error().stack;
  1507. }
  1508. MissingIcon.prototype = Object.create(Error.prototype);
  1509. MissingIcon.prototype.constructor = MissingIcon;
  1510. var FILL = {
  1511. fill: 'currentColor'
  1512. };
  1513. var ANIMATION_BASE = {
  1514. attributeType: 'XML',
  1515. repeatCount: 'indefinite',
  1516. dur: '2s'
  1517. };
  1518. var RING = {
  1519. tag: 'path',
  1520. attributes: _objectSpread({}, FILL, {
  1521. 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'
  1522. })
  1523. };
  1524. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1525. attributeName: 'opacity'
  1526. });
  1527. var DOT = {
  1528. tag: 'circle',
  1529. attributes: _objectSpread({}, FILL, {
  1530. cx: '256',
  1531. cy: '364',
  1532. r: '28'
  1533. }),
  1534. children: [{
  1535. tag: 'animate',
  1536. attributes: _objectSpread({}, ANIMATION_BASE, {
  1537. attributeName: 'r',
  1538. values: '28;14;28;28;14;28;'
  1539. })
  1540. }, {
  1541. tag: 'animate',
  1542. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1543. values: '1;0;1;1;0;1;'
  1544. })
  1545. }]
  1546. };
  1547. var QUESTION = {
  1548. tag: 'path',
  1549. attributes: _objectSpread({}, FILL, {
  1550. opacity: '1',
  1551. 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'
  1552. }),
  1553. children: [{
  1554. tag: 'animate',
  1555. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1556. values: '1;0;0;0;0;1;'
  1557. })
  1558. }]
  1559. };
  1560. var EXCLAMATION = {
  1561. tag: 'path',
  1562. attributes: _objectSpread({}, FILL, {
  1563. opacity: '0',
  1564. 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'
  1565. }),
  1566. children: [{
  1567. tag: 'animate',
  1568. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1569. values: '0;0;1;1;0;0;'
  1570. })
  1571. }]
  1572. };
  1573. var missing = {
  1574. tag: 'g',
  1575. children: [RING, DOT, QUESTION, EXCLAMATION]
  1576. };
  1577. var styles$2 = namespace.styles;
  1578. function findIcon(iconName, prefix) {
  1579. return new picked(function (resolve, reject) {
  1580. var val = {
  1581. found: false,
  1582. width: 512,
  1583. height: 512,
  1584. icon: missing
  1585. };
  1586. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1587. var icon = styles$2[prefix][iconName];
  1588. var width = icon[0];
  1589. var height = icon[1];
  1590. var vectorData = icon.slice(4);
  1591. val = {
  1592. found: true,
  1593. width: width,
  1594. height: height,
  1595. icon: {
  1596. tag: 'path',
  1597. attributes: {
  1598. fill: 'currentColor',
  1599. d: vectorData[0]
  1600. }
  1601. }
  1602. };
  1603. return resolve(val);
  1604. }
  1605. if (iconName && prefix && !config.showMissingIcons) {
  1606. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  1607. } else {
  1608. resolve(val);
  1609. }
  1610. });
  1611. }
  1612. var styles$3 = namespace.styles;
  1613. function generateSvgReplacementMutation(node, nodeMeta) {
  1614. var iconName = nodeMeta.iconName,
  1615. title = nodeMeta.title,
  1616. prefix = nodeMeta.prefix,
  1617. transform = nodeMeta.transform,
  1618. symbol = nodeMeta.symbol,
  1619. mask = nodeMeta.mask,
  1620. extra = nodeMeta.extra;
  1621. return new picked(function (resolve, reject) {
  1622. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  1623. var _ref2 = _slicedToArray(_ref, 2),
  1624. main = _ref2[0],
  1625. mask = _ref2[1];
  1626. resolve([node, makeInlineSvgAbstract({
  1627. icons: {
  1628. main: main,
  1629. mask: mask
  1630. },
  1631. prefix: prefix,
  1632. iconName: iconName,
  1633. transform: transform,
  1634. symbol: symbol,
  1635. mask: mask,
  1636. title: title,
  1637. extra: extra,
  1638. watchable: true
  1639. })]);
  1640. });
  1641. });
  1642. }
  1643. function generateLayersText(node, nodeMeta) {
  1644. var title = nodeMeta.title,
  1645. transform = nodeMeta.transform,
  1646. extra = nodeMeta.extra;
  1647. var width = null;
  1648. var height = null;
  1649. if (IS_IE) {
  1650. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1651. var boundingClientRect = node.getBoundingClientRect();
  1652. width = boundingClientRect.width / computedFontSize;
  1653. height = boundingClientRect.height / computedFontSize;
  1654. }
  1655. if (config.autoA11y && !title) {
  1656. extra.attributes['aria-hidden'] = 'true';
  1657. }
  1658. return picked.resolve([node, makeLayersTextAbstract({
  1659. content: node.innerHTML,
  1660. width: width,
  1661. height: height,
  1662. transform: transform,
  1663. title: title,
  1664. extra: extra,
  1665. watchable: true
  1666. })]);
  1667. }
  1668. function generateMutation(node) {
  1669. var nodeMeta = parseMeta(node);
  1670. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1671. return generateLayersText(node, nodeMeta);
  1672. } else {
  1673. return generateSvgReplacementMutation(node, nodeMeta);
  1674. }
  1675. }
  1676. function onTree(root) {
  1677. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1678. if (!IS_DOM) return;
  1679. var htmlClassList = DOCUMENT.documentElement.classList;
  1680. var hclAdd = function hclAdd(suffix) {
  1681. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1682. };
  1683. var hclRemove = function hclRemove(suffix) {
  1684. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1685. };
  1686. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  1687. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1688. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1689. })).join(', ');
  1690. if (prefixesDomQuery.length === 0) {
  1691. return;
  1692. }
  1693. var candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1694. if (candidates.length > 0) {
  1695. hclAdd('pending');
  1696. hclRemove('complete');
  1697. } else {
  1698. return;
  1699. }
  1700. var mark = perf.begin('onTree');
  1701. var mutations = candidates.reduce(function (acc, node) {
  1702. try {
  1703. var mutation = generateMutation(node);
  1704. if (mutation) {
  1705. acc.push(mutation);
  1706. }
  1707. } catch (e) {
  1708. if (!PRODUCTION) {
  1709. if (e instanceof MissingIcon) {
  1710. console.error(e);
  1711. }
  1712. }
  1713. }
  1714. return acc;
  1715. }, []);
  1716. return new picked(function (resolve, reject) {
  1717. picked.all(mutations).then(function (resolvedMutations) {
  1718. perform(resolvedMutations, function () {
  1719. hclAdd('active');
  1720. hclAdd('complete');
  1721. hclRemove('pending');
  1722. if (typeof callback === 'function') callback();
  1723. mark();
  1724. resolve();
  1725. });
  1726. }).catch(function () {
  1727. mark();
  1728. reject();
  1729. });
  1730. });
  1731. }
  1732. function onNode(node) {
  1733. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1734. generateMutation(node).then(function (mutation) {
  1735. if (mutation) {
  1736. perform([mutation], callback);
  1737. }
  1738. });
  1739. }
  1740. function replaceForPosition(node, position) {
  1741. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  1742. return new picked(function (resolve, reject) {
  1743. if (node.getAttribute(pendingAttribute) !== null) {
  1744. // This node is already being processed
  1745. return resolve();
  1746. }
  1747. var children = toArray(node.children);
  1748. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1749. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  1750. })[0];
  1751. var styles = WINDOW.getComputedStyle(node, position);
  1752. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1753. var fontWeight = styles.getPropertyValue('font-weight');
  1754. if (alreadyProcessedPseudoElement && !fontFamily) {
  1755. // If we've already processed it but the current computed style does not result in a font-family,
  1756. // that probably means that a class name that was previously present to make the icon has been
  1757. // removed. So we now should delete the icon.
  1758. node.removeChild(alreadyProcessedPseudoElement);
  1759. return resolve();
  1760. } else if (fontFamily) {
  1761. var content = styles.getPropertyValue('content');
  1762. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1763. var iconName = byUnicode(prefix, toHex(content.length === 3 ? content.substr(1, 1) : content)); // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1764. // already done so with the same prefix and iconName
  1765. if (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconName) {
  1766. node.setAttribute(pendingAttribute, iconName);
  1767. if (alreadyProcessedPseudoElement) {
  1768. // Delete the old one, since we're replacing it with a new one
  1769. node.removeChild(alreadyProcessedPseudoElement);
  1770. }
  1771. var meta = blankMeta();
  1772. var extra = meta.extra;
  1773. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  1774. findIcon(iconName, prefix).then(function (main) {
  1775. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  1776. icons: {
  1777. main: main,
  1778. mask: emptyCanonicalIcon()
  1779. },
  1780. prefix: prefix,
  1781. iconName: iconName,
  1782. extra: extra,
  1783. watchable: true
  1784. }));
  1785. var element = DOCUMENT.createElement('svg');
  1786. if (position === ':before') {
  1787. node.insertBefore(element, node.firstChild);
  1788. } else {
  1789. node.appendChild(element);
  1790. }
  1791. element.outerHTML = abstract.map(function (a) {
  1792. return toHtml(a);
  1793. }).join('\n');
  1794. node.removeAttribute(pendingAttribute);
  1795. resolve();
  1796. }).catch(reject);
  1797. } else {
  1798. resolve();
  1799. }
  1800. } else {
  1801. resolve();
  1802. }
  1803. });
  1804. }
  1805. function replace(node) {
  1806. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  1807. }
  1808. function processable(node) {
  1809. 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');
  1810. }
  1811. function searchPseudoElements (root) {
  1812. if (!IS_DOM) return;
  1813. return new picked(function (resolve, reject) {
  1814. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  1815. var end = perf.begin('searchPseudoElements');
  1816. disableObservation();
  1817. picked.all(operations).then(function () {
  1818. end();
  1819. enableObservation();
  1820. resolve();
  1821. }).catch(function () {
  1822. end();
  1823. enableObservation();
  1824. reject();
  1825. });
  1826. });
  1827. }
  1828. 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}";
  1829. function css () {
  1830. var dfp = DEFAULT_FAMILY_PREFIX;
  1831. var drc = DEFAULT_REPLACEMENT_CLASS;
  1832. var fp = config.familyPrefix;
  1833. var rc = config.replacementClass;
  1834. var s = baseStyles;
  1835. if (fp !== dfp || rc !== drc) {
  1836. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1837. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1838. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1839. }
  1840. return s;
  1841. }
  1842. var Library =
  1843. /*#__PURE__*/
  1844. function () {
  1845. function Library() {
  1846. _classCallCheck(this, Library);
  1847. this.definitions = {};
  1848. }
  1849. _createClass(Library, [{
  1850. key: "add",
  1851. value: function add() {
  1852. var _this = this;
  1853. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1854. definitions[_key] = arguments[_key];
  1855. }
  1856. var additions = definitions.reduce(this._pullDefinitions, {});
  1857. Object.keys(additions).forEach(function (key) {
  1858. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1859. defineIcons(key, additions[key]);
  1860. build();
  1861. });
  1862. }
  1863. }, {
  1864. key: "reset",
  1865. value: function reset() {
  1866. this.definitions = {};
  1867. }
  1868. }, {
  1869. key: "_pullDefinitions",
  1870. value: function _pullDefinitions(additions, definition) {
  1871. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1872. 0: definition
  1873. } : definition;
  1874. Object.keys(normalized).map(function (key) {
  1875. var _normalized$key = normalized[key],
  1876. prefix = _normalized$key.prefix,
  1877. iconName = _normalized$key.iconName,
  1878. icon = _normalized$key.icon;
  1879. if (!additions[prefix]) additions[prefix] = {};
  1880. additions[prefix][iconName] = icon;
  1881. });
  1882. return additions;
  1883. }
  1884. }]);
  1885. return Library;
  1886. }();
  1887. function prepIcon(icon) {
  1888. var width = icon[0];
  1889. var height = icon[1];
  1890. var vectorData = icon.slice(4);
  1891. return {
  1892. found: true,
  1893. width: width,
  1894. height: height,
  1895. icon: {
  1896. tag: 'path',
  1897. attributes: {
  1898. fill: 'currentColor',
  1899. d: vectorData[0]
  1900. }
  1901. }
  1902. };
  1903. }
  1904. function ensureCss() {
  1905. if (config.autoAddCss && !_cssInserted) {
  1906. insertCss(css());
  1907. _cssInserted = true;
  1908. }
  1909. }
  1910. function apiObject(val, abstractCreator) {
  1911. Object.defineProperty(val, 'abstract', {
  1912. get: abstractCreator
  1913. });
  1914. Object.defineProperty(val, 'html', {
  1915. get: function get() {
  1916. return val.abstract.map(function (a) {
  1917. return toHtml(a);
  1918. });
  1919. }
  1920. });
  1921. Object.defineProperty(val, 'node', {
  1922. get: function get() {
  1923. if (!IS_DOM) return;
  1924. var container = DOCUMENT.createElement('div');
  1925. container.innerHTML = val.html;
  1926. return container.children;
  1927. }
  1928. });
  1929. return val;
  1930. }
  1931. function findIconDefinition(iconLookup) {
  1932. var _iconLookup$prefix = iconLookup.prefix,
  1933. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  1934. iconName = iconLookup.iconName;
  1935. if (!iconName) return;
  1936. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1937. }
  1938. function resolveIcons(next) {
  1939. return function (maybeIconDefinition) {
  1940. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1941. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1942. var mask = params.mask;
  1943. if (mask) {
  1944. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1945. }
  1946. return next(iconDefinition, _objectSpread({}, params, {
  1947. mask: mask
  1948. }));
  1949. };
  1950. }
  1951. var library = new Library();
  1952. var noAuto = function noAuto() {
  1953. config.autoReplaceSvg = false;
  1954. config.observeMutations = false;
  1955. disconnect();
  1956. };
  1957. var _cssInserted = false;
  1958. var dom = {
  1959. i2svg: function i2svg() {
  1960. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1961. if (IS_DOM) {
  1962. ensureCss();
  1963. var _params$node = params.node,
  1964. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1965. _params$callback = params.callback,
  1966. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1967. if (config.searchPseudoElements) {
  1968. searchPseudoElements(node);
  1969. }
  1970. return onTree(node, callback);
  1971. } else {
  1972. return picked.reject('Operation requires a DOM of some kind.');
  1973. }
  1974. },
  1975. css: css,
  1976. insertCss: function insertCss$$1() {
  1977. if (!_cssInserted) {
  1978. insertCss(css());
  1979. _cssInserted = true;
  1980. }
  1981. },
  1982. watch: function watch() {
  1983. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1984. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1985. observeMutationsRoot = params.observeMutationsRoot;
  1986. if (config.autoReplaceSvg === false) {
  1987. config.autoReplaceSvg = true;
  1988. }
  1989. config.observeMutations = true;
  1990. domready(function () {
  1991. autoReplace({
  1992. autoReplaceSvgRoot: autoReplaceSvgRoot
  1993. });
  1994. observe({
  1995. treeCallback: onTree,
  1996. nodeCallback: onNode,
  1997. pseudoElementsCallback: searchPseudoElements,
  1998. observeMutationsRoot: observeMutationsRoot
  1999. });
  2000. });
  2001. }
  2002. };
  2003. var parse = {
  2004. transform: function transform(transformString) {
  2005. return parseTransformString(transformString);
  2006. }
  2007. };
  2008. var icon = resolveIcons(function (iconDefinition) {
  2009. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2010. var _params$transform = params.transform,
  2011. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  2012. _params$symbol = params.symbol,
  2013. symbol = _params$symbol === void 0 ? false : _params$symbol,
  2014. _params$mask = params.mask,
  2015. mask = _params$mask === void 0 ? null : _params$mask,
  2016. _params$title = params.title,
  2017. title = _params$title === void 0 ? null : _params$title,
  2018. _params$classes = params.classes,
  2019. classes = _params$classes === void 0 ? [] : _params$classes,
  2020. _params$attributes = params.attributes,
  2021. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  2022. _params$styles = params.styles,
  2023. styles = _params$styles === void 0 ? {} : _params$styles;
  2024. if (!iconDefinition) return;
  2025. var prefix = iconDefinition.prefix,
  2026. iconName = iconDefinition.iconName,
  2027. icon = iconDefinition.icon;
  2028. return apiObject(_objectSpread({
  2029. type: 'icon'
  2030. }, iconDefinition), function () {
  2031. ensureCss();
  2032. if (config.autoA11y) {
  2033. if (title) {
  2034. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  2035. } else {
  2036. attributes['aria-hidden'] = 'true';
  2037. attributes['focusable'] = 'false';
  2038. }
  2039. }
  2040. return makeInlineSvgAbstract({
  2041. icons: {
  2042. main: prepIcon(icon),
  2043. mask: mask ? prepIcon(mask.icon) : {
  2044. found: false,
  2045. width: null,
  2046. height: null,
  2047. icon: {}
  2048. }
  2049. },
  2050. prefix: prefix,
  2051. iconName: iconName,
  2052. transform: _objectSpread({}, meaninglessTransform, transform),
  2053. symbol: symbol,
  2054. title: title,
  2055. extra: {
  2056. attributes: attributes,
  2057. styles: styles,
  2058. classes: classes
  2059. }
  2060. });
  2061. });
  2062. });
  2063. var text = function text(content) {
  2064. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2065. var _params$transform2 = params.transform,
  2066. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  2067. _params$title2 = params.title,
  2068. title = _params$title2 === void 0 ? null : _params$title2,
  2069. _params$classes2 = params.classes,
  2070. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  2071. _params$attributes2 = params.attributes,
  2072. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  2073. _params$styles2 = params.styles,
  2074. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  2075. return apiObject({
  2076. type: 'text',
  2077. content: content
  2078. }, function () {
  2079. ensureCss();
  2080. return makeLayersTextAbstract({
  2081. content: content,
  2082. transform: _objectSpread({}, meaninglessTransform, transform),
  2083. title: title,
  2084. extra: {
  2085. attributes: attributes,
  2086. styles: styles,
  2087. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  2088. }
  2089. });
  2090. });
  2091. };
  2092. var counter = function counter(content) {
  2093. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2094. var _params$title3 = params.title,
  2095. title = _params$title3 === void 0 ? null : _params$title3,
  2096. _params$classes3 = params.classes,
  2097. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  2098. _params$attributes3 = params.attributes,
  2099. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  2100. _params$styles3 = params.styles,
  2101. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  2102. return apiObject({
  2103. type: 'counter',
  2104. content: content
  2105. }, function () {
  2106. ensureCss();
  2107. return makeLayersCounterAbstract({
  2108. content: content.toString(),
  2109. title: title,
  2110. extra: {
  2111. attributes: attributes,
  2112. styles: styles,
  2113. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  2114. }
  2115. });
  2116. });
  2117. };
  2118. var layer = function layer(assembler) {
  2119. return apiObject({
  2120. type: 'layer'
  2121. }, function () {
  2122. ensureCss();
  2123. var children = [];
  2124. assembler(function (args) {
  2125. Array.isArray(args) ? args.map(function (a) {
  2126. children = children.concat(a.abstract);
  2127. }) : children = children.concat(args.abstract);
  2128. });
  2129. return [{
  2130. tag: 'span',
  2131. attributes: {
  2132. class: "".concat(config.familyPrefix, "-layers")
  2133. },
  2134. children: children
  2135. }];
  2136. });
  2137. };
  2138. var api = {
  2139. noAuto: noAuto,
  2140. config: config,
  2141. dom: dom,
  2142. library: library,
  2143. parse: parse,
  2144. findIconDefinition: findIconDefinition,
  2145. icon: icon,
  2146. text: text,
  2147. counter: counter,
  2148. layer: layer,
  2149. toHtml: toHtml
  2150. };
  2151. var autoReplace = function autoReplace() {
  2152. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2153. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  2154. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  2155. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  2156. node: autoReplaceSvgRoot
  2157. });
  2158. };
  2159. /* 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))
  2160. /***/ }),
  2161. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  2162. /*!**************************************************************************************!*\
  2163. !*** E:/Repos/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  2164. \**************************************************************************************/
  2165. /*! 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 */
  2166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2167. "use strict";
  2168. __webpack_require__.r(__webpack_exports__);
  2169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  2170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  2171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  2172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  2173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  2174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  2175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  2176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  2177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  2178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  2179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  2180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  2988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  2989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  2990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  2991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  2994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  2995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  2996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  2997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  2998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  2999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  3000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  3001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  3002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  3003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  3004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  3005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  3006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  3007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  3008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  3009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  3010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  3011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  3012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  3013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  3014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  3015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  3016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  3017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  3019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  3020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  3021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  3022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  3023. /*!
  3024. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  3025. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  3026. */
  3027. var prefix = "fas";
  3028. 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"] };
  3029. 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"] };
  3030. 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"] };
  3031. 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"] };
  3032. 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"] };
  3033. 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"] };
  3034. 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"] };
  3035. 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"] };
  3036. 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"] };
  3037. 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"] };
  3038. 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"] };
  3039. 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"] };
  3040. 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"] };
  3041. 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"] };
  3042. 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"] };
  3043. 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"] };
  3044. 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"] };
  3045. 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"] };
  3046. 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"] };
  3047. 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"] };
  3048. 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"] };
  3049. 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"] };
  3050. 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"] };
  3051. 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"] };
  3052. 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"] };
  3053. 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"] };
  3054. 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"] };
  3055. 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"] };
  3056. 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"] };
  3057. 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"] };
  3058. 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"] };
  3059. 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"] };
  3060. 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"] };
  3061. 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"] };
  3062. 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"] };
  3063. 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"] };
  3064. 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"] };
  3065. 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"] };
  3066. 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"] };
  3067. 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"] };
  3068. 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"] };
  3069. 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"] };
  3070. 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"] };
  3071. 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"] };
  3072. 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"] };
  3073. 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"] };
  3074. 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"] };
  3075. 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"] };
  3076. 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"] };
  3077. 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"] };
  3078. 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"] };
  3079. 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"] };
  3080. 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"] };
  3081. 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"] };
  3082. 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"] };
  3083. 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"] };
  3084. 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"] };
  3085. 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"] };
  3086. 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"] };
  3087. 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"] };
  3088. 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"] };
  3089. 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"] };
  3090. 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"] };
  3091. 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"] };
  3092. 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"] };
  3093. 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"] };
  3094. 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"] };
  3095. 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"] };
  3096. 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"] };
  3097. 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"] };
  3098. 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"] };
  3099. 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"] };
  3100. 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"] };
  3101. 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"] };
  3102. 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"] };
  3103. 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"] };
  3104. 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"] };
  3105. 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"] };
  3106. 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"] };
  3107. 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"] };
  3108. 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"] };
  3109. 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"] };
  3110. 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"] };
  3111. 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"] };
  3112. 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"] };
  3113. 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"] };
  3114. 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"] };
  3115. 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"] };
  3116. 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"] };
  3117. 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"] };
  3118. 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"] };
  3119. 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"] };
  3120. 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"] };
  3121. 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"] };
  3122. 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"] };
  3123. 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"] };
  3124. 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"] };
  3125. 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"] };
  3126. 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"] };
  3127. 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"] };
  3128. 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"] };
  3129. 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"] };
  3130. 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"] };
  3131. 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"] };
  3132. 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"] };
  3133. 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"] };
  3134. 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"] };
  3135. 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"] };
  3136. 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"] };
  3137. 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"] };
  3138. 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"] };
  3139. 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"] };
  3140. 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"] };
  3141. 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"] };
  3142. 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"] };
  3143. 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"] };
  3144. 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"] };
  3145. 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"] };
  3146. 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"] };
  3147. 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"] };
  3148. 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"] };
  3149. 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"] };
  3150. 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"] };
  3151. 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"] };
  3152. 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"] };
  3153. 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"] };
  3154. 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"] };
  3155. 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"] };
  3156. 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"] };
  3157. 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"] };
  3158. 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"] };
  3159. 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"] };
  3160. 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"] };
  3161. 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"] };
  3162. 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"] };
  3163. 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"] };
  3164. 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"] };
  3165. 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"] };
  3166. 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"] };
  3167. 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"] };
  3168. 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"] };
  3169. 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"] };
  3170. 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"] };
  3171. 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"] };
  3172. 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"] };
  3173. 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"] };
  3174. 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"] };
  3175. 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"] };
  3176. 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"] };
  3177. 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"] };
  3178. 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"] };
  3179. 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"] };
  3180. 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"] };
  3181. 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"] };
  3182. 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"] };
  3183. 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"] };
  3184. 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"] };
  3185. 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"] };
  3186. 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"] };
  3187. 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"] };
  3188. 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"] };
  3189. 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"] };
  3190. 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"] };
  3191. 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"] };
  3192. 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"] };
  3193. 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"] };
  3194. 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"] };
  3195. 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"] };
  3196. 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"] };
  3197. 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"] };
  3198. 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"] };
  3199. 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"] };
  3200. 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"] };
  3201. 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"] };
  3202. 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"] };
  3203. 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"] };
  3204. 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"] };
  3205. 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"] };
  3206. 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"] };
  3207. 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"] };
  3208. 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"] };
  3209. 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"] };
  3210. 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"] };
  3211. 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"] };
  3212. 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"] };
  3213. 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"] };
  3214. 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"] };
  3215. 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"] };
  3216. 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"] };
  3217. 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"] };
  3218. 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"] };
  3219. 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"] };
  3220. 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"] };
  3221. 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"] };
  3222. 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"] };
  3223. 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"] };
  3224. 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"] };
  3225. 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"] };
  3226. 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"] };
  3227. 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"] };
  3228. 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"] };
  3229. 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"] };
  3230. 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"] };
  3231. 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"] };
  3232. 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"] };
  3233. 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"] };
  3234. 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"] };
  3235. 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"] };
  3236. 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"] };
  3237. 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"] };
  3238. 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"] };
  3239. 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"] };
  3240. 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"] };
  3241. 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"] };
  3242. 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"] };
  3243. 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"] };
  3244. 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"] };
  3245. 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"] };
  3246. 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"] };
  3247. 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"] };
  3248. 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"] };
  3249. 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"] };
  3250. 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"] };
  3251. 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"] };
  3252. 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"] };
  3253. 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"] };
  3254. 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"] };
  3255. 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"] };
  3256. 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"] };
  3257. 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"] };
  3258. 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"] };
  3259. 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"] };
  3260. 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"] };
  3261. 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"] };
  3262. 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"] };
  3263. 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"] };
  3264. 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"] };
  3265. 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"] };
  3266. 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"] };
  3267. 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"] };
  3268. 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"] };
  3269. 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"] };
  3270. 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"] };
  3271. 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"] };
  3272. 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"] };
  3273. 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"] };
  3274. 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"] };
  3275. 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"] };
  3276. 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"] };
  3277. 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"] };
  3278. 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"] };
  3279. 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"] };
  3280. 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"] };
  3281. 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"] };
  3282. 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"] };
  3283. 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"] };
  3284. 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"] };
  3285. 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"] };
  3286. 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"] };
  3287. 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"] };
  3288. 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"] };
  3289. 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"] };
  3290. 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"] };
  3291. 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"] };
  3292. 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"] };
  3293. 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"] };
  3294. 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"] };
  3295. 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"] };
  3296. 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"] };
  3297. 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"] };
  3298. 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"] };
  3299. 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"] };
  3300. 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"] };
  3301. 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"] };
  3302. 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"] };
  3303. 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"] };
  3304. 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"] };
  3305. 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"] };
  3306. 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"] };
  3307. 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"] };
  3308. 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"] };
  3309. 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"] };
  3310. 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"] };
  3311. 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"] };
  3312. 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"] };
  3313. 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"] };
  3314. 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"] };
  3315. 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"] };
  3316. 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"] };
  3317. 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"] };
  3318. 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"] };
  3319. 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"] };
  3320. 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"] };
  3321. 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"] };
  3322. 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"] };
  3323. 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"] };
  3324. 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"] };
  3325. 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"] };
  3326. 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"] };
  3327. 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"] };
  3328. 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"] };
  3329. 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"] };
  3330. 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"] };
  3331. 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"] };
  3332. 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"] };
  3333. 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"] };
  3334. 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"] };
  3335. 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"] };
  3336. 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"] };
  3337. 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"] };
  3338. 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"] };
  3339. 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"] };
  3340. 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"] };
  3341. 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"] };
  3342. 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"] };
  3343. 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"] };
  3344. 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"] };
  3345. 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"] };
  3346. 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"] };
  3347. 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"] };
  3348. 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"] };
  3349. 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"] };
  3350. 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"] };
  3351. 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"] };
  3352. 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"] };
  3353. 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"] };
  3354. 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"] };
  3355. 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"] };
  3356. 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"] };
  3357. 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"] };
  3358. 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"] };
  3359. 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"] };
  3360. 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"] };
  3361. 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"] };
  3362. 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"] };
  3363. 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"] };
  3364. 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"] };
  3365. 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"] };
  3366. 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"] };
  3367. 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"] };
  3368. 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"] };
  3369. 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"] };
  3370. 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"] };
  3371. 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"] };
  3372. 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"] };
  3373. 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"] };
  3374. 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"] };
  3375. 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"] };
  3376. 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"] };
  3377. 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"] };
  3378. 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"] };
  3379. 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"] };
  3380. 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"] };
  3381. 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"] };
  3382. 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"] };
  3383. 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"] };
  3384. 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"] };
  3385. 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"] };
  3386. 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"] };
  3387. 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"] };
  3388. 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"] };
  3389. 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"] };
  3390. 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"] };
  3391. 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"] };
  3392. 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"] };
  3393. 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"] };
  3394. 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"] };
  3395. 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"] };
  3396. 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"] };
  3397. 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"] };
  3398. 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"] };
  3399. 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"] };
  3400. 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"] };
  3401. 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"] };
  3402. 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"] };
  3403. 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"] };
  3404. 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"] };
  3405. 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"] };
  3406. 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"] };
  3407. 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"] };
  3408. 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"] };
  3409. 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"] };
  3410. 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"] };
  3411. 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"] };
  3412. 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"] };
  3413. 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"] };
  3414. 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"] };
  3415. 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"] };
  3416. 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"] };
  3417. 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"] };
  3418. 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"] };
  3419. 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"] };
  3420. 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"] };
  3421. 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"] };
  3422. 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"] };
  3423. 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"] };
  3424. 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"] };
  3425. 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"] };
  3426. 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"] };
  3427. 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"] };
  3428. 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"] };
  3429. 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"] };
  3430. 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"] };
  3431. 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"] };
  3432. 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"] };
  3433. 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"] };
  3434. 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"] };
  3435. 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"] };
  3436. 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"] };
  3437. 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"] };
  3438. 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"] };
  3439. 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"] };
  3440. 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"] };
  3441. 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"] };
  3442. 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"] };
  3443. 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"] };
  3444. 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"] };
  3445. 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"] };
  3446. 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"] };
  3447. 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"] };
  3448. 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"] };
  3449. 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"] };
  3450. 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"] };
  3451. 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"] };
  3452. 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"] };
  3453. 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"] };
  3454. 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"] };
  3455. 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"] };
  3456. 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"] };
  3457. 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"] };
  3458. 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"] };
  3459. 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"] };
  3460. 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"] };
  3461. 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"] };
  3462. 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"] };
  3463. 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"] };
  3464. 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"] };
  3465. 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"] };
  3466. 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"] };
  3467. 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"] };
  3468. 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"] };
  3469. 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"] };
  3470. 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"] };
  3471. 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"] };
  3472. 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"] };
  3473. 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"] };
  3474. 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"] };
  3475. 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"] };
  3476. 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"] };
  3477. 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"] };
  3478. 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"] };
  3479. 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"] };
  3480. 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"] };
  3481. 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"] };
  3482. 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"] };
  3483. 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"] };
  3484. 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"] };
  3485. 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"] };
  3486. 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"] };
  3487. 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"] };
  3488. 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"] };
  3489. 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"] };
  3490. 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"] };
  3491. 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"] };
  3492. 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"] };
  3493. 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"] };
  3494. 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"] };
  3495. 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"] };
  3496. 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"] };
  3497. 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"] };
  3498. 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"] };
  3499. 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"] };
  3500. 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"] };
  3501. 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"] };
  3502. 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"] };
  3503. 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"] };
  3504. 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"] };
  3505. 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"] };
  3506. 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"] };
  3507. 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"] };
  3508. 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"] };
  3509. 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"] };
  3510. 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"] };
  3511. 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"] };
  3512. 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"] };
  3513. 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"] };
  3514. 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"] };
  3515. 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"] };
  3516. 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"] };
  3517. 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"] };
  3518. 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"] };
  3519. 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"] };
  3520. 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"] };
  3521. 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"] };
  3522. 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"] };
  3523. 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"] };
  3524. 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"] };
  3525. 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"] };
  3526. 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"] };
  3527. 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"] };
  3528. 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"] };
  3529. 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"] };
  3530. 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"] };
  3531. 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"] };
  3532. 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"] };
  3533. 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"] };
  3534. 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"] };
  3535. 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"] };
  3536. 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"] };
  3537. 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"] };
  3538. 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"] };
  3539. 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"] };
  3540. 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"] };
  3541. 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"] };
  3542. 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"] };
  3543. 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"] };
  3544. 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"] };
  3545. 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"] };
  3546. 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"] };
  3547. 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"] };
  3548. 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"] };
  3549. 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"] };
  3550. 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"] };
  3551. 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"] };
  3552. 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"] };
  3553. 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"] };
  3554. 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"] };
  3555. 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"] };
  3556. 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"] };
  3557. 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"] };
  3558. 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"] };
  3559. 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"] };
  3560. 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"] };
  3561. 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"] };
  3562. 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"] };
  3563. 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"] };
  3564. 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"] };
  3565. 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"] };
  3566. 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"] };
  3567. 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"] };
  3568. 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"] };
  3569. 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"] };
  3570. 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"] };
  3571. 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"] };
  3572. 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"] };
  3573. 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"] };
  3574. 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"] };
  3575. 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"] };
  3576. 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"] };
  3577. 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"] };
  3578. 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"] };
  3579. 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"] };
  3580. 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"] };
  3581. 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"] };
  3582. 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"] };
  3583. 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"] };
  3584. 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"] };
  3585. 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"] };
  3586. 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"] };
  3587. 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"] };
  3588. 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"] };
  3589. 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"] };
  3590. 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"] };
  3591. 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"] };
  3592. 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"] };
  3593. 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"] };
  3594. 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"] };
  3595. 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"] };
  3596. 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"] };
  3597. 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"] };
  3598. 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"] };
  3599. 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"] };
  3600. 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"] };
  3601. 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"] };
  3602. 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"] };
  3603. 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"] };
  3604. 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"] };
  3605. 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"] };
  3606. 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"] };
  3607. 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"] };
  3608. 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"] };
  3609. 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"] };
  3610. 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"] };
  3611. 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"] };
  3612. 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"] };
  3613. 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"] };
  3614. 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"] };
  3615. 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"] };
  3616. 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"] };
  3617. 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"] };
  3618. 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"] };
  3619. 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"] };
  3620. 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"] };
  3621. 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"] };
  3622. 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"] };
  3623. 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"] };
  3624. 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"] };
  3625. 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"] };
  3626. 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"] };
  3627. 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"] };
  3628. 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"] };
  3629. 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"] };
  3630. 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"] };
  3631. 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"] };
  3632. 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"] };
  3633. 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"] };
  3634. 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"] };
  3635. 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"] };
  3636. 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"] };
  3637. 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"] };
  3638. 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"] };
  3639. 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"] };
  3640. 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"] };
  3641. 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"] };
  3642. 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"] };
  3643. 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"] };
  3644. 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"] };
  3645. 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"] };
  3646. 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"] };
  3647. 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"] };
  3648. 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"] };
  3649. 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"] };
  3650. 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"] };
  3651. 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"] };
  3652. 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"] };
  3653. 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"] };
  3654. 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"] };
  3655. 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"] };
  3656. 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"] };
  3657. 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"] };
  3658. 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"] };
  3659. 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"] };
  3660. 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"] };
  3661. 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"] };
  3662. 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"] };
  3663. 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"] };
  3664. 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"] };
  3665. 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"] };
  3666. 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"] };
  3667. 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"] };
  3668. 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"] };
  3669. 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"] };
  3670. 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"] };
  3671. 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"] };
  3672. 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"] };
  3673. 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"] };
  3674. 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"] };
  3675. 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"] };
  3676. 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"] };
  3677. 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"] };
  3678. 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"] };
  3679. 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"] };
  3680. 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"] };
  3681. 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"] };
  3682. 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"] };
  3683. 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"] };
  3684. 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"] };
  3685. 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"] };
  3686. 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"] };
  3687. 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"] };
  3688. 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"] };
  3689. 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"] };
  3690. 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"] };
  3691. 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"] };
  3692. 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"] };
  3693. 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"] };
  3694. 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"] };
  3695. 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"] };
  3696. 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"] };
  3697. 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"] };
  3698. 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"] };
  3699. 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"] };
  3700. 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"] };
  3701. 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"] };
  3702. 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"] };
  3703. 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"] };
  3704. 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"] };
  3705. 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"] };
  3706. 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"] };
  3707. 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"] };
  3708. 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"] };
  3709. 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"] };
  3710. 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"] };
  3711. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3712. 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"] };
  3713. 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"] };
  3714. 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"] };
  3715. 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"] };
  3716. 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"] };
  3717. 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"] };
  3718. 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"] };
  3719. 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"] };
  3720. 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"] };
  3721. 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"] };
  3722. 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"] };
  3723. 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"] };
  3724. 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"] };
  3725. 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"] };
  3726. 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"] };
  3727. 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"] };
  3728. 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"] };
  3729. 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"] };
  3730. 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"] };
  3731. 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"] };
  3732. 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"] };
  3733. 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"] };
  3734. 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"] };
  3735. 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"] };
  3736. 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"] };
  3737. 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"] };
  3738. 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"] };
  3739. 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"] };
  3740. 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"] };
  3741. 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"] };
  3742. 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"] };
  3743. 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"] };
  3744. 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"] };
  3745. 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"] };
  3746. 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"] };
  3747. 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"] };
  3748. 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"] };
  3749. 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"] };
  3750. 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"] };
  3751. 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"] };
  3752. 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"] };
  3753. 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"] };
  3754. 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"] };
  3755. 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"] };
  3756. 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"] };
  3757. 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"] };
  3758. 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"] };
  3759. 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"] };
  3760. 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"] };
  3761. 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"] };
  3762. 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"] };
  3763. 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"] };
  3764. 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"] };
  3765. 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"] };
  3766. 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"] };
  3767. 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"] };
  3768. 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"] };
  3769. 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"] };
  3770. 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"] };
  3771. 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"] };
  3772. 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"] };
  3773. 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"] };
  3774. 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"] };
  3775. 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"] };
  3776. 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"] };
  3777. 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"] };
  3778. 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"] };
  3779. 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"] };
  3780. 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"] };
  3781. 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"] };
  3782. 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"] };
  3783. 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"] };
  3784. 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"] };
  3785. 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"] };
  3786. 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"] };
  3787. 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"] };
  3788. 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"] };
  3789. 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"] };
  3790. 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"] };
  3791. 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"] };
  3792. 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"] };
  3793. 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"] };
  3794. 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"] };
  3795. 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"] };
  3796. 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"] };
  3797. 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"] };
  3798. 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"] };
  3799. 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"] };
  3800. 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"] };
  3801. 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"] };
  3802. 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"] };
  3803. 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"] };
  3804. 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"] };
  3805. 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"] };
  3806. 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"] };
  3807. 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"] };
  3808. 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"] };
  3809. 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"] };
  3810. 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"] };
  3811. 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"] };
  3812. 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"] };
  3813. 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"] };
  3814. 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"] };
  3815. 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"] };
  3816. 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"] };
  3817. 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"] };
  3818. 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"] };
  3819. 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"] };
  3820. 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"] };
  3821. 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"] };
  3822. 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"] };
  3823. 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"] };
  3824. 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"] };
  3825. 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"] };
  3826. 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"] };
  3827. 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"] };
  3828. 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"] };
  3829. 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"] };
  3830. 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"] };
  3831. 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"] };
  3832. 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"] };
  3833. 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"] };
  3834. 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"] };
  3835. 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"] };
  3836. 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"] };
  3837. 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"] };
  3838. 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"] };
  3839. 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"] };
  3840. 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"] };
  3841. 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"] };
  3842. 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"] };
  3843. 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"] };
  3844. 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"] };
  3845. 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"] };
  3846. 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"] };
  3847. 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"] };
  3848. 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"] };
  3849. 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"] };
  3850. 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"] };
  3851. 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"] };
  3852. 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"] };
  3853. 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"] };
  3854. 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"] };
  3855. 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"] };
  3856. 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"] };
  3857. 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"] };
  3858. 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"] };
  3859. 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"] };
  3860. 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"] };
  3861. 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"] };
  3862. 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"] };
  3863. 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"] };
  3864. 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"] };
  3865. 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"] };
  3866. 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"] };
  3867. 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"] };
  3868. 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"] };
  3869. 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"] };
  3870. 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"] };
  3871. 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"] };
  3872. 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"] };
  3873. 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"] };
  3874. 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"] };
  3875. 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"] };
  3876. 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"] };
  3877. 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"] };
  3878. 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"] };
  3879. 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"] };
  3880. var _iconsCache = {
  3881. faAd: faAd,
  3882. faAddressBook: faAddressBook,
  3883. faAddressCard: faAddressCard,
  3884. faAdjust: faAdjust,
  3885. faAirFreshener: faAirFreshener,
  3886. faAlignCenter: faAlignCenter,
  3887. faAlignJustify: faAlignJustify,
  3888. faAlignLeft: faAlignLeft,
  3889. faAlignRight: faAlignRight,
  3890. faAllergies: faAllergies,
  3891. faAmbulance: faAmbulance,
  3892. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3893. faAnchor: faAnchor,
  3894. faAngleDoubleDown: faAngleDoubleDown,
  3895. faAngleDoubleLeft: faAngleDoubleLeft,
  3896. faAngleDoubleRight: faAngleDoubleRight,
  3897. faAngleDoubleUp: faAngleDoubleUp,
  3898. faAngleDown: faAngleDown,
  3899. faAngleLeft: faAngleLeft,
  3900. faAngleRight: faAngleRight,
  3901. faAngleUp: faAngleUp,
  3902. faAngry: faAngry,
  3903. faAnkh: faAnkh,
  3904. faAppleAlt: faAppleAlt,
  3905. faArchive: faArchive,
  3906. faArchway: faArchway,
  3907. faArrowAltCircleDown: faArrowAltCircleDown,
  3908. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3909. faArrowAltCircleRight: faArrowAltCircleRight,
  3910. faArrowAltCircleUp: faArrowAltCircleUp,
  3911. faArrowCircleDown: faArrowCircleDown,
  3912. faArrowCircleLeft: faArrowCircleLeft,
  3913. faArrowCircleRight: faArrowCircleRight,
  3914. faArrowCircleUp: faArrowCircleUp,
  3915. faArrowDown: faArrowDown,
  3916. faArrowLeft: faArrowLeft,
  3917. faArrowRight: faArrowRight,
  3918. faArrowUp: faArrowUp,
  3919. faArrowsAlt: faArrowsAlt,
  3920. faArrowsAltH: faArrowsAltH,
  3921. faArrowsAltV: faArrowsAltV,
  3922. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3923. faAsterisk: faAsterisk,
  3924. faAt: faAt,
  3925. faAtlas: faAtlas,
  3926. faAtom: faAtom,
  3927. faAudioDescription: faAudioDescription,
  3928. faAward: faAward,
  3929. faBackspace: faBackspace,
  3930. faBackward: faBackward,
  3931. faBalanceScale: faBalanceScale,
  3932. faBan: faBan,
  3933. faBandAid: faBandAid,
  3934. faBarcode: faBarcode,
  3935. faBars: faBars,
  3936. faBaseballBall: faBaseballBall,
  3937. faBasketballBall: faBasketballBall,
  3938. faBath: faBath,
  3939. faBatteryEmpty: faBatteryEmpty,
  3940. faBatteryFull: faBatteryFull,
  3941. faBatteryHalf: faBatteryHalf,
  3942. faBatteryQuarter: faBatteryQuarter,
  3943. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3944. faBed: faBed,
  3945. faBeer: faBeer,
  3946. faBell: faBell,
  3947. faBellSlash: faBellSlash,
  3948. faBezierCurve: faBezierCurve,
  3949. faBible: faBible,
  3950. faBicycle: faBicycle,
  3951. faBinoculars: faBinoculars,
  3952. faBirthdayCake: faBirthdayCake,
  3953. faBlender: faBlender,
  3954. faBlenderPhone: faBlenderPhone,
  3955. faBlind: faBlind,
  3956. faBold: faBold,
  3957. faBolt: faBolt,
  3958. faBomb: faBomb,
  3959. faBone: faBone,
  3960. faBong: faBong,
  3961. faBook: faBook,
  3962. faBookDead: faBookDead,
  3963. faBookOpen: faBookOpen,
  3964. faBookReader: faBookReader,
  3965. faBookmark: faBookmark,
  3966. faBowlingBall: faBowlingBall,
  3967. faBox: faBox,
  3968. faBoxOpen: faBoxOpen,
  3969. faBoxes: faBoxes,
  3970. faBraille: faBraille,
  3971. faBrain: faBrain,
  3972. faBriefcase: faBriefcase,
  3973. faBriefcaseMedical: faBriefcaseMedical,
  3974. faBroadcastTower: faBroadcastTower,
  3975. faBroom: faBroom,
  3976. faBrush: faBrush,
  3977. faBug: faBug,
  3978. faBuilding: faBuilding,
  3979. faBullhorn: faBullhorn,
  3980. faBullseye: faBullseye,
  3981. faBurn: faBurn,
  3982. faBus: faBus,
  3983. faBusAlt: faBusAlt,
  3984. faBusinessTime: faBusinessTime,
  3985. faCalculator: faCalculator,
  3986. faCalendar: faCalendar,
  3987. faCalendarAlt: faCalendarAlt,
  3988. faCalendarCheck: faCalendarCheck,
  3989. faCalendarMinus: faCalendarMinus,
  3990. faCalendarPlus: faCalendarPlus,
  3991. faCalendarTimes: faCalendarTimes,
  3992. faCamera: faCamera,
  3993. faCameraRetro: faCameraRetro,
  3994. faCampground: faCampground,
  3995. faCannabis: faCannabis,
  3996. faCapsules: faCapsules,
  3997. faCar: faCar,
  3998. faCarAlt: faCarAlt,
  3999. faCarBattery: faCarBattery,
  4000. faCarCrash: faCarCrash,
  4001. faCarSide: faCarSide,
  4002. faCaretDown: faCaretDown,
  4003. faCaretLeft: faCaretLeft,
  4004. faCaretRight: faCaretRight,
  4005. faCaretSquareDown: faCaretSquareDown,
  4006. faCaretSquareLeft: faCaretSquareLeft,
  4007. faCaretSquareRight: faCaretSquareRight,
  4008. faCaretSquareUp: faCaretSquareUp,
  4009. faCaretUp: faCaretUp,
  4010. faCartArrowDown: faCartArrowDown,
  4011. faCartPlus: faCartPlus,
  4012. faCat: faCat,
  4013. faCertificate: faCertificate,
  4014. faChair: faChair,
  4015. faChalkboard: faChalkboard,
  4016. faChalkboardTeacher: faChalkboardTeacher,
  4017. faChargingStation: faChargingStation,
  4018. faChartArea: faChartArea,
  4019. faChartBar: faChartBar,
  4020. faChartLine: faChartLine,
  4021. faChartPie: faChartPie,
  4022. faCheck: faCheck,
  4023. faCheckCircle: faCheckCircle,
  4024. faCheckDouble: faCheckDouble,
  4025. faCheckSquare: faCheckSquare,
  4026. faChess: faChess,
  4027. faChessBishop: faChessBishop,
  4028. faChessBoard: faChessBoard,
  4029. faChessKing: faChessKing,
  4030. faChessKnight: faChessKnight,
  4031. faChessPawn: faChessPawn,
  4032. faChessQueen: faChessQueen,
  4033. faChessRook: faChessRook,
  4034. faChevronCircleDown: faChevronCircleDown,
  4035. faChevronCircleLeft: faChevronCircleLeft,
  4036. faChevronCircleRight: faChevronCircleRight,
  4037. faChevronCircleUp: faChevronCircleUp,
  4038. faChevronDown: faChevronDown,
  4039. faChevronLeft: faChevronLeft,
  4040. faChevronRight: faChevronRight,
  4041. faChevronUp: faChevronUp,
  4042. faChild: faChild,
  4043. faChurch: faChurch,
  4044. faCircle: faCircle,
  4045. faCircleNotch: faCircleNotch,
  4046. faCity: faCity,
  4047. faClipboard: faClipboard,
  4048. faClipboardCheck: faClipboardCheck,
  4049. faClipboardList: faClipboardList,
  4050. faClock: faClock,
  4051. faClone: faClone,
  4052. faClosedCaptioning: faClosedCaptioning,
  4053. faCloud: faCloud,
  4054. faCloudDownloadAlt: faCloudDownloadAlt,
  4055. faCloudMoon: faCloudMoon,
  4056. faCloudSun: faCloudSun,
  4057. faCloudUploadAlt: faCloudUploadAlt,
  4058. faCocktail: faCocktail,
  4059. faCode: faCode,
  4060. faCodeBranch: faCodeBranch,
  4061. faCoffee: faCoffee,
  4062. faCog: faCog,
  4063. faCogs: faCogs,
  4064. faCoins: faCoins,
  4065. faColumns: faColumns,
  4066. faComment: faComment,
  4067. faCommentAlt: faCommentAlt,
  4068. faCommentDollar: faCommentDollar,
  4069. faCommentDots: faCommentDots,
  4070. faCommentSlash: faCommentSlash,
  4071. faComments: faComments,
  4072. faCommentsDollar: faCommentsDollar,
  4073. faCompactDisc: faCompactDisc,
  4074. faCompass: faCompass,
  4075. faCompress: faCompress,
  4076. faConciergeBell: faConciergeBell,
  4077. faCookie: faCookie,
  4078. faCookieBite: faCookieBite,
  4079. faCopy: faCopy,
  4080. faCopyright: faCopyright,
  4081. faCouch: faCouch,
  4082. faCreditCard: faCreditCard,
  4083. faCrop: faCrop,
  4084. faCropAlt: faCropAlt,
  4085. faCross: faCross,
  4086. faCrosshairs: faCrosshairs,
  4087. faCrow: faCrow,
  4088. faCrown: faCrown,
  4089. faCube: faCube,
  4090. faCubes: faCubes,
  4091. faCut: faCut,
  4092. faDatabase: faDatabase,
  4093. faDeaf: faDeaf,
  4094. faDesktop: faDesktop,
  4095. faDharmachakra: faDharmachakra,
  4096. faDiagnoses: faDiagnoses,
  4097. faDice: faDice,
  4098. faDiceD20: faDiceD20,
  4099. faDiceD6: faDiceD6,
  4100. faDiceFive: faDiceFive,
  4101. faDiceFour: faDiceFour,
  4102. faDiceOne: faDiceOne,
  4103. faDiceSix: faDiceSix,
  4104. faDiceThree: faDiceThree,
  4105. faDiceTwo: faDiceTwo,
  4106. faDigitalTachograph: faDigitalTachograph,
  4107. faDirections: faDirections,
  4108. faDivide: faDivide,
  4109. faDizzy: faDizzy,
  4110. faDna: faDna,
  4111. faDog: faDog,
  4112. faDollarSign: faDollarSign,
  4113. faDolly: faDolly,
  4114. faDollyFlatbed: faDollyFlatbed,
  4115. faDonate: faDonate,
  4116. faDoorClosed: faDoorClosed,
  4117. faDoorOpen: faDoorOpen,
  4118. faDotCircle: faDotCircle,
  4119. faDove: faDove,
  4120. faDownload: faDownload,
  4121. faDraftingCompass: faDraftingCompass,
  4122. faDragon: faDragon,
  4123. faDrawPolygon: faDrawPolygon,
  4124. faDrum: faDrum,
  4125. faDrumSteelpan: faDrumSteelpan,
  4126. faDrumstickBite: faDrumstickBite,
  4127. faDumbbell: faDumbbell,
  4128. faDungeon: faDungeon,
  4129. faEdit: faEdit,
  4130. faEject: faEject,
  4131. faEllipsisH: faEllipsisH,
  4132. faEllipsisV: faEllipsisV,
  4133. faEnvelope: faEnvelope,
  4134. faEnvelopeOpen: faEnvelopeOpen,
  4135. faEnvelopeOpenText: faEnvelopeOpenText,
  4136. faEnvelopeSquare: faEnvelopeSquare,
  4137. faEquals: faEquals,
  4138. faEraser: faEraser,
  4139. faEuroSign: faEuroSign,
  4140. faExchangeAlt: faExchangeAlt,
  4141. faExclamation: faExclamation,
  4142. faExclamationCircle: faExclamationCircle,
  4143. faExclamationTriangle: faExclamationTriangle,
  4144. faExpand: faExpand,
  4145. faExpandArrowsAlt: faExpandArrowsAlt,
  4146. faExternalLinkAlt: faExternalLinkAlt,
  4147. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  4148. faEye: faEye,
  4149. faEyeDropper: faEyeDropper,
  4150. faEyeSlash: faEyeSlash,
  4151. faFastBackward: faFastBackward,
  4152. faFastForward: faFastForward,
  4153. faFax: faFax,
  4154. faFeather: faFeather,
  4155. faFeatherAlt: faFeatherAlt,
  4156. faFemale: faFemale,
  4157. faFighterJet: faFighterJet,
  4158. faFile: faFile,
  4159. faFileAlt: faFileAlt,
  4160. faFileArchive: faFileArchive,
  4161. faFileAudio: faFileAudio,
  4162. faFileCode: faFileCode,
  4163. faFileContract: faFileContract,
  4164. faFileCsv: faFileCsv,
  4165. faFileDownload: faFileDownload,
  4166. faFileExcel: faFileExcel,
  4167. faFileExport: faFileExport,
  4168. faFileImage: faFileImage,
  4169. faFileImport: faFileImport,
  4170. faFileInvoice: faFileInvoice,
  4171. faFileInvoiceDollar: faFileInvoiceDollar,
  4172. faFileMedical: faFileMedical,
  4173. faFileMedicalAlt: faFileMedicalAlt,
  4174. faFilePdf: faFilePdf,
  4175. faFilePowerpoint: faFilePowerpoint,
  4176. faFilePrescription: faFilePrescription,
  4177. faFileSignature: faFileSignature,
  4178. faFileUpload: faFileUpload,
  4179. faFileVideo: faFileVideo,
  4180. faFileWord: faFileWord,
  4181. faFill: faFill,
  4182. faFillDrip: faFillDrip,
  4183. faFilm: faFilm,
  4184. faFilter: faFilter,
  4185. faFingerprint: faFingerprint,
  4186. faFire: faFire,
  4187. faFireExtinguisher: faFireExtinguisher,
  4188. faFirstAid: faFirstAid,
  4189. faFish: faFish,
  4190. faFistRaised: faFistRaised,
  4191. faFlag: faFlag,
  4192. faFlagCheckered: faFlagCheckered,
  4193. faFlask: faFlask,
  4194. faFlushed: faFlushed,
  4195. faFolder: faFolder,
  4196. faFolderMinus: faFolderMinus,
  4197. faFolderOpen: faFolderOpen,
  4198. faFolderPlus: faFolderPlus,
  4199. faFont: faFont,
  4200. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  4201. faFootballBall: faFootballBall,
  4202. faForward: faForward,
  4203. faFrog: faFrog,
  4204. faFrown: faFrown,
  4205. faFrownOpen: faFrownOpen,
  4206. faFunnelDollar: faFunnelDollar,
  4207. faFutbol: faFutbol,
  4208. faGamepad: faGamepad,
  4209. faGasPump: faGasPump,
  4210. faGavel: faGavel,
  4211. faGem: faGem,
  4212. faGenderless: faGenderless,
  4213. faGhost: faGhost,
  4214. faGift: faGift,
  4215. faGlassMartini: faGlassMartini,
  4216. faGlassMartiniAlt: faGlassMartiniAlt,
  4217. faGlasses: faGlasses,
  4218. faGlobe: faGlobe,
  4219. faGlobeAfrica: faGlobeAfrica,
  4220. faGlobeAmericas: faGlobeAmericas,
  4221. faGlobeAsia: faGlobeAsia,
  4222. faGolfBall: faGolfBall,
  4223. faGopuram: faGopuram,
  4224. faGraduationCap: faGraduationCap,
  4225. faGreaterThan: faGreaterThan,
  4226. faGreaterThanEqual: faGreaterThanEqual,
  4227. faGrimace: faGrimace,
  4228. faGrin: faGrin,
  4229. faGrinAlt: faGrinAlt,
  4230. faGrinBeam: faGrinBeam,
  4231. faGrinBeamSweat: faGrinBeamSweat,
  4232. faGrinHearts: faGrinHearts,
  4233. faGrinSquint: faGrinSquint,
  4234. faGrinSquintTears: faGrinSquintTears,
  4235. faGrinStars: faGrinStars,
  4236. faGrinTears: faGrinTears,
  4237. faGrinTongue: faGrinTongue,
  4238. faGrinTongueSquint: faGrinTongueSquint,
  4239. faGrinTongueWink: faGrinTongueWink,
  4240. faGrinWink: faGrinWink,
  4241. faGripHorizontal: faGripHorizontal,
  4242. faGripVertical: faGripVertical,
  4243. faHSquare: faHSquare,
  4244. faHammer: faHammer,
  4245. faHamsa: faHamsa,
  4246. faHandHolding: faHandHolding,
  4247. faHandHoldingHeart: faHandHoldingHeart,
  4248. faHandHoldingUsd: faHandHoldingUsd,
  4249. faHandLizard: faHandLizard,
  4250. faHandPaper: faHandPaper,
  4251. faHandPeace: faHandPeace,
  4252. faHandPointDown: faHandPointDown,
  4253. faHandPointLeft: faHandPointLeft,
  4254. faHandPointRight: faHandPointRight,
  4255. faHandPointUp: faHandPointUp,
  4256. faHandPointer: faHandPointer,
  4257. faHandRock: faHandRock,
  4258. faHandScissors: faHandScissors,
  4259. faHandSpock: faHandSpock,
  4260. faHands: faHands,
  4261. faHandsHelping: faHandsHelping,
  4262. faHandshake: faHandshake,
  4263. faHanukiah: faHanukiah,
  4264. faHashtag: faHashtag,
  4265. faHatWizard: faHatWizard,
  4266. faHaykal: faHaykal,
  4267. faHdd: faHdd,
  4268. faHeading: faHeading,
  4269. faHeadphones: faHeadphones,
  4270. faHeadphonesAlt: faHeadphonesAlt,
  4271. faHeadset: faHeadset,
  4272. faHeart: faHeart,
  4273. faHeartbeat: faHeartbeat,
  4274. faHelicopter: faHelicopter,
  4275. faHighlighter: faHighlighter,
  4276. faHiking: faHiking,
  4277. faHippo: faHippo,
  4278. faHistory: faHistory,
  4279. faHockeyPuck: faHockeyPuck,
  4280. faHome: faHome,
  4281. faHorse: faHorse,
  4282. faHospital: faHospital,
  4283. faHospitalAlt: faHospitalAlt,
  4284. faHospitalSymbol: faHospitalSymbol,
  4285. faHotTub: faHotTub,
  4286. faHotel: faHotel,
  4287. faHourglass: faHourglass,
  4288. faHourglassEnd: faHourglassEnd,
  4289. faHourglassHalf: faHourglassHalf,
  4290. faHourglassStart: faHourglassStart,
  4291. faHouseDamage: faHouseDamage,
  4292. faHryvnia: faHryvnia,
  4293. faICursor: faICursor,
  4294. faIdBadge: faIdBadge,
  4295. faIdCard: faIdCard,
  4296. faIdCardAlt: faIdCardAlt,
  4297. faImage: faImage,
  4298. faImages: faImages,
  4299. faInbox: faInbox,
  4300. faIndent: faIndent,
  4301. faIndustry: faIndustry,
  4302. faInfinity: faInfinity,
  4303. faInfo: faInfo,
  4304. faInfoCircle: faInfoCircle,
  4305. faItalic: faItalic,
  4306. faJedi: faJedi,
  4307. faJoint: faJoint,
  4308. faJournalWhills: faJournalWhills,
  4309. faKaaba: faKaaba,
  4310. faKey: faKey,
  4311. faKeyboard: faKeyboard,
  4312. faKhanda: faKhanda,
  4313. faKiss: faKiss,
  4314. faKissBeam: faKissBeam,
  4315. faKissWinkHeart: faKissWinkHeart,
  4316. faKiwiBird: faKiwiBird,
  4317. faLandmark: faLandmark,
  4318. faLanguage: faLanguage,
  4319. faLaptop: faLaptop,
  4320. faLaptopCode: faLaptopCode,
  4321. faLaugh: faLaugh,
  4322. faLaughBeam: faLaughBeam,
  4323. faLaughSquint: faLaughSquint,
  4324. faLaughWink: faLaughWink,
  4325. faLayerGroup: faLayerGroup,
  4326. faLeaf: faLeaf,
  4327. faLemon: faLemon,
  4328. faLessThan: faLessThan,
  4329. faLessThanEqual: faLessThanEqual,
  4330. faLevelDownAlt: faLevelDownAlt,
  4331. faLevelUpAlt: faLevelUpAlt,
  4332. faLifeRing: faLifeRing,
  4333. faLightbulb: faLightbulb,
  4334. faLink: faLink,
  4335. faLiraSign: faLiraSign,
  4336. faList: faList,
  4337. faListAlt: faListAlt,
  4338. faListOl: faListOl,
  4339. faListUl: faListUl,
  4340. faLocationArrow: faLocationArrow,
  4341. faLock: faLock,
  4342. faLockOpen: faLockOpen,
  4343. faLongArrowAltDown: faLongArrowAltDown,
  4344. faLongArrowAltLeft: faLongArrowAltLeft,
  4345. faLongArrowAltRight: faLongArrowAltRight,
  4346. faLongArrowAltUp: faLongArrowAltUp,
  4347. faLowVision: faLowVision,
  4348. faLuggageCart: faLuggageCart,
  4349. faMagic: faMagic,
  4350. faMagnet: faMagnet,
  4351. faMailBulk: faMailBulk,
  4352. faMale: faMale,
  4353. faMap: faMap,
  4354. faMapMarked: faMapMarked,
  4355. faMapMarkedAlt: faMapMarkedAlt,
  4356. faMapMarker: faMapMarker,
  4357. faMapMarkerAlt: faMapMarkerAlt,
  4358. faMapPin: faMapPin,
  4359. faMapSigns: faMapSigns,
  4360. faMarker: faMarker,
  4361. faMars: faMars,
  4362. faMarsDouble: faMarsDouble,
  4363. faMarsStroke: faMarsStroke,
  4364. faMarsStrokeH: faMarsStrokeH,
  4365. faMarsStrokeV: faMarsStrokeV,
  4366. faMask: faMask,
  4367. faMedal: faMedal,
  4368. faMedkit: faMedkit,
  4369. faMeh: faMeh,
  4370. faMehBlank: faMehBlank,
  4371. faMehRollingEyes: faMehRollingEyes,
  4372. faMemory: faMemory,
  4373. faMenorah: faMenorah,
  4374. faMercury: faMercury,
  4375. faMicrochip: faMicrochip,
  4376. faMicrophone: faMicrophone,
  4377. faMicrophoneAlt: faMicrophoneAlt,
  4378. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4379. faMicrophoneSlash: faMicrophoneSlash,
  4380. faMicroscope: faMicroscope,
  4381. faMinus: faMinus,
  4382. faMinusCircle: faMinusCircle,
  4383. faMinusSquare: faMinusSquare,
  4384. faMobile: faMobile,
  4385. faMobileAlt: faMobileAlt,
  4386. faMoneyBill: faMoneyBill,
  4387. faMoneyBillAlt: faMoneyBillAlt,
  4388. faMoneyBillWave: faMoneyBillWave,
  4389. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4390. faMoneyCheck: faMoneyCheck,
  4391. faMoneyCheckAlt: faMoneyCheckAlt,
  4392. faMonument: faMonument,
  4393. faMoon: faMoon,
  4394. faMortarPestle: faMortarPestle,
  4395. faMosque: faMosque,
  4396. faMotorcycle: faMotorcycle,
  4397. faMountain: faMountain,
  4398. faMousePointer: faMousePointer,
  4399. faMusic: faMusic,
  4400. faNetworkWired: faNetworkWired,
  4401. faNeuter: faNeuter,
  4402. faNewspaper: faNewspaper,
  4403. faNotEqual: faNotEqual,
  4404. faNotesMedical: faNotesMedical,
  4405. faObjectGroup: faObjectGroup,
  4406. faObjectUngroup: faObjectUngroup,
  4407. faOilCan: faOilCan,
  4408. faOm: faOm,
  4409. faOtter: faOtter,
  4410. faOutdent: faOutdent,
  4411. faPaintBrush: faPaintBrush,
  4412. faPaintRoller: faPaintRoller,
  4413. faPalette: faPalette,
  4414. faPallet: faPallet,
  4415. faPaperPlane: faPaperPlane,
  4416. faPaperclip: faPaperclip,
  4417. faParachuteBox: faParachuteBox,
  4418. faParagraph: faParagraph,
  4419. faParking: faParking,
  4420. faPassport: faPassport,
  4421. faPastafarianism: faPastafarianism,
  4422. faPaste: faPaste,
  4423. faPause: faPause,
  4424. faPauseCircle: faPauseCircle,
  4425. faPaw: faPaw,
  4426. faPeace: faPeace,
  4427. faPen: faPen,
  4428. faPenAlt: faPenAlt,
  4429. faPenFancy: faPenFancy,
  4430. faPenNib: faPenNib,
  4431. faPenSquare: faPenSquare,
  4432. faPencilAlt: faPencilAlt,
  4433. faPencilRuler: faPencilRuler,
  4434. faPeopleCarry: faPeopleCarry,
  4435. faPercent: faPercent,
  4436. faPercentage: faPercentage,
  4437. faPhone: faPhone,
  4438. faPhoneSlash: faPhoneSlash,
  4439. faPhoneSquare: faPhoneSquare,
  4440. faPhoneVolume: faPhoneVolume,
  4441. faPiggyBank: faPiggyBank,
  4442. faPills: faPills,
  4443. faPlaceOfWorship: faPlaceOfWorship,
  4444. faPlane: faPlane,
  4445. faPlaneArrival: faPlaneArrival,
  4446. faPlaneDeparture: faPlaneDeparture,
  4447. faPlay: faPlay,
  4448. faPlayCircle: faPlayCircle,
  4449. faPlug: faPlug,
  4450. faPlus: faPlus,
  4451. faPlusCircle: faPlusCircle,
  4452. faPlusSquare: faPlusSquare,
  4453. faPodcast: faPodcast,
  4454. faPoll: faPoll,
  4455. faPollH: faPollH,
  4456. faPoo: faPoo,
  4457. faPoop: faPoop,
  4458. faPortrait: faPortrait,
  4459. faPoundSign: faPoundSign,
  4460. faPowerOff: faPowerOff,
  4461. faPray: faPray,
  4462. faPrayingHands: faPrayingHands,
  4463. faPrescription: faPrescription,
  4464. faPrescriptionBottle: faPrescriptionBottle,
  4465. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4466. faPrint: faPrint,
  4467. faProcedures: faProcedures,
  4468. faProjectDiagram: faProjectDiagram,
  4469. faPuzzlePiece: faPuzzlePiece,
  4470. faQrcode: faQrcode,
  4471. faQuestion: faQuestion,
  4472. faQuestionCircle: faQuestionCircle,
  4473. faQuidditch: faQuidditch,
  4474. faQuoteLeft: faQuoteLeft,
  4475. faQuoteRight: faQuoteRight,
  4476. faQuran: faQuran,
  4477. faRandom: faRandom,
  4478. faReceipt: faReceipt,
  4479. faRecycle: faRecycle,
  4480. faRedo: faRedo,
  4481. faRedoAlt: faRedoAlt,
  4482. faRegistered: faRegistered,
  4483. faReply: faReply,
  4484. faReplyAll: faReplyAll,
  4485. faRetweet: faRetweet,
  4486. faRibbon: faRibbon,
  4487. faRing: faRing,
  4488. faRoad: faRoad,
  4489. faRobot: faRobot,
  4490. faRocket: faRocket,
  4491. faRoute: faRoute,
  4492. faRss: faRss,
  4493. faRssSquare: faRssSquare,
  4494. faRubleSign: faRubleSign,
  4495. faRuler: faRuler,
  4496. faRulerCombined: faRulerCombined,
  4497. faRulerHorizontal: faRulerHorizontal,
  4498. faRulerVertical: faRulerVertical,
  4499. faRunning: faRunning,
  4500. faRupeeSign: faRupeeSign,
  4501. faSadCry: faSadCry,
  4502. faSadTear: faSadTear,
  4503. faSave: faSave,
  4504. faSchool: faSchool,
  4505. faScrewdriver: faScrewdriver,
  4506. faScroll: faScroll,
  4507. faSearch: faSearch,
  4508. faSearchDollar: faSearchDollar,
  4509. faSearchLocation: faSearchLocation,
  4510. faSearchMinus: faSearchMinus,
  4511. faSearchPlus: faSearchPlus,
  4512. faSeedling: faSeedling,
  4513. faServer: faServer,
  4514. faShapes: faShapes,
  4515. faShare: faShare,
  4516. faShareAlt: faShareAlt,
  4517. faShareAltSquare: faShareAltSquare,
  4518. faShareSquare: faShareSquare,
  4519. faShekelSign: faShekelSign,
  4520. faShieldAlt: faShieldAlt,
  4521. faShip: faShip,
  4522. faShippingFast: faShippingFast,
  4523. faShoePrints: faShoePrints,
  4524. faShoppingBag: faShoppingBag,
  4525. faShoppingBasket: faShoppingBasket,
  4526. faShoppingCart: faShoppingCart,
  4527. faShower: faShower,
  4528. faShuttleVan: faShuttleVan,
  4529. faSign: faSign,
  4530. faSignInAlt: faSignInAlt,
  4531. faSignLanguage: faSignLanguage,
  4532. faSignOutAlt: faSignOutAlt,
  4533. faSignal: faSignal,
  4534. faSignature: faSignature,
  4535. faSitemap: faSitemap,
  4536. faSkull: faSkull,
  4537. faSkullCrossbones: faSkullCrossbones,
  4538. faSlash: faSlash,
  4539. faSlidersH: faSlidersH,
  4540. faSmile: faSmile,
  4541. faSmileBeam: faSmileBeam,
  4542. faSmileWink: faSmileWink,
  4543. faSmoking: faSmoking,
  4544. faSmokingBan: faSmokingBan,
  4545. faSnowflake: faSnowflake,
  4546. faSocks: faSocks,
  4547. faSolarPanel: faSolarPanel,
  4548. faSort: faSort,
  4549. faSortAlphaDown: faSortAlphaDown,
  4550. faSortAlphaUp: faSortAlphaUp,
  4551. faSortAmountDown: faSortAmountDown,
  4552. faSortAmountUp: faSortAmountUp,
  4553. faSortDown: faSortDown,
  4554. faSortNumericDown: faSortNumericDown,
  4555. faSortNumericUp: faSortNumericUp,
  4556. faSortUp: faSortUp,
  4557. faSpa: faSpa,
  4558. faSpaceShuttle: faSpaceShuttle,
  4559. faSpider: faSpider,
  4560. faSpinner: faSpinner,
  4561. faSplotch: faSplotch,
  4562. faSprayCan: faSprayCan,
  4563. faSquare: faSquare,
  4564. faSquareFull: faSquareFull,
  4565. faSquareRootAlt: faSquareRootAlt,
  4566. faStamp: faStamp,
  4567. faStar: faStar,
  4568. faStarAndCrescent: faStarAndCrescent,
  4569. faStarHalf: faStarHalf,
  4570. faStarHalfAlt: faStarHalfAlt,
  4571. faStarOfDavid: faStarOfDavid,
  4572. faStarOfLife: faStarOfLife,
  4573. faStepBackward: faStepBackward,
  4574. faStepForward: faStepForward,
  4575. faStethoscope: faStethoscope,
  4576. faStickyNote: faStickyNote,
  4577. faStop: faStop,
  4578. faStopCircle: faStopCircle,
  4579. faStopwatch: faStopwatch,
  4580. faStore: faStore,
  4581. faStoreAlt: faStoreAlt,
  4582. faStream: faStream,
  4583. faStreetView: faStreetView,
  4584. faStrikethrough: faStrikethrough,
  4585. faStroopwafel: faStroopwafel,
  4586. faSubscript: faSubscript,
  4587. faSubway: faSubway,
  4588. faSuitcase: faSuitcase,
  4589. faSuitcaseRolling: faSuitcaseRolling,
  4590. faSun: faSun,
  4591. faSuperscript: faSuperscript,
  4592. faSurprise: faSurprise,
  4593. faSwatchbook: faSwatchbook,
  4594. faSwimmer: faSwimmer,
  4595. faSwimmingPool: faSwimmingPool,
  4596. faSynagogue: faSynagogue,
  4597. faSync: faSync,
  4598. faSyncAlt: faSyncAlt,
  4599. faSyringe: faSyringe,
  4600. faTable: faTable,
  4601. faTableTennis: faTableTennis,
  4602. faTablet: faTablet,
  4603. faTabletAlt: faTabletAlt,
  4604. faTablets: faTablets,
  4605. faTachometerAlt: faTachometerAlt,
  4606. faTag: faTag,
  4607. faTags: faTags,
  4608. faTape: faTape,
  4609. faTasks: faTasks,
  4610. faTaxi: faTaxi,
  4611. faTeeth: faTeeth,
  4612. faTeethOpen: faTeethOpen,
  4613. faTerminal: faTerminal,
  4614. faTextHeight: faTextHeight,
  4615. faTextWidth: faTextWidth,
  4616. faTh: faTh,
  4617. faThLarge: faThLarge,
  4618. faThList: faThList,
  4619. faTheaterMasks: faTheaterMasks,
  4620. faThermometer: faThermometer,
  4621. faThermometerEmpty: faThermometerEmpty,
  4622. faThermometerFull: faThermometerFull,
  4623. faThermometerHalf: faThermometerHalf,
  4624. faThermometerQuarter: faThermometerQuarter,
  4625. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4626. faThumbsDown: faThumbsDown,
  4627. faThumbsUp: faThumbsUp,
  4628. faThumbtack: faThumbtack,
  4629. faTicketAlt: faTicketAlt,
  4630. faTimes: faTimes,
  4631. faTimesCircle: faTimesCircle,
  4632. faTint: faTint,
  4633. faTintSlash: faTintSlash,
  4634. faTired: faTired,
  4635. faToggleOff: faToggleOff,
  4636. faToggleOn: faToggleOn,
  4637. faToiletPaper: faToiletPaper,
  4638. faToolbox: faToolbox,
  4639. faTooth: faTooth,
  4640. faTorah: faTorah,
  4641. faToriiGate: faToriiGate,
  4642. faTractor: faTractor,
  4643. faTrademark: faTrademark,
  4644. faTrafficLight: faTrafficLight,
  4645. faTrain: faTrain,
  4646. faTransgender: faTransgender,
  4647. faTransgenderAlt: faTransgenderAlt,
  4648. faTrash: faTrash,
  4649. faTrashAlt: faTrashAlt,
  4650. faTree: faTree,
  4651. faTrophy: faTrophy,
  4652. faTruck: faTruck,
  4653. faTruckLoading: faTruckLoading,
  4654. faTruckMonster: faTruckMonster,
  4655. faTruckMoving: faTruckMoving,
  4656. faTruckPickup: faTruckPickup,
  4657. faTshirt: faTshirt,
  4658. faTty: faTty,
  4659. faTv: faTv,
  4660. faUmbrella: faUmbrella,
  4661. faUmbrellaBeach: faUmbrellaBeach,
  4662. faUnderline: faUnderline,
  4663. faUndo: faUndo,
  4664. faUndoAlt: faUndoAlt,
  4665. faUniversalAccess: faUniversalAccess,
  4666. faUniversity: faUniversity,
  4667. faUnlink: faUnlink,
  4668. faUnlock: faUnlock,
  4669. faUnlockAlt: faUnlockAlt,
  4670. faUpload: faUpload,
  4671. faUser: faUser,
  4672. faUserAlt: faUserAlt,
  4673. faUserAltSlash: faUserAltSlash,
  4674. faUserAstronaut: faUserAstronaut,
  4675. faUserCheck: faUserCheck,
  4676. faUserCircle: faUserCircle,
  4677. faUserClock: faUserClock,
  4678. faUserCog: faUserCog,
  4679. faUserEdit: faUserEdit,
  4680. faUserFriends: faUserFriends,
  4681. faUserGraduate: faUserGraduate,
  4682. faUserInjured: faUserInjured,
  4683. faUserLock: faUserLock,
  4684. faUserMd: faUserMd,
  4685. faUserMinus: faUserMinus,
  4686. faUserNinja: faUserNinja,
  4687. faUserPlus: faUserPlus,
  4688. faUserSecret: faUserSecret,
  4689. faUserShield: faUserShield,
  4690. faUserSlash: faUserSlash,
  4691. faUserTag: faUserTag,
  4692. faUserTie: faUserTie,
  4693. faUserTimes: faUserTimes,
  4694. faUsers: faUsers,
  4695. faUsersCog: faUsersCog,
  4696. faUtensilSpoon: faUtensilSpoon,
  4697. faUtensils: faUtensils,
  4698. faVectorSquare: faVectorSquare,
  4699. faVenus: faVenus,
  4700. faVenusDouble: faVenusDouble,
  4701. faVenusMars: faVenusMars,
  4702. faVial: faVial,
  4703. faVials: faVials,
  4704. faVideo: faVideo,
  4705. faVideoSlash: faVideoSlash,
  4706. faVihara: faVihara,
  4707. faVolleyballBall: faVolleyballBall,
  4708. faVolumeDown: faVolumeDown,
  4709. faVolumeMute: faVolumeMute,
  4710. faVolumeOff: faVolumeOff,
  4711. faVolumeUp: faVolumeUp,
  4712. faVrCardboard: faVrCardboard,
  4713. faWalking: faWalking,
  4714. faWallet: faWallet,
  4715. faWarehouse: faWarehouse,
  4716. faWeight: faWeight,
  4717. faWeightHanging: faWeightHanging,
  4718. faWheelchair: faWheelchair,
  4719. faWifi: faWifi,
  4720. faWind: faWind,
  4721. faWindowClose: faWindowClose,
  4722. faWindowMaximize: faWindowMaximize,
  4723. faWindowMinimize: faWindowMinimize,
  4724. faWindowRestore: faWindowRestore,
  4725. faWineBottle: faWineBottle,
  4726. faWineGlass: faWineGlass,
  4727. faWineGlassAlt: faWineGlassAlt,
  4728. faWonSign: faWonSign,
  4729. faWrench: faWrench,
  4730. faXRay: faXRay,
  4731. faYenSign: faYenSign,
  4732. faYinYang: faYinYang
  4733. };
  4734. /***/ }),
  4735. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4736. /*!***********************************************************************************!*\
  4737. !*** E:/Repos/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4738. \***********************************************************************************/
  4739. /*! exports provided: FontAwesomeIcon */
  4740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4741. "use strict";
  4742. __webpack_require__.r(__webpack_exports__);
  4743. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4744. /* 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");
  4745. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4746. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4747. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4748. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4749. function _typeof(obj) {
  4750. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  4751. _typeof = function (obj) {
  4752. return typeof obj;
  4753. };
  4754. } else {
  4755. _typeof = function (obj) {
  4756. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4757. };
  4758. }
  4759. return _typeof(obj);
  4760. }
  4761. function _defineProperty(obj, key, value) {
  4762. if (key in obj) {
  4763. Object.defineProperty(obj, key, {
  4764. value: value,
  4765. enumerable: true,
  4766. configurable: true,
  4767. writable: true
  4768. });
  4769. } else {
  4770. obj[key] = value;
  4771. }
  4772. return obj;
  4773. }
  4774. function _objectSpread(target) {
  4775. for (var i = 1; i < arguments.length; i++) {
  4776. var source = arguments[i] != null ? arguments[i] : {};
  4777. var ownKeys = Object.keys(source);
  4778. if (typeof Object.getOwnPropertySymbols === 'function') {
  4779. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  4780. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  4781. }));
  4782. }
  4783. ownKeys.forEach(function (key) {
  4784. _defineProperty(target, key, source[key]);
  4785. });
  4786. }
  4787. return target;
  4788. }
  4789. function _objectWithoutPropertiesLoose(source, excluded) {
  4790. if (source == null) return {};
  4791. var target = {};
  4792. var sourceKeys = Object.keys(source);
  4793. var key, i;
  4794. for (i = 0; i < sourceKeys.length; i++) {
  4795. key = sourceKeys[i];
  4796. if (excluded.indexOf(key) >= 0) continue;
  4797. target[key] = source[key];
  4798. }
  4799. return target;
  4800. }
  4801. function _objectWithoutProperties(source, excluded) {
  4802. if (source == null) return {};
  4803. var target = _objectWithoutPropertiesLoose(source, excluded);
  4804. var key, i;
  4805. if (Object.getOwnPropertySymbols) {
  4806. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  4807. for (i = 0; i < sourceSymbolKeys.length; i++) {
  4808. key = sourceSymbolKeys[i];
  4809. if (excluded.indexOf(key) >= 0) continue;
  4810. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  4811. target[key] = source[key];
  4812. }
  4813. }
  4814. return target;
  4815. }
  4816. function _toConsumableArray(arr) {
  4817. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  4818. }
  4819. function _arrayWithoutHoles(arr) {
  4820. if (Array.isArray(arr)) {
  4821. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4822. return arr2;
  4823. }
  4824. }
  4825. function _iterableToArray(iter) {
  4826. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  4827. }
  4828. function _nonIterableSpread() {
  4829. throw new TypeError("Invalid attempt to spread non-iterable instance");
  4830. }
  4831. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4832. function createCommonjsModule(fn, module) {
  4833. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4834. }
  4835. var humps = createCommonjsModule(function (module) {
  4836. (function(global) {
  4837. var _processKeys = function(convert, obj, options) {
  4838. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4839. return obj;
  4840. }
  4841. var output,
  4842. i = 0,
  4843. l = 0;
  4844. if(_isArray(obj)) {
  4845. output = [];
  4846. for(l=obj.length; i<l; i++) {
  4847. output.push(_processKeys(convert, obj[i], options));
  4848. }
  4849. }
  4850. else {
  4851. output = {};
  4852. for(var key in obj) {
  4853. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4854. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4855. }
  4856. }
  4857. }
  4858. return output;
  4859. };
  4860. // String conversion methods
  4861. var separateWords = function(string, options) {
  4862. options = options || {};
  4863. var separator = options.separator || '_';
  4864. var split = options.split || /(?=[A-Z])/;
  4865. return string.split(split).join(separator);
  4866. };
  4867. var camelize = function(string) {
  4868. if (_isNumerical(string)) {
  4869. return string;
  4870. }
  4871. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4872. return chr ? chr.toUpperCase() : '';
  4873. });
  4874. // Ensure 1st char is always lowercase
  4875. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4876. };
  4877. var pascalize = function(string) {
  4878. var camelized = camelize(string);
  4879. // Ensure 1st char is always uppercase
  4880. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4881. };
  4882. var decamelize = function(string, options) {
  4883. return separateWords(string, options).toLowerCase();
  4884. };
  4885. // Utilities
  4886. // Taken from Underscore.js
  4887. var toString = Object.prototype.toString;
  4888. var _isFunction = function(obj) {
  4889. return typeof(obj) === 'function';
  4890. };
  4891. var _isObject = function(obj) {
  4892. return obj === Object(obj);
  4893. };
  4894. var _isArray = function(obj) {
  4895. return toString.call(obj) == '[object Array]';
  4896. };
  4897. var _isDate = function(obj) {
  4898. return toString.call(obj) == '[object Date]';
  4899. };
  4900. var _isRegExp = function(obj) {
  4901. return toString.call(obj) == '[object RegExp]';
  4902. };
  4903. var _isBoolean = function(obj) {
  4904. return toString.call(obj) == '[object Boolean]';
  4905. };
  4906. // Performant way to determine if obj coerces to a number
  4907. var _isNumerical = function(obj) {
  4908. obj = obj - 0;
  4909. return obj === obj;
  4910. };
  4911. // Sets up function which handles processing keys
  4912. // allowing the convert function to be modified by a callback
  4913. var _processor = function(convert, options) {
  4914. var callback = options && 'process' in options ? options.process : options;
  4915. if(typeof(callback) !== 'function') {
  4916. return convert;
  4917. }
  4918. return function(string, options) {
  4919. return callback(string, convert, options);
  4920. }
  4921. };
  4922. var humps = {
  4923. camelize: camelize,
  4924. decamelize: decamelize,
  4925. pascalize: pascalize,
  4926. depascalize: decamelize,
  4927. camelizeKeys: function(object, options) {
  4928. return _processKeys(_processor(camelize, options), object);
  4929. },
  4930. decamelizeKeys: function(object, options) {
  4931. return _processKeys(_processor(decamelize, options), object, options);
  4932. },
  4933. pascalizeKeys: function(object, options) {
  4934. return _processKeys(_processor(pascalize, options), object);
  4935. },
  4936. depascalizeKeys: function () {
  4937. return this.decamelizeKeys.apply(this, arguments);
  4938. }
  4939. };
  4940. if (module.exports) {
  4941. module.exports = humps;
  4942. } else {
  4943. global.humps = humps;
  4944. }
  4945. })(commonjsGlobal);
  4946. });
  4947. function capitalize(val) {
  4948. return val.charAt(0).toUpperCase() + val.slice(1);
  4949. }
  4950. function styleToObject(style) {
  4951. return style.split(';').map(function (s) {
  4952. return s.trim();
  4953. }).filter(function (s) {
  4954. return s;
  4955. }).reduce(function (acc, pair) {
  4956. var i = pair.indexOf(':');
  4957. var prop = humps.camelize(pair.slice(0, i));
  4958. var value = pair.slice(i + 1).trim();
  4959. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4960. return acc;
  4961. }, {});
  4962. }
  4963. function convert(createElement, element) {
  4964. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4965. if (typeof element === 'string') {
  4966. return element;
  4967. }
  4968. var children = (element.children || []).map(function (child) {
  4969. return convert(createElement, child);
  4970. });
  4971. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4972. var val = element.attributes[key];
  4973. switch (key) {
  4974. case 'class':
  4975. acc.attrs['className'] = val;
  4976. delete element.attributes['class'];
  4977. break;
  4978. case 'style':
  4979. acc.attrs['style'] = styleToObject(val);
  4980. break;
  4981. default:
  4982. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4983. acc.attrs[key.toLowerCase()] = val;
  4984. } else {
  4985. acc.attrs[humps.camelize(key)] = val;
  4986. }
  4987. }
  4988. return acc;
  4989. }, {
  4990. attrs: {}
  4991. });
  4992. var _extraProps$style = extraProps.style,
  4993. existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
  4994. remaining = _objectWithoutProperties(extraProps, ["style"]);
  4995. mixins.attrs['style'] = _objectSpread({}, mixins.attrs['style'], existingStyle);
  4996. return createElement.apply(void 0, [element.tag, _objectSpread({}, mixins.attrs, remaining)].concat(_toConsumableArray(children)));
  4997. }
  4998. var PRODUCTION = false;
  4999. try {
  5000. PRODUCTION = "development" === 'production';
  5001. } catch (e) {}
  5002. function log () {
  5003. if (!PRODUCTION && console && typeof console.error === 'function') {
  5004. var _console;
  5005. (_console = console).error.apply(_console, arguments);
  5006. }
  5007. }
  5008. function objectWithKey(key, value) {
  5009. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
  5010. }
  5011. function classList(props) {
  5012. var _classes;
  5013. var classes = (_classes = {
  5014. 'fa-spin': props.spin,
  5015. 'fa-pulse': props.pulse,
  5016. 'fa-fw': props.fixedWidth,
  5017. 'fa-inverse': props.inverse,
  5018. 'fa-border': props.border,
  5019. 'fa-li': props.listItem,
  5020. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  5021. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  5022. }, _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);
  5023. return Object.keys(classes).map(function (key) {
  5024. return classes[key] ? key : null;
  5025. }).filter(function (key) {
  5026. return key;
  5027. });
  5028. }
  5029. function normalizeIconArgs(icon$$1) {
  5030. if (icon$$1 === null) {
  5031. return null;
  5032. }
  5033. if (_typeof(icon$$1) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  5034. return icon$$1;
  5035. }
  5036. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  5037. return {
  5038. prefix: icon$$1[0],
  5039. iconName: icon$$1[1]
  5040. };
  5041. }
  5042. if (typeof icon$$1 === 'string') {
  5043. return {
  5044. prefix: 'fas',
  5045. iconName: icon$$1
  5046. };
  5047. }
  5048. }
  5049. function FontAwesomeIcon(props) {
  5050. var iconArgs = props.icon,
  5051. maskArgs = props.mask,
  5052. symbol = props.symbol,
  5053. className = props.className,
  5054. title = props.title;
  5055. var iconLookup = normalizeIconArgs(iconArgs);
  5056. var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  5057. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  5058. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  5059. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _objectSpread({}, classes, transform, mask, {
  5060. symbol: symbol,
  5061. title: title
  5062. }));
  5063. if (!renderedIcon) {
  5064. log('Could not find icon', iconLookup);
  5065. return null;
  5066. }
  5067. var abstract = renderedIcon.abstract;
  5068. var extraProps = {};
  5069. Object.keys(props).forEach(function (key) {
  5070. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  5071. extraProps[key] = props[key];
  5072. }
  5073. });
  5074. return convertCurry(abstract[0], extraProps);
  5075. }
  5076. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  5077. FontAwesomeIcon.propTypes = {
  5078. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5079. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5080. 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]),
  5081. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5082. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5083. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  5084. 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]),
  5085. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5086. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  5087. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5088. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  5089. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  5090. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  5091. 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]),
  5092. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  5093. 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])
  5094. };
  5095. FontAwesomeIcon.defaultProps = {
  5096. border: false,
  5097. className: '',
  5098. mask: null,
  5099. fixedWidth: false,
  5100. inverse: false,
  5101. flip: null,
  5102. icon: null,
  5103. listItem: false,
  5104. pull: null,
  5105. pulse: false,
  5106. rotation: null,
  5107. size: null,
  5108. spin: false,
  5109. symbol: false,
  5110. title: '',
  5111. transform: null
  5112. };
  5113. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  5114. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  5115. /***/ }),
  5116. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss":
  5117. /*!************************************************************************************************************************************************!*\
  5118. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/diagram/diagram.scss ***!
  5119. \************************************************************************************************************************************************/
  5120. /*! no static exports found */
  5121. /***/ (function(module, exports, __webpack_require__) {
  5122. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5123. // imports
  5124. // module
  5125. 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", ""]);
  5126. // exports
  5127. /***/ }),
  5128. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss":
  5129. /*!****************************************************************************************************************************************!*\
  5130. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/log/log.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, "#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", ""]);
  5138. // exports
  5139. /***/ }),
  5140. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  5141. /*!**************************************************************************************************************************************************!*\
  5142. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.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, "#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", ""]);
  5150. // exports
  5151. /***/ }),
  5152. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  5153. /*!********************************************************************************************************************************************************!*\
  5154. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.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, "#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", ""]);
  5162. // exports
  5163. /***/ }),
  5164. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  5165. /*!**************************************************************************************************************************!*\
  5166. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.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, "#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", ""]);
  5174. // exports
  5175. /***/ }),
  5176. /***/ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css":
  5177. /*!****************************************************************************************************************************!*\
  5178. !*** E:/Repos/Babylon.js/node_modules/css-loader!E:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  5179. \****************************************************************************************************************************/
  5180. /*! no static exports found */
  5181. /***/ (function(module, exports, __webpack_require__) {
  5182. exports = module.exports = __webpack_require__(/*! ../../css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  5183. // imports
  5184. // module
  5185. 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", ""]);
  5186. // exports
  5187. /***/ }),
  5188. /***/ "../../node_modules/css-loader/lib/css-base.js":
  5189. /*!*******************************************************************!*\
  5190. !*** E:/Repos/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  5191. \*******************************************************************/
  5192. /*! no static exports found */
  5193. /***/ (function(module, exports) {
  5194. /*
  5195. MIT License http://www.opensource.org/licenses/mit-license.php
  5196. Author Tobias Koppers @sokra
  5197. */
  5198. // css base code, injected by the css-loader
  5199. module.exports = function(useSourceMap) {
  5200. var list = [];
  5201. // return the list of modules as css string
  5202. list.toString = function toString() {
  5203. return this.map(function (item) {
  5204. var content = cssWithMappingToString(item, useSourceMap);
  5205. if(item[2]) {
  5206. return "@media " + item[2] + "{" + content + "}";
  5207. } else {
  5208. return content;
  5209. }
  5210. }).join("");
  5211. };
  5212. // import a list of modules into the list
  5213. list.i = function(modules, mediaQuery) {
  5214. if(typeof modules === "string")
  5215. modules = [[null, modules, ""]];
  5216. var alreadyImportedModules = {};
  5217. for(var i = 0; i < this.length; i++) {
  5218. var id = this[i][0];
  5219. if(typeof id === "number")
  5220. alreadyImportedModules[id] = true;
  5221. }
  5222. for(i = 0; i < modules.length; i++) {
  5223. var item = modules[i];
  5224. // skip already imported module
  5225. // this implementation is not 100% perfect for weird media query combinations
  5226. // when a module is imported multiple times with different media queries.
  5227. // I hope this will never occur (Hey this way we have smaller bundles)
  5228. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  5229. if(mediaQuery && !item[2]) {
  5230. item[2] = mediaQuery;
  5231. } else if(mediaQuery) {
  5232. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  5233. }
  5234. list.push(item);
  5235. }
  5236. }
  5237. };
  5238. return list;
  5239. };
  5240. function cssWithMappingToString(item, useSourceMap) {
  5241. var content = item[1] || '';
  5242. var cssMapping = item[3];
  5243. if (!cssMapping) {
  5244. return content;
  5245. }
  5246. if (useSourceMap && typeof btoa === 'function') {
  5247. var sourceMapping = toComment(cssMapping);
  5248. var sourceURLs = cssMapping.sources.map(function (source) {
  5249. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  5250. });
  5251. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  5252. }
  5253. return [content].join('\n');
  5254. }
  5255. // Adapted from convert-source-map (MIT)
  5256. function toComment(sourceMap) {
  5257. // eslint-disable-next-line no-undef
  5258. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  5259. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  5260. return '/*# ' + data + ' */';
  5261. }
  5262. /***/ }),
  5263. /***/ "../../node_modules/dagre/index.js":
  5264. /*!*******************************************************!*\
  5265. !*** E:/Repos/Babylon.js/node_modules/dagre/index.js ***!
  5266. \*******************************************************/
  5267. /*! no static exports found */
  5268. /***/ (function(module, exports, __webpack_require__) {
  5269. /*
  5270. Copyright (c) 2012-2014 Chris Pettitt
  5271. Permission is hereby granted, free of charge, to any person obtaining a copy
  5272. of this software and associated documentation files (the "Software"), to deal
  5273. in the Software without restriction, including without limitation the rights
  5274. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  5275. copies of the Software, and to permit persons to whom the Software is
  5276. furnished to do so, subject to the following conditions:
  5277. The above copyright notice and this permission notice shall be included in
  5278. all copies or substantial portions of the Software.
  5279. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  5280. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  5281. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  5282. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  5283. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  5284. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  5285. THE SOFTWARE.
  5286. */
  5287. module.exports = {
  5288. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  5289. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  5290. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  5291. util: {
  5292. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  5293. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  5294. },
  5295. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  5296. };
  5297. /***/ }),
  5298. /***/ "../../node_modules/dagre/lib/acyclic.js":
  5299. /*!*************************************************************!*\
  5300. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  5301. \*************************************************************/
  5302. /*! no static exports found */
  5303. /***/ (function(module, exports, __webpack_require__) {
  5304. "use strict";
  5305. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5306. greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  5307. module.exports = {
  5308. run: run,
  5309. undo: undo
  5310. };
  5311. function run(g) {
  5312. var fas = (g.graph().acyclicer === "greedy"
  5313. ? greedyFAS(g, weightFn(g))
  5314. : dfsFAS(g));
  5315. _.forEach(fas, function(e) {
  5316. var label = g.edge(e);
  5317. g.removeEdge(e);
  5318. label.forwardName = e.name;
  5319. label.reversed = true;
  5320. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  5321. });
  5322. function weightFn(g) {
  5323. return function(e) {
  5324. return g.edge(e).weight;
  5325. };
  5326. }
  5327. }
  5328. function dfsFAS(g) {
  5329. var fas = [],
  5330. stack = {},
  5331. visited = {};
  5332. function dfs(v) {
  5333. if (_.has(visited, v)) {
  5334. return;
  5335. }
  5336. visited[v] = true;
  5337. stack[v] = true;
  5338. _.forEach(g.outEdges(v), function(e) {
  5339. if (_.has(stack, e.w)) {
  5340. fas.push(e);
  5341. } else {
  5342. dfs(e.w);
  5343. }
  5344. });
  5345. delete stack[v];
  5346. }
  5347. _.forEach(g.nodes(), dfs);
  5348. return fas;
  5349. }
  5350. function undo(g) {
  5351. _.forEach(g.edges(), function(e) {
  5352. var label = g.edge(e);
  5353. if (label.reversed) {
  5354. g.removeEdge(e);
  5355. var forwardName = label.forwardName;
  5356. delete label.reversed;
  5357. delete label.forwardName;
  5358. g.setEdge(e.w, e.v, label, forwardName);
  5359. }
  5360. });
  5361. }
  5362. /***/ }),
  5363. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  5364. /*!*************************************************************************!*\
  5365. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  5366. \*************************************************************************/
  5367. /*! no static exports found */
  5368. /***/ (function(module, exports, __webpack_require__) {
  5369. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5370. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5371. module.exports = addBorderSegments;
  5372. function addBorderSegments(g) {
  5373. function dfs(v) {
  5374. var children = g.children(v),
  5375. node = g.node(v);
  5376. if (children.length) {
  5377. _.forEach(children, dfs);
  5378. }
  5379. if (_.has(node, "minRank")) {
  5380. node.borderLeft = [];
  5381. node.borderRight = [];
  5382. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  5383. rank < maxRank;
  5384. ++rank) {
  5385. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  5386. addBorderNode(g, "borderRight", "_br", v, node, rank);
  5387. }
  5388. }
  5389. }
  5390. _.forEach(g.children(), dfs);
  5391. }
  5392. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  5393. var label = { width: 0, height: 0, rank: rank, borderType: prop },
  5394. prev = sgNode[prop][rank - 1],
  5395. curr = util.addDummyNode(g, "border", label, prefix);
  5396. sgNode[prop][rank] = curr;
  5397. g.setParent(curr, sg);
  5398. if (prev) {
  5399. g.setEdge(prev, curr, { weight: 1 });
  5400. }
  5401. }
  5402. /***/ }),
  5403. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  5404. /*!***********************************************************************!*\
  5405. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  5406. \***********************************************************************/
  5407. /*! no static exports found */
  5408. /***/ (function(module, exports, __webpack_require__) {
  5409. "use strict";
  5410. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  5411. module.exports = {
  5412. adjust: adjust,
  5413. undo: undo
  5414. };
  5415. function adjust(g) {
  5416. var rankDir = g.graph().rankdir.toLowerCase();
  5417. if (rankDir === "lr" || rankDir === "rl") {
  5418. swapWidthHeight(g);
  5419. }
  5420. }
  5421. function undo(g) {
  5422. var rankDir = g.graph().rankdir.toLowerCase();
  5423. if (rankDir === "bt" || rankDir === "rl") {
  5424. reverseY(g);
  5425. }
  5426. if (rankDir === "lr" || rankDir === "rl") {
  5427. swapXY(g);
  5428. swapWidthHeight(g);
  5429. }
  5430. }
  5431. function swapWidthHeight(g) {
  5432. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  5433. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  5434. }
  5435. function swapWidthHeightOne(attrs) {
  5436. var w = attrs.width;
  5437. attrs.width = attrs.height;
  5438. attrs.height = w;
  5439. }
  5440. function reverseY(g) {
  5441. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  5442. _.forEach(g.edges(), function(e) {
  5443. var edge = g.edge(e);
  5444. _.forEach(edge.points, reverseYOne);
  5445. if (_.has(edge, "y")) {
  5446. reverseYOne(edge);
  5447. }
  5448. });
  5449. }
  5450. function reverseYOne(attrs) {
  5451. attrs.y = -attrs.y;
  5452. }
  5453. function swapXY(g) {
  5454. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  5455. _.forEach(g.edges(), function(e) {
  5456. var edge = g.edge(e);
  5457. _.forEach(edge.points, swapXYOne);
  5458. if (_.has(edge, "x")) {
  5459. swapXYOne(edge);
  5460. }
  5461. });
  5462. }
  5463. function swapXYOne(attrs) {
  5464. var x = attrs.x;
  5465. attrs.x = attrs.y;
  5466. attrs.y = x;
  5467. }
  5468. /***/ }),
  5469. /***/ "../../node_modules/dagre/lib/data/list.js":
  5470. /*!***************************************************************!*\
  5471. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  5472. \***************************************************************/
  5473. /*! no static exports found */
  5474. /***/ (function(module, exports) {
  5475. /*
  5476. * Simple doubly linked list implementation derived from Cormen, et al.,
  5477. * "Introduction to Algorithms".
  5478. */
  5479. module.exports = List;
  5480. function List() {
  5481. var sentinel = {};
  5482. sentinel._next = sentinel._prev = sentinel;
  5483. this._sentinel = sentinel;
  5484. }
  5485. List.prototype.dequeue = function() {
  5486. var sentinel = this._sentinel,
  5487. entry = sentinel._prev;
  5488. if (entry !== sentinel) {
  5489. unlink(entry);
  5490. return entry;
  5491. }
  5492. };
  5493. List.prototype.enqueue = function(entry) {
  5494. var sentinel = this._sentinel;
  5495. if (entry._prev && entry._next) {
  5496. unlink(entry);
  5497. }
  5498. entry._next = sentinel._next;
  5499. sentinel._next._prev = entry;
  5500. sentinel._next = entry;
  5501. entry._prev = sentinel;
  5502. };
  5503. List.prototype.toString = function() {
  5504. var strs = [],
  5505. sentinel = this._sentinel,
  5506. curr = sentinel._prev;
  5507. while (curr !== sentinel) {
  5508. strs.push(JSON.stringify(curr, filterOutLinks));
  5509. curr = curr._prev;
  5510. }
  5511. return "[" + strs.join(", ") + "]";
  5512. };
  5513. function unlink(entry) {
  5514. entry._prev._next = entry._next;
  5515. entry._next._prev = entry._prev;
  5516. delete entry._next;
  5517. delete entry._prev;
  5518. }
  5519. function filterOutLinks(k, v) {
  5520. if (k !== "_next" && k !== "_prev") {
  5521. return v;
  5522. }
  5523. }
  5524. /***/ }),
  5525. /***/ "../../node_modules/dagre/lib/debug.js":
  5526. /*!***********************************************************!*\
  5527. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/debug.js ***!
  5528. \***********************************************************/
  5529. /*! no static exports found */
  5530. /***/ (function(module, exports, __webpack_require__) {
  5531. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5532. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5533. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5534. module.exports = {
  5535. debugOrdering: debugOrdering
  5536. };
  5537. /* istanbul ignore next */
  5538. function debugOrdering(g) {
  5539. var layerMatrix = util.buildLayerMatrix(g);
  5540. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  5541. _.forEach(g.nodes(), function(v) {
  5542. h.setNode(v, { label: v });
  5543. h.setParent(v, "layer" + g.node(v).rank);
  5544. });
  5545. _.forEach(g.edges(), function(e) {
  5546. h.setEdge(e.v, e.w, {}, e.name);
  5547. });
  5548. _.forEach(layerMatrix, function(layer, i) {
  5549. var layerV = "layer" + i;
  5550. h.setNode(layerV, { rank: "same" });
  5551. _.reduce(layer, function(u, v) {
  5552. h.setEdge(u, v, { style: "invis" });
  5553. return v;
  5554. });
  5555. });
  5556. return h;
  5557. }
  5558. /***/ }),
  5559. /***/ "../../node_modules/dagre/lib/graphlib.js":
  5560. /*!**************************************************************!*\
  5561. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  5562. \**************************************************************/
  5563. /*! no static exports found */
  5564. /***/ (function(module, exports, __webpack_require__) {
  5565. /* global window */
  5566. var graphlib;
  5567. if (true) {
  5568. try {
  5569. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  5570. } catch (e) {}
  5571. }
  5572. if (!graphlib) {
  5573. graphlib = window.graphlib;
  5574. }
  5575. module.exports = graphlib;
  5576. /***/ }),
  5577. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  5578. /*!****************************************************************!*\
  5579. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  5580. \****************************************************************/
  5581. /*! no static exports found */
  5582. /***/ (function(module, exports, __webpack_require__) {
  5583. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5584. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  5585. List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  5586. /*
  5587. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  5588. * arc set is a set of edges that can be removed to make a graph acyclic.
  5589. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  5590. * effective heuristic for the feedback arc set problem." This implementation
  5591. * adjusts that from the paper to allow for weighted edges.
  5592. */
  5593. module.exports = greedyFAS;
  5594. var DEFAULT_WEIGHT_FN = _.constant(1);
  5595. function greedyFAS(g, weightFn) {
  5596. if (g.nodeCount() <= 1) {
  5597. return [];
  5598. }
  5599. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  5600. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  5601. // Expand multi-edges
  5602. return _.flatten(_.map(results, function(e) {
  5603. return g.outEdges(e.v, e.w);
  5604. }), true);
  5605. }
  5606. function doGreedyFAS(g, buckets, zeroIdx) {
  5607. var results = [],
  5608. sources = buckets[buckets.length - 1],
  5609. sinks = buckets[0];
  5610. var entry;
  5611. while (g.nodeCount()) {
  5612. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5613. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5614. if (g.nodeCount()) {
  5615. for (var i = buckets.length - 2; i > 0; --i) {
  5616. entry = buckets[i].dequeue();
  5617. if (entry) {
  5618. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  5619. break;
  5620. }
  5621. }
  5622. }
  5623. }
  5624. return results;
  5625. }
  5626. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  5627. var results = collectPredecessors ? [] : undefined;
  5628. _.forEach(g.inEdges(entry.v), function(edge) {
  5629. var weight = g.edge(edge),
  5630. uEntry = g.node(edge.v);
  5631. if (collectPredecessors) {
  5632. results.push({ v: edge.v, w: edge.w });
  5633. }
  5634. uEntry.out -= weight;
  5635. assignBucket(buckets, zeroIdx, uEntry);
  5636. });
  5637. _.forEach(g.outEdges(entry.v), function(edge) {
  5638. var weight = g.edge(edge),
  5639. w = edge.w,
  5640. wEntry = g.node(w);
  5641. wEntry["in"] -= weight;
  5642. assignBucket(buckets, zeroIdx, wEntry);
  5643. });
  5644. g.removeNode(entry.v);
  5645. return results;
  5646. }
  5647. function buildState(g, weightFn) {
  5648. var fasGraph = new Graph(),
  5649. maxIn = 0,
  5650. maxOut = 0;
  5651. _.forEach(g.nodes(), function(v) {
  5652. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  5653. });
  5654. // Aggregate weights on nodes, but also sum the weights across multi-edges
  5655. // into a single edge for the fasGraph.
  5656. _.forEach(g.edges(), function(e) {
  5657. var prevWeight = fasGraph.edge(e.v, e.w) || 0,
  5658. weight = weightFn(e),
  5659. edgeWeight = prevWeight + weight;
  5660. fasGraph.setEdge(e.v, e.w, edgeWeight);
  5661. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  5662. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  5663. });
  5664. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  5665. var zeroIdx = maxIn + 1;
  5666. _.forEach(fasGraph.nodes(), function(v) {
  5667. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  5668. });
  5669. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  5670. }
  5671. function assignBucket(buckets, zeroIdx, entry) {
  5672. if (!entry.out) {
  5673. buckets[0].enqueue(entry);
  5674. } else if (!entry["in"]) {
  5675. buckets[buckets.length - 1].enqueue(entry);
  5676. } else {
  5677. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  5678. }
  5679. }
  5680. /***/ }),
  5681. /***/ "../../node_modules/dagre/lib/layout.js":
  5682. /*!************************************************************!*\
  5683. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/layout.js ***!
  5684. \************************************************************/
  5685. /*! no static exports found */
  5686. /***/ (function(module, exports, __webpack_require__) {
  5687. "use strict";
  5688. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5689. acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js"),
  5690. normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js"),
  5691. rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js"),
  5692. normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks,
  5693. parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js"),
  5694. removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks,
  5695. nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js"),
  5696. addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js"),
  5697. coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js"),
  5698. order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js"),
  5699. position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js"),
  5700. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5701. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5702. module.exports = layout;
  5703. function layout(g, opts) {
  5704. var time = opts && opts.debugTiming ? util.time : util.notime;
  5705. time("layout", function() {
  5706. var layoutGraph = time(" buildLayoutGraph",
  5707. function() { return buildLayoutGraph(g); });
  5708. time(" runLayout", function() { runLayout(layoutGraph, time); });
  5709. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  5710. });
  5711. }
  5712. function runLayout(g, time) {
  5713. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  5714. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  5715. time(" acyclic", function() { acyclic.run(g); });
  5716. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  5717. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  5718. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  5719. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  5720. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  5721. time(" normalizeRanks", function() { normalizeRanks(g); });
  5722. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  5723. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  5724. time(" normalize.run", function() { normalize.run(g); });
  5725. time(" parentDummyChains", function() { parentDummyChains(g); });
  5726. time(" addBorderSegments", function() { addBorderSegments(g); });
  5727. time(" order", function() { order(g); });
  5728. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  5729. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  5730. time(" position", function() { position(g); });
  5731. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  5732. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  5733. time(" normalize.undo", function() { normalize.undo(g); });
  5734. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  5735. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  5736. time(" translateGraph", function() { translateGraph(g); });
  5737. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  5738. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  5739. time(" acyclic.undo", function() { acyclic.undo(g); });
  5740. }
  5741. /*
  5742. * Copies final layout information from the layout graph back to the input
  5743. * graph. This process only copies whitelisted attributes from the layout graph
  5744. * to the input graph, so it serves as a good place to determine what
  5745. * attributes can influence layout.
  5746. */
  5747. function updateInputGraph(inputGraph, layoutGraph) {
  5748. _.forEach(inputGraph.nodes(), function(v) {
  5749. var inputLabel = inputGraph.node(v),
  5750. layoutLabel = layoutGraph.node(v);
  5751. if (inputLabel) {
  5752. inputLabel.x = layoutLabel.x;
  5753. inputLabel.y = layoutLabel.y;
  5754. if (layoutGraph.children(v).length) {
  5755. inputLabel.width = layoutLabel.width;
  5756. inputLabel.height = layoutLabel.height;
  5757. }
  5758. }
  5759. });
  5760. _.forEach(inputGraph.edges(), function(e) {
  5761. var inputLabel = inputGraph.edge(e),
  5762. layoutLabel = layoutGraph.edge(e);
  5763. inputLabel.points = layoutLabel.points;
  5764. if (_.has(layoutLabel, "x")) {
  5765. inputLabel.x = layoutLabel.x;
  5766. inputLabel.y = layoutLabel.y;
  5767. }
  5768. });
  5769. inputGraph.graph().width = layoutGraph.graph().width;
  5770. inputGraph.graph().height = layoutGraph.graph().height;
  5771. }
  5772. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
  5773. graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" },
  5774. graphAttrs = ["acyclicer", "ranker", "rankdir", "align"],
  5775. nodeNumAttrs = ["width", "height"],
  5776. nodeDefaults = { width: 0, height: 0 },
  5777. edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"],
  5778. edgeDefaults = {
  5779. minlen: 1, weight: 1, width: 0, height: 0,
  5780. labeloffset: 10, labelpos: "r"
  5781. },
  5782. edgeAttrs = ["labelpos"];
  5783. /*
  5784. * Constructs a new graph from the input graph, which can be used for layout.
  5785. * This process copies only whitelisted attributes from the input graph to the
  5786. * layout graph. Thus this function serves as a good place to determine what
  5787. * attributes can influence layout.
  5788. */
  5789. function buildLayoutGraph(inputGraph) {
  5790. var g = new Graph({ multigraph: true, compound: true }),
  5791. graph = canonicalize(inputGraph.graph());
  5792. g.setGraph(_.merge({},
  5793. graphDefaults,
  5794. selectNumberAttrs(graph, graphNumAttrs),
  5795. _.pick(graph, graphAttrs)));
  5796. _.forEach(inputGraph.nodes(), function(v) {
  5797. var node = canonicalize(inputGraph.node(v));
  5798. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  5799. g.setParent(v, inputGraph.parent(v));
  5800. });
  5801. _.forEach(inputGraph.edges(), function(e) {
  5802. var edge = canonicalize(inputGraph.edge(e));
  5803. g.setEdge(e, _.merge({},
  5804. edgeDefaults,
  5805. selectNumberAttrs(edge, edgeNumAttrs),
  5806. _.pick(edge, edgeAttrs)));
  5807. });
  5808. return g;
  5809. }
  5810. /*
  5811. * This idea comes from the Gansner paper: to account for edge labels in our
  5812. * layout we split each rank in half by doubling minlen and halving ranksep.
  5813. * Then we can place labels at these mid-points between nodes.
  5814. *
  5815. * We also add some minimal padding to the width to push the label for the edge
  5816. * away from the edge itself a bit.
  5817. */
  5818. function makeSpaceForEdgeLabels(g) {
  5819. var graph = g.graph();
  5820. graph.ranksep /= 2;
  5821. _.forEach(g.edges(), function(e) {
  5822. var edge = g.edge(e);
  5823. edge.minlen *= 2;
  5824. if (edge.labelpos.toLowerCase() !== "c") {
  5825. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  5826. edge.width += edge.labeloffset;
  5827. } else {
  5828. edge.height += edge.labeloffset;
  5829. }
  5830. }
  5831. });
  5832. }
  5833. /*
  5834. * Creates temporary dummy nodes that capture the rank in which each edge's
  5835. * label is going to, if it has one of non-zero width and height. We do this
  5836. * so that we can safely remove empty ranks while preserving balance for the
  5837. * label's position.
  5838. */
  5839. function injectEdgeLabelProxies(g) {
  5840. _.forEach(g.edges(), function(e) {
  5841. var edge = g.edge(e);
  5842. if (edge.width && edge.height) {
  5843. var v = g.node(e.v),
  5844. w = g.node(e.w),
  5845. label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  5846. util.addDummyNode(g, "edge-proxy", label, "_ep");
  5847. }
  5848. });
  5849. }
  5850. function assignRankMinMax(g) {
  5851. var maxRank = 0;
  5852. _.forEach(g.nodes(), function(v) {
  5853. var node = g.node(v);
  5854. if (node.borderTop) {
  5855. node.minRank = g.node(node.borderTop).rank;
  5856. node.maxRank = g.node(node.borderBottom).rank;
  5857. maxRank = _.max(maxRank, node.maxRank);
  5858. }
  5859. });
  5860. g.graph().maxRank = maxRank;
  5861. }
  5862. function removeEdgeLabelProxies(g) {
  5863. _.forEach(g.nodes(), function(v) {
  5864. var node = g.node(v);
  5865. if (node.dummy === "edge-proxy") {
  5866. g.edge(node.e).labelRank = node.rank;
  5867. g.removeNode(v);
  5868. }
  5869. });
  5870. }
  5871. function translateGraph(g) {
  5872. var minX = Number.POSITIVE_INFINITY,
  5873. maxX = 0,
  5874. minY = Number.POSITIVE_INFINITY,
  5875. maxY = 0,
  5876. graphLabel = g.graph(),
  5877. marginX = graphLabel.marginx || 0,
  5878. marginY = graphLabel.marginy || 0;
  5879. function getExtremes(attrs) {
  5880. var x = attrs.x,
  5881. y = attrs.y,
  5882. w = attrs.width,
  5883. h = attrs.height;
  5884. minX = Math.min(minX, x - w / 2);
  5885. maxX = Math.max(maxX, x + w / 2);
  5886. minY = Math.min(minY, y - h / 2);
  5887. maxY = Math.max(maxY, y + h / 2);
  5888. }
  5889. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  5890. _.forEach(g.edges(), function(e) {
  5891. var edge = g.edge(e);
  5892. if (_.has(edge, "x")) {
  5893. getExtremes(edge);
  5894. }
  5895. });
  5896. minX -= marginX;
  5897. minY -= marginY;
  5898. _.forEach(g.nodes(), function(v) {
  5899. var node = g.node(v);
  5900. node.x -= minX;
  5901. node.y -= minY;
  5902. });
  5903. _.forEach(g.edges(), function(e) {
  5904. var edge = g.edge(e);
  5905. _.forEach(edge.points, function(p) {
  5906. p.x -= minX;
  5907. p.y -= minY;
  5908. });
  5909. if (_.has(edge, "x")) { edge.x -= minX; }
  5910. if (_.has(edge, "y")) { edge.y -= minY; }
  5911. });
  5912. graphLabel.width = maxX - minX + marginX;
  5913. graphLabel.height = maxY - minY + marginY;
  5914. }
  5915. function assignNodeIntersects(g) {
  5916. _.forEach(g.edges(), function(e) {
  5917. var edge = g.edge(e),
  5918. nodeV = g.node(e.v),
  5919. nodeW = g.node(e.w),
  5920. p1, p2;
  5921. if (!edge.points) {
  5922. edge.points = [];
  5923. p1 = nodeW;
  5924. p2 = nodeV;
  5925. } else {
  5926. p1 = edge.points[0];
  5927. p2 = edge.points[edge.points.length - 1];
  5928. }
  5929. edge.points.unshift(util.intersectRect(nodeV, p1));
  5930. edge.points.push(util.intersectRect(nodeW, p2));
  5931. });
  5932. }
  5933. function fixupEdgeLabelCoords(g) {
  5934. _.forEach(g.edges(), function(e) {
  5935. var edge = g.edge(e);
  5936. if (_.has(edge, "x")) {
  5937. if (edge.labelpos === "l" || edge.labelpos === "r") {
  5938. edge.width -= edge.labeloffset;
  5939. }
  5940. switch (edge.labelpos) {
  5941. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  5942. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  5943. }
  5944. }
  5945. });
  5946. }
  5947. function reversePointsForReversedEdges(g) {
  5948. _.forEach(g.edges(), function(e) {
  5949. var edge = g.edge(e);
  5950. if (edge.reversed) {
  5951. edge.points.reverse();
  5952. }
  5953. });
  5954. }
  5955. function removeBorderNodes(g) {
  5956. _.forEach(g.nodes(), function(v) {
  5957. if (g.children(v).length) {
  5958. var node = g.node(v),
  5959. t = g.node(node.borderTop),
  5960. b = g.node(node.borderBottom),
  5961. l = g.node(_.last(node.borderLeft)),
  5962. r = g.node(_.last(node.borderRight));
  5963. node.width = Math.abs(r.x - l.x);
  5964. node.height = Math.abs(b.y - t.y);
  5965. node.x = l.x + node.width / 2;
  5966. node.y = t.y + node.height / 2;
  5967. }
  5968. });
  5969. _.forEach(g.nodes(), function(v) {
  5970. if (g.node(v).dummy === "border") {
  5971. g.removeNode(v);
  5972. }
  5973. });
  5974. }
  5975. function removeSelfEdges(g) {
  5976. _.forEach(g.edges(), function(e) {
  5977. if (e.v === e.w) {
  5978. var node = g.node(e.v);
  5979. if (!node.selfEdges) {
  5980. node.selfEdges = [];
  5981. }
  5982. node.selfEdges.push({ e: e, label: g.edge(e) });
  5983. g.removeEdge(e);
  5984. }
  5985. });
  5986. }
  5987. function insertSelfEdges(g) {
  5988. var layers = util.buildLayerMatrix(g);
  5989. _.forEach(layers, function(layer) {
  5990. var orderShift = 0;
  5991. _.forEach(layer, function(v, i) {
  5992. var node = g.node(v);
  5993. node.order = i + orderShift;
  5994. _.forEach(node.selfEdges, function(selfEdge) {
  5995. util.addDummyNode(g, "selfedge", {
  5996. width: selfEdge.label.width,
  5997. height: selfEdge.label.height,
  5998. rank: node.rank,
  5999. order: i + (++orderShift),
  6000. e: selfEdge.e,
  6001. label: selfEdge.label
  6002. }, "_se");
  6003. });
  6004. delete node.selfEdges;
  6005. });
  6006. });
  6007. }
  6008. function positionSelfEdges(g) {
  6009. _.forEach(g.nodes(), function(v) {
  6010. var node = g.node(v);
  6011. if (node.dummy === "selfedge") {
  6012. var selfNode = g.node(node.e.v),
  6013. x = selfNode.x + selfNode.width / 2,
  6014. y = selfNode.y,
  6015. dx = node.x - x,
  6016. dy = selfNode.height / 2;
  6017. g.setEdge(node.e, node.label);
  6018. g.removeNode(v);
  6019. node.label.points = [
  6020. { x: x + 2 * dx / 3, y: y - dy },
  6021. { x: x + 5 * dx / 6, y: y - dy },
  6022. { x: x + dx , y: y },
  6023. { x: x + 5 * dx / 6, y: y + dy },
  6024. { x: x + 2 * dx / 3, y: y + dy }
  6025. ];
  6026. node.label.x = node.x;
  6027. node.label.y = node.y;
  6028. }
  6029. });
  6030. }
  6031. function selectNumberAttrs(obj, attrs) {
  6032. return _.mapValues(_.pick(obj, attrs), Number);
  6033. }
  6034. function canonicalize(attrs) {
  6035. var newAttrs = {};
  6036. _.forEach(attrs, function(v, k) {
  6037. newAttrs[k.toLowerCase()] = v;
  6038. });
  6039. return newAttrs;
  6040. }
  6041. /***/ }),
  6042. /***/ "../../node_modules/dagre/lib/lodash.js":
  6043. /*!************************************************************!*\
  6044. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  6045. \************************************************************/
  6046. /*! no static exports found */
  6047. /***/ (function(module, exports, __webpack_require__) {
  6048. /* global window */
  6049. var lodash;
  6050. if (true) {
  6051. try {
  6052. lodash = {
  6053. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  6054. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  6055. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  6056. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  6057. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  6058. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  6059. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  6060. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  6061. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  6062. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  6063. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  6064. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  6065. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  6066. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  6067. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  6068. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  6069. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  6070. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  6071. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  6072. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  6073. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  6074. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  6075. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  6076. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  6077. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  6078. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  6079. };
  6080. } catch (e) {}
  6081. }
  6082. if (!lodash) {
  6083. lodash = window._;
  6084. }
  6085. module.exports = lodash;
  6086. /***/ }),
  6087. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  6088. /*!*******************************************************************!*\
  6089. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  6090. \*******************************************************************/
  6091. /*! no static exports found */
  6092. /***/ (function(module, exports, __webpack_require__) {
  6093. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6094. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6095. module.exports = {
  6096. run: run,
  6097. cleanup: cleanup
  6098. };
  6099. /*
  6100. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  6101. * adds appropriate edges to ensure that all cluster nodes are placed between
  6102. * these boundries, and ensures that the graph is connected.
  6103. *
  6104. * In addition we ensure, through the use of the minlen property, that nodes
  6105. * and subgraph border nodes to not end up on the same rank.
  6106. *
  6107. * Preconditions:
  6108. *
  6109. * 1. Input graph is a DAG
  6110. * 2. Nodes in the input graph has a minlen attribute
  6111. *
  6112. * Postconditions:
  6113. *
  6114. * 1. Input graph is connected.
  6115. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  6116. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  6117. * get placed on the same rank as subgraph border nodes.
  6118. *
  6119. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  6120. * Graphs."
  6121. */
  6122. function run(g) {
  6123. var root = util.addDummyNode(g, "root", {}, "_root");
  6124. var depths = treeDepths(g);
  6125. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  6126. var nodeSep = 2 * height + 1;
  6127. g.graph().nestingRoot = root;
  6128. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  6129. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  6130. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  6131. var weight = sumWeights(g) + 1;
  6132. // Create border nodes and link them up
  6133. _.forEach(g.children(), function(child) {
  6134. dfs(g, root, nodeSep, weight, height, depths, child);
  6135. });
  6136. // Save the multiplier for node layers for later removal of empty border
  6137. // layers.
  6138. g.graph().nodeRankFactor = nodeSep;
  6139. }
  6140. function dfs(g, root, nodeSep, weight, height, depths, v) {
  6141. var children = g.children(v);
  6142. if (!children.length) {
  6143. if (v !== root) {
  6144. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  6145. }
  6146. return;
  6147. }
  6148. var top = util.addBorderNode(g, "_bt"),
  6149. bottom = util.addBorderNode(g, "_bb"),
  6150. label = g.node(v);
  6151. g.setParent(top, v);
  6152. label.borderTop = top;
  6153. g.setParent(bottom, v);
  6154. label.borderBottom = bottom;
  6155. _.forEach(children, function(child) {
  6156. dfs(g, root, nodeSep, weight, height, depths, child);
  6157. var childNode = g.node(child),
  6158. childTop = childNode.borderTop ? childNode.borderTop : child,
  6159. childBottom = childNode.borderBottom ? childNode.borderBottom : child,
  6160. thisWeight = childNode.borderTop ? weight : 2 * weight,
  6161. minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  6162. g.setEdge(top, childTop, {
  6163. weight: thisWeight,
  6164. minlen: minlen,
  6165. nestingEdge: true
  6166. });
  6167. g.setEdge(childBottom, bottom, {
  6168. weight: thisWeight,
  6169. minlen: minlen,
  6170. nestingEdge: true
  6171. });
  6172. });
  6173. if (!g.parent(v)) {
  6174. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  6175. }
  6176. }
  6177. function treeDepths(g) {
  6178. var depths = {};
  6179. function dfs(v, depth) {
  6180. var children = g.children(v);
  6181. if (children && children.length) {
  6182. _.forEach(children, function(child) {
  6183. dfs(child, depth + 1);
  6184. });
  6185. }
  6186. depths[v] = depth;
  6187. }
  6188. _.forEach(g.children(), function(v) { dfs(v, 1); });
  6189. return depths;
  6190. }
  6191. function sumWeights(g) {
  6192. return _.reduce(g.edges(), function(acc, e) {
  6193. return acc + g.edge(e).weight;
  6194. }, 0);
  6195. }
  6196. function cleanup(g) {
  6197. var graphLabel = g.graph();
  6198. g.removeNode(graphLabel.nestingRoot);
  6199. delete graphLabel.nestingRoot;
  6200. _.forEach(g.edges(), function(e) {
  6201. var edge = g.edge(e);
  6202. if (edge.nestingEdge) {
  6203. g.removeEdge(e);
  6204. }
  6205. });
  6206. }
  6207. /***/ }),
  6208. /***/ "../../node_modules/dagre/lib/normalize.js":
  6209. /*!***************************************************************!*\
  6210. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  6211. \***************************************************************/
  6212. /*! no static exports found */
  6213. /***/ (function(module, exports, __webpack_require__) {
  6214. "use strict";
  6215. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6216. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  6217. module.exports = {
  6218. run: run,
  6219. undo: undo
  6220. };
  6221. /*
  6222. * Breaks any long edges in the graph into short segments that span 1 layer
  6223. * each. This operation is undoable with the denormalize function.
  6224. *
  6225. * Pre-conditions:
  6226. *
  6227. * 1. The input graph is a DAG.
  6228. * 2. Each node in the graph has a "rank" property.
  6229. *
  6230. * Post-condition:
  6231. *
  6232. * 1. All edges in the graph have a length of 1.
  6233. * 2. Dummy nodes are added where edges have been split into segments.
  6234. * 3. The graph is augmented with a "dummyChains" attribute which contains
  6235. * the first dummy in each chain of dummy nodes produced.
  6236. */
  6237. function run(g) {
  6238. g.graph().dummyChains = [];
  6239. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  6240. }
  6241. function normalizeEdge(g, e) {
  6242. var v = e.v,
  6243. vRank = g.node(v).rank,
  6244. w = e.w,
  6245. wRank = g.node(w).rank,
  6246. name = e.name,
  6247. edgeLabel = g.edge(e),
  6248. labelRank = edgeLabel.labelRank;
  6249. if (wRank === vRank + 1) return;
  6250. g.removeEdge(e);
  6251. var dummy, attrs, i;
  6252. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  6253. edgeLabel.points = [];
  6254. attrs = {
  6255. width: 0, height: 0,
  6256. edgeLabel: edgeLabel, edgeObj: e,
  6257. rank: vRank
  6258. };
  6259. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  6260. if (vRank === labelRank) {
  6261. attrs.width = edgeLabel.width;
  6262. attrs.height = edgeLabel.height;
  6263. attrs.dummy = "edge-label";
  6264. attrs.labelpos = edgeLabel.labelpos;
  6265. }
  6266. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  6267. if (i === 0) {
  6268. g.graph().dummyChains.push(dummy);
  6269. }
  6270. v = dummy;
  6271. }
  6272. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  6273. }
  6274. function undo(g) {
  6275. _.forEach(g.graph().dummyChains, function(v) {
  6276. var node = g.node(v),
  6277. origLabel = node.edgeLabel,
  6278. w;
  6279. g.setEdge(node.edgeObj, origLabel);
  6280. while (node.dummy) {
  6281. w = g.successors(v)[0];
  6282. g.removeNode(v);
  6283. origLabel.points.push({ x: node.x, y: node.y });
  6284. if (node.dummy === "edge-label") {
  6285. origLabel.x = node.x;
  6286. origLabel.y = node.y;
  6287. origLabel.width = node.width;
  6288. origLabel.height = node.height;
  6289. }
  6290. v = w;
  6291. node = g.node(v);
  6292. }
  6293. });
  6294. }
  6295. /***/ }),
  6296. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  6297. /*!************************************************************************************!*\
  6298. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  6299. \************************************************************************************/
  6300. /*! no static exports found */
  6301. /***/ (function(module, exports, __webpack_require__) {
  6302. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6303. module.exports = addSubgraphConstraints;
  6304. function addSubgraphConstraints(g, cg, vs) {
  6305. var prev = {},
  6306. rootPrev;
  6307. _.forEach(vs, function(v) {
  6308. var child = g.parent(v),
  6309. parent,
  6310. prevChild;
  6311. while (child) {
  6312. parent = g.parent(child);
  6313. if (parent) {
  6314. prevChild = prev[parent];
  6315. prev[parent] = child;
  6316. } else {
  6317. prevChild = rootPrev;
  6318. rootPrev = child;
  6319. }
  6320. if (prevChild && prevChild !== child) {
  6321. cg.setEdge(prevChild, child);
  6322. return;
  6323. }
  6324. child = parent;
  6325. }
  6326. });
  6327. /*
  6328. function dfs(v) {
  6329. var children = v ? g.children(v) : g.children();
  6330. if (children.length) {
  6331. var min = Number.POSITIVE_INFINITY,
  6332. subgraphs = [];
  6333. _.each(children, function(child) {
  6334. var childMin = dfs(child);
  6335. if (g.children(child).length) {
  6336. subgraphs.push({ v: child, order: childMin });
  6337. }
  6338. min = Math.min(min, childMin);
  6339. });
  6340. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  6341. cg.setEdge(prev.v, curr.v);
  6342. return curr;
  6343. });
  6344. return min;
  6345. }
  6346. return g.node(v).order;
  6347. }
  6348. dfs(undefined);
  6349. */
  6350. }
  6351. /***/ }),
  6352. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  6353. /*!**********************************************************************!*\
  6354. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  6355. \**********************************************************************/
  6356. /*! no static exports found */
  6357. /***/ (function(module, exports, __webpack_require__) {
  6358. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6359. module.exports = barycenter;
  6360. function barycenter(g, movable) {
  6361. return _.map(movable, function(v) {
  6362. var inV = g.inEdges(v);
  6363. if (!inV.length) {
  6364. return { v: v };
  6365. } else {
  6366. var result = _.reduce(inV, function(acc, e) {
  6367. var edge = g.edge(e),
  6368. nodeU = g.node(e.v);
  6369. return {
  6370. sum: acc.sum + (edge.weight * nodeU.order),
  6371. weight: acc.weight + edge.weight
  6372. };
  6373. }, { sum: 0, weight: 0 });
  6374. return {
  6375. v: v,
  6376. barycenter: result.sum / result.weight,
  6377. weight: result.weight
  6378. };
  6379. }
  6380. });
  6381. }
  6382. /***/ }),
  6383. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  6384. /*!*****************************************************************************!*\
  6385. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  6386. \*****************************************************************************/
  6387. /*! no static exports found */
  6388. /***/ (function(module, exports, __webpack_require__) {
  6389. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6390. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  6391. module.exports = buildLayerGraph;
  6392. /*
  6393. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  6394. * contain all base and subgraph nodes from the request layer in their original
  6395. * hierarchy and any edges that are incident on these nodes and are of the type
  6396. * requested by the "relationship" parameter.
  6397. *
  6398. * Nodes from the requested rank that do not have parents are assigned a root
  6399. * node in the output graph, which is set in the root graph attribute. This
  6400. * makes it easy to walk the hierarchy of movable nodes during ordering.
  6401. *
  6402. * Pre-conditions:
  6403. *
  6404. * 1. Input graph is a DAG
  6405. * 2. Base nodes in the input graph have a rank attribute
  6406. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  6407. * 4. Edges have an assigned weight
  6408. *
  6409. * Post-conditions:
  6410. *
  6411. * 1. Output graph has all nodes in the movable rank with preserved
  6412. * hierarchy.
  6413. * 2. Root nodes in the movable layer are made children of the node
  6414. * indicated by the root attribute of the graph.
  6415. * 3. Non-movable nodes incident on movable nodes, selected by the
  6416. * relationship parameter, are included in the graph (without hierarchy).
  6417. * 4. Edges incident on movable nodes, selected by the relationship
  6418. * parameter, are added to the output graph.
  6419. * 5. The weights for copied edges are aggregated as need, since the output
  6420. * graph is not a multi-graph.
  6421. */
  6422. function buildLayerGraph(g, rank, relationship) {
  6423. var root = createRootNode(g),
  6424. result = new Graph({ compound: true }).setGraph({ root: root })
  6425. .setDefaultNodeLabel(function(v) { return g.node(v); });
  6426. _.forEach(g.nodes(), function(v) {
  6427. var node = g.node(v),
  6428. parent = g.parent(v);
  6429. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  6430. result.setNode(v);
  6431. result.setParent(v, parent || root);
  6432. // This assumes we have only short edges!
  6433. _.forEach(g[relationship](v), function(e) {
  6434. var u = e.v === v ? e.w : e.v,
  6435. edge = result.edge(u, v),
  6436. weight = !_.isUndefined(edge) ? edge.weight : 0;
  6437. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  6438. });
  6439. if (_.has(node, "minRank")) {
  6440. result.setNode(v, {
  6441. borderLeft: node.borderLeft[rank],
  6442. borderRight: node.borderRight[rank]
  6443. });
  6444. }
  6445. }
  6446. });
  6447. return result;
  6448. }
  6449. function createRootNode(g) {
  6450. var v;
  6451. while (g.hasNode((v = _.uniqueId("_root"))));
  6452. return v;
  6453. }
  6454. /***/ }),
  6455. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  6456. /*!***********************************************************************!*\
  6457. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  6458. \***********************************************************************/
  6459. /*! no static exports found */
  6460. /***/ (function(module, exports, __webpack_require__) {
  6461. "use strict";
  6462. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6463. module.exports = crossCount;
  6464. /*
  6465. * A function that takes a layering (an array of layers, each with an array of
  6466. * ordererd nodes) and a graph and returns a weighted crossing count.
  6467. *
  6468. * Pre-conditions:
  6469. *
  6470. * 1. Input graph must be simple (not a multigraph), directed, and include
  6471. * only simple edges.
  6472. * 2. Edges in the input graph must have assigned weights.
  6473. *
  6474. * Post-conditions:
  6475. *
  6476. * 1. The graph and layering matrix are left unchanged.
  6477. *
  6478. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  6479. */
  6480. function crossCount(g, layering) {
  6481. var cc = 0;
  6482. for (var i = 1; i < layering.length; ++i) {
  6483. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  6484. }
  6485. return cc;
  6486. }
  6487. function twoLayerCrossCount(g, northLayer, southLayer) {
  6488. // Sort all of the edges between the north and south layers by their position
  6489. // in the north layer and then the south. Map these edges to the position of
  6490. // their head in the south layer.
  6491. var southPos = _.zipObject(southLayer,
  6492. _.map(southLayer, function (v, i) { return i; }));
  6493. var southEntries = _.flatten(_.map(northLayer, function(v) {
  6494. return _.sortBy(_.map(g.outEdges(v), function(e) {
  6495. return { pos: southPos[e.w], weight: g.edge(e).weight };
  6496. }), "pos");
  6497. }), true);
  6498. // Build the accumulator tree
  6499. var firstIndex = 1;
  6500. while (firstIndex < southLayer.length) firstIndex <<= 1;
  6501. var treeSize = 2 * firstIndex - 1;
  6502. firstIndex -= 1;
  6503. var tree = _.map(new Array(treeSize), function() { return 0; });
  6504. // Calculate the weighted crossings
  6505. var cc = 0;
  6506. _.forEach(southEntries.forEach(function(entry) {
  6507. var index = entry.pos + firstIndex;
  6508. tree[index] += entry.weight;
  6509. var weightSum = 0;
  6510. while (index > 0) {
  6511. if (index % 2) {
  6512. weightSum += tree[index + 1];
  6513. }
  6514. index = (index - 1) >> 1;
  6515. tree[index] += entry.weight;
  6516. }
  6517. cc += entry.weight * weightSum;
  6518. }));
  6519. return cc;
  6520. }
  6521. /***/ }),
  6522. /***/ "../../node_modules/dagre/lib/order/index.js":
  6523. /*!*****************************************************************!*\
  6524. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  6525. \*****************************************************************/
  6526. /*! no static exports found */
  6527. /***/ (function(module, exports, __webpack_require__) {
  6528. "use strict";
  6529. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6530. initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js"),
  6531. crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js"),
  6532. sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js"),
  6533. buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js"),
  6534. addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),
  6535. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6536. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6537. module.exports = order;
  6538. /*
  6539. * Applies heuristics to minimize edge crossings in the graph and sets the best
  6540. * order solution as an order attribute on each node.
  6541. *
  6542. * Pre-conditions:
  6543. *
  6544. * 1. Graph must be DAG
  6545. * 2. Graph nodes must be objects with a "rank" attribute
  6546. * 3. Graph edges must have the "weight" attribute
  6547. *
  6548. * Post-conditions:
  6549. *
  6550. * 1. Graph nodes will have an "order" attribute based on the results of the
  6551. * algorithm.
  6552. */
  6553. function order(g) {
  6554. var maxRank = util.maxRank(g),
  6555. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  6556. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  6557. var layering = initOrder(g);
  6558. assignOrder(g, layering);
  6559. var bestCC = Number.POSITIVE_INFINITY,
  6560. best;
  6561. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  6562. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  6563. layering = util.buildLayerMatrix(g);
  6564. var cc = crossCount(g, layering);
  6565. if (cc < bestCC) {
  6566. lastBest = 0;
  6567. best = _.cloneDeep(layering);
  6568. bestCC = cc;
  6569. }
  6570. }
  6571. assignOrder(g, best);
  6572. }
  6573. function buildLayerGraphs(g, ranks, relationship) {
  6574. return _.map(ranks, function(rank) {
  6575. return buildLayerGraph(g, rank, relationship);
  6576. });
  6577. }
  6578. function sweepLayerGraphs(layerGraphs, biasRight) {
  6579. var cg = new Graph();
  6580. _.forEach(layerGraphs, function(lg) {
  6581. var root = lg.graph().root;
  6582. var sorted = sortSubgraph(lg, root, cg, biasRight);
  6583. _.forEach(sorted.vs, function(v, i) {
  6584. lg.node(v).order = i;
  6585. });
  6586. addSubgraphConstraints(lg, cg, sorted.vs);
  6587. });
  6588. }
  6589. function assignOrder(g, layering) {
  6590. _.forEach(layering, function(layer) {
  6591. _.forEach(layer, function(v, i) {
  6592. g.node(v).order = i;
  6593. });
  6594. });
  6595. }
  6596. /***/ }),
  6597. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  6598. /*!**********************************************************************!*\
  6599. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  6600. \**********************************************************************/
  6601. /*! no static exports found */
  6602. /***/ (function(module, exports, __webpack_require__) {
  6603. "use strict";
  6604. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6605. module.exports = initOrder;
  6606. /*
  6607. * Assigns an initial order value for each node by performing a DFS search
  6608. * starting from nodes in the first rank. Nodes are assigned an order in their
  6609. * rank as they are first visited.
  6610. *
  6611. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  6612. * Graphs."
  6613. *
  6614. * Returns a layering matrix with an array per layer and each layer sorted by
  6615. * the order of its nodes.
  6616. */
  6617. function initOrder(g) {
  6618. var visited = {},
  6619. simpleNodes = _.filter(g.nodes(), function(v) {
  6620. return !g.children(v).length;
  6621. }),
  6622. maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; })),
  6623. layers = _.map(_.range(maxRank + 1), function() { return []; });
  6624. function dfs(v) {
  6625. if (_.has(visited, v)) return;
  6626. visited[v] = true;
  6627. var node = g.node(v);
  6628. layers[node.rank].push(v);
  6629. _.forEach(g.successors(v), dfs);
  6630. }
  6631. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  6632. _.forEach(orderedVs, dfs);
  6633. return layers;
  6634. }
  6635. /***/ }),
  6636. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  6637. /*!*****************************************************************************!*\
  6638. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  6639. \*****************************************************************************/
  6640. /*! no static exports found */
  6641. /***/ (function(module, exports, __webpack_require__) {
  6642. "use strict";
  6643. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6644. module.exports = resolveConflicts;
  6645. /*
  6646. * Given a list of entries of the form {v, barycenter, weight} and a
  6647. * constraint graph this function will resolve any conflicts between the
  6648. * constraint graph and the barycenters for the entries. If the barycenters for
  6649. * an entry would violate a constraint in the constraint graph then we coalesce
  6650. * the nodes in the conflict into a new node that respects the contraint and
  6651. * aggregates barycenter and weight information.
  6652. *
  6653. * This implementation is based on the description in Forster, "A Fast and
  6654. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  6655. * differs in some specific details.
  6656. *
  6657. * Pre-conditions:
  6658. *
  6659. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  6660. * no barycenter, then {v}.
  6661. *
  6662. * Returns:
  6663. *
  6664. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  6665. * `vs` may either be a singleton or it may be an aggregation of nodes
  6666. * ordered such that they do not violate constraints from the constraint
  6667. * graph. The property `i` is the lowest original index of any of the
  6668. * elements in `vs`.
  6669. */
  6670. function resolveConflicts(entries, cg) {
  6671. var mappedEntries = {};
  6672. _.forEach(entries, function(entry, i) {
  6673. var tmp = mappedEntries[entry.v] = {
  6674. indegree: 0,
  6675. "in": [],
  6676. out: [],
  6677. vs: [entry.v],
  6678. i: i
  6679. };
  6680. if (!_.isUndefined(entry.barycenter)) {
  6681. tmp.barycenter = entry.barycenter;
  6682. tmp.weight = entry.weight;
  6683. }
  6684. });
  6685. _.forEach(cg.edges(), function(e) {
  6686. var entryV = mappedEntries[e.v],
  6687. entryW = mappedEntries[e.w];
  6688. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  6689. entryW.indegree++;
  6690. entryV.out.push(mappedEntries[e.w]);
  6691. }
  6692. });
  6693. var sourceSet = _.filter(mappedEntries, function(entry) {
  6694. return !entry.indegree;
  6695. });
  6696. return doResolveConflicts(sourceSet);
  6697. }
  6698. function doResolveConflicts(sourceSet) {
  6699. var entries = [];
  6700. function handleIn(vEntry) {
  6701. return function(uEntry) {
  6702. if (uEntry.merged) {
  6703. return;
  6704. }
  6705. if (_.isUndefined(uEntry.barycenter) ||
  6706. _.isUndefined(vEntry.barycenter) ||
  6707. uEntry.barycenter >= vEntry.barycenter) {
  6708. mergeEntries(vEntry, uEntry);
  6709. }
  6710. };
  6711. }
  6712. function handleOut(vEntry) {
  6713. return function(wEntry) {
  6714. wEntry["in"].push(vEntry);
  6715. if (--wEntry.indegree === 0) {
  6716. sourceSet.push(wEntry);
  6717. }
  6718. };
  6719. }
  6720. while (sourceSet.length) {
  6721. var entry = sourceSet.pop();
  6722. entries.push(entry);
  6723. _.forEach(entry["in"].reverse(), handleIn(entry));
  6724. _.forEach(entry.out, handleOut(entry));
  6725. }
  6726. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  6727. function(entry) {
  6728. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  6729. });
  6730. }
  6731. function mergeEntries(target, source) {
  6732. var sum = 0,
  6733. weight = 0;
  6734. if (target.weight) {
  6735. sum += target.barycenter * target.weight;
  6736. weight += target.weight;
  6737. }
  6738. if (source.weight) {
  6739. sum += source.barycenter * source.weight;
  6740. weight += source.weight;
  6741. }
  6742. target.vs = source.vs.concat(target.vs);
  6743. target.barycenter = sum / weight;
  6744. target.weight = weight;
  6745. target.i = Math.min(source.i, target.i);
  6746. source.merged = true;
  6747. }
  6748. /***/ }),
  6749. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  6750. /*!*************************************************************************!*\
  6751. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  6752. \*************************************************************************/
  6753. /*! no static exports found */
  6754. /***/ (function(module, exports, __webpack_require__) {
  6755. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6756. barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js"),
  6757. resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js"),
  6758. sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  6759. module.exports = sortSubgraph;
  6760. function sortSubgraph(g, v, cg, biasRight) {
  6761. var movable = g.children(v),
  6762. node = g.node(v),
  6763. bl = node ? node.borderLeft : undefined,
  6764. br = node ? node.borderRight: undefined,
  6765. subgraphs = {};
  6766. if (bl) {
  6767. movable = _.filter(movable, function(w) {
  6768. return w !== bl && w !== br;
  6769. });
  6770. }
  6771. var barycenters = barycenter(g, movable);
  6772. _.forEach(barycenters, function(entry) {
  6773. if (g.children(entry.v).length) {
  6774. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  6775. subgraphs[entry.v] = subgraphResult;
  6776. if (_.has(subgraphResult, "barycenter")) {
  6777. mergeBarycenters(entry, subgraphResult);
  6778. }
  6779. }
  6780. });
  6781. var entries = resolveConflicts(barycenters, cg);
  6782. expandSubgraphs(entries, subgraphs);
  6783. var result = sort(entries, biasRight);
  6784. if (bl) {
  6785. result.vs = _.flatten([bl, result.vs, br], true);
  6786. if (g.predecessors(bl).length) {
  6787. var blPred = g.node(g.predecessors(bl)[0]),
  6788. brPred = g.node(g.predecessors(br)[0]);
  6789. if (!_.has(result, "barycenter")) {
  6790. result.barycenter = 0;
  6791. result.weight = 0;
  6792. }
  6793. result.barycenter = (result.barycenter * result.weight +
  6794. blPred.order + brPred.order) / (result.weight + 2);
  6795. result.weight += 2;
  6796. }
  6797. }
  6798. return result;
  6799. }
  6800. function expandSubgraphs(entries, subgraphs) {
  6801. _.forEach(entries, function(entry) {
  6802. entry.vs = _.flatten(entry.vs.map(function(v) {
  6803. if (subgraphs[v]) {
  6804. return subgraphs[v].vs;
  6805. }
  6806. return v;
  6807. }), true);
  6808. });
  6809. }
  6810. function mergeBarycenters(target, other) {
  6811. if (!_.isUndefined(target.barycenter)) {
  6812. target.barycenter = (target.barycenter * target.weight +
  6813. other.barycenter * other.weight) /
  6814. (target.weight + other.weight);
  6815. target.weight += other.weight;
  6816. } else {
  6817. target.barycenter = other.barycenter;
  6818. target.weight = other.weight;
  6819. }
  6820. }
  6821. /***/ }),
  6822. /***/ "../../node_modules/dagre/lib/order/sort.js":
  6823. /*!****************************************************************!*\
  6824. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  6825. \****************************************************************/
  6826. /*! no static exports found */
  6827. /***/ (function(module, exports, __webpack_require__) {
  6828. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6829. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6830. module.exports = sort;
  6831. function sort(entries, biasRight) {
  6832. var parts = util.partition(entries, function(entry) {
  6833. return _.has(entry, "barycenter");
  6834. });
  6835. var sortable = parts.lhs,
  6836. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  6837. vs = [],
  6838. sum = 0,
  6839. weight = 0,
  6840. vsIndex = 0;
  6841. sortable.sort(compareWithBias(!!biasRight));
  6842. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6843. _.forEach(sortable, function (entry) {
  6844. vsIndex += entry.vs.length;
  6845. vs.push(entry.vs);
  6846. sum += entry.barycenter * entry.weight;
  6847. weight += entry.weight;
  6848. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6849. });
  6850. var result = { vs: _.flatten(vs, true) };
  6851. if (weight) {
  6852. result.barycenter = sum / weight;
  6853. result.weight = weight;
  6854. }
  6855. return result;
  6856. }
  6857. function consumeUnsortable(vs, unsortable, index) {
  6858. var last;
  6859. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  6860. unsortable.pop();
  6861. vs.push(last.vs);
  6862. index++;
  6863. }
  6864. return index;
  6865. }
  6866. function compareWithBias(bias) {
  6867. return function(entryV, entryW) {
  6868. if (entryV.barycenter < entryW.barycenter) {
  6869. return -1;
  6870. } else if (entryV.barycenter > entryW.barycenter) {
  6871. return 1;
  6872. }
  6873. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  6874. };
  6875. }
  6876. /***/ }),
  6877. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  6878. /*!*************************************************************************!*\
  6879. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  6880. \*************************************************************************/
  6881. /*! no static exports found */
  6882. /***/ (function(module, exports, __webpack_require__) {
  6883. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  6884. module.exports = parentDummyChains;
  6885. function parentDummyChains(g) {
  6886. var postorderNums = postorder(g);
  6887. _.forEach(g.graph().dummyChains, function(v) {
  6888. var node = g.node(v),
  6889. edgeObj = node.edgeObj,
  6890. pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w),
  6891. path = pathData.path,
  6892. lca = pathData.lca,
  6893. pathIdx = 0,
  6894. pathV = path[pathIdx],
  6895. ascending = true;
  6896. while (v !== edgeObj.w) {
  6897. node = g.node(v);
  6898. if (ascending) {
  6899. while ((pathV = path[pathIdx]) !== lca &&
  6900. g.node(pathV).maxRank < node.rank) {
  6901. pathIdx++;
  6902. }
  6903. if (pathV === lca) {
  6904. ascending = false;
  6905. }
  6906. }
  6907. if (!ascending) {
  6908. while (pathIdx < path.length - 1 &&
  6909. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  6910. pathIdx++;
  6911. }
  6912. pathV = path[pathIdx];
  6913. }
  6914. g.setParent(v, pathV);
  6915. v = g.successors(v)[0];
  6916. }
  6917. });
  6918. }
  6919. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  6920. // full path and the LCA.
  6921. function findPath(g, postorderNums, v, w) {
  6922. var vPath = [],
  6923. wPath = [],
  6924. low = Math.min(postorderNums[v].low, postorderNums[w].low),
  6925. lim = Math.max(postorderNums[v].lim, postorderNums[w].lim),
  6926. parent,
  6927. lca;
  6928. // Traverse up from v to find the LCA
  6929. parent = v;
  6930. do {
  6931. parent = g.parent(parent);
  6932. vPath.push(parent);
  6933. } while (parent &&
  6934. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  6935. lca = parent;
  6936. // Traverse from w to LCA
  6937. parent = w;
  6938. while ((parent = g.parent(parent)) !== lca) {
  6939. wPath.push(parent);
  6940. }
  6941. return { path: vPath.concat(wPath.reverse()), lca: lca };
  6942. }
  6943. function postorder(g) {
  6944. var result = {},
  6945. lim = 0;
  6946. function dfs(v) {
  6947. var low = lim;
  6948. _.forEach(g.children(v), dfs);
  6949. result[v] = { low: low, lim: lim++ };
  6950. }
  6951. _.forEach(g.children(), dfs);
  6952. return result;
  6953. }
  6954. /***/ }),
  6955. /***/ "../../node_modules/dagre/lib/position/bk.js":
  6956. /*!*****************************************************************!*\
  6957. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  6958. \*****************************************************************/
  6959. /*! no static exports found */
  6960. /***/ (function(module, exports, __webpack_require__) {
  6961. "use strict";
  6962. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6963. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6964. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6965. /*
  6966. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  6967. * and Simple Horizontal Coordinate Assignment."
  6968. */
  6969. module.exports = {
  6970. positionX: positionX,
  6971. findType1Conflicts: findType1Conflicts,
  6972. findType2Conflicts: findType2Conflicts,
  6973. addConflict: addConflict,
  6974. hasConflict: hasConflict,
  6975. verticalAlignment: verticalAlignment,
  6976. horizontalCompaction: horizontalCompaction,
  6977. alignCoordinates: alignCoordinates,
  6978. findSmallestWidthAlignment: findSmallestWidthAlignment,
  6979. balance: balance
  6980. };
  6981. /*
  6982. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  6983. * property. A type-1 conflict is one where a non-inner segment crosses an
  6984. * inner segment. An inner segment is an edge with both incident nodes marked
  6985. * with the "dummy" property.
  6986. *
  6987. * This algorithm scans layer by layer, starting with the second, for type-1
  6988. * conflicts between the current layer and the previous layer. For each layer
  6989. * it scans the nodes from left to right until it reaches one that is incident
  6990. * on an inner segment. It then scans predecessors to determine if they have
  6991. * edges that cross that inner segment. At the end a final scan is done for all
  6992. * nodes on the current rank to see if they cross the last visited inner
  6993. * segment.
  6994. *
  6995. * This algorithm (safely) assumes that a dummy node will only be incident on a
  6996. * single node in the layers being scanned.
  6997. */
  6998. function findType1Conflicts(g, layering) {
  6999. var conflicts = {};
  7000. function visitLayer(prevLayer, layer) {
  7001. var
  7002. // last visited node in the previous layer that is incident on an inner
  7003. // segment.
  7004. k0 = 0,
  7005. // Tracks the last node in this layer scanned for crossings with a type-1
  7006. // segment.
  7007. scanPos = 0,
  7008. prevLayerLength = prevLayer.length,
  7009. lastNode = _.last(layer);
  7010. _.forEach(layer, function(v, i) {
  7011. var w = findOtherInnerSegmentNode(g, v),
  7012. k1 = w ? g.node(w).order : prevLayerLength;
  7013. if (w || v === lastNode) {
  7014. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  7015. _.forEach(g.predecessors(scanNode), function(u) {
  7016. var uLabel = g.node(u),
  7017. uPos = uLabel.order;
  7018. if ((uPos < k0 || k1 < uPos) &&
  7019. !(uLabel.dummy && g.node(scanNode).dummy)) {
  7020. addConflict(conflicts, u, scanNode);
  7021. }
  7022. });
  7023. });
  7024. scanPos = i + 1;
  7025. k0 = k1;
  7026. }
  7027. });
  7028. return layer;
  7029. }
  7030. _.reduce(layering, visitLayer);
  7031. return conflicts;
  7032. }
  7033. function findType2Conflicts(g, layering) {
  7034. var conflicts = {};
  7035. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  7036. var v;
  7037. _.forEach(_.range(southPos, southEnd), function(i) {
  7038. v = south[i];
  7039. if (g.node(v).dummy) {
  7040. _.forEach(g.predecessors(v), function(u) {
  7041. var uNode = g.node(u);
  7042. if (uNode.dummy &&
  7043. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  7044. addConflict(conflicts, u, v);
  7045. }
  7046. });
  7047. }
  7048. });
  7049. }
  7050. function visitLayer(north, south) {
  7051. var prevNorthPos = -1,
  7052. nextNorthPos,
  7053. southPos = 0;
  7054. _.forEach(south, function(v, southLookahead) {
  7055. if (g.node(v).dummy === "border") {
  7056. var predecessors = g.predecessors(v);
  7057. if (predecessors.length) {
  7058. nextNorthPos = g.node(predecessors[0]).order;
  7059. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  7060. southPos = southLookahead;
  7061. prevNorthPos = nextNorthPos;
  7062. }
  7063. }
  7064. scan(south, southPos, south.length, nextNorthPos, north.length);
  7065. });
  7066. return south;
  7067. }
  7068. _.reduce(layering, visitLayer);
  7069. return conflicts;
  7070. }
  7071. function findOtherInnerSegmentNode(g, v) {
  7072. if (g.node(v).dummy) {
  7073. return _.find(g.predecessors(v), function(u) {
  7074. return g.node(u).dummy;
  7075. });
  7076. }
  7077. }
  7078. function addConflict(conflicts, v, w) {
  7079. if (v > w) {
  7080. var tmp = v;
  7081. v = w;
  7082. w = tmp;
  7083. }
  7084. var conflictsV = conflicts[v];
  7085. if (!conflictsV) {
  7086. conflicts[v] = conflictsV = {};
  7087. }
  7088. conflictsV[w] = true;
  7089. }
  7090. function hasConflict(conflicts, v, w) {
  7091. if (v > w) {
  7092. var tmp = v;
  7093. v = w;
  7094. w = tmp;
  7095. }
  7096. return _.has(conflicts[v], w);
  7097. }
  7098. /*
  7099. * Try to align nodes into vertical "blocks" where possible. This algorithm
  7100. * attempts to align a node with one of its median neighbors. If the edge
  7101. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  7102. * If a previous node has already formed a block with a node after the node
  7103. * we're trying to form a block with, we also ignore that possibility - our
  7104. * blocks would be split in that scenario.
  7105. */
  7106. function verticalAlignment(g, layering, conflicts, neighborFn) {
  7107. var root = {},
  7108. align = {},
  7109. pos = {};
  7110. // We cache the position here based on the layering because the graph and
  7111. // layering may be out of sync. The layering matrix is manipulated to
  7112. // generate different extreme alignments.
  7113. _.forEach(layering, function(layer) {
  7114. _.forEach(layer, function(v, order) {
  7115. root[v] = v;
  7116. align[v] = v;
  7117. pos[v] = order;
  7118. });
  7119. });
  7120. _.forEach(layering, function(layer) {
  7121. var prevIdx = -1;
  7122. _.forEach(layer, function(v) {
  7123. var ws = neighborFn(v);
  7124. if (ws.length) {
  7125. ws = _.sortBy(ws, function(w) { return pos[w]; });
  7126. var mp = (ws.length - 1) / 2;
  7127. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  7128. var w = ws[i];
  7129. if (align[v] === v &&
  7130. prevIdx < pos[w] &&
  7131. !hasConflict(conflicts, v, w)) {
  7132. align[w] = v;
  7133. align[v] = root[v] = root[w];
  7134. prevIdx = pos[w];
  7135. }
  7136. }
  7137. }
  7138. });
  7139. });
  7140. return { root: root, align: align };
  7141. }
  7142. function horizontalCompaction(g, layering, root, align, reverseSep) {
  7143. // This portion of the algorithm differs from BK due to a number of problems.
  7144. // Instead of their algorithm we construct a new block graph and do two
  7145. // sweeps. The first sweep places blocks with the smallest possible
  7146. // coordinates. The second sweep removes unused space by moving blocks to the
  7147. // greatest coordinates without violating separation.
  7148. var xs = {},
  7149. blockG = buildBlockGraph(g, layering, root, reverseSep),
  7150. borderType = reverseSep ? "borderLeft" : "borderRight";
  7151. function iterate(setXsFunc, nextNodesFunc) {
  7152. var stack = blockG.nodes();
  7153. var elem = stack.pop();
  7154. var visited = {};
  7155. while (elem) {
  7156. if (visited[elem]) {
  7157. setXsFunc(elem);
  7158. } else {
  7159. visited[elem] = true;
  7160. stack.push(elem);
  7161. stack = stack.concat(nextNodesFunc(elem));
  7162. }
  7163. elem = stack.pop();
  7164. }
  7165. }
  7166. // First pass, assign smallest coordinates
  7167. function pass1(elem) {
  7168. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  7169. return Math.max(acc, xs[e.v] + blockG.edge(e));
  7170. }, 0);
  7171. }
  7172. // Second pass, assign greatest coordinates
  7173. function pass2(elem) {
  7174. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  7175. return Math.min(acc, xs[e.w] - blockG.edge(e));
  7176. }, Number.POSITIVE_INFINITY);
  7177. var node = g.node(elem);
  7178. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  7179. xs[elem] = Math.max(xs[elem], min);
  7180. }
  7181. }
  7182. iterate(pass1, blockG.predecessors.bind(blockG));
  7183. iterate(pass2, blockG.successors.bind(blockG));
  7184. // Assign x coordinates to all nodes
  7185. _.forEach(align, function(v) {
  7186. xs[v] = xs[root[v]];
  7187. });
  7188. return xs;
  7189. }
  7190. function buildBlockGraph(g, layering, root, reverseSep) {
  7191. var blockGraph = new Graph(),
  7192. graphLabel = g.graph(),
  7193. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  7194. _.forEach(layering, function(layer) {
  7195. var u;
  7196. _.forEach(layer, function(v) {
  7197. var vRoot = root[v];
  7198. blockGraph.setNode(vRoot);
  7199. if (u) {
  7200. var uRoot = root[u],
  7201. prevMax = blockGraph.edge(uRoot, vRoot);
  7202. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  7203. }
  7204. u = v;
  7205. });
  7206. });
  7207. return blockGraph;
  7208. }
  7209. /*
  7210. * Returns the alignment that has the smallest width of the given alignments.
  7211. */
  7212. function findSmallestWidthAlignment(g, xss) {
  7213. return _.minBy(_.values(xss), function (xs) {
  7214. var max = Number.NEGATIVE_INFINITY;
  7215. var min = Number.POSITIVE_INFINITY;
  7216. _.forIn(xs, function (x, v) {
  7217. var halfWidth = width(g, v) / 2;
  7218. max = Math.max(x + halfWidth, max);
  7219. min = Math.min(x - halfWidth, min);
  7220. });
  7221. return max - min;
  7222. });
  7223. }
  7224. /*
  7225. * Align the coordinates of each of the layout alignments such that
  7226. * left-biased alignments have their minimum coordinate at the same point as
  7227. * the minimum coordinate of the smallest width alignment and right-biased
  7228. * alignments have their maximum coordinate at the same point as the maximum
  7229. * coordinate of the smallest width alignment.
  7230. */
  7231. function alignCoordinates(xss, alignTo) {
  7232. var alignToVals = _.values(alignTo),
  7233. alignToMin = _.min(alignToVals),
  7234. alignToMax = _.max(alignToVals);
  7235. _.forEach(["u", "d"], function(vert) {
  7236. _.forEach(["l", "r"], function(horiz) {
  7237. var alignment = vert + horiz,
  7238. xs = xss[alignment],
  7239. delta;
  7240. if (xs === alignTo) return;
  7241. var xsVals = _.values(xs);
  7242. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  7243. if (delta) {
  7244. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  7245. }
  7246. });
  7247. });
  7248. }
  7249. function balance(xss, align) {
  7250. return _.mapValues(xss.ul, function(ignore, v) {
  7251. if (align) {
  7252. return xss[align.toLowerCase()][v];
  7253. } else {
  7254. var xs = _.sortBy(_.map(xss, v));
  7255. return (xs[1] + xs[2]) / 2;
  7256. }
  7257. });
  7258. }
  7259. function positionX(g) {
  7260. var layering = util.buildLayerMatrix(g),
  7261. conflicts = _.merge(findType1Conflicts(g, layering),
  7262. findType2Conflicts(g, layering));
  7263. var xss = {},
  7264. adjustedLayering;
  7265. _.forEach(["u", "d"], function(vert) {
  7266. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  7267. _.forEach(["l", "r"], function(horiz) {
  7268. if (horiz === "r") {
  7269. adjustedLayering = _.map(adjustedLayering, function(inner) {
  7270. return _.values(inner).reverse();
  7271. });
  7272. }
  7273. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  7274. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  7275. var xs = horizontalCompaction(g, adjustedLayering,
  7276. align.root, align.align,
  7277. horiz === "r");
  7278. if (horiz === "r") {
  7279. xs = _.mapValues(xs, function(x) { return -x; });
  7280. }
  7281. xss[vert + horiz] = xs;
  7282. });
  7283. });
  7284. var smallestWidth = findSmallestWidthAlignment(g, xss);
  7285. alignCoordinates(xss, smallestWidth);
  7286. return balance(xss, g.graph().align);
  7287. }
  7288. function sep(nodeSep, edgeSep, reverseSep) {
  7289. return function(g, v, w) {
  7290. var vLabel = g.node(v),
  7291. wLabel = g.node(w),
  7292. sum = 0,
  7293. delta;
  7294. sum += vLabel.width / 2;
  7295. if (_.has(vLabel, "labelpos")) {
  7296. switch (vLabel.labelpos.toLowerCase()) {
  7297. case "l": delta = -vLabel.width / 2; break;
  7298. case "r": delta = vLabel.width / 2; break;
  7299. }
  7300. }
  7301. if (delta) {
  7302. sum += reverseSep ? delta : -delta;
  7303. }
  7304. delta = 0;
  7305. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  7306. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  7307. sum += wLabel.width / 2;
  7308. if (_.has(wLabel, "labelpos")) {
  7309. switch (wLabel.labelpos.toLowerCase()) {
  7310. case "l": delta = wLabel.width / 2; break;
  7311. case "r": delta = -wLabel.width / 2; break;
  7312. }
  7313. }
  7314. if (delta) {
  7315. sum += reverseSep ? delta : -delta;
  7316. }
  7317. delta = 0;
  7318. return sum;
  7319. };
  7320. }
  7321. function width(g, v) {
  7322. return g.node(v).width;
  7323. }
  7324. /***/ }),
  7325. /***/ "../../node_modules/dagre/lib/position/index.js":
  7326. /*!********************************************************************!*\
  7327. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  7328. \********************************************************************/
  7329. /*! no static exports found */
  7330. /***/ (function(module, exports, __webpack_require__) {
  7331. "use strict";
  7332. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7333. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js"),
  7334. positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  7335. module.exports = position;
  7336. function position(g) {
  7337. g = util.asNonCompoundGraph(g);
  7338. positionY(g);
  7339. _.forEach(positionX(g), function(x, v) {
  7340. g.node(v).x = x;
  7341. });
  7342. }
  7343. function positionY(g) {
  7344. var layering = util.buildLayerMatrix(g),
  7345. rankSep = g.graph().ranksep,
  7346. prevY = 0;
  7347. _.forEach(layering, function(layer) {
  7348. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  7349. _.forEach(layer, function(v) {
  7350. g.node(v).y = prevY + maxHeight / 2;
  7351. });
  7352. prevY += maxHeight + rankSep;
  7353. });
  7354. }
  7355. /***/ }),
  7356. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  7357. /*!************************************************************************!*\
  7358. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  7359. \************************************************************************/
  7360. /*! no static exports found */
  7361. /***/ (function(module, exports, __webpack_require__) {
  7362. "use strict";
  7363. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7364. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  7365. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  7366. module.exports = feasibleTree;
  7367. /*
  7368. * Constructs a spanning tree with tight edges and adjusted the input node's
  7369. * ranks to achieve this. A tight edge is one that is has a length that matches
  7370. * its "minlen" attribute.
  7371. *
  7372. * The basic structure for this function is derived from Gansner, et al., "A
  7373. * Technique for Drawing Directed Graphs."
  7374. *
  7375. * Pre-conditions:
  7376. *
  7377. * 1. Graph must be a DAG.
  7378. * 2. Graph must be connected.
  7379. * 3. Graph must have at least one node.
  7380. * 5. Graph nodes must have been previously assigned a "rank" property that
  7381. * respects the "minlen" property of incident edges.
  7382. * 6. Graph edges must have a "minlen" property.
  7383. *
  7384. * Post-conditions:
  7385. *
  7386. * - Graph nodes will have their rank adjusted to ensure that all edges are
  7387. * tight.
  7388. *
  7389. * Returns a tree (undirected graph) that is constructed using only "tight"
  7390. * edges.
  7391. */
  7392. function feasibleTree(g) {
  7393. var t = new Graph({ directed: false });
  7394. // Choose arbitrary node from which to start our tree
  7395. var start = g.nodes()[0],
  7396. size = g.nodeCount();
  7397. t.setNode(start, {});
  7398. var edge, delta;
  7399. while (tightTree(t, g) < size) {
  7400. edge = findMinSlackEdge(t, g);
  7401. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  7402. shiftRanks(t, g, delta);
  7403. }
  7404. return t;
  7405. }
  7406. /*
  7407. * Finds a maximal tree of tight edges and returns the number of nodes in the
  7408. * tree.
  7409. */
  7410. function tightTree(t, g) {
  7411. function dfs(v) {
  7412. _.forEach(g.nodeEdges(v), function(e) {
  7413. var edgeV = e.v,
  7414. w = (v === edgeV) ? e.w : edgeV;
  7415. if (!t.hasNode(w) && !slack(g, e)) {
  7416. t.setNode(w, {});
  7417. t.setEdge(v, w, {});
  7418. dfs(w);
  7419. }
  7420. });
  7421. }
  7422. _.forEach(t.nodes(), dfs);
  7423. return t.nodeCount();
  7424. }
  7425. /*
  7426. * Finds the edge with the smallest slack that is incident on tree and returns
  7427. * it.
  7428. */
  7429. function findMinSlackEdge(t, g) {
  7430. return _.minBy(g.edges(), function(e) {
  7431. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  7432. return slack(g, e);
  7433. }
  7434. });
  7435. }
  7436. function shiftRanks(t, g, delta) {
  7437. _.forEach(t.nodes(), function(v) {
  7438. g.node(v).rank += delta;
  7439. });
  7440. }
  7441. /***/ }),
  7442. /***/ "../../node_modules/dagre/lib/rank/index.js":
  7443. /*!****************************************************************!*\
  7444. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  7445. \****************************************************************/
  7446. /*! no static exports found */
  7447. /***/ (function(module, exports, __webpack_require__) {
  7448. "use strict";
  7449. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js"),
  7450. longestPath = rankUtil.longestPath,
  7451. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7452. networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  7453. module.exports = rank;
  7454. /*
  7455. * Assigns a rank to each node in the input graph that respects the "minlen"
  7456. * constraint specified on edges between nodes.
  7457. *
  7458. * This basic structure is derived from Gansner, et al., "A Technique for
  7459. * Drawing Directed Graphs."
  7460. *
  7461. * Pre-conditions:
  7462. *
  7463. * 1. Graph must be a connected DAG
  7464. * 2. Graph nodes must be objects
  7465. * 3. Graph edges must have "weight" and "minlen" attributes
  7466. *
  7467. * Post-conditions:
  7468. *
  7469. * 1. Graph nodes will have a "rank" attribute based on the results of the
  7470. * algorithm. Ranks can start at any index (including negative), we'll
  7471. * fix them up later.
  7472. */
  7473. function rank(g) {
  7474. switch(g.graph().ranker) {
  7475. case "network-simplex": networkSimplexRanker(g); break;
  7476. case "tight-tree": tightTreeRanker(g); break;
  7477. case "longest-path": longestPathRanker(g); break;
  7478. default: networkSimplexRanker(g);
  7479. }
  7480. }
  7481. // A fast and simple ranker, but results are far from optimal.
  7482. var longestPathRanker = longestPath;
  7483. function tightTreeRanker(g) {
  7484. longestPath(g);
  7485. feasibleTree(g);
  7486. }
  7487. function networkSimplexRanker(g) {
  7488. networkSimplex(g);
  7489. }
  7490. /***/ }),
  7491. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  7492. /*!**************************************************************************!*\
  7493. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  7494. \**************************************************************************/
  7495. /*! no static exports found */
  7496. /***/ (function(module, exports, __webpack_require__) {
  7497. "use strict";
  7498. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7499. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7500. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack,
  7501. initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath,
  7502. preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder,
  7503. postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder,
  7504. simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  7505. module.exports = networkSimplex;
  7506. // Expose some internals for testing purposes
  7507. networkSimplex.initLowLimValues = initLowLimValues;
  7508. networkSimplex.initCutValues = initCutValues;
  7509. networkSimplex.calcCutValue = calcCutValue;
  7510. networkSimplex.leaveEdge = leaveEdge;
  7511. networkSimplex.enterEdge = enterEdge;
  7512. networkSimplex.exchangeEdges = exchangeEdges;
  7513. /*
  7514. * The network simplex algorithm assigns ranks to each node in the input graph
  7515. * and iteratively improves the ranking to reduce the length of edges.
  7516. *
  7517. * Preconditions:
  7518. *
  7519. * 1. The input graph must be a DAG.
  7520. * 2. All nodes in the graph must have an object value.
  7521. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  7522. *
  7523. * Postconditions:
  7524. *
  7525. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  7526. * been optimized by the network simplex algorithm. Ranks start at 0.
  7527. *
  7528. *
  7529. * A rough sketch of the algorithm is as follows:
  7530. *
  7531. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  7532. * which assigns ranks to the lowest position possible. In general this
  7533. * leads to very wide bottom ranks and unnecessarily long edges.
  7534. * 2. Construct a feasible tight tree. A tight tree is one such that all
  7535. * edges in the tree have no slack (difference between length of edge
  7536. * and minlen for the edge). This by itself greatly improves the assigned
  7537. * rankings by shorting edges.
  7538. * 3. Iteratively find edges that have negative cut values. Generally a
  7539. * negative cut value indicates that the edge could be removed and a new
  7540. * tree edge could be added to produce a more compact graph.
  7541. *
  7542. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  7543. * for Drawing Directed Graphs." The structure of the file roughly follows the
  7544. * structure of the overall algorithm.
  7545. */
  7546. function networkSimplex(g) {
  7547. g = simplify(g);
  7548. initRank(g);
  7549. var t = feasibleTree(g);
  7550. initLowLimValues(t);
  7551. initCutValues(t, g);
  7552. var e, f;
  7553. while ((e = leaveEdge(t))) {
  7554. f = enterEdge(t, g, e);
  7555. exchangeEdges(t, g, e, f);
  7556. }
  7557. }
  7558. /*
  7559. * Initializes cut values for all edges in the tree.
  7560. */
  7561. function initCutValues(t, g) {
  7562. var vs = postorder(t, t.nodes());
  7563. vs = vs.slice(0, vs.length - 1);
  7564. _.forEach(vs, function(v) {
  7565. assignCutValue(t, g, v);
  7566. });
  7567. }
  7568. function assignCutValue(t, g, child) {
  7569. var childLab = t.node(child),
  7570. parent = childLab.parent;
  7571. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  7572. }
  7573. /*
  7574. * Given the tight tree, its graph, and a child in the graph calculate and
  7575. * return the cut value for the edge between the child and its parent.
  7576. */
  7577. function calcCutValue(t, g, child) {
  7578. var childLab = t.node(child),
  7579. parent = childLab.parent,
  7580. // True if the child is on the tail end of the edge in the directed graph
  7581. childIsTail = true,
  7582. // The graph's view of the tree edge we're inspecting
  7583. graphEdge = g.edge(child, parent),
  7584. // The accumulated cut value for the edge between this node and its parent
  7585. cutValue = 0;
  7586. if (!graphEdge) {
  7587. childIsTail = false;
  7588. graphEdge = g.edge(parent, child);
  7589. }
  7590. cutValue = graphEdge.weight;
  7591. _.forEach(g.nodeEdges(child), function(e) {
  7592. var isOutEdge = e.v === child,
  7593. other = isOutEdge ? e.w : e.v;
  7594. if (other !== parent) {
  7595. var pointsToHead = isOutEdge === childIsTail,
  7596. otherWeight = g.edge(e).weight;
  7597. cutValue += pointsToHead ? otherWeight : -otherWeight;
  7598. if (isTreeEdge(t, child, other)) {
  7599. var otherCutValue = t.edge(child, other).cutvalue;
  7600. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  7601. }
  7602. }
  7603. });
  7604. return cutValue;
  7605. }
  7606. function initLowLimValues(tree, root) {
  7607. if (arguments.length < 2) {
  7608. root = tree.nodes()[0];
  7609. }
  7610. dfsAssignLowLim(tree, {}, 1, root);
  7611. }
  7612. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  7613. var low = nextLim,
  7614. label = tree.node(v);
  7615. visited[v] = true;
  7616. _.forEach(tree.neighbors(v), function(w) {
  7617. if (!_.has(visited, w)) {
  7618. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  7619. }
  7620. });
  7621. label.low = low;
  7622. label.lim = nextLim++;
  7623. if (parent) {
  7624. label.parent = parent;
  7625. } else {
  7626. // TODO should be able to remove this when we incrementally update low lim
  7627. delete label.parent;
  7628. }
  7629. return nextLim;
  7630. }
  7631. function leaveEdge(tree) {
  7632. return _.find(tree.edges(), function(e) {
  7633. return tree.edge(e).cutvalue < 0;
  7634. });
  7635. }
  7636. function enterEdge(t, g, edge) {
  7637. var v = edge.v,
  7638. w = edge.w;
  7639. // For the rest of this function we assume that v is the tail and w is the
  7640. // head, so if we don't have this edge in the graph we should flip it to
  7641. // match the correct orientation.
  7642. if (!g.hasEdge(v, w)) {
  7643. v = edge.w;
  7644. w = edge.v;
  7645. }
  7646. var vLabel = t.node(v),
  7647. wLabel = t.node(w),
  7648. tailLabel = vLabel,
  7649. flip = false;
  7650. // If the root is in the tail of the edge then we need to flip the logic that
  7651. // checks for the head and tail nodes in the candidates function below.
  7652. if (vLabel.lim > wLabel.lim) {
  7653. tailLabel = wLabel;
  7654. flip = true;
  7655. }
  7656. var candidates = _.filter(g.edges(), function(edge) {
  7657. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  7658. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  7659. });
  7660. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  7661. }
  7662. function exchangeEdges(t, g, e, f) {
  7663. var v = e.v,
  7664. w = e.w;
  7665. t.removeEdge(v, w);
  7666. t.setEdge(f.v, f.w, {});
  7667. initLowLimValues(t);
  7668. initCutValues(t, g);
  7669. updateRanks(t, g);
  7670. }
  7671. function updateRanks(t, g) {
  7672. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; }),
  7673. vs = preorder(t, root);
  7674. vs = vs.slice(1);
  7675. _.forEach(vs, function(v) {
  7676. var parent = t.node(v).parent,
  7677. edge = g.edge(v, parent),
  7678. flipped = false;
  7679. if (!edge) {
  7680. edge = g.edge(parent, v);
  7681. flipped = true;
  7682. }
  7683. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  7684. });
  7685. }
  7686. /*
  7687. * Returns true if the edge is in the tree.
  7688. */
  7689. function isTreeEdge(tree, u, v) {
  7690. return tree.hasEdge(u, v);
  7691. }
  7692. /*
  7693. * Returns true if the specified node is descendant of the root node per the
  7694. * assigned low and lim attributes in the tree.
  7695. */
  7696. function isDescendant(tree, vLabel, rootLabel) {
  7697. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  7698. }
  7699. /***/ }),
  7700. /***/ "../../node_modules/dagre/lib/rank/util.js":
  7701. /*!***************************************************************!*\
  7702. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  7703. \***************************************************************/
  7704. /*! no static exports found */
  7705. /***/ (function(module, exports, __webpack_require__) {
  7706. "use strict";
  7707. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  7708. module.exports = {
  7709. longestPath: longestPath,
  7710. slack: slack
  7711. };
  7712. /*
  7713. * Initializes ranks for the input graph using the longest path algorithm. This
  7714. * algorithm scales well and is fast in practice, it yields rather poor
  7715. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  7716. * ranks wide and leaving edges longer than necessary. However, due to its
  7717. * speed, this algorithm is good for getting an initial ranking that can be fed
  7718. * into other algorithms.
  7719. *
  7720. * This algorithm does not normalize layers because it will be used by other
  7721. * algorithms in most cases. If using this algorithm directly, be sure to
  7722. * run normalize at the end.
  7723. *
  7724. * Pre-conditions:
  7725. *
  7726. * 1. Input graph is a DAG.
  7727. * 2. Input graph node labels can be assigned properties.
  7728. *
  7729. * Post-conditions:
  7730. *
  7731. * 1. Each node will be assign an (unnormalized) "rank" property.
  7732. */
  7733. function longestPath(g) {
  7734. var visited = {};
  7735. function dfs(v) {
  7736. var label = g.node(v);
  7737. if (_.has(visited, v)) {
  7738. return label.rank;
  7739. }
  7740. visited[v] = true;
  7741. var rank = _.min(_.map(g.outEdges(v), function(e) {
  7742. return dfs(e.w) - g.edge(e).minlen;
  7743. }));
  7744. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  7745. rank === undefined || // return value of _.map([]) for Lodash 4
  7746. rank === null) { // return value of _.map([null])
  7747. rank = 0;
  7748. }
  7749. return (label.rank = rank);
  7750. }
  7751. _.forEach(g.sources(), dfs);
  7752. }
  7753. /*
  7754. * Returns the amount of slack for the given edge. The slack is defined as the
  7755. * difference between the length of the edge and its minimum length.
  7756. */
  7757. function slack(g, e) {
  7758. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  7759. }
  7760. /***/ }),
  7761. /***/ "../../node_modules/dagre/lib/util.js":
  7762. /*!**********************************************************!*\
  7763. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/util.js ***!
  7764. \**********************************************************/
  7765. /*! no static exports found */
  7766. /***/ (function(module, exports, __webpack_require__) {
  7767. "use strict";
  7768. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7769. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  7770. module.exports = {
  7771. addDummyNode: addDummyNode,
  7772. simplify: simplify,
  7773. asNonCompoundGraph: asNonCompoundGraph,
  7774. successorWeights: successorWeights,
  7775. predecessorWeights: predecessorWeights,
  7776. intersectRect: intersectRect,
  7777. buildLayerMatrix: buildLayerMatrix,
  7778. normalizeRanks: normalizeRanks,
  7779. removeEmptyRanks: removeEmptyRanks,
  7780. addBorderNode: addBorderNode,
  7781. maxRank: maxRank,
  7782. partition: partition,
  7783. time: time,
  7784. notime: notime
  7785. };
  7786. /*
  7787. * Adds a dummy node to the graph and return v.
  7788. */
  7789. function addDummyNode(g, type, attrs, name) {
  7790. var v;
  7791. do {
  7792. v = _.uniqueId(name);
  7793. } while (g.hasNode(v));
  7794. attrs.dummy = type;
  7795. g.setNode(v, attrs);
  7796. return v;
  7797. }
  7798. /*
  7799. * Returns a new graph with only simple edges. Handles aggregation of data
  7800. * associated with multi-edges.
  7801. */
  7802. function simplify(g) {
  7803. var simplified = new Graph().setGraph(g.graph());
  7804. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  7805. _.forEach(g.edges(), function(e) {
  7806. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 },
  7807. label = g.edge(e);
  7808. simplified.setEdge(e.v, e.w, {
  7809. weight: simpleLabel.weight + label.weight,
  7810. minlen: Math.max(simpleLabel.minlen, label.minlen)
  7811. });
  7812. });
  7813. return simplified;
  7814. }
  7815. function asNonCompoundGraph(g) {
  7816. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  7817. _.forEach(g.nodes(), function(v) {
  7818. if (!g.children(v).length) {
  7819. simplified.setNode(v, g.node(v));
  7820. }
  7821. });
  7822. _.forEach(g.edges(), function(e) {
  7823. simplified.setEdge(e, g.edge(e));
  7824. });
  7825. return simplified;
  7826. }
  7827. function successorWeights(g) {
  7828. var weightMap = _.map(g.nodes(), function(v) {
  7829. var sucs = {};
  7830. _.forEach(g.outEdges(v), function(e) {
  7831. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  7832. });
  7833. return sucs;
  7834. });
  7835. return _.zipObject(g.nodes(), weightMap);
  7836. }
  7837. function predecessorWeights(g) {
  7838. var weightMap = _.map(g.nodes(), function(v) {
  7839. var preds = {};
  7840. _.forEach(g.inEdges(v), function(e) {
  7841. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  7842. });
  7843. return preds;
  7844. });
  7845. return _.zipObject(g.nodes(), weightMap);
  7846. }
  7847. /*
  7848. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  7849. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  7850. */
  7851. function intersectRect(rect, point) {
  7852. var x = rect.x;
  7853. var y = rect.y;
  7854. // Rectangle intersection algorithm from:
  7855. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  7856. var dx = point.x - x;
  7857. var dy = point.y - y;
  7858. var w = rect.width / 2;
  7859. var h = rect.height / 2;
  7860. if (!dx && !dy) {
  7861. throw new Error("Not possible to find intersection inside of the rectangle");
  7862. }
  7863. var sx, sy;
  7864. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  7865. // Intersection is top or bottom of rect.
  7866. if (dy < 0) {
  7867. h = -h;
  7868. }
  7869. sx = h * dx / dy;
  7870. sy = h;
  7871. } else {
  7872. // Intersection is left or right of rect.
  7873. if (dx < 0) {
  7874. w = -w;
  7875. }
  7876. sx = w;
  7877. sy = w * dy / dx;
  7878. }
  7879. return { x: x + sx, y: y + sy };
  7880. }
  7881. /*
  7882. * Given a DAG with each node assigned "rank" and "order" properties, this
  7883. * function will produce a matrix with the ids of each node.
  7884. */
  7885. function buildLayerMatrix(g) {
  7886. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  7887. _.forEach(g.nodes(), function(v) {
  7888. var node = g.node(v),
  7889. rank = node.rank;
  7890. if (!_.isUndefined(rank)) {
  7891. layering[rank][node.order] = v;
  7892. }
  7893. });
  7894. return layering;
  7895. }
  7896. /*
  7897. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  7898. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  7899. */
  7900. function normalizeRanks(g) {
  7901. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7902. _.forEach(g.nodes(), function(v) {
  7903. var node = g.node(v);
  7904. if (_.has(node, "rank")) {
  7905. node.rank -= min;
  7906. }
  7907. });
  7908. }
  7909. function removeEmptyRanks(g) {
  7910. // Ranks may not start at 0, so we need to offset them
  7911. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7912. var layers = [];
  7913. _.forEach(g.nodes(), function(v) {
  7914. var rank = g.node(v).rank - offset;
  7915. if (!layers[rank]) {
  7916. layers[rank] = [];
  7917. }
  7918. layers[rank].push(v);
  7919. });
  7920. var delta = 0,
  7921. nodeRankFactor = g.graph().nodeRankFactor;
  7922. _.forEach(layers, function(vs, i) {
  7923. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  7924. --delta;
  7925. } else if (delta) {
  7926. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  7927. }
  7928. });
  7929. }
  7930. function addBorderNode(g, prefix, rank, order) {
  7931. var node = {
  7932. width: 0,
  7933. height: 0
  7934. };
  7935. if (arguments.length >= 4) {
  7936. node.rank = rank;
  7937. node.order = order;
  7938. }
  7939. return addDummyNode(g, "border", node, prefix);
  7940. }
  7941. function maxRank(g) {
  7942. return _.max(_.map(g.nodes(), function(v) {
  7943. var rank = g.node(v).rank;
  7944. if (!_.isUndefined(rank)) {
  7945. return rank;
  7946. }
  7947. }));
  7948. }
  7949. /*
  7950. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  7951. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  7952. * into `rhs.
  7953. */
  7954. function partition(collection, fn) {
  7955. var result = { lhs: [], rhs: [] };
  7956. _.forEach(collection, function(value) {
  7957. if (fn(value)) {
  7958. result.lhs.push(value);
  7959. } else {
  7960. result.rhs.push(value);
  7961. }
  7962. });
  7963. return result;
  7964. }
  7965. /*
  7966. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  7967. * time it takes to execute the function.
  7968. */
  7969. function time(name, fn) {
  7970. var start = _.now();
  7971. try {
  7972. return fn();
  7973. } finally {
  7974. console.log(name + " time: " + (_.now() - start) + "ms");
  7975. }
  7976. }
  7977. function notime(name, fn) {
  7978. return fn();
  7979. }
  7980. /***/ }),
  7981. /***/ "../../node_modules/dagre/lib/version.js":
  7982. /*!*************************************************************!*\
  7983. !*** E:/Repos/Babylon.js/node_modules/dagre/lib/version.js ***!
  7984. \*************************************************************/
  7985. /*! no static exports found */
  7986. /***/ (function(module, exports) {
  7987. module.exports = "0.8.4";
  7988. /***/ }),
  7989. /***/ "../../node_modules/graphlib/index.js":
  7990. /*!**********************************************************!*\
  7991. !*** E:/Repos/Babylon.js/node_modules/graphlib/index.js ***!
  7992. \**********************************************************/
  7993. /*! no static exports found */
  7994. /***/ (function(module, exports, __webpack_require__) {
  7995. /**
  7996. * Copyright (c) 2014, Chris Pettitt
  7997. * All rights reserved.
  7998. *
  7999. * Redistribution and use in source and binary forms, with or without
  8000. * modification, are permitted provided that the following conditions are met:
  8001. *
  8002. * 1. Redistributions of source code must retain the above copyright notice, this
  8003. * list of conditions and the following disclaimer.
  8004. *
  8005. * 2. Redistributions in binary form must reproduce the above copyright notice,
  8006. * this list of conditions and the following disclaimer in the documentation
  8007. * and/or other materials provided with the distribution.
  8008. *
  8009. * 3. Neither the name of the copyright holder nor the names of its contributors
  8010. * may be used to endorse or promote products derived from this software without
  8011. * specific prior written permission.
  8012. *
  8013. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  8014. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  8015. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  8016. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  8017. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8018. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  8019. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  8020. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  8021. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  8022. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8023. */
  8024. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  8025. module.exports = {
  8026. Graph: lib.Graph,
  8027. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  8028. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  8029. version: lib.version
  8030. };
  8031. /***/ }),
  8032. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  8033. /*!***********************************************************************!*\
  8034. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  8035. \***********************************************************************/
  8036. /*! no static exports found */
  8037. /***/ (function(module, exports, __webpack_require__) {
  8038. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8039. module.exports = components;
  8040. function components(g) {
  8041. var visited = {},
  8042. cmpts = [],
  8043. cmpt;
  8044. function dfs(v) {
  8045. if (_.has(visited, v)) return;
  8046. visited[v] = true;
  8047. cmpt.push(v);
  8048. _.each(g.successors(v), dfs);
  8049. _.each(g.predecessors(v), dfs);
  8050. }
  8051. _.each(g.nodes(), function(v) {
  8052. cmpt = [];
  8053. dfs(v);
  8054. if (cmpt.length) {
  8055. cmpts.push(cmpt);
  8056. }
  8057. });
  8058. return cmpts;
  8059. }
  8060. /***/ }),
  8061. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  8062. /*!****************************************************************!*\
  8063. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  8064. \****************************************************************/
  8065. /*! no static exports found */
  8066. /***/ (function(module, exports, __webpack_require__) {
  8067. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8068. module.exports = dfs;
  8069. /*
  8070. * A helper that preforms a pre- or post-order traversal on the input graph
  8071. * and returns the nodes in the order they were visited. If the graph is
  8072. * undirected then this algorithm will navigate using neighbors. If the graph
  8073. * is directed then this algorithm will navigate using successors.
  8074. *
  8075. * Order must be one of "pre" or "post".
  8076. */
  8077. function dfs(g, vs, order) {
  8078. if (!_.isArray(vs)) {
  8079. vs = [vs];
  8080. }
  8081. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  8082. var acc = [],
  8083. visited = {};
  8084. _.each(vs, function(v) {
  8085. if (!g.hasNode(v)) {
  8086. throw new Error("Graph does not have node: " + v);
  8087. }
  8088. doDfs(g, v, order === "post", visited, navigation, acc);
  8089. });
  8090. return acc;
  8091. }
  8092. function doDfs(g, v, postorder, visited, navigation, acc) {
  8093. if (!_.has(visited, v)) {
  8094. visited[v] = true;
  8095. if (!postorder) { acc.push(v); }
  8096. _.each(navigation(v), function(w) {
  8097. doDfs(g, w, postorder, visited, navigation, acc);
  8098. });
  8099. if (postorder) { acc.push(v); }
  8100. }
  8101. }
  8102. /***/ }),
  8103. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  8104. /*!*************************************************************************!*\
  8105. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  8106. \*************************************************************************/
  8107. /*! no static exports found */
  8108. /***/ (function(module, exports, __webpack_require__) {
  8109. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8110. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8111. module.exports = dijkstraAll;
  8112. function dijkstraAll(g, weightFunc, edgeFunc) {
  8113. return _.transform(g.nodes(), function(acc, v) {
  8114. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  8115. }, {});
  8116. }
  8117. /***/ }),
  8118. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  8119. /*!*********************************************************************!*\
  8120. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  8121. \*********************************************************************/
  8122. /*! no static exports found */
  8123. /***/ (function(module, exports, __webpack_require__) {
  8124. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8125. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8126. module.exports = dijkstra;
  8127. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8128. function dijkstra(g, source, weightFn, edgeFn) {
  8129. return runDijkstra(g, String(source),
  8130. weightFn || DEFAULT_WEIGHT_FUNC,
  8131. edgeFn || function(v) { return g.outEdges(v); });
  8132. }
  8133. function runDijkstra(g, source, weightFn, edgeFn) {
  8134. var results = {},
  8135. pq = new PriorityQueue(),
  8136. v, vEntry;
  8137. var updateNeighbors = function(edge) {
  8138. var w = edge.v !== v ? edge.v : edge.w,
  8139. wEntry = results[w],
  8140. weight = weightFn(edge),
  8141. distance = vEntry.distance + weight;
  8142. if (weight < 0) {
  8143. throw new Error("dijkstra does not allow negative edge weights. " +
  8144. "Bad edge: " + edge + " Weight: " + weight);
  8145. }
  8146. if (distance < wEntry.distance) {
  8147. wEntry.distance = distance;
  8148. wEntry.predecessor = v;
  8149. pq.decrease(w, distance);
  8150. }
  8151. };
  8152. g.nodes().forEach(function(v) {
  8153. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  8154. results[v] = { distance: distance };
  8155. pq.add(v, distance);
  8156. });
  8157. while (pq.size() > 0) {
  8158. v = pq.removeMin();
  8159. vEntry = results[v];
  8160. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  8161. break;
  8162. }
  8163. edgeFn(v).forEach(updateNeighbors);
  8164. }
  8165. return results;
  8166. }
  8167. /***/ }),
  8168. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  8169. /*!************************************************************************!*\
  8170. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  8171. \************************************************************************/
  8172. /*! no static exports found */
  8173. /***/ (function(module, exports, __webpack_require__) {
  8174. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8175. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  8176. module.exports = findCycles;
  8177. function findCycles(g) {
  8178. return _.filter(tarjan(g), function(cmpt) {
  8179. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  8180. });
  8181. }
  8182. /***/ }),
  8183. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  8184. /*!***************************************************************************!*\
  8185. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  8186. \***************************************************************************/
  8187. /*! no static exports found */
  8188. /***/ (function(module, exports, __webpack_require__) {
  8189. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8190. module.exports = floydWarshall;
  8191. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  8192. function floydWarshall(g, weightFn, edgeFn) {
  8193. return runFloydWarshall(g,
  8194. weightFn || DEFAULT_WEIGHT_FUNC,
  8195. edgeFn || function(v) { return g.outEdges(v); });
  8196. }
  8197. function runFloydWarshall(g, weightFn, edgeFn) {
  8198. var results = {},
  8199. nodes = g.nodes();
  8200. nodes.forEach(function(v) {
  8201. results[v] = {};
  8202. results[v][v] = { distance: 0 };
  8203. nodes.forEach(function(w) {
  8204. if (v !== w) {
  8205. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  8206. }
  8207. });
  8208. edgeFn(v).forEach(function(edge) {
  8209. var w = edge.v === v ? edge.w : edge.v,
  8210. d = weightFn(edge);
  8211. results[v][w] = { distance: d, predecessor: v };
  8212. });
  8213. });
  8214. nodes.forEach(function(k) {
  8215. var rowK = results[k];
  8216. nodes.forEach(function(i) {
  8217. var rowI = results[i];
  8218. nodes.forEach(function(j) {
  8219. var ik = rowI[k];
  8220. var kj = rowK[j];
  8221. var ij = rowI[j];
  8222. var altDistance = ik.distance + kj.distance;
  8223. if (altDistance < ij.distance) {
  8224. ij.distance = altDistance;
  8225. ij.predecessor = kj.predecessor;
  8226. }
  8227. });
  8228. });
  8229. });
  8230. return results;
  8231. }
  8232. /***/ }),
  8233. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  8234. /*!******************************************************************!*\
  8235. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  8236. \******************************************************************/
  8237. /*! no static exports found */
  8238. /***/ (function(module, exports, __webpack_require__) {
  8239. module.exports = {
  8240. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  8241. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  8242. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  8243. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  8244. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  8245. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  8246. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  8247. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  8248. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  8249. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  8250. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  8251. };
  8252. /***/ }),
  8253. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  8254. /*!***********************************************************************!*\
  8255. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  8256. \***********************************************************************/
  8257. /*! no static exports found */
  8258. /***/ (function(module, exports, __webpack_require__) {
  8259. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  8260. module.exports = isAcyclic;
  8261. function isAcyclic(g) {
  8262. try {
  8263. topsort(g);
  8264. } catch (e) {
  8265. if (e instanceof topsort.CycleException) {
  8266. return false;
  8267. }
  8268. throw e;
  8269. }
  8270. return true;
  8271. }
  8272. /***/ }),
  8273. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  8274. /*!**********************************************************************!*\
  8275. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  8276. \**********************************************************************/
  8277. /*! no static exports found */
  8278. /***/ (function(module, exports, __webpack_require__) {
  8279. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  8280. module.exports = postorder;
  8281. function postorder(g, vs) {
  8282. return dfs(g, vs, "post");
  8283. }
  8284. /***/ }),
  8285. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  8286. /*!*********************************************************************!*\
  8287. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/preorder.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 = preorder;
  8293. function preorder(g, vs) {
  8294. return dfs(g, vs, "pre");
  8295. }
  8296. /***/ }),
  8297. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  8298. /*!*****************************************************************!*\
  8299. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  8300. \*****************************************************************/
  8301. /*! no static exports found */
  8302. /***/ (function(module, exports, __webpack_require__) {
  8303. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8304. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  8305. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  8306. module.exports = prim;
  8307. function prim(g, weightFunc) {
  8308. var result = new Graph(),
  8309. parents = {},
  8310. pq = new PriorityQueue(),
  8311. v;
  8312. function updateNeighbors(edge) {
  8313. var w = edge.v === v ? edge.w : edge.v,
  8314. pri = pq.priority(w);
  8315. if (pri !== undefined) {
  8316. var edgeWeight = weightFunc(edge);
  8317. if (edgeWeight < pri) {
  8318. parents[w] = v;
  8319. pq.decrease(w, edgeWeight);
  8320. }
  8321. }
  8322. }
  8323. if (g.nodeCount() === 0) {
  8324. return result;
  8325. }
  8326. _.each(g.nodes(), function(v) {
  8327. pq.add(v, Number.POSITIVE_INFINITY);
  8328. result.setNode(v);
  8329. });
  8330. // Start from an arbitrary node
  8331. pq.decrease(g.nodes()[0], 0);
  8332. var init = false;
  8333. while (pq.size() > 0) {
  8334. v = pq.removeMin();
  8335. if (_.has(parents, v)) {
  8336. result.setEdge(v, parents[v]);
  8337. } else if (init) {
  8338. throw new Error("Input graph is not connected: " + g);
  8339. } else {
  8340. init = true;
  8341. }
  8342. g.nodeEdges(v).forEach(updateNeighbors);
  8343. }
  8344. return result;
  8345. }
  8346. /***/ }),
  8347. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  8348. /*!*******************************************************************!*\
  8349. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  8350. \*******************************************************************/
  8351. /*! no static exports found */
  8352. /***/ (function(module, exports, __webpack_require__) {
  8353. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8354. module.exports = tarjan;
  8355. function tarjan(g) {
  8356. var index = 0,
  8357. stack = [],
  8358. visited = {}, // node id -> { onStack, lowlink, index }
  8359. results = [];
  8360. function dfs(v) {
  8361. var entry = visited[v] = {
  8362. onStack: true,
  8363. lowlink: index,
  8364. index: index++
  8365. };
  8366. stack.push(v);
  8367. g.successors(v).forEach(function(w) {
  8368. if (!_.has(visited, w)) {
  8369. dfs(w);
  8370. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  8371. } else if (visited[w].onStack) {
  8372. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  8373. }
  8374. });
  8375. if (entry.lowlink === entry.index) {
  8376. var cmpt = [],
  8377. w;
  8378. do {
  8379. w = stack.pop();
  8380. visited[w].onStack = false;
  8381. cmpt.push(w);
  8382. } while (v !== w);
  8383. results.push(cmpt);
  8384. }
  8385. }
  8386. g.nodes().forEach(function(v) {
  8387. if (!_.has(visited, v)) {
  8388. dfs(v);
  8389. }
  8390. });
  8391. return results;
  8392. }
  8393. /***/ }),
  8394. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8395. /*!********************************************************************!*\
  8396. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8397. \********************************************************************/
  8398. /*! no static exports found */
  8399. /***/ (function(module, exports, __webpack_require__) {
  8400. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8401. module.exports = topsort;
  8402. topsort.CycleException = CycleException;
  8403. function topsort(g) {
  8404. var visited = {},
  8405. stack = {},
  8406. results = [];
  8407. function visit(node) {
  8408. if (_.has(stack, node)) {
  8409. throw new CycleException();
  8410. }
  8411. if (!_.has(visited, node)) {
  8412. stack[node] = true;
  8413. visited[node] = true;
  8414. _.each(g.predecessors(node), visit);
  8415. delete stack[node];
  8416. results.push(node);
  8417. }
  8418. }
  8419. _.each(g.sinks(), visit);
  8420. if (_.size(visited) !== g.nodeCount()) {
  8421. throw new CycleException();
  8422. }
  8423. return results;
  8424. }
  8425. function CycleException() {}
  8426. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8427. /***/ }),
  8428. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8429. /*!****************************************************************************!*\
  8430. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8431. \****************************************************************************/
  8432. /*! no static exports found */
  8433. /***/ (function(module, exports, __webpack_require__) {
  8434. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8435. module.exports = PriorityQueue;
  8436. /**
  8437. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8438. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8439. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8440. * the queue. Adding and removing elements takes O(log n) time. A key can
  8441. * have its priority decreased in O(log n) time.
  8442. */
  8443. function PriorityQueue() {
  8444. this._arr = [];
  8445. this._keyIndices = {};
  8446. }
  8447. /**
  8448. * Returns the number of elements in the queue. Takes `O(1)` time.
  8449. */
  8450. PriorityQueue.prototype.size = function() {
  8451. return this._arr.length;
  8452. };
  8453. /**
  8454. * Returns the keys that are in the queue. Takes `O(n)` time.
  8455. */
  8456. PriorityQueue.prototype.keys = function() {
  8457. return this._arr.map(function(x) { return x.key; });
  8458. };
  8459. /**
  8460. * Returns `true` if **key** is in the queue and `false` if not.
  8461. */
  8462. PriorityQueue.prototype.has = function(key) {
  8463. return _.has(this._keyIndices, key);
  8464. };
  8465. /**
  8466. * Returns the priority for **key**. If **key** is not present in the queue
  8467. * then this function returns `undefined`. Takes `O(1)` time.
  8468. *
  8469. * @param {Object} key
  8470. */
  8471. PriorityQueue.prototype.priority = function(key) {
  8472. var index = this._keyIndices[key];
  8473. if (index !== undefined) {
  8474. return this._arr[index].priority;
  8475. }
  8476. };
  8477. /**
  8478. * Returns the key for the minimum element in this queue. If the queue is
  8479. * empty this function throws an Error. Takes `O(1)` time.
  8480. */
  8481. PriorityQueue.prototype.min = function() {
  8482. if (this.size() === 0) {
  8483. throw new Error("Queue underflow");
  8484. }
  8485. return this._arr[0].key;
  8486. };
  8487. /**
  8488. * Inserts a new key into the priority queue. If the key already exists in
  8489. * the queue this function returns `false`; otherwise it will return `true`.
  8490. * Takes `O(n)` time.
  8491. *
  8492. * @param {Object} key the key to add
  8493. * @param {Number} priority the initial priority for the key
  8494. */
  8495. PriorityQueue.prototype.add = function(key, priority) {
  8496. var keyIndices = this._keyIndices;
  8497. key = String(key);
  8498. if (!_.has(keyIndices, key)) {
  8499. var arr = this._arr;
  8500. var index = arr.length;
  8501. keyIndices[key] = index;
  8502. arr.push({key: key, priority: priority});
  8503. this._decrease(index);
  8504. return true;
  8505. }
  8506. return false;
  8507. };
  8508. /**
  8509. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8510. */
  8511. PriorityQueue.prototype.removeMin = function() {
  8512. this._swap(0, this._arr.length - 1);
  8513. var min = this._arr.pop();
  8514. delete this._keyIndices[min.key];
  8515. this._heapify(0);
  8516. return min.key;
  8517. };
  8518. /**
  8519. * Decreases the priority for **key** to **priority**. If the new priority is
  8520. * greater than the previous priority, this function will throw an Error.
  8521. *
  8522. * @param {Object} key the key for which to raise priority
  8523. * @param {Number} priority the new priority for the key
  8524. */
  8525. PriorityQueue.prototype.decrease = function(key, priority) {
  8526. var index = this._keyIndices[key];
  8527. if (priority > this._arr[index].priority) {
  8528. throw new Error("New priority is greater than current priority. " +
  8529. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8530. }
  8531. this._arr[index].priority = priority;
  8532. this._decrease(index);
  8533. };
  8534. PriorityQueue.prototype._heapify = function(i) {
  8535. var arr = this._arr;
  8536. var l = 2 * i,
  8537. r = l + 1,
  8538. largest = i;
  8539. if (l < arr.length) {
  8540. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8541. if (r < arr.length) {
  8542. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8543. }
  8544. if (largest !== i) {
  8545. this._swap(i, largest);
  8546. this._heapify(largest);
  8547. }
  8548. }
  8549. };
  8550. PriorityQueue.prototype._decrease = function(index) {
  8551. var arr = this._arr;
  8552. var priority = arr[index].priority;
  8553. var parent;
  8554. while (index !== 0) {
  8555. parent = index >> 1;
  8556. if (arr[parent].priority < priority) {
  8557. break;
  8558. }
  8559. this._swap(index, parent);
  8560. index = parent;
  8561. }
  8562. };
  8563. PriorityQueue.prototype._swap = function(i, j) {
  8564. var arr = this._arr;
  8565. var keyIndices = this._keyIndices;
  8566. var origArrI = arr[i];
  8567. var origArrJ = arr[j];
  8568. arr[i] = origArrJ;
  8569. arr[j] = origArrI;
  8570. keyIndices[origArrJ.key] = i;
  8571. keyIndices[origArrI.key] = j;
  8572. };
  8573. /***/ }),
  8574. /***/ "../../node_modules/graphlib/lib/graph.js":
  8575. /*!**************************************************************!*\
  8576. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8577. \**************************************************************/
  8578. /*! no static exports found */
  8579. /***/ (function(module, exports, __webpack_require__) {
  8580. "use strict";
  8581. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8582. module.exports = Graph;
  8583. var DEFAULT_EDGE_NAME = "\x00",
  8584. GRAPH_NODE = "\x00",
  8585. EDGE_KEY_DELIM = "\x01";
  8586. // Implementation notes:
  8587. //
  8588. // * Node id query functions should return string ids for the nodes
  8589. // * Edge id query functions should return an "edgeObj", edge object, that is
  8590. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8591. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8592. // reference edges. This is because we need a performant way to look these
  8593. // edges up and, object properties, which have string keys, are the closest
  8594. // we're going to get to a performant hashtable in JavaScript.
  8595. function Graph(opts) {
  8596. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8597. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8598. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8599. // Label for the graph itself
  8600. this._label = undefined;
  8601. // Defaults to be set when creating a new node
  8602. this._defaultNodeLabelFn = _.constant(undefined);
  8603. // Defaults to be set when creating a new edge
  8604. this._defaultEdgeLabelFn = _.constant(undefined);
  8605. // v -> label
  8606. this._nodes = {};
  8607. if (this._isCompound) {
  8608. // v -> parent
  8609. this._parent = {};
  8610. // v -> children
  8611. this._children = {};
  8612. this._children[GRAPH_NODE] = {};
  8613. }
  8614. // v -> edgeObj
  8615. this._in = {};
  8616. // u -> v -> Number
  8617. this._preds = {};
  8618. // v -> edgeObj
  8619. this._out = {};
  8620. // v -> w -> Number
  8621. this._sucs = {};
  8622. // e -> edgeObj
  8623. this._edgeObjs = {};
  8624. // e -> label
  8625. this._edgeLabels = {};
  8626. }
  8627. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8628. Graph.prototype._nodeCount = 0;
  8629. /* Number of edges in the graph. Should only be changed by the implementation. */
  8630. Graph.prototype._edgeCount = 0;
  8631. /* === Graph functions ========= */
  8632. Graph.prototype.isDirected = function() {
  8633. return this._isDirected;
  8634. };
  8635. Graph.prototype.isMultigraph = function() {
  8636. return this._isMultigraph;
  8637. };
  8638. Graph.prototype.isCompound = function() {
  8639. return this._isCompound;
  8640. };
  8641. Graph.prototype.setGraph = function(label) {
  8642. this._label = label;
  8643. return this;
  8644. };
  8645. Graph.prototype.graph = function() {
  8646. return this._label;
  8647. };
  8648. /* === Node functions ========== */
  8649. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8650. if (!_.isFunction(newDefault)) {
  8651. newDefault = _.constant(newDefault);
  8652. }
  8653. this._defaultNodeLabelFn = newDefault;
  8654. return this;
  8655. };
  8656. Graph.prototype.nodeCount = function() {
  8657. return this._nodeCount;
  8658. };
  8659. Graph.prototype.nodes = function() {
  8660. return _.keys(this._nodes);
  8661. };
  8662. Graph.prototype.sources = function() {
  8663. var self = this;
  8664. return _.filter(this.nodes(), function(v) {
  8665. return _.isEmpty(self._in[v]);
  8666. });
  8667. };
  8668. Graph.prototype.sinks = function() {
  8669. var self = this;
  8670. return _.filter(this.nodes(), function(v) {
  8671. return _.isEmpty(self._out[v]);
  8672. });
  8673. };
  8674. Graph.prototype.setNodes = function(vs, value) {
  8675. var args = arguments;
  8676. var self = this;
  8677. _.each(vs, function(v) {
  8678. if (args.length > 1) {
  8679. self.setNode(v, value);
  8680. } else {
  8681. self.setNode(v);
  8682. }
  8683. });
  8684. return this;
  8685. };
  8686. Graph.prototype.setNode = function(v, value) {
  8687. if (_.has(this._nodes, v)) {
  8688. if (arguments.length > 1) {
  8689. this._nodes[v] = value;
  8690. }
  8691. return this;
  8692. }
  8693. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8694. if (this._isCompound) {
  8695. this._parent[v] = GRAPH_NODE;
  8696. this._children[v] = {};
  8697. this._children[GRAPH_NODE][v] = true;
  8698. }
  8699. this._in[v] = {};
  8700. this._preds[v] = {};
  8701. this._out[v] = {};
  8702. this._sucs[v] = {};
  8703. ++this._nodeCount;
  8704. return this;
  8705. };
  8706. Graph.prototype.node = function(v) {
  8707. return this._nodes[v];
  8708. };
  8709. Graph.prototype.hasNode = function(v) {
  8710. return _.has(this._nodes, v);
  8711. };
  8712. Graph.prototype.removeNode = function(v) {
  8713. var self = this;
  8714. if (_.has(this._nodes, v)) {
  8715. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8716. delete this._nodes[v];
  8717. if (this._isCompound) {
  8718. this._removeFromParentsChildList(v);
  8719. delete this._parent[v];
  8720. _.each(this.children(v), function(child) {
  8721. self.setParent(child);
  8722. });
  8723. delete this._children[v];
  8724. }
  8725. _.each(_.keys(this._in[v]), removeEdge);
  8726. delete this._in[v];
  8727. delete this._preds[v];
  8728. _.each(_.keys(this._out[v]), removeEdge);
  8729. delete this._out[v];
  8730. delete this._sucs[v];
  8731. --this._nodeCount;
  8732. }
  8733. return this;
  8734. };
  8735. Graph.prototype.setParent = function(v, parent) {
  8736. if (!this._isCompound) {
  8737. throw new Error("Cannot set parent in a non-compound graph");
  8738. }
  8739. if (_.isUndefined(parent)) {
  8740. parent = GRAPH_NODE;
  8741. } else {
  8742. // Coerce parent to string
  8743. parent += "";
  8744. for (var ancestor = parent;
  8745. !_.isUndefined(ancestor);
  8746. ancestor = this.parent(ancestor)) {
  8747. if (ancestor === v) {
  8748. throw new Error("Setting " + parent+ " as parent of " + v +
  8749. " would create a cycle");
  8750. }
  8751. }
  8752. this.setNode(parent);
  8753. }
  8754. this.setNode(v);
  8755. this._removeFromParentsChildList(v);
  8756. this._parent[v] = parent;
  8757. this._children[parent][v] = true;
  8758. return this;
  8759. };
  8760. Graph.prototype._removeFromParentsChildList = function(v) {
  8761. delete this._children[this._parent[v]][v];
  8762. };
  8763. Graph.prototype.parent = function(v) {
  8764. if (this._isCompound) {
  8765. var parent = this._parent[v];
  8766. if (parent !== GRAPH_NODE) {
  8767. return parent;
  8768. }
  8769. }
  8770. };
  8771. Graph.prototype.children = function(v) {
  8772. if (_.isUndefined(v)) {
  8773. v = GRAPH_NODE;
  8774. }
  8775. if (this._isCompound) {
  8776. var children = this._children[v];
  8777. if (children) {
  8778. return _.keys(children);
  8779. }
  8780. } else if (v === GRAPH_NODE) {
  8781. return this.nodes();
  8782. } else if (this.hasNode(v)) {
  8783. return [];
  8784. }
  8785. };
  8786. Graph.prototype.predecessors = function(v) {
  8787. var predsV = this._preds[v];
  8788. if (predsV) {
  8789. return _.keys(predsV);
  8790. }
  8791. };
  8792. Graph.prototype.successors = function(v) {
  8793. var sucsV = this._sucs[v];
  8794. if (sucsV) {
  8795. return _.keys(sucsV);
  8796. }
  8797. };
  8798. Graph.prototype.neighbors = function(v) {
  8799. var preds = this.predecessors(v);
  8800. if (preds) {
  8801. return _.union(preds, this.successors(v));
  8802. }
  8803. };
  8804. Graph.prototype.isLeaf = function (v) {
  8805. var neighbors;
  8806. if (this.isDirected()) {
  8807. neighbors = this.successors(v);
  8808. } else {
  8809. neighbors = this.neighbors(v);
  8810. }
  8811. return neighbors.length === 0;
  8812. };
  8813. Graph.prototype.filterNodes = function(filter) {
  8814. var copy = new this.constructor({
  8815. directed: this._isDirected,
  8816. multigraph: this._isMultigraph,
  8817. compound: this._isCompound
  8818. });
  8819. copy.setGraph(this.graph());
  8820. var self = this;
  8821. _.each(this._nodes, function(value, v) {
  8822. if (filter(v)) {
  8823. copy.setNode(v, value);
  8824. }
  8825. });
  8826. _.each(this._edgeObjs, function(e) {
  8827. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8828. copy.setEdge(e, self.edge(e));
  8829. }
  8830. });
  8831. var parents = {};
  8832. function findParent(v) {
  8833. var parent = self.parent(v);
  8834. if (parent === undefined || copy.hasNode(parent)) {
  8835. parents[v] = parent;
  8836. return parent;
  8837. } else if (parent in parents) {
  8838. return parents[parent];
  8839. } else {
  8840. return findParent(parent);
  8841. }
  8842. }
  8843. if (this._isCompound) {
  8844. _.each(copy.nodes(), function(v) {
  8845. copy.setParent(v, findParent(v));
  8846. });
  8847. }
  8848. return copy;
  8849. };
  8850. /* === Edge functions ========== */
  8851. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8852. if (!_.isFunction(newDefault)) {
  8853. newDefault = _.constant(newDefault);
  8854. }
  8855. this._defaultEdgeLabelFn = newDefault;
  8856. return this;
  8857. };
  8858. Graph.prototype.edgeCount = function() {
  8859. return this._edgeCount;
  8860. };
  8861. Graph.prototype.edges = function() {
  8862. return _.values(this._edgeObjs);
  8863. };
  8864. Graph.prototype.setPath = function(vs, value) {
  8865. var self = this,
  8866. args = arguments;
  8867. _.reduce(vs, function(v, w) {
  8868. if (args.length > 1) {
  8869. self.setEdge(v, w, value);
  8870. } else {
  8871. self.setEdge(v, w);
  8872. }
  8873. return w;
  8874. });
  8875. return this;
  8876. };
  8877. /*
  8878. * setEdge(v, w, [value, [name]])
  8879. * setEdge({ v, w, [name] }, [value])
  8880. */
  8881. Graph.prototype.setEdge = function() {
  8882. var v, w, name, value,
  8883. valueSpecified = false,
  8884. arg0 = arguments[0];
  8885. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8886. v = arg0.v;
  8887. w = arg0.w;
  8888. name = arg0.name;
  8889. if (arguments.length === 2) {
  8890. value = arguments[1];
  8891. valueSpecified = true;
  8892. }
  8893. } else {
  8894. v = arg0;
  8895. w = arguments[1];
  8896. name = arguments[3];
  8897. if (arguments.length > 2) {
  8898. value = arguments[2];
  8899. valueSpecified = true;
  8900. }
  8901. }
  8902. v = "" + v;
  8903. w = "" + w;
  8904. if (!_.isUndefined(name)) {
  8905. name = "" + name;
  8906. }
  8907. var e = edgeArgsToId(this._isDirected, v, w, name);
  8908. if (_.has(this._edgeLabels, e)) {
  8909. if (valueSpecified) {
  8910. this._edgeLabels[e] = value;
  8911. }
  8912. return this;
  8913. }
  8914. if (!_.isUndefined(name) && !this._isMultigraph) {
  8915. throw new Error("Cannot set a named edge when isMultigraph = false");
  8916. }
  8917. // It didn't exist, so we need to create it.
  8918. // First ensure the nodes exist.
  8919. this.setNode(v);
  8920. this.setNode(w);
  8921. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8922. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8923. // Ensure we add undirected edges in a consistent way.
  8924. v = edgeObj.v;
  8925. w = edgeObj.w;
  8926. Object.freeze(edgeObj);
  8927. this._edgeObjs[e] = edgeObj;
  8928. incrementOrInitEntry(this._preds[w], v);
  8929. incrementOrInitEntry(this._sucs[v], w);
  8930. this._in[w][e] = edgeObj;
  8931. this._out[v][e] = edgeObj;
  8932. this._edgeCount++;
  8933. return this;
  8934. };
  8935. Graph.prototype.edge = function(v, w, name) {
  8936. var e = (arguments.length === 1
  8937. ? edgeObjToId(this._isDirected, arguments[0])
  8938. : edgeArgsToId(this._isDirected, v, w, name));
  8939. return this._edgeLabels[e];
  8940. };
  8941. Graph.prototype.hasEdge = function(v, w, name) {
  8942. var e = (arguments.length === 1
  8943. ? edgeObjToId(this._isDirected, arguments[0])
  8944. : edgeArgsToId(this._isDirected, v, w, name));
  8945. return _.has(this._edgeLabels, e);
  8946. };
  8947. Graph.prototype.removeEdge = function(v, w, name) {
  8948. var e = (arguments.length === 1
  8949. ? edgeObjToId(this._isDirected, arguments[0])
  8950. : edgeArgsToId(this._isDirected, v, w, name)),
  8951. edge = this._edgeObjs[e];
  8952. if (edge) {
  8953. v = edge.v;
  8954. w = edge.w;
  8955. delete this._edgeLabels[e];
  8956. delete this._edgeObjs[e];
  8957. decrementOrRemoveEntry(this._preds[w], v);
  8958. decrementOrRemoveEntry(this._sucs[v], w);
  8959. delete this._in[w][e];
  8960. delete this._out[v][e];
  8961. this._edgeCount--;
  8962. }
  8963. return this;
  8964. };
  8965. Graph.prototype.inEdges = function(v, u) {
  8966. var inV = this._in[v];
  8967. if (inV) {
  8968. var edges = _.values(inV);
  8969. if (!u) {
  8970. return edges;
  8971. }
  8972. return _.filter(edges, function(edge) { return edge.v === u; });
  8973. }
  8974. };
  8975. Graph.prototype.outEdges = function(v, w) {
  8976. var outV = this._out[v];
  8977. if (outV) {
  8978. var edges = _.values(outV);
  8979. if (!w) {
  8980. return edges;
  8981. }
  8982. return _.filter(edges, function(edge) { return edge.w === w; });
  8983. }
  8984. };
  8985. Graph.prototype.nodeEdges = function(v, w) {
  8986. var inEdges = this.inEdges(v, w);
  8987. if (inEdges) {
  8988. return inEdges.concat(this.outEdges(v, w));
  8989. }
  8990. };
  8991. function incrementOrInitEntry(map, k) {
  8992. if (map[k]) {
  8993. map[k]++;
  8994. } else {
  8995. map[k] = 1;
  8996. }
  8997. }
  8998. function decrementOrRemoveEntry(map, k) {
  8999. if (!--map[k]) { delete map[k]; }
  9000. }
  9001. function edgeArgsToId(isDirected, v_, w_, name) {
  9002. var v = "" + v_;
  9003. var w = "" + w_;
  9004. if (!isDirected && v > w) {
  9005. var tmp = v;
  9006. v = w;
  9007. w = tmp;
  9008. }
  9009. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  9010. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  9011. }
  9012. function edgeArgsToObj(isDirected, v_, w_, name) {
  9013. var v = "" + v_;
  9014. var w = "" + w_;
  9015. if (!isDirected && v > w) {
  9016. var tmp = v;
  9017. v = w;
  9018. w = tmp;
  9019. }
  9020. var edgeObj = { v: v, w: w };
  9021. if (name) {
  9022. edgeObj.name = name;
  9023. }
  9024. return edgeObj;
  9025. }
  9026. function edgeObjToId(isDirected, edgeObj) {
  9027. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  9028. }
  9029. /***/ }),
  9030. /***/ "../../node_modules/graphlib/lib/index.js":
  9031. /*!**************************************************************!*\
  9032. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/index.js ***!
  9033. \**************************************************************/
  9034. /*! no static exports found */
  9035. /***/ (function(module, exports, __webpack_require__) {
  9036. // Includes only the "core" of graphlib
  9037. module.exports = {
  9038. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  9039. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  9040. };
  9041. /***/ }),
  9042. /***/ "../../node_modules/graphlib/lib/json.js":
  9043. /*!*************************************************************!*\
  9044. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/json.js ***!
  9045. \*************************************************************/
  9046. /*! no static exports found */
  9047. /***/ (function(module, exports, __webpack_require__) {
  9048. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  9049. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  9050. module.exports = {
  9051. write: write,
  9052. read: read
  9053. };
  9054. function write(g) {
  9055. var json = {
  9056. options: {
  9057. directed: g.isDirected(),
  9058. multigraph: g.isMultigraph(),
  9059. compound: g.isCompound()
  9060. },
  9061. nodes: writeNodes(g),
  9062. edges: writeEdges(g)
  9063. };
  9064. if (!_.isUndefined(g.graph())) {
  9065. json.value = _.clone(g.graph());
  9066. }
  9067. return json;
  9068. }
  9069. function writeNodes(g) {
  9070. return _.map(g.nodes(), function(v) {
  9071. var nodeValue = g.node(v),
  9072. parent = g.parent(v),
  9073. node = { v: v };
  9074. if (!_.isUndefined(nodeValue)) {
  9075. node.value = nodeValue;
  9076. }
  9077. if (!_.isUndefined(parent)) {
  9078. node.parent = parent;
  9079. }
  9080. return node;
  9081. });
  9082. }
  9083. function writeEdges(g) {
  9084. return _.map(g.edges(), function(e) {
  9085. var edgeValue = g.edge(e),
  9086. edge = { v: e.v, w: e.w };
  9087. if (!_.isUndefined(e.name)) {
  9088. edge.name = e.name;
  9089. }
  9090. if (!_.isUndefined(edgeValue)) {
  9091. edge.value = edgeValue;
  9092. }
  9093. return edge;
  9094. });
  9095. }
  9096. function read(json) {
  9097. var g = new Graph(json.options).setGraph(json.value);
  9098. _.each(json.nodes, function(entry) {
  9099. g.setNode(entry.v, entry.value);
  9100. if (entry.parent) {
  9101. g.setParent(entry.v, entry.parent);
  9102. }
  9103. });
  9104. _.each(json.edges, function(entry) {
  9105. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  9106. });
  9107. return g;
  9108. }
  9109. /***/ }),
  9110. /***/ "../../node_modules/graphlib/lib/lodash.js":
  9111. /*!***************************************************************!*\
  9112. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  9113. \***************************************************************/
  9114. /*! no static exports found */
  9115. /***/ (function(module, exports, __webpack_require__) {
  9116. /* global window */
  9117. var lodash;
  9118. if (true) {
  9119. try {
  9120. lodash = {
  9121. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  9122. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  9123. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  9124. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  9125. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  9126. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  9127. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  9128. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  9129. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  9130. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  9131. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  9132. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  9133. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  9134. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  9135. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  9136. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  9137. };
  9138. } catch (e) {}
  9139. }
  9140. if (!lodash) {
  9141. lodash = window._;
  9142. }
  9143. module.exports = lodash;
  9144. /***/ }),
  9145. /***/ "../../node_modules/graphlib/lib/version.js":
  9146. /*!****************************************************************!*\
  9147. !*** E:/Repos/Babylon.js/node_modules/graphlib/lib/version.js ***!
  9148. \****************************************************************/
  9149. /*! no static exports found */
  9150. /***/ (function(module, exports) {
  9151. module.exports = '2.1.7';
  9152. /***/ }),
  9153. /***/ "../../node_modules/lodash/_DataView.js":
  9154. /*!************************************************************!*\
  9155. !*** E:/Repos/Babylon.js/node_modules/lodash/_DataView.js ***!
  9156. \************************************************************/
  9157. /*! no static exports found */
  9158. /***/ (function(module, exports, __webpack_require__) {
  9159. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9160. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9161. /* Built-in method references that are verified to be native. */
  9162. var DataView = getNative(root, 'DataView');
  9163. module.exports = DataView;
  9164. /***/ }),
  9165. /***/ "../../node_modules/lodash/_Hash.js":
  9166. /*!********************************************************!*\
  9167. !*** E:/Repos/Babylon.js/node_modules/lodash/_Hash.js ***!
  9168. \********************************************************/
  9169. /*! no static exports found */
  9170. /***/ (function(module, exports, __webpack_require__) {
  9171. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  9172. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  9173. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  9174. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  9175. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  9176. /**
  9177. * Creates a hash object.
  9178. *
  9179. * @private
  9180. * @constructor
  9181. * @param {Array} [entries] The key-value pairs to cache.
  9182. */
  9183. function Hash(entries) {
  9184. var index = -1,
  9185. length = entries == null ? 0 : entries.length;
  9186. this.clear();
  9187. while (++index < length) {
  9188. var entry = entries[index];
  9189. this.set(entry[0], entry[1]);
  9190. }
  9191. }
  9192. // Add methods to `Hash`.
  9193. Hash.prototype.clear = hashClear;
  9194. Hash.prototype['delete'] = hashDelete;
  9195. Hash.prototype.get = hashGet;
  9196. Hash.prototype.has = hashHas;
  9197. Hash.prototype.set = hashSet;
  9198. module.exports = Hash;
  9199. /***/ }),
  9200. /***/ "../../node_modules/lodash/_ListCache.js":
  9201. /*!*************************************************************!*\
  9202. !*** E:/Repos/Babylon.js/node_modules/lodash/_ListCache.js ***!
  9203. \*************************************************************/
  9204. /*! no static exports found */
  9205. /***/ (function(module, exports, __webpack_require__) {
  9206. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  9207. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  9208. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  9209. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  9210. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  9211. /**
  9212. * Creates an list cache object.
  9213. *
  9214. * @private
  9215. * @constructor
  9216. * @param {Array} [entries] The key-value pairs to cache.
  9217. */
  9218. function ListCache(entries) {
  9219. var index = -1,
  9220. length = entries == null ? 0 : entries.length;
  9221. this.clear();
  9222. while (++index < length) {
  9223. var entry = entries[index];
  9224. this.set(entry[0], entry[1]);
  9225. }
  9226. }
  9227. // Add methods to `ListCache`.
  9228. ListCache.prototype.clear = listCacheClear;
  9229. ListCache.prototype['delete'] = listCacheDelete;
  9230. ListCache.prototype.get = listCacheGet;
  9231. ListCache.prototype.has = listCacheHas;
  9232. ListCache.prototype.set = listCacheSet;
  9233. module.exports = ListCache;
  9234. /***/ }),
  9235. /***/ "../../node_modules/lodash/_Map.js":
  9236. /*!*******************************************************!*\
  9237. !*** E:/Repos/Babylon.js/node_modules/lodash/_Map.js ***!
  9238. \*******************************************************/
  9239. /*! no static exports found */
  9240. /***/ (function(module, exports, __webpack_require__) {
  9241. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9242. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9243. /* Built-in method references that are verified to be native. */
  9244. var Map = getNative(root, 'Map');
  9245. module.exports = Map;
  9246. /***/ }),
  9247. /***/ "../../node_modules/lodash/_MapCache.js":
  9248. /*!************************************************************!*\
  9249. !*** E:/Repos/Babylon.js/node_modules/lodash/_MapCache.js ***!
  9250. \************************************************************/
  9251. /*! no static exports found */
  9252. /***/ (function(module, exports, __webpack_require__) {
  9253. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  9254. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  9255. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  9256. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  9257. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  9258. /**
  9259. * Creates a map cache object to store key-value pairs.
  9260. *
  9261. * @private
  9262. * @constructor
  9263. * @param {Array} [entries] The key-value pairs to cache.
  9264. */
  9265. function MapCache(entries) {
  9266. var index = -1,
  9267. length = entries == null ? 0 : entries.length;
  9268. this.clear();
  9269. while (++index < length) {
  9270. var entry = entries[index];
  9271. this.set(entry[0], entry[1]);
  9272. }
  9273. }
  9274. // Add methods to `MapCache`.
  9275. MapCache.prototype.clear = mapCacheClear;
  9276. MapCache.prototype['delete'] = mapCacheDelete;
  9277. MapCache.prototype.get = mapCacheGet;
  9278. MapCache.prototype.has = mapCacheHas;
  9279. MapCache.prototype.set = mapCacheSet;
  9280. module.exports = MapCache;
  9281. /***/ }),
  9282. /***/ "../../node_modules/lodash/_Promise.js":
  9283. /*!***********************************************************!*\
  9284. !*** E:/Repos/Babylon.js/node_modules/lodash/_Promise.js ***!
  9285. \***********************************************************/
  9286. /*! no static exports found */
  9287. /***/ (function(module, exports, __webpack_require__) {
  9288. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9289. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9290. /* Built-in method references that are verified to be native. */
  9291. var Promise = getNative(root, 'Promise');
  9292. module.exports = Promise;
  9293. /***/ }),
  9294. /***/ "../../node_modules/lodash/_Set.js":
  9295. /*!*******************************************************!*\
  9296. !*** E:/Repos/Babylon.js/node_modules/lodash/_Set.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 Set = getNative(root, 'Set');
  9304. module.exports = Set;
  9305. /***/ }),
  9306. /***/ "../../node_modules/lodash/_SetCache.js":
  9307. /*!************************************************************!*\
  9308. !*** E:/Repos/Babylon.js/node_modules/lodash/_SetCache.js ***!
  9309. \************************************************************/
  9310. /*! no static exports found */
  9311. /***/ (function(module, exports, __webpack_require__) {
  9312. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  9313. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  9314. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  9315. /**
  9316. *
  9317. * Creates an array cache object to store unique values.
  9318. *
  9319. * @private
  9320. * @constructor
  9321. * @param {Array} [values] The values to cache.
  9322. */
  9323. function SetCache(values) {
  9324. var index = -1,
  9325. length = values == null ? 0 : values.length;
  9326. this.__data__ = new MapCache;
  9327. while (++index < length) {
  9328. this.add(values[index]);
  9329. }
  9330. }
  9331. // Add methods to `SetCache`.
  9332. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  9333. SetCache.prototype.has = setCacheHas;
  9334. module.exports = SetCache;
  9335. /***/ }),
  9336. /***/ "../../node_modules/lodash/_Stack.js":
  9337. /*!*********************************************************!*\
  9338. !*** E:/Repos/Babylon.js/node_modules/lodash/_Stack.js ***!
  9339. \*********************************************************/
  9340. /*! no static exports found */
  9341. /***/ (function(module, exports, __webpack_require__) {
  9342. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  9343. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  9344. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  9345. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  9346. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  9347. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  9348. /**
  9349. * Creates a stack cache object to store key-value pairs.
  9350. *
  9351. * @private
  9352. * @constructor
  9353. * @param {Array} [entries] The key-value pairs to cache.
  9354. */
  9355. function Stack(entries) {
  9356. var data = this.__data__ = new ListCache(entries);
  9357. this.size = data.size;
  9358. }
  9359. // Add methods to `Stack`.
  9360. Stack.prototype.clear = stackClear;
  9361. Stack.prototype['delete'] = stackDelete;
  9362. Stack.prototype.get = stackGet;
  9363. Stack.prototype.has = stackHas;
  9364. Stack.prototype.set = stackSet;
  9365. module.exports = Stack;
  9366. /***/ }),
  9367. /***/ "../../node_modules/lodash/_Symbol.js":
  9368. /*!**********************************************************!*\
  9369. !*** E:/Repos/Babylon.js/node_modules/lodash/_Symbol.js ***!
  9370. \**********************************************************/
  9371. /*! no static exports found */
  9372. /***/ (function(module, exports, __webpack_require__) {
  9373. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9374. /** Built-in value references. */
  9375. var Symbol = root.Symbol;
  9376. module.exports = Symbol;
  9377. /***/ }),
  9378. /***/ "../../node_modules/lodash/_Uint8Array.js":
  9379. /*!**************************************************************!*\
  9380. !*** E:/Repos/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  9381. \**************************************************************/
  9382. /*! no static exports found */
  9383. /***/ (function(module, exports, __webpack_require__) {
  9384. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9385. /** Built-in value references. */
  9386. var Uint8Array = root.Uint8Array;
  9387. module.exports = Uint8Array;
  9388. /***/ }),
  9389. /***/ "../../node_modules/lodash/_WeakMap.js":
  9390. /*!***********************************************************!*\
  9391. !*** E:/Repos/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9392. \***********************************************************/
  9393. /*! no static exports found */
  9394. /***/ (function(module, exports, __webpack_require__) {
  9395. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9396. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9397. /* Built-in method references that are verified to be native. */
  9398. var WeakMap = getNative(root, 'WeakMap');
  9399. module.exports = WeakMap;
  9400. /***/ }),
  9401. /***/ "../../node_modules/lodash/_apply.js":
  9402. /*!*********************************************************!*\
  9403. !*** E:/Repos/Babylon.js/node_modules/lodash/_apply.js ***!
  9404. \*********************************************************/
  9405. /*! no static exports found */
  9406. /***/ (function(module, exports) {
  9407. /**
  9408. * A faster alternative to `Function#apply`, this function invokes `func`
  9409. * with the `this` binding of `thisArg` and the arguments of `args`.
  9410. *
  9411. * @private
  9412. * @param {Function} func The function to invoke.
  9413. * @param {*} thisArg The `this` binding of `func`.
  9414. * @param {Array} args The arguments to invoke `func` with.
  9415. * @returns {*} Returns the result of `func`.
  9416. */
  9417. function apply(func, thisArg, args) {
  9418. switch (args.length) {
  9419. case 0: return func.call(thisArg);
  9420. case 1: return func.call(thisArg, args[0]);
  9421. case 2: return func.call(thisArg, args[0], args[1]);
  9422. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9423. }
  9424. return func.apply(thisArg, args);
  9425. }
  9426. module.exports = apply;
  9427. /***/ }),
  9428. /***/ "../../node_modules/lodash/_arrayEach.js":
  9429. /*!*************************************************************!*\
  9430. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9431. \*************************************************************/
  9432. /*! no static exports found */
  9433. /***/ (function(module, exports) {
  9434. /**
  9435. * A specialized version of `_.forEach` for arrays without support for
  9436. * iteratee shorthands.
  9437. *
  9438. * @private
  9439. * @param {Array} [array] The array to iterate over.
  9440. * @param {Function} iteratee The function invoked per iteration.
  9441. * @returns {Array} Returns `array`.
  9442. */
  9443. function arrayEach(array, iteratee) {
  9444. var index = -1,
  9445. length = array == null ? 0 : array.length;
  9446. while (++index < length) {
  9447. if (iteratee(array[index], index, array) === false) {
  9448. break;
  9449. }
  9450. }
  9451. return array;
  9452. }
  9453. module.exports = arrayEach;
  9454. /***/ }),
  9455. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9456. /*!***************************************************************!*\
  9457. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9458. \***************************************************************/
  9459. /*! no static exports found */
  9460. /***/ (function(module, exports) {
  9461. /**
  9462. * A specialized version of `_.filter` for arrays without support for
  9463. * iteratee shorthands.
  9464. *
  9465. * @private
  9466. * @param {Array} [array] The array to iterate over.
  9467. * @param {Function} predicate The function invoked per iteration.
  9468. * @returns {Array} Returns the new filtered array.
  9469. */
  9470. function arrayFilter(array, predicate) {
  9471. var index = -1,
  9472. length = array == null ? 0 : array.length,
  9473. resIndex = 0,
  9474. result = [];
  9475. while (++index < length) {
  9476. var value = array[index];
  9477. if (predicate(value, index, array)) {
  9478. result[resIndex++] = value;
  9479. }
  9480. }
  9481. return result;
  9482. }
  9483. module.exports = arrayFilter;
  9484. /***/ }),
  9485. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9486. /*!*****************************************************************!*\
  9487. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9488. \*****************************************************************/
  9489. /*! no static exports found */
  9490. /***/ (function(module, exports, __webpack_require__) {
  9491. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9492. /**
  9493. * A specialized version of `_.includes` for arrays without support for
  9494. * specifying an index to search from.
  9495. *
  9496. * @private
  9497. * @param {Array} [array] The array to inspect.
  9498. * @param {*} target The value to search for.
  9499. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9500. */
  9501. function arrayIncludes(array, value) {
  9502. var length = array == null ? 0 : array.length;
  9503. return !!length && baseIndexOf(array, value, 0) > -1;
  9504. }
  9505. module.exports = arrayIncludes;
  9506. /***/ }),
  9507. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9508. /*!*********************************************************************!*\
  9509. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9510. \*********************************************************************/
  9511. /*! no static exports found */
  9512. /***/ (function(module, exports) {
  9513. /**
  9514. * This function is like `arrayIncludes` except that it accepts a comparator.
  9515. *
  9516. * @private
  9517. * @param {Array} [array] The array to inspect.
  9518. * @param {*} target The value to search for.
  9519. * @param {Function} comparator The comparator invoked per element.
  9520. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9521. */
  9522. function arrayIncludesWith(array, value, comparator) {
  9523. var index = -1,
  9524. length = array == null ? 0 : array.length;
  9525. while (++index < length) {
  9526. if (comparator(value, array[index])) {
  9527. return true;
  9528. }
  9529. }
  9530. return false;
  9531. }
  9532. module.exports = arrayIncludesWith;
  9533. /***/ }),
  9534. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9535. /*!*****************************************************************!*\
  9536. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9537. \*****************************************************************/
  9538. /*! no static exports found */
  9539. /***/ (function(module, exports, __webpack_require__) {
  9540. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9541. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9542. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9543. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9544. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9545. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9546. /** Used for built-in method references. */
  9547. var objectProto = Object.prototype;
  9548. /** Used to check objects for own properties. */
  9549. var hasOwnProperty = objectProto.hasOwnProperty;
  9550. /**
  9551. * Creates an array of the enumerable property names of the array-like `value`.
  9552. *
  9553. * @private
  9554. * @param {*} value The value to query.
  9555. * @param {boolean} inherited Specify returning inherited property names.
  9556. * @returns {Array} Returns the array of property names.
  9557. */
  9558. function arrayLikeKeys(value, inherited) {
  9559. var isArr = isArray(value),
  9560. isArg = !isArr && isArguments(value),
  9561. isBuff = !isArr && !isArg && isBuffer(value),
  9562. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9563. skipIndexes = isArr || isArg || isBuff || isType,
  9564. result = skipIndexes ? baseTimes(value.length, String) : [],
  9565. length = result.length;
  9566. for (var key in value) {
  9567. if ((inherited || hasOwnProperty.call(value, key)) &&
  9568. !(skipIndexes && (
  9569. // Safari 9 has enumerable `arguments.length` in strict mode.
  9570. key == 'length' ||
  9571. // Node.js 0.10 has enumerable non-index properties on buffers.
  9572. (isBuff && (key == 'offset' || key == 'parent')) ||
  9573. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9574. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9575. // Skip index properties.
  9576. isIndex(key, length)
  9577. ))) {
  9578. result.push(key);
  9579. }
  9580. }
  9581. return result;
  9582. }
  9583. module.exports = arrayLikeKeys;
  9584. /***/ }),
  9585. /***/ "../../node_modules/lodash/_arrayMap.js":
  9586. /*!************************************************************!*\
  9587. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9588. \************************************************************/
  9589. /*! no static exports found */
  9590. /***/ (function(module, exports) {
  9591. /**
  9592. * A specialized version of `_.map` for arrays without support for iteratee
  9593. * shorthands.
  9594. *
  9595. * @private
  9596. * @param {Array} [array] The array to iterate over.
  9597. * @param {Function} iteratee The function invoked per iteration.
  9598. * @returns {Array} Returns the new mapped array.
  9599. */
  9600. function arrayMap(array, iteratee) {
  9601. var index = -1,
  9602. length = array == null ? 0 : array.length,
  9603. result = Array(length);
  9604. while (++index < length) {
  9605. result[index] = iteratee(array[index], index, array);
  9606. }
  9607. return result;
  9608. }
  9609. module.exports = arrayMap;
  9610. /***/ }),
  9611. /***/ "../../node_modules/lodash/_arrayPush.js":
  9612. /*!*************************************************************!*\
  9613. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9614. \*************************************************************/
  9615. /*! no static exports found */
  9616. /***/ (function(module, exports) {
  9617. /**
  9618. * Appends the elements of `values` to `array`.
  9619. *
  9620. * @private
  9621. * @param {Array} array The array to modify.
  9622. * @param {Array} values The values to append.
  9623. * @returns {Array} Returns `array`.
  9624. */
  9625. function arrayPush(array, values) {
  9626. var index = -1,
  9627. length = values.length,
  9628. offset = array.length;
  9629. while (++index < length) {
  9630. array[offset + index] = values[index];
  9631. }
  9632. return array;
  9633. }
  9634. module.exports = arrayPush;
  9635. /***/ }),
  9636. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9637. /*!***************************************************************!*\
  9638. !*** E:/Repos/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9639. \***************************************************************/
  9640. /*! no static exports found */
  9641. /***/ (function(module, exports) {
  9642. /**
  9643. * A specialized version of `_.reduce` for arrays without support for
  9644. * iteratee shorthands.
  9645. *
  9646. * @private
  9647. * @param {Array} [array] The array to iterate over.
  9648. * @param {Function} iteratee The function invoked per iteration.
  9649. * @param {*} [accumulator] The initial value.
  9650. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9651. * the initial value.
  9652. * @returns {*} Returns the accumulated value.
  9653. */
  9654. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9655. var index = -1,
  9656. length = array == null ? 0 : array.length;
  9657. if (initAccum && length) {
  9658. accumulator = array[++index];
  9659. }
  9660. while (++index < length) {
  9661. accumulator = iteratee(accumulator, array[index], index, array);
  9662. }
  9663. return accumulator;
  9664. }
  9665. module.exports = arrayReduce;
  9666. /***/ }),
  9667. /***/ "../../node_modules/lodash/_arraySome.js":
  9668. /*!*************************************************************!*\
  9669. !*** E:/Repos/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9670. \*************************************************************/
  9671. /*! no static exports found */
  9672. /***/ (function(module, exports) {
  9673. /**
  9674. * A specialized version of `_.some` for arrays without support for iteratee
  9675. * shorthands.
  9676. *
  9677. * @private
  9678. * @param {Array} [array] The array to iterate over.
  9679. * @param {Function} predicate The function invoked per iteration.
  9680. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9681. * else `false`.
  9682. */
  9683. function arraySome(array, predicate) {
  9684. var index = -1,
  9685. length = array == null ? 0 : array.length;
  9686. while (++index < length) {
  9687. if (predicate(array[index], index, array)) {
  9688. return true;
  9689. }
  9690. }
  9691. return false;
  9692. }
  9693. module.exports = arraySome;
  9694. /***/ }),
  9695. /***/ "../../node_modules/lodash/_asciiSize.js":
  9696. /*!*************************************************************!*\
  9697. !*** E:/Repos/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9698. \*************************************************************/
  9699. /*! no static exports found */
  9700. /***/ (function(module, exports, __webpack_require__) {
  9701. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9702. /**
  9703. * Gets the size of an ASCII `string`.
  9704. *
  9705. * @private
  9706. * @param {string} string The string inspect.
  9707. * @returns {number} Returns the string size.
  9708. */
  9709. var asciiSize = baseProperty('length');
  9710. module.exports = asciiSize;
  9711. /***/ }),
  9712. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9713. /*!********************************************************************!*\
  9714. !*** E:/Repos/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9715. \********************************************************************/
  9716. /*! no static exports found */
  9717. /***/ (function(module, exports, __webpack_require__) {
  9718. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9719. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9720. /**
  9721. * This function is like `assignValue` except that it doesn't assign
  9722. * `undefined` values.
  9723. *
  9724. * @private
  9725. * @param {Object} object The object to modify.
  9726. * @param {string} key The key of the property to assign.
  9727. * @param {*} value The value to assign.
  9728. */
  9729. function assignMergeValue(object, key, value) {
  9730. if ((value !== undefined && !eq(object[key], value)) ||
  9731. (value === undefined && !(key in object))) {
  9732. baseAssignValue(object, key, value);
  9733. }
  9734. }
  9735. module.exports = assignMergeValue;
  9736. /***/ }),
  9737. /***/ "../../node_modules/lodash/_assignValue.js":
  9738. /*!***************************************************************!*\
  9739. !*** E:/Repos/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9740. \***************************************************************/
  9741. /*! no static exports found */
  9742. /***/ (function(module, exports, __webpack_require__) {
  9743. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9744. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9745. /** Used for built-in method references. */
  9746. var objectProto = Object.prototype;
  9747. /** Used to check objects for own properties. */
  9748. var hasOwnProperty = objectProto.hasOwnProperty;
  9749. /**
  9750. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9751. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9752. * for equality comparisons.
  9753. *
  9754. * @private
  9755. * @param {Object} object The object to modify.
  9756. * @param {string} key The key of the property to assign.
  9757. * @param {*} value The value to assign.
  9758. */
  9759. function assignValue(object, key, value) {
  9760. var objValue = object[key];
  9761. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9762. (value === undefined && !(key in object))) {
  9763. baseAssignValue(object, key, value);
  9764. }
  9765. }
  9766. module.exports = assignValue;
  9767. /***/ }),
  9768. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9769. /*!****************************************************************!*\
  9770. !*** E:/Repos/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9771. \****************************************************************/
  9772. /*! no static exports found */
  9773. /***/ (function(module, exports, __webpack_require__) {
  9774. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9775. /**
  9776. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9777. *
  9778. * @private
  9779. * @param {Array} array The array to inspect.
  9780. * @param {*} key The key to search for.
  9781. * @returns {number} Returns the index of the matched value, else `-1`.
  9782. */
  9783. function assocIndexOf(array, key) {
  9784. var length = array.length;
  9785. while (length--) {
  9786. if (eq(array[length][0], key)) {
  9787. return length;
  9788. }
  9789. }
  9790. return -1;
  9791. }
  9792. module.exports = assocIndexOf;
  9793. /***/ }),
  9794. /***/ "../../node_modules/lodash/_baseAssign.js":
  9795. /*!**************************************************************!*\
  9796. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9797. \**************************************************************/
  9798. /*! no static exports found */
  9799. /***/ (function(module, exports, __webpack_require__) {
  9800. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9801. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9802. /**
  9803. * The base implementation of `_.assign` without support for multiple sources
  9804. * or `customizer` functions.
  9805. *
  9806. * @private
  9807. * @param {Object} object The destination object.
  9808. * @param {Object} source The source object.
  9809. * @returns {Object} Returns `object`.
  9810. */
  9811. function baseAssign(object, source) {
  9812. return object && copyObject(source, keys(source), object);
  9813. }
  9814. module.exports = baseAssign;
  9815. /***/ }),
  9816. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9817. /*!****************************************************************!*\
  9818. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9819. \****************************************************************/
  9820. /*! no static exports found */
  9821. /***/ (function(module, exports, __webpack_require__) {
  9822. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9823. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9824. /**
  9825. * The base implementation of `_.assignIn` without support for multiple sources
  9826. * or `customizer` functions.
  9827. *
  9828. * @private
  9829. * @param {Object} object The destination object.
  9830. * @param {Object} source The source object.
  9831. * @returns {Object} Returns `object`.
  9832. */
  9833. function baseAssignIn(object, source) {
  9834. return object && copyObject(source, keysIn(source), object);
  9835. }
  9836. module.exports = baseAssignIn;
  9837. /***/ }),
  9838. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9839. /*!*******************************************************************!*\
  9840. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9841. \*******************************************************************/
  9842. /*! no static exports found */
  9843. /***/ (function(module, exports, __webpack_require__) {
  9844. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9845. /**
  9846. * The base implementation of `assignValue` and `assignMergeValue` without
  9847. * value checks.
  9848. *
  9849. * @private
  9850. * @param {Object} object The object to modify.
  9851. * @param {string} key The key of the property to assign.
  9852. * @param {*} value The value to assign.
  9853. */
  9854. function baseAssignValue(object, key, value) {
  9855. if (key == '__proto__' && defineProperty) {
  9856. defineProperty(object, key, {
  9857. 'configurable': true,
  9858. 'enumerable': true,
  9859. 'value': value,
  9860. 'writable': true
  9861. });
  9862. } else {
  9863. object[key] = value;
  9864. }
  9865. }
  9866. module.exports = baseAssignValue;
  9867. /***/ }),
  9868. /***/ "../../node_modules/lodash/_baseClone.js":
  9869. /*!*************************************************************!*\
  9870. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9871. \*************************************************************/
  9872. /*! no static exports found */
  9873. /***/ (function(module, exports, __webpack_require__) {
  9874. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9875. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9876. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9877. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9878. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9879. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9880. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9881. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9882. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9883. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9884. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9885. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9886. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9887. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9888. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9889. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9890. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9891. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9892. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9893. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9894. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9895. /** Used to compose bitmasks for cloning. */
  9896. var CLONE_DEEP_FLAG = 1,
  9897. CLONE_FLAT_FLAG = 2,
  9898. CLONE_SYMBOLS_FLAG = 4;
  9899. /** `Object#toString` result references. */
  9900. var argsTag = '[object Arguments]',
  9901. arrayTag = '[object Array]',
  9902. boolTag = '[object Boolean]',
  9903. dateTag = '[object Date]',
  9904. errorTag = '[object Error]',
  9905. funcTag = '[object Function]',
  9906. genTag = '[object GeneratorFunction]',
  9907. mapTag = '[object Map]',
  9908. numberTag = '[object Number]',
  9909. objectTag = '[object Object]',
  9910. regexpTag = '[object RegExp]',
  9911. setTag = '[object Set]',
  9912. stringTag = '[object String]',
  9913. symbolTag = '[object Symbol]',
  9914. weakMapTag = '[object WeakMap]';
  9915. var arrayBufferTag = '[object ArrayBuffer]',
  9916. dataViewTag = '[object DataView]',
  9917. float32Tag = '[object Float32Array]',
  9918. float64Tag = '[object Float64Array]',
  9919. int8Tag = '[object Int8Array]',
  9920. int16Tag = '[object Int16Array]',
  9921. int32Tag = '[object Int32Array]',
  9922. uint8Tag = '[object Uint8Array]',
  9923. uint8ClampedTag = '[object Uint8ClampedArray]',
  9924. uint16Tag = '[object Uint16Array]',
  9925. uint32Tag = '[object Uint32Array]';
  9926. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9927. var cloneableTags = {};
  9928. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9929. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9930. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9931. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9932. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9933. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9934. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9935. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9936. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9937. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9938. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9939. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9940. cloneableTags[weakMapTag] = false;
  9941. /**
  9942. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9943. * traversed objects.
  9944. *
  9945. * @private
  9946. * @param {*} value The value to clone.
  9947. * @param {boolean} bitmask The bitmask flags.
  9948. * 1 - Deep clone
  9949. * 2 - Flatten inherited properties
  9950. * 4 - Clone symbols
  9951. * @param {Function} [customizer] The function to customize cloning.
  9952. * @param {string} [key] The key of `value`.
  9953. * @param {Object} [object] The parent object of `value`.
  9954. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9955. * @returns {*} Returns the cloned value.
  9956. */
  9957. function baseClone(value, bitmask, customizer, key, object, stack) {
  9958. var result,
  9959. isDeep = bitmask & CLONE_DEEP_FLAG,
  9960. isFlat = bitmask & CLONE_FLAT_FLAG,
  9961. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  9962. if (customizer) {
  9963. result = object ? customizer(value, key, object, stack) : customizer(value);
  9964. }
  9965. if (result !== undefined) {
  9966. return result;
  9967. }
  9968. if (!isObject(value)) {
  9969. return value;
  9970. }
  9971. var isArr = isArray(value);
  9972. if (isArr) {
  9973. result = initCloneArray(value);
  9974. if (!isDeep) {
  9975. return copyArray(value, result);
  9976. }
  9977. } else {
  9978. var tag = getTag(value),
  9979. isFunc = tag == funcTag || tag == genTag;
  9980. if (isBuffer(value)) {
  9981. return cloneBuffer(value, isDeep);
  9982. }
  9983. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  9984. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  9985. if (!isDeep) {
  9986. return isFlat
  9987. ? copySymbolsIn(value, baseAssignIn(result, value))
  9988. : copySymbols(value, baseAssign(result, value));
  9989. }
  9990. } else {
  9991. if (!cloneableTags[tag]) {
  9992. return object ? value : {};
  9993. }
  9994. result = initCloneByTag(value, tag, isDeep);
  9995. }
  9996. }
  9997. // Check for circular references and return its corresponding clone.
  9998. stack || (stack = new Stack);
  9999. var stacked = stack.get(value);
  10000. if (stacked) {
  10001. return stacked;
  10002. }
  10003. stack.set(value, result);
  10004. if (isSet(value)) {
  10005. value.forEach(function(subValue) {
  10006. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  10007. });
  10008. return result;
  10009. }
  10010. if (isMap(value)) {
  10011. value.forEach(function(subValue, key) {
  10012. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10013. });
  10014. return result;
  10015. }
  10016. var keysFunc = isFull
  10017. ? (isFlat ? getAllKeysIn : getAllKeys)
  10018. : (isFlat ? keysIn : keys);
  10019. var props = isArr ? undefined : keysFunc(value);
  10020. arrayEach(props || value, function(subValue, key) {
  10021. if (props) {
  10022. key = subValue;
  10023. subValue = value[key];
  10024. }
  10025. // Recursively populate clone (susceptible to call stack limits).
  10026. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  10027. });
  10028. return result;
  10029. }
  10030. module.exports = baseClone;
  10031. /***/ }),
  10032. /***/ "../../node_modules/lodash/_baseCreate.js":
  10033. /*!**************************************************************!*\
  10034. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  10035. \**************************************************************/
  10036. /*! no static exports found */
  10037. /***/ (function(module, exports, __webpack_require__) {
  10038. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  10039. /** Built-in value references. */
  10040. var objectCreate = Object.create;
  10041. /**
  10042. * The base implementation of `_.create` without support for assigning
  10043. * properties to the created object.
  10044. *
  10045. * @private
  10046. * @param {Object} proto The object to inherit from.
  10047. * @returns {Object} Returns the new object.
  10048. */
  10049. var baseCreate = (function() {
  10050. function object() {}
  10051. return function(proto) {
  10052. if (!isObject(proto)) {
  10053. return {};
  10054. }
  10055. if (objectCreate) {
  10056. return objectCreate(proto);
  10057. }
  10058. object.prototype = proto;
  10059. var result = new object;
  10060. object.prototype = undefined;
  10061. return result;
  10062. };
  10063. }());
  10064. module.exports = baseCreate;
  10065. /***/ }),
  10066. /***/ "../../node_modules/lodash/_baseEach.js":
  10067. /*!************************************************************!*\
  10068. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseEach.js ***!
  10069. \************************************************************/
  10070. /*! no static exports found */
  10071. /***/ (function(module, exports, __webpack_require__) {
  10072. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  10073. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  10074. /**
  10075. * The base implementation of `_.forEach` without support for iteratee shorthands.
  10076. *
  10077. * @private
  10078. * @param {Array|Object} collection The collection to iterate over.
  10079. * @param {Function} iteratee The function invoked per iteration.
  10080. * @returns {Array|Object} Returns `collection`.
  10081. */
  10082. var baseEach = createBaseEach(baseForOwn);
  10083. module.exports = baseEach;
  10084. /***/ }),
  10085. /***/ "../../node_modules/lodash/_baseExtremum.js":
  10086. /*!****************************************************************!*\
  10087. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  10088. \****************************************************************/
  10089. /*! no static exports found */
  10090. /***/ (function(module, exports, __webpack_require__) {
  10091. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  10092. /**
  10093. * The base implementation of methods like `_.max` and `_.min` which accepts a
  10094. * `comparator` to determine the extremum value.
  10095. *
  10096. * @private
  10097. * @param {Array} array The array to iterate over.
  10098. * @param {Function} iteratee The iteratee invoked per iteration.
  10099. * @param {Function} comparator The comparator used to compare values.
  10100. * @returns {*} Returns the extremum value.
  10101. */
  10102. function baseExtremum(array, iteratee, comparator) {
  10103. var index = -1,
  10104. length = array.length;
  10105. while (++index < length) {
  10106. var value = array[index],
  10107. current = iteratee(value);
  10108. if (current != null && (computed === undefined
  10109. ? (current === current && !isSymbol(current))
  10110. : comparator(current, computed)
  10111. )) {
  10112. var computed = current,
  10113. result = value;
  10114. }
  10115. }
  10116. return result;
  10117. }
  10118. module.exports = baseExtremum;
  10119. /***/ }),
  10120. /***/ "../../node_modules/lodash/_baseFilter.js":
  10121. /*!**************************************************************!*\
  10122. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  10123. \**************************************************************/
  10124. /*! no static exports found */
  10125. /***/ (function(module, exports, __webpack_require__) {
  10126. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  10127. /**
  10128. * The base implementation of `_.filter` without support for iteratee shorthands.
  10129. *
  10130. * @private
  10131. * @param {Array|Object} collection The collection to iterate over.
  10132. * @param {Function} predicate The function invoked per iteration.
  10133. * @returns {Array} Returns the new filtered array.
  10134. */
  10135. function baseFilter(collection, predicate) {
  10136. var result = [];
  10137. baseEach(collection, function(value, index, collection) {
  10138. if (predicate(value, index, collection)) {
  10139. result.push(value);
  10140. }
  10141. });
  10142. return result;
  10143. }
  10144. module.exports = baseFilter;
  10145. /***/ }),
  10146. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  10147. /*!*****************************************************************!*\
  10148. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  10149. \*****************************************************************/
  10150. /*! no static exports found */
  10151. /***/ (function(module, exports) {
  10152. /**
  10153. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  10154. * support for iteratee shorthands.
  10155. *
  10156. * @private
  10157. * @param {Array} array The array to inspect.
  10158. * @param {Function} predicate The function invoked per iteration.
  10159. * @param {number} fromIndex The index to search from.
  10160. * @param {boolean} [fromRight] Specify iterating from right to left.
  10161. * @returns {number} Returns the index of the matched value, else `-1`.
  10162. */
  10163. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  10164. var length = array.length,
  10165. index = fromIndex + (fromRight ? 1 : -1);
  10166. while ((fromRight ? index-- : ++index < length)) {
  10167. if (predicate(array[index], index, array)) {
  10168. return index;
  10169. }
  10170. }
  10171. return -1;
  10172. }
  10173. module.exports = baseFindIndex;
  10174. /***/ }),
  10175. /***/ "../../node_modules/lodash/_baseFlatten.js":
  10176. /*!***************************************************************!*\
  10177. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  10178. \***************************************************************/
  10179. /*! no static exports found */
  10180. /***/ (function(module, exports, __webpack_require__) {
  10181. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10182. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  10183. /**
  10184. * The base implementation of `_.flatten` with support for restricting flattening.
  10185. *
  10186. * @private
  10187. * @param {Array} array The array to flatten.
  10188. * @param {number} depth The maximum recursion depth.
  10189. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  10190. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  10191. * @param {Array} [result=[]] The initial result value.
  10192. * @returns {Array} Returns the new flattened array.
  10193. */
  10194. function baseFlatten(array, depth, predicate, isStrict, result) {
  10195. var index = -1,
  10196. length = array.length;
  10197. predicate || (predicate = isFlattenable);
  10198. result || (result = []);
  10199. while (++index < length) {
  10200. var value = array[index];
  10201. if (depth > 0 && predicate(value)) {
  10202. if (depth > 1) {
  10203. // Recursively flatten arrays (susceptible to call stack limits).
  10204. baseFlatten(value, depth - 1, predicate, isStrict, result);
  10205. } else {
  10206. arrayPush(result, value);
  10207. }
  10208. } else if (!isStrict) {
  10209. result[result.length] = value;
  10210. }
  10211. }
  10212. return result;
  10213. }
  10214. module.exports = baseFlatten;
  10215. /***/ }),
  10216. /***/ "../../node_modules/lodash/_baseFor.js":
  10217. /*!***********************************************************!*\
  10218. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseFor.js ***!
  10219. \***********************************************************/
  10220. /*! no static exports found */
  10221. /***/ (function(module, exports, __webpack_require__) {
  10222. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  10223. /**
  10224. * The base implementation of `baseForOwn` which iterates over `object`
  10225. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  10226. * Iteratee functions may exit iteration early by explicitly returning `false`.
  10227. *
  10228. * @private
  10229. * @param {Object} object The object to iterate over.
  10230. * @param {Function} iteratee The function invoked per iteration.
  10231. * @param {Function} keysFunc The function to get the keys of `object`.
  10232. * @returns {Object} Returns `object`.
  10233. */
  10234. var baseFor = createBaseFor();
  10235. module.exports = baseFor;
  10236. /***/ }),
  10237. /***/ "../../node_modules/lodash/_baseForOwn.js":
  10238. /*!**************************************************************!*\
  10239. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  10240. \**************************************************************/
  10241. /*! no static exports found */
  10242. /***/ (function(module, exports, __webpack_require__) {
  10243. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10244. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  10245. /**
  10246. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  10247. *
  10248. * @private
  10249. * @param {Object} object The object to iterate over.
  10250. * @param {Function} iteratee The function invoked per iteration.
  10251. * @returns {Object} Returns `object`.
  10252. */
  10253. function baseForOwn(object, iteratee) {
  10254. return object && baseFor(object, iteratee, keys);
  10255. }
  10256. module.exports = baseForOwn;
  10257. /***/ }),
  10258. /***/ "../../node_modules/lodash/_baseGet.js":
  10259. /*!***********************************************************!*\
  10260. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGet.js ***!
  10261. \***********************************************************/
  10262. /*! no static exports found */
  10263. /***/ (function(module, exports, __webpack_require__) {
  10264. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10265. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10266. /**
  10267. * The base implementation of `_.get` without support for default values.
  10268. *
  10269. * @private
  10270. * @param {Object} object The object to query.
  10271. * @param {Array|string} path The path of the property to get.
  10272. * @returns {*} Returns the resolved value.
  10273. */
  10274. function baseGet(object, path) {
  10275. path = castPath(path, object);
  10276. var index = 0,
  10277. length = path.length;
  10278. while (object != null && index < length) {
  10279. object = object[toKey(path[index++])];
  10280. }
  10281. return (index && index == length) ? object : undefined;
  10282. }
  10283. module.exports = baseGet;
  10284. /***/ }),
  10285. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  10286. /*!******************************************************************!*\
  10287. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  10288. \******************************************************************/
  10289. /*! no static exports found */
  10290. /***/ (function(module, exports, __webpack_require__) {
  10291. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  10292. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  10293. /**
  10294. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  10295. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  10296. * symbols of `object`.
  10297. *
  10298. * @private
  10299. * @param {Object} object The object to query.
  10300. * @param {Function} keysFunc The function to get the keys of `object`.
  10301. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  10302. * @returns {Array} Returns the array of property names and symbols.
  10303. */
  10304. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  10305. var result = keysFunc(object);
  10306. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  10307. }
  10308. module.exports = baseGetAllKeys;
  10309. /***/ }),
  10310. /***/ "../../node_modules/lodash/_baseGetTag.js":
  10311. /*!**************************************************************!*\
  10312. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  10313. \**************************************************************/
  10314. /*! no static exports found */
  10315. /***/ (function(module, exports, __webpack_require__) {
  10316. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  10317. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  10318. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  10319. /** `Object#toString` result references. */
  10320. var nullTag = '[object Null]',
  10321. undefinedTag = '[object Undefined]';
  10322. /** Built-in value references. */
  10323. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  10324. /**
  10325. * The base implementation of `getTag` without fallbacks for buggy environments.
  10326. *
  10327. * @private
  10328. * @param {*} value The value to query.
  10329. * @returns {string} Returns the `toStringTag`.
  10330. */
  10331. function baseGetTag(value) {
  10332. if (value == null) {
  10333. return value === undefined ? undefinedTag : nullTag;
  10334. }
  10335. return (symToStringTag && symToStringTag in Object(value))
  10336. ? getRawTag(value)
  10337. : objectToString(value);
  10338. }
  10339. module.exports = baseGetTag;
  10340. /***/ }),
  10341. /***/ "../../node_modules/lodash/_baseGt.js":
  10342. /*!**********************************************************!*\
  10343. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseGt.js ***!
  10344. \**********************************************************/
  10345. /*! no static exports found */
  10346. /***/ (function(module, exports) {
  10347. /**
  10348. * The base implementation of `_.gt` which doesn't coerce arguments.
  10349. *
  10350. * @private
  10351. * @param {*} value The value to compare.
  10352. * @param {*} other The other value to compare.
  10353. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  10354. * else `false`.
  10355. */
  10356. function baseGt(value, other) {
  10357. return value > other;
  10358. }
  10359. module.exports = baseGt;
  10360. /***/ }),
  10361. /***/ "../../node_modules/lodash/_baseHas.js":
  10362. /*!***********************************************************!*\
  10363. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseHas.js ***!
  10364. \***********************************************************/
  10365. /*! no static exports found */
  10366. /***/ (function(module, exports) {
  10367. /** Used for built-in method references. */
  10368. var objectProto = Object.prototype;
  10369. /** Used to check objects for own properties. */
  10370. var hasOwnProperty = objectProto.hasOwnProperty;
  10371. /**
  10372. * The base implementation of `_.has` without support for deep paths.
  10373. *
  10374. * @private
  10375. * @param {Object} [object] The object to query.
  10376. * @param {Array|string} key The key to check.
  10377. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10378. */
  10379. function baseHas(object, key) {
  10380. return object != null && hasOwnProperty.call(object, key);
  10381. }
  10382. module.exports = baseHas;
  10383. /***/ }),
  10384. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10385. /*!*************************************************************!*\
  10386. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10387. \*************************************************************/
  10388. /*! no static exports found */
  10389. /***/ (function(module, exports) {
  10390. /**
  10391. * The base implementation of `_.hasIn` without support for deep paths.
  10392. *
  10393. * @private
  10394. * @param {Object} [object] The object to query.
  10395. * @param {Array|string} key The key to check.
  10396. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10397. */
  10398. function baseHasIn(object, key) {
  10399. return object != null && key in Object(object);
  10400. }
  10401. module.exports = baseHasIn;
  10402. /***/ }),
  10403. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10404. /*!***************************************************************!*\
  10405. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10406. \***************************************************************/
  10407. /*! no static exports found */
  10408. /***/ (function(module, exports, __webpack_require__) {
  10409. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10410. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10411. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10412. /**
  10413. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10414. *
  10415. * @private
  10416. * @param {Array} array The array to inspect.
  10417. * @param {*} value The value to search for.
  10418. * @param {number} fromIndex The index to search from.
  10419. * @returns {number} Returns the index of the matched value, else `-1`.
  10420. */
  10421. function baseIndexOf(array, value, fromIndex) {
  10422. return value === value
  10423. ? strictIndexOf(array, value, fromIndex)
  10424. : baseFindIndex(array, baseIsNaN, fromIndex);
  10425. }
  10426. module.exports = baseIndexOf;
  10427. /***/ }),
  10428. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10429. /*!*******************************************************************!*\
  10430. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10431. \*******************************************************************/
  10432. /*! no static exports found */
  10433. /***/ (function(module, exports, __webpack_require__) {
  10434. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10435. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10436. /** `Object#toString` result references. */
  10437. var argsTag = '[object Arguments]';
  10438. /**
  10439. * The base implementation of `_.isArguments`.
  10440. *
  10441. * @private
  10442. * @param {*} value The value to check.
  10443. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10444. */
  10445. function baseIsArguments(value) {
  10446. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10447. }
  10448. module.exports = baseIsArguments;
  10449. /***/ }),
  10450. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10451. /*!***************************************************************!*\
  10452. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10453. \***************************************************************/
  10454. /*! no static exports found */
  10455. /***/ (function(module, exports, __webpack_require__) {
  10456. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10457. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10458. /**
  10459. * The base implementation of `_.isEqual` which supports partial comparisons
  10460. * and tracks traversed objects.
  10461. *
  10462. * @private
  10463. * @param {*} value The value to compare.
  10464. * @param {*} other The other value to compare.
  10465. * @param {boolean} bitmask The bitmask flags.
  10466. * 1 - Unordered comparison
  10467. * 2 - Partial comparison
  10468. * @param {Function} [customizer] The function to customize comparisons.
  10469. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10470. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10471. */
  10472. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10473. if (value === other) {
  10474. return true;
  10475. }
  10476. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10477. return value !== value && other !== other;
  10478. }
  10479. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10480. }
  10481. module.exports = baseIsEqual;
  10482. /***/ }),
  10483. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10484. /*!*******************************************************************!*\
  10485. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10486. \*******************************************************************/
  10487. /*! no static exports found */
  10488. /***/ (function(module, exports, __webpack_require__) {
  10489. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10490. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10491. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10492. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10493. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10494. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10495. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10496. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10497. /** Used to compose bitmasks for value comparisons. */
  10498. var COMPARE_PARTIAL_FLAG = 1;
  10499. /** `Object#toString` result references. */
  10500. var argsTag = '[object Arguments]',
  10501. arrayTag = '[object Array]',
  10502. objectTag = '[object Object]';
  10503. /** Used for built-in method references. */
  10504. var objectProto = Object.prototype;
  10505. /** Used to check objects for own properties. */
  10506. var hasOwnProperty = objectProto.hasOwnProperty;
  10507. /**
  10508. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10509. * deep comparisons and tracks traversed objects enabling objects with circular
  10510. * references to be compared.
  10511. *
  10512. * @private
  10513. * @param {Object} object The object to compare.
  10514. * @param {Object} other The other object to compare.
  10515. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10516. * @param {Function} customizer The function to customize comparisons.
  10517. * @param {Function} equalFunc The function to determine equivalents of values.
  10518. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10519. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10520. */
  10521. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10522. var objIsArr = isArray(object),
  10523. othIsArr = isArray(other),
  10524. objTag = objIsArr ? arrayTag : getTag(object),
  10525. othTag = othIsArr ? arrayTag : getTag(other);
  10526. objTag = objTag == argsTag ? objectTag : objTag;
  10527. othTag = othTag == argsTag ? objectTag : othTag;
  10528. var objIsObj = objTag == objectTag,
  10529. othIsObj = othTag == objectTag,
  10530. isSameTag = objTag == othTag;
  10531. if (isSameTag && isBuffer(object)) {
  10532. if (!isBuffer(other)) {
  10533. return false;
  10534. }
  10535. objIsArr = true;
  10536. objIsObj = false;
  10537. }
  10538. if (isSameTag && !objIsObj) {
  10539. stack || (stack = new Stack);
  10540. return (objIsArr || isTypedArray(object))
  10541. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10542. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10543. }
  10544. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10545. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10546. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10547. if (objIsWrapped || othIsWrapped) {
  10548. var objUnwrapped = objIsWrapped ? object.value() : object,
  10549. othUnwrapped = othIsWrapped ? other.value() : other;
  10550. stack || (stack = new Stack);
  10551. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10552. }
  10553. }
  10554. if (!isSameTag) {
  10555. return false;
  10556. }
  10557. stack || (stack = new Stack);
  10558. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10559. }
  10560. module.exports = baseIsEqualDeep;
  10561. /***/ }),
  10562. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10563. /*!*************************************************************!*\
  10564. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10565. \*************************************************************/
  10566. /*! no static exports found */
  10567. /***/ (function(module, exports, __webpack_require__) {
  10568. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10569. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10570. /** `Object#toString` result references. */
  10571. var mapTag = '[object Map]';
  10572. /**
  10573. * The base implementation of `_.isMap` without Node.js optimizations.
  10574. *
  10575. * @private
  10576. * @param {*} value The value to check.
  10577. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10578. */
  10579. function baseIsMap(value) {
  10580. return isObjectLike(value) && getTag(value) == mapTag;
  10581. }
  10582. module.exports = baseIsMap;
  10583. /***/ }),
  10584. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10585. /*!***************************************************************!*\
  10586. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10587. \***************************************************************/
  10588. /*! no static exports found */
  10589. /***/ (function(module, exports, __webpack_require__) {
  10590. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10591. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10592. /** Used to compose bitmasks for value comparisons. */
  10593. var COMPARE_PARTIAL_FLAG = 1,
  10594. COMPARE_UNORDERED_FLAG = 2;
  10595. /**
  10596. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10597. *
  10598. * @private
  10599. * @param {Object} object The object to inspect.
  10600. * @param {Object} source The object of property values to match.
  10601. * @param {Array} matchData The property names, values, and compare flags to match.
  10602. * @param {Function} [customizer] The function to customize comparisons.
  10603. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10604. */
  10605. function baseIsMatch(object, source, matchData, customizer) {
  10606. var index = matchData.length,
  10607. length = index,
  10608. noCustomizer = !customizer;
  10609. if (object == null) {
  10610. return !length;
  10611. }
  10612. object = Object(object);
  10613. while (index--) {
  10614. var data = matchData[index];
  10615. if ((noCustomizer && data[2])
  10616. ? data[1] !== object[data[0]]
  10617. : !(data[0] in object)
  10618. ) {
  10619. return false;
  10620. }
  10621. }
  10622. while (++index < length) {
  10623. data = matchData[index];
  10624. var key = data[0],
  10625. objValue = object[key],
  10626. srcValue = data[1];
  10627. if (noCustomizer && data[2]) {
  10628. if (objValue === undefined && !(key in object)) {
  10629. return false;
  10630. }
  10631. } else {
  10632. var stack = new Stack;
  10633. if (customizer) {
  10634. var result = customizer(objValue, srcValue, key, object, source, stack);
  10635. }
  10636. if (!(result === undefined
  10637. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10638. : result
  10639. )) {
  10640. return false;
  10641. }
  10642. }
  10643. }
  10644. return true;
  10645. }
  10646. module.exports = baseIsMatch;
  10647. /***/ }),
  10648. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10649. /*!*************************************************************!*\
  10650. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10651. \*************************************************************/
  10652. /*! no static exports found */
  10653. /***/ (function(module, exports) {
  10654. /**
  10655. * The base implementation of `_.isNaN` without support for number objects.
  10656. *
  10657. * @private
  10658. * @param {*} value The value to check.
  10659. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10660. */
  10661. function baseIsNaN(value) {
  10662. return value !== value;
  10663. }
  10664. module.exports = baseIsNaN;
  10665. /***/ }),
  10666. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10667. /*!****************************************************************!*\
  10668. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10669. \****************************************************************/
  10670. /*! no static exports found */
  10671. /***/ (function(module, exports, __webpack_require__) {
  10672. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10673. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10674. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10675. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10676. /**
  10677. * Used to match `RegExp`
  10678. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10679. */
  10680. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10681. /** Used to detect host constructors (Safari). */
  10682. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10683. /** Used for built-in method references. */
  10684. var funcProto = Function.prototype,
  10685. objectProto = Object.prototype;
  10686. /** Used to resolve the decompiled source of functions. */
  10687. var funcToString = funcProto.toString;
  10688. /** Used to check objects for own properties. */
  10689. var hasOwnProperty = objectProto.hasOwnProperty;
  10690. /** Used to detect if a method is native. */
  10691. var reIsNative = RegExp('^' +
  10692. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10693. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10694. );
  10695. /**
  10696. * The base implementation of `_.isNative` without bad shim checks.
  10697. *
  10698. * @private
  10699. * @param {*} value The value to check.
  10700. * @returns {boolean} Returns `true` if `value` is a native function,
  10701. * else `false`.
  10702. */
  10703. function baseIsNative(value) {
  10704. if (!isObject(value) || isMasked(value)) {
  10705. return false;
  10706. }
  10707. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10708. return pattern.test(toSource(value));
  10709. }
  10710. module.exports = baseIsNative;
  10711. /***/ }),
  10712. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10713. /*!*************************************************************!*\
  10714. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10715. \*************************************************************/
  10716. /*! no static exports found */
  10717. /***/ (function(module, exports, __webpack_require__) {
  10718. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10719. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10720. /** `Object#toString` result references. */
  10721. var setTag = '[object Set]';
  10722. /**
  10723. * The base implementation of `_.isSet` without Node.js optimizations.
  10724. *
  10725. * @private
  10726. * @param {*} value The value to check.
  10727. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10728. */
  10729. function baseIsSet(value) {
  10730. return isObjectLike(value) && getTag(value) == setTag;
  10731. }
  10732. module.exports = baseIsSet;
  10733. /***/ }),
  10734. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10735. /*!********************************************************************!*\
  10736. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10737. \********************************************************************/
  10738. /*! no static exports found */
  10739. /***/ (function(module, exports, __webpack_require__) {
  10740. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10741. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10742. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10743. /** `Object#toString` result references. */
  10744. var argsTag = '[object Arguments]',
  10745. arrayTag = '[object Array]',
  10746. boolTag = '[object Boolean]',
  10747. dateTag = '[object Date]',
  10748. errorTag = '[object Error]',
  10749. funcTag = '[object Function]',
  10750. mapTag = '[object Map]',
  10751. numberTag = '[object Number]',
  10752. objectTag = '[object Object]',
  10753. regexpTag = '[object RegExp]',
  10754. setTag = '[object Set]',
  10755. stringTag = '[object String]',
  10756. weakMapTag = '[object WeakMap]';
  10757. var arrayBufferTag = '[object ArrayBuffer]',
  10758. dataViewTag = '[object DataView]',
  10759. float32Tag = '[object Float32Array]',
  10760. float64Tag = '[object Float64Array]',
  10761. int8Tag = '[object Int8Array]',
  10762. int16Tag = '[object Int16Array]',
  10763. int32Tag = '[object Int32Array]',
  10764. uint8Tag = '[object Uint8Array]',
  10765. uint8ClampedTag = '[object Uint8ClampedArray]',
  10766. uint16Tag = '[object Uint16Array]',
  10767. uint32Tag = '[object Uint32Array]';
  10768. /** Used to identify `toStringTag` values of typed arrays. */
  10769. var typedArrayTags = {};
  10770. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10771. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10772. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10773. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10774. typedArrayTags[uint32Tag] = true;
  10775. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10776. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10777. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10778. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10779. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10780. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10781. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10782. typedArrayTags[weakMapTag] = false;
  10783. /**
  10784. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10785. *
  10786. * @private
  10787. * @param {*} value The value to check.
  10788. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10789. */
  10790. function baseIsTypedArray(value) {
  10791. return isObjectLike(value) &&
  10792. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10793. }
  10794. module.exports = baseIsTypedArray;
  10795. /***/ }),
  10796. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10797. /*!****************************************************************!*\
  10798. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10799. \****************************************************************/
  10800. /*! no static exports found */
  10801. /***/ (function(module, exports, __webpack_require__) {
  10802. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10803. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10804. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10805. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10806. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10807. /**
  10808. * The base implementation of `_.iteratee`.
  10809. *
  10810. * @private
  10811. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10812. * @returns {Function} Returns the iteratee.
  10813. */
  10814. function baseIteratee(value) {
  10815. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10816. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10817. if (typeof value == 'function') {
  10818. return value;
  10819. }
  10820. if (value == null) {
  10821. return identity;
  10822. }
  10823. if (typeof value == 'object') {
  10824. return isArray(value)
  10825. ? baseMatchesProperty(value[0], value[1])
  10826. : baseMatches(value);
  10827. }
  10828. return property(value);
  10829. }
  10830. module.exports = baseIteratee;
  10831. /***/ }),
  10832. /***/ "../../node_modules/lodash/_baseKeys.js":
  10833. /*!************************************************************!*\
  10834. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10835. \************************************************************/
  10836. /*! no static exports found */
  10837. /***/ (function(module, exports, __webpack_require__) {
  10838. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10839. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10840. /** Used for built-in method references. */
  10841. var objectProto = Object.prototype;
  10842. /** Used to check objects for own properties. */
  10843. var hasOwnProperty = objectProto.hasOwnProperty;
  10844. /**
  10845. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10846. *
  10847. * @private
  10848. * @param {Object} object The object to query.
  10849. * @returns {Array} Returns the array of property names.
  10850. */
  10851. function baseKeys(object) {
  10852. if (!isPrototype(object)) {
  10853. return nativeKeys(object);
  10854. }
  10855. var result = [];
  10856. for (var key in Object(object)) {
  10857. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10858. result.push(key);
  10859. }
  10860. }
  10861. return result;
  10862. }
  10863. module.exports = baseKeys;
  10864. /***/ }),
  10865. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10866. /*!**************************************************************!*\
  10867. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10868. \**************************************************************/
  10869. /*! no static exports found */
  10870. /***/ (function(module, exports, __webpack_require__) {
  10871. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10872. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10873. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10874. /** Used for built-in method references. */
  10875. var objectProto = Object.prototype;
  10876. /** Used to check objects for own properties. */
  10877. var hasOwnProperty = objectProto.hasOwnProperty;
  10878. /**
  10879. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10880. *
  10881. * @private
  10882. * @param {Object} object The object to query.
  10883. * @returns {Array} Returns the array of property names.
  10884. */
  10885. function baseKeysIn(object) {
  10886. if (!isObject(object)) {
  10887. return nativeKeysIn(object);
  10888. }
  10889. var isProto = isPrototype(object),
  10890. result = [];
  10891. for (var key in object) {
  10892. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10893. result.push(key);
  10894. }
  10895. }
  10896. return result;
  10897. }
  10898. module.exports = baseKeysIn;
  10899. /***/ }),
  10900. /***/ "../../node_modules/lodash/_baseLt.js":
  10901. /*!**********************************************************!*\
  10902. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10903. \**********************************************************/
  10904. /*! no static exports found */
  10905. /***/ (function(module, exports) {
  10906. /**
  10907. * The base implementation of `_.lt` which doesn't coerce arguments.
  10908. *
  10909. * @private
  10910. * @param {*} value The value to compare.
  10911. * @param {*} other The other value to compare.
  10912. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10913. * else `false`.
  10914. */
  10915. function baseLt(value, other) {
  10916. return value < other;
  10917. }
  10918. module.exports = baseLt;
  10919. /***/ }),
  10920. /***/ "../../node_modules/lodash/_baseMap.js":
  10921. /*!***********************************************************!*\
  10922. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10923. \***********************************************************/
  10924. /*! no static exports found */
  10925. /***/ (function(module, exports, __webpack_require__) {
  10926. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10927. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10928. /**
  10929. * The base implementation of `_.map` without support for iteratee shorthands.
  10930. *
  10931. * @private
  10932. * @param {Array|Object} collection The collection to iterate over.
  10933. * @param {Function} iteratee The function invoked per iteration.
  10934. * @returns {Array} Returns the new mapped array.
  10935. */
  10936. function baseMap(collection, iteratee) {
  10937. var index = -1,
  10938. result = isArrayLike(collection) ? Array(collection.length) : [];
  10939. baseEach(collection, function(value, key, collection) {
  10940. result[++index] = iteratee(value, key, collection);
  10941. });
  10942. return result;
  10943. }
  10944. module.exports = baseMap;
  10945. /***/ }),
  10946. /***/ "../../node_modules/lodash/_baseMatches.js":
  10947. /*!***************************************************************!*\
  10948. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10949. \***************************************************************/
  10950. /*! no static exports found */
  10951. /***/ (function(module, exports, __webpack_require__) {
  10952. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10953. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10954. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10955. /**
  10956. * The base implementation of `_.matches` which doesn't clone `source`.
  10957. *
  10958. * @private
  10959. * @param {Object} source The object of property values to match.
  10960. * @returns {Function} Returns the new spec function.
  10961. */
  10962. function baseMatches(source) {
  10963. var matchData = getMatchData(source);
  10964. if (matchData.length == 1 && matchData[0][2]) {
  10965. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  10966. }
  10967. return function(object) {
  10968. return object === source || baseIsMatch(object, source, matchData);
  10969. };
  10970. }
  10971. module.exports = baseMatches;
  10972. /***/ }),
  10973. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  10974. /*!***********************************************************************!*\
  10975. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  10976. \***********************************************************************/
  10977. /*! no static exports found */
  10978. /***/ (function(module, exports, __webpack_require__) {
  10979. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  10980. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  10981. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  10982. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  10983. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  10984. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  10985. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10986. /** Used to compose bitmasks for value comparisons. */
  10987. var COMPARE_PARTIAL_FLAG = 1,
  10988. COMPARE_UNORDERED_FLAG = 2;
  10989. /**
  10990. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  10991. *
  10992. * @private
  10993. * @param {string} path The path of the property to get.
  10994. * @param {*} srcValue The value to match.
  10995. * @returns {Function} Returns the new spec function.
  10996. */
  10997. function baseMatchesProperty(path, srcValue) {
  10998. if (isKey(path) && isStrictComparable(srcValue)) {
  10999. return matchesStrictComparable(toKey(path), srcValue);
  11000. }
  11001. return function(object) {
  11002. var objValue = get(object, path);
  11003. return (objValue === undefined && objValue === srcValue)
  11004. ? hasIn(object, path)
  11005. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  11006. };
  11007. }
  11008. module.exports = baseMatchesProperty;
  11009. /***/ }),
  11010. /***/ "../../node_modules/lodash/_baseMerge.js":
  11011. /*!*************************************************************!*\
  11012. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  11013. \*************************************************************/
  11014. /*! no static exports found */
  11015. /***/ (function(module, exports, __webpack_require__) {
  11016. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  11017. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11018. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  11019. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  11020. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11021. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  11022. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  11023. /**
  11024. * The base implementation of `_.merge` without support for multiple sources.
  11025. *
  11026. * @private
  11027. * @param {Object} object The destination object.
  11028. * @param {Object} source The source object.
  11029. * @param {number} srcIndex The index of `source`.
  11030. * @param {Function} [customizer] The function to customize merged values.
  11031. * @param {Object} [stack] Tracks traversed source values and their merged
  11032. * counterparts.
  11033. */
  11034. function baseMerge(object, source, srcIndex, customizer, stack) {
  11035. if (object === source) {
  11036. return;
  11037. }
  11038. baseFor(source, function(srcValue, key) {
  11039. if (isObject(srcValue)) {
  11040. stack || (stack = new Stack);
  11041. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  11042. }
  11043. else {
  11044. var newValue = customizer
  11045. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  11046. : undefined;
  11047. if (newValue === undefined) {
  11048. newValue = srcValue;
  11049. }
  11050. assignMergeValue(object, key, newValue);
  11051. }
  11052. }, keysIn);
  11053. }
  11054. module.exports = baseMerge;
  11055. /***/ }),
  11056. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  11057. /*!*****************************************************************!*\
  11058. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  11059. \*****************************************************************/
  11060. /*! no static exports found */
  11061. /***/ (function(module, exports, __webpack_require__) {
  11062. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  11063. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  11064. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  11065. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  11066. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  11067. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  11068. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11069. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  11070. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  11071. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  11072. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11073. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  11074. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  11075. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  11076. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  11077. /**
  11078. * A specialized version of `baseMerge` for arrays and objects which performs
  11079. * deep merges and tracks traversed objects enabling objects with circular
  11080. * references to be merged.
  11081. *
  11082. * @private
  11083. * @param {Object} object The destination object.
  11084. * @param {Object} source The source object.
  11085. * @param {string} key The key of the value to merge.
  11086. * @param {number} srcIndex The index of `source`.
  11087. * @param {Function} mergeFunc The function to merge values.
  11088. * @param {Function} [customizer] The function to customize assigned values.
  11089. * @param {Object} [stack] Tracks traversed source values and their merged
  11090. * counterparts.
  11091. */
  11092. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  11093. var objValue = safeGet(object, key),
  11094. srcValue = safeGet(source, key),
  11095. stacked = stack.get(srcValue);
  11096. if (stacked) {
  11097. assignMergeValue(object, key, stacked);
  11098. return;
  11099. }
  11100. var newValue = customizer
  11101. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  11102. : undefined;
  11103. var isCommon = newValue === undefined;
  11104. if (isCommon) {
  11105. var isArr = isArray(srcValue),
  11106. isBuff = !isArr && isBuffer(srcValue),
  11107. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  11108. newValue = srcValue;
  11109. if (isArr || isBuff || isTyped) {
  11110. if (isArray(objValue)) {
  11111. newValue = objValue;
  11112. }
  11113. else if (isArrayLikeObject(objValue)) {
  11114. newValue = copyArray(objValue);
  11115. }
  11116. else if (isBuff) {
  11117. isCommon = false;
  11118. newValue = cloneBuffer(srcValue, true);
  11119. }
  11120. else if (isTyped) {
  11121. isCommon = false;
  11122. newValue = cloneTypedArray(srcValue, true);
  11123. }
  11124. else {
  11125. newValue = [];
  11126. }
  11127. }
  11128. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  11129. newValue = objValue;
  11130. if (isArguments(objValue)) {
  11131. newValue = toPlainObject(objValue);
  11132. }
  11133. else if (!isObject(objValue) || isFunction(objValue)) {
  11134. newValue = initCloneObject(srcValue);
  11135. }
  11136. }
  11137. else {
  11138. isCommon = false;
  11139. }
  11140. }
  11141. if (isCommon) {
  11142. // Recursively merge objects and arrays (susceptible to call stack limits).
  11143. stack.set(srcValue, newValue);
  11144. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  11145. stack['delete'](srcValue);
  11146. }
  11147. assignMergeValue(object, key, newValue);
  11148. }
  11149. module.exports = baseMergeDeep;
  11150. /***/ }),
  11151. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  11152. /*!***************************************************************!*\
  11153. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  11154. \***************************************************************/
  11155. /*! no static exports found */
  11156. /***/ (function(module, exports, __webpack_require__) {
  11157. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11158. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11159. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  11160. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  11161. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  11162. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  11163. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11164. /**
  11165. * The base implementation of `_.orderBy` without param guards.
  11166. *
  11167. * @private
  11168. * @param {Array|Object} collection The collection to iterate over.
  11169. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  11170. * @param {string[]} orders The sort orders of `iteratees`.
  11171. * @returns {Array} Returns the new sorted array.
  11172. */
  11173. function baseOrderBy(collection, iteratees, orders) {
  11174. var index = -1;
  11175. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  11176. var result = baseMap(collection, function(value, key, collection) {
  11177. var criteria = arrayMap(iteratees, function(iteratee) {
  11178. return iteratee(value);
  11179. });
  11180. return { 'criteria': criteria, 'index': ++index, 'value': value };
  11181. });
  11182. return baseSortBy(result, function(object, other) {
  11183. return compareMultiple(object, other, orders);
  11184. });
  11185. }
  11186. module.exports = baseOrderBy;
  11187. /***/ }),
  11188. /***/ "../../node_modules/lodash/_basePick.js":
  11189. /*!************************************************************!*\
  11190. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePick.js ***!
  11191. \************************************************************/
  11192. /*! no static exports found */
  11193. /***/ (function(module, exports, __webpack_require__) {
  11194. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  11195. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  11196. /**
  11197. * The base implementation of `_.pick` without support for individual
  11198. * property identifiers.
  11199. *
  11200. * @private
  11201. * @param {Object} object The source object.
  11202. * @param {string[]} paths The property paths to pick.
  11203. * @returns {Object} Returns the new object.
  11204. */
  11205. function basePick(object, paths) {
  11206. return basePickBy(object, paths, function(value, path) {
  11207. return hasIn(object, path);
  11208. });
  11209. }
  11210. module.exports = basePick;
  11211. /***/ }),
  11212. /***/ "../../node_modules/lodash/_basePickBy.js":
  11213. /*!**************************************************************!*\
  11214. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  11215. \**************************************************************/
  11216. /*! no static exports found */
  11217. /***/ (function(module, exports, __webpack_require__) {
  11218. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  11219. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  11220. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  11221. /**
  11222. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  11223. *
  11224. * @private
  11225. * @param {Object} object The source object.
  11226. * @param {string[]} paths The property paths to pick.
  11227. * @param {Function} predicate The function invoked per property.
  11228. * @returns {Object} Returns the new object.
  11229. */
  11230. function basePickBy(object, paths, predicate) {
  11231. var index = -1,
  11232. length = paths.length,
  11233. result = {};
  11234. while (++index < length) {
  11235. var path = paths[index],
  11236. value = baseGet(object, path);
  11237. if (predicate(value, path)) {
  11238. baseSet(result, castPath(path, object), value);
  11239. }
  11240. }
  11241. return result;
  11242. }
  11243. module.exports = basePickBy;
  11244. /***/ }),
  11245. /***/ "../../node_modules/lodash/_baseProperty.js":
  11246. /*!****************************************************************!*\
  11247. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  11248. \****************************************************************/
  11249. /*! no static exports found */
  11250. /***/ (function(module, exports) {
  11251. /**
  11252. * The base implementation of `_.property` without support for deep paths.
  11253. *
  11254. * @private
  11255. * @param {string} key The key of the property to get.
  11256. * @returns {Function} Returns the new accessor function.
  11257. */
  11258. function baseProperty(key) {
  11259. return function(object) {
  11260. return object == null ? undefined : object[key];
  11261. };
  11262. }
  11263. module.exports = baseProperty;
  11264. /***/ }),
  11265. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  11266. /*!********************************************************************!*\
  11267. !*** E:/Repos/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  11268. \********************************************************************/
  11269. /*! no static exports found */
  11270. /***/ (function(module, exports, __webpack_require__) {
  11271. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  11272. /**
  11273. * A specialized version of `baseProperty` which supports deep paths.
  11274. *
  11275. * @private
  11276. * @param {Array|string} path The path of the property to get.
  11277. * @returns {Function} Returns the new accessor function.
  11278. */
  11279. function basePropertyDeep(path) {
  11280. return function(object) {
  11281. return baseGet(object, path);
  11282. };
  11283. }
  11284. module.exports = basePropertyDeep;
  11285. /***/ }),
  11286. /***/ "../../node_modules/lodash/_baseRange.js":
  11287. /*!*************************************************************!*\
  11288. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseRange.js ***!
  11289. \*************************************************************/
  11290. /*! no static exports found */
  11291. /***/ (function(module, exports) {
  11292. /* Built-in method references for those with the same name as other `lodash` methods. */
  11293. var nativeCeil = Math.ceil,
  11294. nativeMax = Math.max;
  11295. /**
  11296. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  11297. * coerce arguments.
  11298. *
  11299. * @private
  11300. * @param {number} start The start of the range.
  11301. * @param {number} end The end of the range.
  11302. * @param {number} step The value to increment or decrement by.
  11303. * @param {boolean} [fromRight] Specify iterating from right to left.
  11304. * @returns {Array} Returns the range of numbers.
  11305. */
  11306. function baseRange(start, end, step, fromRight) {
  11307. var index = -1,
  11308. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  11309. result = Array(length);
  11310. while (length--) {
  11311. result[fromRight ? length : ++index] = start;
  11312. start += step;
  11313. }
  11314. return result;
  11315. }
  11316. module.exports = baseRange;
  11317. /***/ }),
  11318. /***/ "../../node_modules/lodash/_baseReduce.js":
  11319. /*!**************************************************************!*\
  11320. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  11321. \**************************************************************/
  11322. /*! no static exports found */
  11323. /***/ (function(module, exports) {
  11324. /**
  11325. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  11326. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  11327. *
  11328. * @private
  11329. * @param {Array|Object} collection The collection to iterate over.
  11330. * @param {Function} iteratee The function invoked per iteration.
  11331. * @param {*} accumulator The initial value.
  11332. * @param {boolean} initAccum Specify using the first or last element of
  11333. * `collection` as the initial value.
  11334. * @param {Function} eachFunc The function to iterate over `collection`.
  11335. * @returns {*} Returns the accumulated value.
  11336. */
  11337. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  11338. eachFunc(collection, function(value, index, collection) {
  11339. accumulator = initAccum
  11340. ? (initAccum = false, value)
  11341. : iteratee(accumulator, value, index, collection);
  11342. });
  11343. return accumulator;
  11344. }
  11345. module.exports = baseReduce;
  11346. /***/ }),
  11347. /***/ "../../node_modules/lodash/_baseRest.js":
  11348. /*!************************************************************!*\
  11349. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseRest.js ***!
  11350. \************************************************************/
  11351. /*! no static exports found */
  11352. /***/ (function(module, exports, __webpack_require__) {
  11353. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  11354. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  11355. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  11356. /**
  11357. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  11358. *
  11359. * @private
  11360. * @param {Function} func The function to apply a rest parameter to.
  11361. * @param {number} [start=func.length-1] The start position of the rest parameter.
  11362. * @returns {Function} Returns the new function.
  11363. */
  11364. function baseRest(func, start) {
  11365. return setToString(overRest(func, start, identity), func + '');
  11366. }
  11367. module.exports = baseRest;
  11368. /***/ }),
  11369. /***/ "../../node_modules/lodash/_baseSet.js":
  11370. /*!***********************************************************!*\
  11371. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSet.js ***!
  11372. \***********************************************************/
  11373. /*! no static exports found */
  11374. /***/ (function(module, exports, __webpack_require__) {
  11375. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11376. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  11377. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  11378. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  11379. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  11380. /**
  11381. * The base implementation of `_.set`.
  11382. *
  11383. * @private
  11384. * @param {Object} object The object to modify.
  11385. * @param {Array|string} path The path of the property to set.
  11386. * @param {*} value The value to set.
  11387. * @param {Function} [customizer] The function to customize path creation.
  11388. * @returns {Object} Returns `object`.
  11389. */
  11390. function baseSet(object, path, value, customizer) {
  11391. if (!isObject(object)) {
  11392. return object;
  11393. }
  11394. path = castPath(path, object);
  11395. var index = -1,
  11396. length = path.length,
  11397. lastIndex = length - 1,
  11398. nested = object;
  11399. while (nested != null && ++index < length) {
  11400. var key = toKey(path[index]),
  11401. newValue = value;
  11402. if (index != lastIndex) {
  11403. var objValue = nested[key];
  11404. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11405. if (newValue === undefined) {
  11406. newValue = isObject(objValue)
  11407. ? objValue
  11408. : (isIndex(path[index + 1]) ? [] : {});
  11409. }
  11410. }
  11411. assignValue(nested, key, newValue);
  11412. nested = nested[key];
  11413. }
  11414. return object;
  11415. }
  11416. module.exports = baseSet;
  11417. /***/ }),
  11418. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11419. /*!*******************************************************************!*\
  11420. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11421. \*******************************************************************/
  11422. /*! no static exports found */
  11423. /***/ (function(module, exports, __webpack_require__) {
  11424. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11425. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11426. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11427. /**
  11428. * The base implementation of `setToString` without support for hot loop shorting.
  11429. *
  11430. * @private
  11431. * @param {Function} func The function to modify.
  11432. * @param {Function} string The `toString` result.
  11433. * @returns {Function} Returns `func`.
  11434. */
  11435. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11436. return defineProperty(func, 'toString', {
  11437. 'configurable': true,
  11438. 'enumerable': false,
  11439. 'value': constant(string),
  11440. 'writable': true
  11441. });
  11442. };
  11443. module.exports = baseSetToString;
  11444. /***/ }),
  11445. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11446. /*!**************************************************************!*\
  11447. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11448. \**************************************************************/
  11449. /*! no static exports found */
  11450. /***/ (function(module, exports) {
  11451. /**
  11452. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11453. * sort order of `array` and replaces criteria objects with their corresponding
  11454. * values.
  11455. *
  11456. * @private
  11457. * @param {Array} array The array to sort.
  11458. * @param {Function} comparer The function to define sort order.
  11459. * @returns {Array} Returns `array`.
  11460. */
  11461. function baseSortBy(array, comparer) {
  11462. var length = array.length;
  11463. array.sort(comparer);
  11464. while (length--) {
  11465. array[length] = array[length].value;
  11466. }
  11467. return array;
  11468. }
  11469. module.exports = baseSortBy;
  11470. /***/ }),
  11471. /***/ "../../node_modules/lodash/_baseTimes.js":
  11472. /*!*************************************************************!*\
  11473. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11474. \*************************************************************/
  11475. /*! no static exports found */
  11476. /***/ (function(module, exports) {
  11477. /**
  11478. * The base implementation of `_.times` without support for iteratee shorthands
  11479. * or max array length checks.
  11480. *
  11481. * @private
  11482. * @param {number} n The number of times to invoke `iteratee`.
  11483. * @param {Function} iteratee The function invoked per iteration.
  11484. * @returns {Array} Returns the array of results.
  11485. */
  11486. function baseTimes(n, iteratee) {
  11487. var index = -1,
  11488. result = Array(n);
  11489. while (++index < n) {
  11490. result[index] = iteratee(index);
  11491. }
  11492. return result;
  11493. }
  11494. module.exports = baseTimes;
  11495. /***/ }),
  11496. /***/ "../../node_modules/lodash/_baseToString.js":
  11497. /*!****************************************************************!*\
  11498. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11499. \****************************************************************/
  11500. /*! no static exports found */
  11501. /***/ (function(module, exports, __webpack_require__) {
  11502. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11503. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11504. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11505. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11506. /** Used as references for various `Number` constants. */
  11507. var INFINITY = 1 / 0;
  11508. /** Used to convert symbols to primitives and strings. */
  11509. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11510. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11511. /**
  11512. * The base implementation of `_.toString` which doesn't convert nullish
  11513. * values to empty strings.
  11514. *
  11515. * @private
  11516. * @param {*} value The value to process.
  11517. * @returns {string} Returns the string.
  11518. */
  11519. function baseToString(value) {
  11520. // Exit early for strings to avoid a performance hit in some environments.
  11521. if (typeof value == 'string') {
  11522. return value;
  11523. }
  11524. if (isArray(value)) {
  11525. // Recursively convert values (susceptible to call stack limits).
  11526. return arrayMap(value, baseToString) + '';
  11527. }
  11528. if (isSymbol(value)) {
  11529. return symbolToString ? symbolToString.call(value) : '';
  11530. }
  11531. var result = (value + '');
  11532. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11533. }
  11534. module.exports = baseToString;
  11535. /***/ }),
  11536. /***/ "../../node_modules/lodash/_baseUnary.js":
  11537. /*!*************************************************************!*\
  11538. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11539. \*************************************************************/
  11540. /*! no static exports found */
  11541. /***/ (function(module, exports) {
  11542. /**
  11543. * The base implementation of `_.unary` without support for storing metadata.
  11544. *
  11545. * @private
  11546. * @param {Function} func The function to cap arguments for.
  11547. * @returns {Function} Returns the new capped function.
  11548. */
  11549. function baseUnary(func) {
  11550. return function(value) {
  11551. return func(value);
  11552. };
  11553. }
  11554. module.exports = baseUnary;
  11555. /***/ }),
  11556. /***/ "../../node_modules/lodash/_baseUniq.js":
  11557. /*!************************************************************!*\
  11558. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11559. \************************************************************/
  11560. /*! no static exports found */
  11561. /***/ (function(module, exports, __webpack_require__) {
  11562. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11563. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11564. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11565. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11566. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11567. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11568. /** Used as the size to enable large array optimizations. */
  11569. var LARGE_ARRAY_SIZE = 200;
  11570. /**
  11571. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11572. *
  11573. * @private
  11574. * @param {Array} array The array to inspect.
  11575. * @param {Function} [iteratee] The iteratee invoked per element.
  11576. * @param {Function} [comparator] The comparator invoked per element.
  11577. * @returns {Array} Returns the new duplicate free array.
  11578. */
  11579. function baseUniq(array, iteratee, comparator) {
  11580. var index = -1,
  11581. includes = arrayIncludes,
  11582. length = array.length,
  11583. isCommon = true,
  11584. result = [],
  11585. seen = result;
  11586. if (comparator) {
  11587. isCommon = false;
  11588. includes = arrayIncludesWith;
  11589. }
  11590. else if (length >= LARGE_ARRAY_SIZE) {
  11591. var set = iteratee ? null : createSet(array);
  11592. if (set) {
  11593. return setToArray(set);
  11594. }
  11595. isCommon = false;
  11596. includes = cacheHas;
  11597. seen = new SetCache;
  11598. }
  11599. else {
  11600. seen = iteratee ? [] : result;
  11601. }
  11602. outer:
  11603. while (++index < length) {
  11604. var value = array[index],
  11605. computed = iteratee ? iteratee(value) : value;
  11606. value = (comparator || value !== 0) ? value : 0;
  11607. if (isCommon && computed === computed) {
  11608. var seenIndex = seen.length;
  11609. while (seenIndex--) {
  11610. if (seen[seenIndex] === computed) {
  11611. continue outer;
  11612. }
  11613. }
  11614. if (iteratee) {
  11615. seen.push(computed);
  11616. }
  11617. result.push(value);
  11618. }
  11619. else if (!includes(seen, computed, comparator)) {
  11620. if (seen !== result) {
  11621. seen.push(computed);
  11622. }
  11623. result.push(value);
  11624. }
  11625. }
  11626. return result;
  11627. }
  11628. module.exports = baseUniq;
  11629. /***/ }),
  11630. /***/ "../../node_modules/lodash/_baseValues.js":
  11631. /*!**************************************************************!*\
  11632. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11633. \**************************************************************/
  11634. /*! no static exports found */
  11635. /***/ (function(module, exports, __webpack_require__) {
  11636. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11637. /**
  11638. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11639. * array of `object` property values corresponding to the property names
  11640. * of `props`.
  11641. *
  11642. * @private
  11643. * @param {Object} object The object to query.
  11644. * @param {Array} props The property names to get values for.
  11645. * @returns {Object} Returns the array of property values.
  11646. */
  11647. function baseValues(object, props) {
  11648. return arrayMap(props, function(key) {
  11649. return object[key];
  11650. });
  11651. }
  11652. module.exports = baseValues;
  11653. /***/ }),
  11654. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11655. /*!*****************************************************************!*\
  11656. !*** E:/Repos/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11657. \*****************************************************************/
  11658. /*! no static exports found */
  11659. /***/ (function(module, exports) {
  11660. /**
  11661. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11662. *
  11663. * @private
  11664. * @param {Array} props The property identifiers.
  11665. * @param {Array} values The property values.
  11666. * @param {Function} assignFunc The function to assign values.
  11667. * @returns {Object} Returns the new object.
  11668. */
  11669. function baseZipObject(props, values, assignFunc) {
  11670. var index = -1,
  11671. length = props.length,
  11672. valsLength = values.length,
  11673. result = {};
  11674. while (++index < length) {
  11675. var value = index < valsLength ? values[index] : undefined;
  11676. assignFunc(result, props[index], value);
  11677. }
  11678. return result;
  11679. }
  11680. module.exports = baseZipObject;
  11681. /***/ }),
  11682. /***/ "../../node_modules/lodash/_cacheHas.js":
  11683. /*!************************************************************!*\
  11684. !*** E:/Repos/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11685. \************************************************************/
  11686. /*! no static exports found */
  11687. /***/ (function(module, exports) {
  11688. /**
  11689. * Checks if a `cache` value for `key` exists.
  11690. *
  11691. * @private
  11692. * @param {Object} cache The cache to query.
  11693. * @param {string} key The key of the entry to check.
  11694. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11695. */
  11696. function cacheHas(cache, key) {
  11697. return cache.has(key);
  11698. }
  11699. module.exports = cacheHas;
  11700. /***/ }),
  11701. /***/ "../../node_modules/lodash/_castFunction.js":
  11702. /*!****************************************************************!*\
  11703. !*** E:/Repos/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11704. \****************************************************************/
  11705. /*! no static exports found */
  11706. /***/ (function(module, exports, __webpack_require__) {
  11707. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11708. /**
  11709. * Casts `value` to `identity` if it's not a function.
  11710. *
  11711. * @private
  11712. * @param {*} value The value to inspect.
  11713. * @returns {Function} Returns cast function.
  11714. */
  11715. function castFunction(value) {
  11716. return typeof value == 'function' ? value : identity;
  11717. }
  11718. module.exports = castFunction;
  11719. /***/ }),
  11720. /***/ "../../node_modules/lodash/_castPath.js":
  11721. /*!************************************************************!*\
  11722. !*** E:/Repos/Babylon.js/node_modules/lodash/_castPath.js ***!
  11723. \************************************************************/
  11724. /*! no static exports found */
  11725. /***/ (function(module, exports, __webpack_require__) {
  11726. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11727. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11728. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11729. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11730. /**
  11731. * Casts `value` to a path array if it's not one.
  11732. *
  11733. * @private
  11734. * @param {*} value The value to inspect.
  11735. * @param {Object} [object] The object to query keys on.
  11736. * @returns {Array} Returns the cast property path array.
  11737. */
  11738. function castPath(value, object) {
  11739. if (isArray(value)) {
  11740. return value;
  11741. }
  11742. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11743. }
  11744. module.exports = castPath;
  11745. /***/ }),
  11746. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11747. /*!********************************************************************!*\
  11748. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11749. \********************************************************************/
  11750. /*! no static exports found */
  11751. /***/ (function(module, exports, __webpack_require__) {
  11752. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11753. /**
  11754. * Creates a clone of `arrayBuffer`.
  11755. *
  11756. * @private
  11757. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11758. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11759. */
  11760. function cloneArrayBuffer(arrayBuffer) {
  11761. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11762. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11763. return result;
  11764. }
  11765. module.exports = cloneArrayBuffer;
  11766. /***/ }),
  11767. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11768. /*!***************************************************************!*\
  11769. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11770. \***************************************************************/
  11771. /*! no static exports found */
  11772. /***/ (function(module, exports, __webpack_require__) {
  11773. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11774. /** Detect free variable `exports`. */
  11775. var freeExports = true && exports && !exports.nodeType && exports;
  11776. /** Detect free variable `module`. */
  11777. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11778. /** Detect the popular CommonJS extension `module.exports`. */
  11779. var moduleExports = freeModule && freeModule.exports === freeExports;
  11780. /** Built-in value references. */
  11781. var Buffer = moduleExports ? root.Buffer : undefined,
  11782. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11783. /**
  11784. * Creates a clone of `buffer`.
  11785. *
  11786. * @private
  11787. * @param {Buffer} buffer The buffer to clone.
  11788. * @param {boolean} [isDeep] Specify a deep clone.
  11789. * @returns {Buffer} Returns the cloned buffer.
  11790. */
  11791. function cloneBuffer(buffer, isDeep) {
  11792. if (isDeep) {
  11793. return buffer.slice();
  11794. }
  11795. var length = buffer.length,
  11796. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11797. buffer.copy(result);
  11798. return result;
  11799. }
  11800. module.exports = cloneBuffer;
  11801. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11802. /***/ }),
  11803. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11804. /*!*****************************************************************!*\
  11805. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11806. \*****************************************************************/
  11807. /*! no static exports found */
  11808. /***/ (function(module, exports, __webpack_require__) {
  11809. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11810. /**
  11811. * Creates a clone of `dataView`.
  11812. *
  11813. * @private
  11814. * @param {Object} dataView The data view to clone.
  11815. * @param {boolean} [isDeep] Specify a deep clone.
  11816. * @returns {Object} Returns the cloned data view.
  11817. */
  11818. function cloneDataView(dataView, isDeep) {
  11819. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11820. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11821. }
  11822. module.exports = cloneDataView;
  11823. /***/ }),
  11824. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11825. /*!***************************************************************!*\
  11826. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11827. \***************************************************************/
  11828. /*! no static exports found */
  11829. /***/ (function(module, exports) {
  11830. /** Used to match `RegExp` flags from their coerced string values. */
  11831. var reFlags = /\w*$/;
  11832. /**
  11833. * Creates a clone of `regexp`.
  11834. *
  11835. * @private
  11836. * @param {Object} regexp The regexp to clone.
  11837. * @returns {Object} Returns the cloned regexp.
  11838. */
  11839. function cloneRegExp(regexp) {
  11840. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11841. result.lastIndex = regexp.lastIndex;
  11842. return result;
  11843. }
  11844. module.exports = cloneRegExp;
  11845. /***/ }),
  11846. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11847. /*!***************************************************************!*\
  11848. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11849. \***************************************************************/
  11850. /*! no static exports found */
  11851. /***/ (function(module, exports, __webpack_require__) {
  11852. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11853. /** Used to convert symbols to primitives and strings. */
  11854. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11855. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11856. /**
  11857. * Creates a clone of the `symbol` object.
  11858. *
  11859. * @private
  11860. * @param {Object} symbol The symbol object to clone.
  11861. * @returns {Object} Returns the cloned symbol object.
  11862. */
  11863. function cloneSymbol(symbol) {
  11864. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11865. }
  11866. module.exports = cloneSymbol;
  11867. /***/ }),
  11868. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11869. /*!*******************************************************************!*\
  11870. !*** E:/Repos/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11871. \*******************************************************************/
  11872. /*! no static exports found */
  11873. /***/ (function(module, exports, __webpack_require__) {
  11874. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11875. /**
  11876. * Creates a clone of `typedArray`.
  11877. *
  11878. * @private
  11879. * @param {Object} typedArray The typed array to clone.
  11880. * @param {boolean} [isDeep] Specify a deep clone.
  11881. * @returns {Object} Returns the cloned typed array.
  11882. */
  11883. function cloneTypedArray(typedArray, isDeep) {
  11884. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11885. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11886. }
  11887. module.exports = cloneTypedArray;
  11888. /***/ }),
  11889. /***/ "../../node_modules/lodash/_compareAscending.js":
  11890. /*!********************************************************************!*\
  11891. !*** E:/Repos/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11892. \********************************************************************/
  11893. /*! no static exports found */
  11894. /***/ (function(module, exports, __webpack_require__) {
  11895. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11896. /**
  11897. * Compares values to sort them in ascending order.
  11898. *
  11899. * @private
  11900. * @param {*} value The value to compare.
  11901. * @param {*} other The other value to compare.
  11902. * @returns {number} Returns the sort order indicator for `value`.
  11903. */
  11904. function compareAscending(value, other) {
  11905. if (value !== other) {
  11906. var valIsDefined = value !== undefined,
  11907. valIsNull = value === null,
  11908. valIsReflexive = value === value,
  11909. valIsSymbol = isSymbol(value);
  11910. var othIsDefined = other !== undefined,
  11911. othIsNull = other === null,
  11912. othIsReflexive = other === other,
  11913. othIsSymbol = isSymbol(other);
  11914. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11915. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11916. (valIsNull && othIsDefined && othIsReflexive) ||
  11917. (!valIsDefined && othIsReflexive) ||
  11918. !valIsReflexive) {
  11919. return 1;
  11920. }
  11921. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11922. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11923. (othIsNull && valIsDefined && valIsReflexive) ||
  11924. (!othIsDefined && valIsReflexive) ||
  11925. !othIsReflexive) {
  11926. return -1;
  11927. }
  11928. }
  11929. return 0;
  11930. }
  11931. module.exports = compareAscending;
  11932. /***/ }),
  11933. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11934. /*!*******************************************************************!*\
  11935. !*** E:/Repos/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11936. \*******************************************************************/
  11937. /*! no static exports found */
  11938. /***/ (function(module, exports, __webpack_require__) {
  11939. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11940. /**
  11941. * Used by `_.orderBy` to compare multiple properties of a value to another
  11942. * and stable sort them.
  11943. *
  11944. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11945. * specify an order of "desc" for descending or "asc" for ascending sort order
  11946. * of corresponding values.
  11947. *
  11948. * @private
  11949. * @param {Object} object The object to compare.
  11950. * @param {Object} other The other object to compare.
  11951. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11952. * @returns {number} Returns the sort order indicator for `object`.
  11953. */
  11954. function compareMultiple(object, other, orders) {
  11955. var index = -1,
  11956. objCriteria = object.criteria,
  11957. othCriteria = other.criteria,
  11958. length = objCriteria.length,
  11959. ordersLength = orders.length;
  11960. while (++index < length) {
  11961. var result = compareAscending(objCriteria[index], othCriteria[index]);
  11962. if (result) {
  11963. if (index >= ordersLength) {
  11964. return result;
  11965. }
  11966. var order = orders[index];
  11967. return result * (order == 'desc' ? -1 : 1);
  11968. }
  11969. }
  11970. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  11971. // that causes it, under certain circumstances, to provide the same value for
  11972. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  11973. // for more details.
  11974. //
  11975. // This also ensures a stable sort in V8 and other engines.
  11976. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  11977. return object.index - other.index;
  11978. }
  11979. module.exports = compareMultiple;
  11980. /***/ }),
  11981. /***/ "../../node_modules/lodash/_copyArray.js":
  11982. /*!*************************************************************!*\
  11983. !*** E:/Repos/Babylon.js/node_modules/lodash/_copyArray.js ***!
  11984. \*************************************************************/
  11985. /*! no static exports found */
  11986. /***/ (function(module, exports) {
  11987. /**
  11988. * Copies the values of `source` to `array`.
  11989. *
  11990. * @private
  11991. * @param {Array} source The array to copy values from.
  11992. * @param {Array} [array=[]] The array to copy values to.
  11993. * @returns {Array} Returns `array`.
  11994. */
  11995. function copyArray(source, array) {
  11996. var index = -1,
  11997. length = source.length;
  11998. array || (array = Array(length));
  11999. while (++index < length) {
  12000. array[index] = source[index];
  12001. }
  12002. return array;
  12003. }
  12004. module.exports = copyArray;
  12005. /***/ }),
  12006. /***/ "../../node_modules/lodash/_copyObject.js":
  12007. /*!**************************************************************!*\
  12008. !*** E:/Repos/Babylon.js/node_modules/lodash/_copyObject.js ***!
  12009. \**************************************************************/
  12010. /*! no static exports found */
  12011. /***/ (function(module, exports, __webpack_require__) {
  12012. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  12013. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  12014. /**
  12015. * Copies properties of `source` to `object`.
  12016. *
  12017. * @private
  12018. * @param {Object} source The object to copy properties from.
  12019. * @param {Array} props The property identifiers to copy.
  12020. * @param {Object} [object={}] The object to copy properties to.
  12021. * @param {Function} [customizer] The function to customize copied values.
  12022. * @returns {Object} Returns `object`.
  12023. */
  12024. function copyObject(source, props, object, customizer) {
  12025. var isNew = !object;
  12026. object || (object = {});
  12027. var index = -1,
  12028. length = props.length;
  12029. while (++index < length) {
  12030. var key = props[index];
  12031. var newValue = customizer
  12032. ? customizer(object[key], source[key], key, object, source)
  12033. : undefined;
  12034. if (newValue === undefined) {
  12035. newValue = source[key];
  12036. }
  12037. if (isNew) {
  12038. baseAssignValue(object, key, newValue);
  12039. } else {
  12040. assignValue(object, key, newValue);
  12041. }
  12042. }
  12043. return object;
  12044. }
  12045. module.exports = copyObject;
  12046. /***/ }),
  12047. /***/ "../../node_modules/lodash/_copySymbols.js":
  12048. /*!***************************************************************!*\
  12049. !*** E:/Repos/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  12050. \***************************************************************/
  12051. /*! no static exports found */
  12052. /***/ (function(module, exports, __webpack_require__) {
  12053. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12054. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  12055. /**
  12056. * Copies own symbols of `source` to `object`.
  12057. *
  12058. * @private
  12059. * @param {Object} source The object to copy symbols from.
  12060. * @param {Object} [object={}] The object to copy symbols to.
  12061. * @returns {Object} Returns `object`.
  12062. */
  12063. function copySymbols(source, object) {
  12064. return copyObject(source, getSymbols(source), object);
  12065. }
  12066. module.exports = copySymbols;
  12067. /***/ }),
  12068. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  12069. /*!*****************************************************************!*\
  12070. !*** E:/Repos/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  12071. \*****************************************************************/
  12072. /*! no static exports found */
  12073. /***/ (function(module, exports, __webpack_require__) {
  12074. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  12075. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  12076. /**
  12077. * Copies own and inherited symbols of `source` to `object`.
  12078. *
  12079. * @private
  12080. * @param {Object} source The object to copy symbols from.
  12081. * @param {Object} [object={}] The object to copy symbols to.
  12082. * @returns {Object} Returns `object`.
  12083. */
  12084. function copySymbolsIn(source, object) {
  12085. return copyObject(source, getSymbolsIn(source), object);
  12086. }
  12087. module.exports = copySymbolsIn;
  12088. /***/ }),
  12089. /***/ "../../node_modules/lodash/_coreJsData.js":
  12090. /*!**************************************************************!*\
  12091. !*** E:/Repos/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  12092. \**************************************************************/
  12093. /*! no static exports found */
  12094. /***/ (function(module, exports, __webpack_require__) {
  12095. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  12096. /** Used to detect overreaching core-js shims. */
  12097. var coreJsData = root['__core-js_shared__'];
  12098. module.exports = coreJsData;
  12099. /***/ }),
  12100. /***/ "../../node_modules/lodash/_createAssigner.js":
  12101. /*!******************************************************************!*\
  12102. !*** E:/Repos/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  12103. \******************************************************************/
  12104. /*! no static exports found */
  12105. /***/ (function(module, exports, __webpack_require__) {
  12106. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  12107. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  12108. /**
  12109. * Creates a function like `_.assign`.
  12110. *
  12111. * @private
  12112. * @param {Function} assigner The function to assign values.
  12113. * @returns {Function} Returns the new assigner function.
  12114. */
  12115. function createAssigner(assigner) {
  12116. return baseRest(function(object, sources) {
  12117. var index = -1,
  12118. length = sources.length,
  12119. customizer = length > 1 ? sources[length - 1] : undefined,
  12120. guard = length > 2 ? sources[2] : undefined;
  12121. customizer = (assigner.length > 3 && typeof customizer == 'function')
  12122. ? (length--, customizer)
  12123. : undefined;
  12124. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  12125. customizer = length < 3 ? undefined : customizer;
  12126. length = 1;
  12127. }
  12128. object = Object(object);
  12129. while (++index < length) {
  12130. var source = sources[index];
  12131. if (source) {
  12132. assigner(object, source, index, customizer);
  12133. }
  12134. }
  12135. return object;
  12136. });
  12137. }
  12138. module.exports = createAssigner;
  12139. /***/ }),
  12140. /***/ "../../node_modules/lodash/_createBaseEach.js":
  12141. /*!******************************************************************!*\
  12142. !*** E:/Repos/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  12143. \******************************************************************/
  12144. /*! no static exports found */
  12145. /***/ (function(module, exports, __webpack_require__) {
  12146. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  12147. /**
  12148. * Creates a `baseEach` or `baseEachRight` function.
  12149. *
  12150. * @private
  12151. * @param {Function} eachFunc The function to iterate over a collection.
  12152. * @param {boolean} [fromRight] Specify iterating from right to left.
  12153. * @returns {Function} Returns the new base function.
  12154. */
  12155. function createBaseEach(eachFunc, fromRight) {
  12156. return function(collection, iteratee) {
  12157. if (collection == null) {
  12158. return collection;
  12159. }
  12160. if (!isArrayLike(collection)) {
  12161. return eachFunc(collection, iteratee);
  12162. }
  12163. var length = collection.length,
  12164. index = fromRight ? length : -1,
  12165. iterable = Object(collection);
  12166. while ((fromRight ? index-- : ++index < length)) {
  12167. if (iteratee(iterable[index], index, iterable) === false) {
  12168. break;
  12169. }
  12170. }
  12171. return collection;
  12172. };
  12173. }
  12174. module.exports = createBaseEach;
  12175. /***/ }),
  12176. /***/ "../../node_modules/lodash/_createBaseFor.js":
  12177. /*!*****************************************************************!*\
  12178. !*** E:/Repos/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  12179. \*****************************************************************/
  12180. /*! no static exports found */
  12181. /***/ (function(module, exports) {
  12182. /**
  12183. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  12184. *
  12185. * @private
  12186. * @param {boolean} [fromRight] Specify iterating from right to left.
  12187. * @returns {Function} Returns the new base function.
  12188. */
  12189. function createBaseFor(fromRight) {
  12190. return function(object, iteratee, keysFunc) {
  12191. var index = -1,
  12192. iterable = Object(object),
  12193. props = keysFunc(object),
  12194. length = props.length;
  12195. while (length--) {
  12196. var key = props[fromRight ? length : ++index];
  12197. if (iteratee(iterable[key], key, iterable) === false) {
  12198. break;
  12199. }
  12200. }
  12201. return object;
  12202. };
  12203. }
  12204. module.exports = createBaseFor;
  12205. /***/ }),
  12206. /***/ "../../node_modules/lodash/_createFind.js":
  12207. /*!**************************************************************!*\
  12208. !*** E:/Repos/Babylon.js/node_modules/lodash/_createFind.js ***!
  12209. \**************************************************************/
  12210. /*! no static exports found */
  12211. /***/ (function(module, exports, __webpack_require__) {
  12212. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  12213. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12214. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12215. /**
  12216. * Creates a `_.find` or `_.findLast` function.
  12217. *
  12218. * @private
  12219. * @param {Function} findIndexFunc The function to find the collection index.
  12220. * @returns {Function} Returns the new find function.
  12221. */
  12222. function createFind(findIndexFunc) {
  12223. return function(collection, predicate, fromIndex) {
  12224. var iterable = Object(collection);
  12225. if (!isArrayLike(collection)) {
  12226. var iteratee = baseIteratee(predicate, 3);
  12227. collection = keys(collection);
  12228. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  12229. }
  12230. var index = findIndexFunc(collection, predicate, fromIndex);
  12231. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  12232. };
  12233. }
  12234. module.exports = createFind;
  12235. /***/ }),
  12236. /***/ "../../node_modules/lodash/_createRange.js":
  12237. /*!***************************************************************!*\
  12238. !*** E:/Repos/Babylon.js/node_modules/lodash/_createRange.js ***!
  12239. \***************************************************************/
  12240. /*! no static exports found */
  12241. /***/ (function(module, exports, __webpack_require__) {
  12242. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  12243. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  12244. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  12245. /**
  12246. * Creates a `_.range` or `_.rangeRight` function.
  12247. *
  12248. * @private
  12249. * @param {boolean} [fromRight] Specify iterating from right to left.
  12250. * @returns {Function} Returns the new range function.
  12251. */
  12252. function createRange(fromRight) {
  12253. return function(start, end, step) {
  12254. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  12255. end = step = undefined;
  12256. }
  12257. // Ensure the sign of `-0` is preserved.
  12258. start = toFinite(start);
  12259. if (end === undefined) {
  12260. end = start;
  12261. start = 0;
  12262. } else {
  12263. end = toFinite(end);
  12264. }
  12265. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  12266. return baseRange(start, end, step, fromRight);
  12267. };
  12268. }
  12269. module.exports = createRange;
  12270. /***/ }),
  12271. /***/ "../../node_modules/lodash/_createSet.js":
  12272. /*!*************************************************************!*\
  12273. !*** E:/Repos/Babylon.js/node_modules/lodash/_createSet.js ***!
  12274. \*************************************************************/
  12275. /*! no static exports found */
  12276. /***/ (function(module, exports, __webpack_require__) {
  12277. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12278. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  12279. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12280. /** Used as references for various `Number` constants. */
  12281. var INFINITY = 1 / 0;
  12282. /**
  12283. * Creates a set object of `values`.
  12284. *
  12285. * @private
  12286. * @param {Array} values The values to add to the set.
  12287. * @returns {Object} Returns the new set.
  12288. */
  12289. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  12290. return new Set(values);
  12291. };
  12292. module.exports = createSet;
  12293. /***/ }),
  12294. /***/ "../../node_modules/lodash/_defineProperty.js":
  12295. /*!******************************************************************!*\
  12296. !*** E:/Repos/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  12297. \******************************************************************/
  12298. /*! no static exports found */
  12299. /***/ (function(module, exports, __webpack_require__) {
  12300. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  12301. var defineProperty = (function() {
  12302. try {
  12303. var func = getNative(Object, 'defineProperty');
  12304. func({}, '', {});
  12305. return func;
  12306. } catch (e) {}
  12307. }());
  12308. module.exports = defineProperty;
  12309. /***/ }),
  12310. /***/ "../../node_modules/lodash/_equalArrays.js":
  12311. /*!***************************************************************!*\
  12312. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  12313. \***************************************************************/
  12314. /*! no static exports found */
  12315. /***/ (function(module, exports, __webpack_require__) {
  12316. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  12317. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  12318. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  12319. /** Used to compose bitmasks for value comparisons. */
  12320. var COMPARE_PARTIAL_FLAG = 1,
  12321. COMPARE_UNORDERED_FLAG = 2;
  12322. /**
  12323. * A specialized version of `baseIsEqualDeep` for arrays with support for
  12324. * partial deep comparisons.
  12325. *
  12326. * @private
  12327. * @param {Array} array The array to compare.
  12328. * @param {Array} other The other array to compare.
  12329. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12330. * @param {Function} customizer The function to customize comparisons.
  12331. * @param {Function} equalFunc The function to determine equivalents of values.
  12332. * @param {Object} stack Tracks traversed `array` and `other` objects.
  12333. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  12334. */
  12335. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  12336. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12337. arrLength = array.length,
  12338. othLength = other.length;
  12339. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  12340. return false;
  12341. }
  12342. // Assume cyclic values are equal.
  12343. var stacked = stack.get(array);
  12344. if (stacked && stack.get(other)) {
  12345. return stacked == other;
  12346. }
  12347. var index = -1,
  12348. result = true,
  12349. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  12350. stack.set(array, other);
  12351. stack.set(other, array);
  12352. // Ignore non-index properties.
  12353. while (++index < arrLength) {
  12354. var arrValue = array[index],
  12355. othValue = other[index];
  12356. if (customizer) {
  12357. var compared = isPartial
  12358. ? customizer(othValue, arrValue, index, other, array, stack)
  12359. : customizer(arrValue, othValue, index, array, other, stack);
  12360. }
  12361. if (compared !== undefined) {
  12362. if (compared) {
  12363. continue;
  12364. }
  12365. result = false;
  12366. break;
  12367. }
  12368. // Recursively compare arrays (susceptible to call stack limits).
  12369. if (seen) {
  12370. if (!arraySome(other, function(othValue, othIndex) {
  12371. if (!cacheHas(seen, othIndex) &&
  12372. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  12373. return seen.push(othIndex);
  12374. }
  12375. })) {
  12376. result = false;
  12377. break;
  12378. }
  12379. } else if (!(
  12380. arrValue === othValue ||
  12381. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  12382. )) {
  12383. result = false;
  12384. break;
  12385. }
  12386. }
  12387. stack['delete'](array);
  12388. stack['delete'](other);
  12389. return result;
  12390. }
  12391. module.exports = equalArrays;
  12392. /***/ }),
  12393. /***/ "../../node_modules/lodash/_equalByTag.js":
  12394. /*!**************************************************************!*\
  12395. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12396. \**************************************************************/
  12397. /*! no static exports found */
  12398. /***/ (function(module, exports, __webpack_require__) {
  12399. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12400. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12401. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12402. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12403. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12404. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12405. /** Used to compose bitmasks for value comparisons. */
  12406. var COMPARE_PARTIAL_FLAG = 1,
  12407. COMPARE_UNORDERED_FLAG = 2;
  12408. /** `Object#toString` result references. */
  12409. var boolTag = '[object Boolean]',
  12410. dateTag = '[object Date]',
  12411. errorTag = '[object Error]',
  12412. mapTag = '[object Map]',
  12413. numberTag = '[object Number]',
  12414. regexpTag = '[object RegExp]',
  12415. setTag = '[object Set]',
  12416. stringTag = '[object String]',
  12417. symbolTag = '[object Symbol]';
  12418. var arrayBufferTag = '[object ArrayBuffer]',
  12419. dataViewTag = '[object DataView]';
  12420. /** Used to convert symbols to primitives and strings. */
  12421. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12422. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12423. /**
  12424. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12425. * the same `toStringTag`.
  12426. *
  12427. * **Note:** This function only supports comparing values with tags of
  12428. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12429. *
  12430. * @private
  12431. * @param {Object} object The object to compare.
  12432. * @param {Object} other The other object to compare.
  12433. * @param {string} tag The `toStringTag` of the objects to compare.
  12434. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12435. * @param {Function} customizer The function to customize comparisons.
  12436. * @param {Function} equalFunc The function to determine equivalents of values.
  12437. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12438. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12439. */
  12440. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12441. switch (tag) {
  12442. case dataViewTag:
  12443. if ((object.byteLength != other.byteLength) ||
  12444. (object.byteOffset != other.byteOffset)) {
  12445. return false;
  12446. }
  12447. object = object.buffer;
  12448. other = other.buffer;
  12449. case arrayBufferTag:
  12450. if ((object.byteLength != other.byteLength) ||
  12451. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12452. return false;
  12453. }
  12454. return true;
  12455. case boolTag:
  12456. case dateTag:
  12457. case numberTag:
  12458. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12459. // Invalid dates are coerced to `NaN`.
  12460. return eq(+object, +other);
  12461. case errorTag:
  12462. return object.name == other.name && object.message == other.message;
  12463. case regexpTag:
  12464. case stringTag:
  12465. // Coerce regexes to strings and treat strings, primitives and objects,
  12466. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12467. // for more details.
  12468. return object == (other + '');
  12469. case mapTag:
  12470. var convert = mapToArray;
  12471. case setTag:
  12472. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12473. convert || (convert = setToArray);
  12474. if (object.size != other.size && !isPartial) {
  12475. return false;
  12476. }
  12477. // Assume cyclic values are equal.
  12478. var stacked = stack.get(object);
  12479. if (stacked) {
  12480. return stacked == other;
  12481. }
  12482. bitmask |= COMPARE_UNORDERED_FLAG;
  12483. // Recursively compare objects (susceptible to call stack limits).
  12484. stack.set(object, other);
  12485. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12486. stack['delete'](object);
  12487. return result;
  12488. case symbolTag:
  12489. if (symbolValueOf) {
  12490. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12491. }
  12492. }
  12493. return false;
  12494. }
  12495. module.exports = equalByTag;
  12496. /***/ }),
  12497. /***/ "../../node_modules/lodash/_equalObjects.js":
  12498. /*!****************************************************************!*\
  12499. !*** E:/Repos/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12500. \****************************************************************/
  12501. /*! no static exports found */
  12502. /***/ (function(module, exports, __webpack_require__) {
  12503. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12504. /** Used to compose bitmasks for value comparisons. */
  12505. var COMPARE_PARTIAL_FLAG = 1;
  12506. /** Used for built-in method references. */
  12507. var objectProto = Object.prototype;
  12508. /** Used to check objects for own properties. */
  12509. var hasOwnProperty = objectProto.hasOwnProperty;
  12510. /**
  12511. * A specialized version of `baseIsEqualDeep` for objects with support for
  12512. * partial deep comparisons.
  12513. *
  12514. * @private
  12515. * @param {Object} object The object to compare.
  12516. * @param {Object} other The other object to compare.
  12517. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12518. * @param {Function} customizer The function to customize comparisons.
  12519. * @param {Function} equalFunc The function to determine equivalents of values.
  12520. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12521. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12522. */
  12523. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12524. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12525. objProps = getAllKeys(object),
  12526. objLength = objProps.length,
  12527. othProps = getAllKeys(other),
  12528. othLength = othProps.length;
  12529. if (objLength != othLength && !isPartial) {
  12530. return false;
  12531. }
  12532. var index = objLength;
  12533. while (index--) {
  12534. var key = objProps[index];
  12535. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12536. return false;
  12537. }
  12538. }
  12539. // Assume cyclic values are equal.
  12540. var stacked = stack.get(object);
  12541. if (stacked && stack.get(other)) {
  12542. return stacked == other;
  12543. }
  12544. var result = true;
  12545. stack.set(object, other);
  12546. stack.set(other, object);
  12547. var skipCtor = isPartial;
  12548. while (++index < objLength) {
  12549. key = objProps[index];
  12550. var objValue = object[key],
  12551. othValue = other[key];
  12552. if (customizer) {
  12553. var compared = isPartial
  12554. ? customizer(othValue, objValue, key, other, object, stack)
  12555. : customizer(objValue, othValue, key, object, other, stack);
  12556. }
  12557. // Recursively compare objects (susceptible to call stack limits).
  12558. if (!(compared === undefined
  12559. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12560. : compared
  12561. )) {
  12562. result = false;
  12563. break;
  12564. }
  12565. skipCtor || (skipCtor = key == 'constructor');
  12566. }
  12567. if (result && !skipCtor) {
  12568. var objCtor = object.constructor,
  12569. othCtor = other.constructor;
  12570. // Non `Object` object instances with different constructors are not equal.
  12571. if (objCtor != othCtor &&
  12572. ('constructor' in object && 'constructor' in other) &&
  12573. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12574. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12575. result = false;
  12576. }
  12577. }
  12578. stack['delete'](object);
  12579. stack['delete'](other);
  12580. return result;
  12581. }
  12582. module.exports = equalObjects;
  12583. /***/ }),
  12584. /***/ "../../node_modules/lodash/_flatRest.js":
  12585. /*!************************************************************!*\
  12586. !*** E:/Repos/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12587. \************************************************************/
  12588. /*! no static exports found */
  12589. /***/ (function(module, exports, __webpack_require__) {
  12590. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12591. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12592. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12593. /**
  12594. * A specialized version of `baseRest` which flattens the rest array.
  12595. *
  12596. * @private
  12597. * @param {Function} func The function to apply a rest parameter to.
  12598. * @returns {Function} Returns the new function.
  12599. */
  12600. function flatRest(func) {
  12601. return setToString(overRest(func, undefined, flatten), func + '');
  12602. }
  12603. module.exports = flatRest;
  12604. /***/ }),
  12605. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12606. /*!**************************************************************!*\
  12607. !*** E:/Repos/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12608. \**************************************************************/
  12609. /*! no static exports found */
  12610. /***/ (function(module, exports, __webpack_require__) {
  12611. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12612. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12613. module.exports = freeGlobal;
  12614. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12615. /***/ }),
  12616. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12617. /*!**************************************************************!*\
  12618. !*** E:/Repos/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12619. \**************************************************************/
  12620. /*! no static exports found */
  12621. /***/ (function(module, exports, __webpack_require__) {
  12622. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12623. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12624. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12625. /**
  12626. * Creates an array of own enumerable property names and symbols of `object`.
  12627. *
  12628. * @private
  12629. * @param {Object} object The object to query.
  12630. * @returns {Array} Returns the array of property names and symbols.
  12631. */
  12632. function getAllKeys(object) {
  12633. return baseGetAllKeys(object, keys, getSymbols);
  12634. }
  12635. module.exports = getAllKeys;
  12636. /***/ }),
  12637. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12638. /*!****************************************************************!*\
  12639. !*** E:/Repos/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12640. \****************************************************************/
  12641. /*! no static exports found */
  12642. /***/ (function(module, exports, __webpack_require__) {
  12643. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12644. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12645. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12646. /**
  12647. * Creates an array of own and inherited enumerable property names and
  12648. * symbols of `object`.
  12649. *
  12650. * @private
  12651. * @param {Object} object The object to query.
  12652. * @returns {Array} Returns the array of property names and symbols.
  12653. */
  12654. function getAllKeysIn(object) {
  12655. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12656. }
  12657. module.exports = getAllKeysIn;
  12658. /***/ }),
  12659. /***/ "../../node_modules/lodash/_getMapData.js":
  12660. /*!**************************************************************!*\
  12661. !*** E:/Repos/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12662. \**************************************************************/
  12663. /*! no static exports found */
  12664. /***/ (function(module, exports, __webpack_require__) {
  12665. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12666. /**
  12667. * Gets the data for `map`.
  12668. *
  12669. * @private
  12670. * @param {Object} map The map to query.
  12671. * @param {string} key The reference key.
  12672. * @returns {*} Returns the map data.
  12673. */
  12674. function getMapData(map, key) {
  12675. var data = map.__data__;
  12676. return isKeyable(key)
  12677. ? data[typeof key == 'string' ? 'string' : 'hash']
  12678. : data.map;
  12679. }
  12680. module.exports = getMapData;
  12681. /***/ }),
  12682. /***/ "../../node_modules/lodash/_getMatchData.js":
  12683. /*!****************************************************************!*\
  12684. !*** E:/Repos/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12685. \****************************************************************/
  12686. /*! no static exports found */
  12687. /***/ (function(module, exports, __webpack_require__) {
  12688. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12689. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12690. /**
  12691. * Gets the property names, values, and compare flags of `object`.
  12692. *
  12693. * @private
  12694. * @param {Object} object The object to query.
  12695. * @returns {Array} Returns the match data of `object`.
  12696. */
  12697. function getMatchData(object) {
  12698. var result = keys(object),
  12699. length = result.length;
  12700. while (length--) {
  12701. var key = result[length],
  12702. value = object[key];
  12703. result[length] = [key, value, isStrictComparable(value)];
  12704. }
  12705. return result;
  12706. }
  12707. module.exports = getMatchData;
  12708. /***/ }),
  12709. /***/ "../../node_modules/lodash/_getNative.js":
  12710. /*!*************************************************************!*\
  12711. !*** E:/Repos/Babylon.js/node_modules/lodash/_getNative.js ***!
  12712. \*************************************************************/
  12713. /*! no static exports found */
  12714. /***/ (function(module, exports, __webpack_require__) {
  12715. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12716. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12717. /**
  12718. * Gets the native function at `key` of `object`.
  12719. *
  12720. * @private
  12721. * @param {Object} object The object to query.
  12722. * @param {string} key The key of the method to get.
  12723. * @returns {*} Returns the function if it's native, else `undefined`.
  12724. */
  12725. function getNative(object, key) {
  12726. var value = getValue(object, key);
  12727. return baseIsNative(value) ? value : undefined;
  12728. }
  12729. module.exports = getNative;
  12730. /***/ }),
  12731. /***/ "../../node_modules/lodash/_getPrototype.js":
  12732. /*!****************************************************************!*\
  12733. !*** E:/Repos/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12734. \****************************************************************/
  12735. /*! no static exports found */
  12736. /***/ (function(module, exports, __webpack_require__) {
  12737. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12738. /** Built-in value references. */
  12739. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12740. module.exports = getPrototype;
  12741. /***/ }),
  12742. /***/ "../../node_modules/lodash/_getRawTag.js":
  12743. /*!*************************************************************!*\
  12744. !*** E:/Repos/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12745. \*************************************************************/
  12746. /*! no static exports found */
  12747. /***/ (function(module, exports, __webpack_require__) {
  12748. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12749. /** Used for built-in method references. */
  12750. var objectProto = Object.prototype;
  12751. /** Used to check objects for own properties. */
  12752. var hasOwnProperty = objectProto.hasOwnProperty;
  12753. /**
  12754. * Used to resolve the
  12755. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12756. * of values.
  12757. */
  12758. var nativeObjectToString = objectProto.toString;
  12759. /** Built-in value references. */
  12760. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12761. /**
  12762. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12763. *
  12764. * @private
  12765. * @param {*} value The value to query.
  12766. * @returns {string} Returns the raw `toStringTag`.
  12767. */
  12768. function getRawTag(value) {
  12769. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12770. tag = value[symToStringTag];
  12771. try {
  12772. value[symToStringTag] = undefined;
  12773. var unmasked = true;
  12774. } catch (e) {}
  12775. var result = nativeObjectToString.call(value);
  12776. if (unmasked) {
  12777. if (isOwn) {
  12778. value[symToStringTag] = tag;
  12779. } else {
  12780. delete value[symToStringTag];
  12781. }
  12782. }
  12783. return result;
  12784. }
  12785. module.exports = getRawTag;
  12786. /***/ }),
  12787. /***/ "../../node_modules/lodash/_getSymbols.js":
  12788. /*!**************************************************************!*\
  12789. !*** E:/Repos/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12790. \**************************************************************/
  12791. /*! no static exports found */
  12792. /***/ (function(module, exports, __webpack_require__) {
  12793. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12794. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12795. /** Used for built-in method references. */
  12796. var objectProto = Object.prototype;
  12797. /** Built-in value references. */
  12798. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12799. /* Built-in method references for those with the same name as other `lodash` methods. */
  12800. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12801. /**
  12802. * Creates an array of the own enumerable symbols of `object`.
  12803. *
  12804. * @private
  12805. * @param {Object} object The object to query.
  12806. * @returns {Array} Returns the array of symbols.
  12807. */
  12808. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12809. if (object == null) {
  12810. return [];
  12811. }
  12812. object = Object(object);
  12813. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12814. return propertyIsEnumerable.call(object, symbol);
  12815. });
  12816. };
  12817. module.exports = getSymbols;
  12818. /***/ }),
  12819. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12820. /*!****************************************************************!*\
  12821. !*** E:/Repos/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12822. \****************************************************************/
  12823. /*! no static exports found */
  12824. /***/ (function(module, exports, __webpack_require__) {
  12825. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12826. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12827. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12828. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12829. /* Built-in method references for those with the same name as other `lodash` methods. */
  12830. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12831. /**
  12832. * Creates an array of the own and inherited enumerable symbols of `object`.
  12833. *
  12834. * @private
  12835. * @param {Object} object The object to query.
  12836. * @returns {Array} Returns the array of symbols.
  12837. */
  12838. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12839. var result = [];
  12840. while (object) {
  12841. arrayPush(result, getSymbols(object));
  12842. object = getPrototype(object);
  12843. }
  12844. return result;
  12845. };
  12846. module.exports = getSymbolsIn;
  12847. /***/ }),
  12848. /***/ "../../node_modules/lodash/_getTag.js":
  12849. /*!**********************************************************!*\
  12850. !*** E:/Repos/Babylon.js/node_modules/lodash/_getTag.js ***!
  12851. \**********************************************************/
  12852. /*! no static exports found */
  12853. /***/ (function(module, exports, __webpack_require__) {
  12854. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12855. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12856. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12857. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12858. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12859. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12860. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12861. /** `Object#toString` result references. */
  12862. var mapTag = '[object Map]',
  12863. objectTag = '[object Object]',
  12864. promiseTag = '[object Promise]',
  12865. setTag = '[object Set]',
  12866. weakMapTag = '[object WeakMap]';
  12867. var dataViewTag = '[object DataView]';
  12868. /** Used to detect maps, sets, and weakmaps. */
  12869. var dataViewCtorString = toSource(DataView),
  12870. mapCtorString = toSource(Map),
  12871. promiseCtorString = toSource(Promise),
  12872. setCtorString = toSource(Set),
  12873. weakMapCtorString = toSource(WeakMap);
  12874. /**
  12875. * Gets the `toStringTag` of `value`.
  12876. *
  12877. * @private
  12878. * @param {*} value The value to query.
  12879. * @returns {string} Returns the `toStringTag`.
  12880. */
  12881. var getTag = baseGetTag;
  12882. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12883. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12884. (Map && getTag(new Map) != mapTag) ||
  12885. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12886. (Set && getTag(new Set) != setTag) ||
  12887. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12888. getTag = function(value) {
  12889. var result = baseGetTag(value),
  12890. Ctor = result == objectTag ? value.constructor : undefined,
  12891. ctorString = Ctor ? toSource(Ctor) : '';
  12892. if (ctorString) {
  12893. switch (ctorString) {
  12894. case dataViewCtorString: return dataViewTag;
  12895. case mapCtorString: return mapTag;
  12896. case promiseCtorString: return promiseTag;
  12897. case setCtorString: return setTag;
  12898. case weakMapCtorString: return weakMapTag;
  12899. }
  12900. }
  12901. return result;
  12902. };
  12903. }
  12904. module.exports = getTag;
  12905. /***/ }),
  12906. /***/ "../../node_modules/lodash/_getValue.js":
  12907. /*!************************************************************!*\
  12908. !*** E:/Repos/Babylon.js/node_modules/lodash/_getValue.js ***!
  12909. \************************************************************/
  12910. /*! no static exports found */
  12911. /***/ (function(module, exports) {
  12912. /**
  12913. * Gets the value at `key` of `object`.
  12914. *
  12915. * @private
  12916. * @param {Object} [object] The object to query.
  12917. * @param {string} key The key of the property to get.
  12918. * @returns {*} Returns the property value.
  12919. */
  12920. function getValue(object, key) {
  12921. return object == null ? undefined : object[key];
  12922. }
  12923. module.exports = getValue;
  12924. /***/ }),
  12925. /***/ "../../node_modules/lodash/_hasPath.js":
  12926. /*!***********************************************************!*\
  12927. !*** E:/Repos/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12928. \***********************************************************/
  12929. /*! no static exports found */
  12930. /***/ (function(module, exports, __webpack_require__) {
  12931. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12932. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12933. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12934. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12935. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12936. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12937. /**
  12938. * Checks if `path` exists on `object`.
  12939. *
  12940. * @private
  12941. * @param {Object} object The object to query.
  12942. * @param {Array|string} path The path to check.
  12943. * @param {Function} hasFunc The function to check properties.
  12944. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12945. */
  12946. function hasPath(object, path, hasFunc) {
  12947. path = castPath(path, object);
  12948. var index = -1,
  12949. length = path.length,
  12950. result = false;
  12951. while (++index < length) {
  12952. var key = toKey(path[index]);
  12953. if (!(result = object != null && hasFunc(object, key))) {
  12954. break;
  12955. }
  12956. object = object[key];
  12957. }
  12958. if (result || ++index != length) {
  12959. return result;
  12960. }
  12961. length = object == null ? 0 : object.length;
  12962. return !!length && isLength(length) && isIndex(key, length) &&
  12963. (isArray(object) || isArguments(object));
  12964. }
  12965. module.exports = hasPath;
  12966. /***/ }),
  12967. /***/ "../../node_modules/lodash/_hasUnicode.js":
  12968. /*!**************************************************************!*\
  12969. !*** E:/Repos/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  12970. \**************************************************************/
  12971. /*! no static exports found */
  12972. /***/ (function(module, exports) {
  12973. /** Used to compose unicode character classes. */
  12974. var rsAstralRange = '\\ud800-\\udfff',
  12975. rsComboMarksRange = '\\u0300-\\u036f',
  12976. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  12977. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  12978. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  12979. rsVarRange = '\\ufe0e\\ufe0f';
  12980. /** Used to compose unicode capture groups. */
  12981. var rsZWJ = '\\u200d';
  12982. /** 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/). */
  12983. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  12984. /**
  12985. * Checks if `string` contains Unicode symbols.
  12986. *
  12987. * @private
  12988. * @param {string} string The string to inspect.
  12989. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  12990. */
  12991. function hasUnicode(string) {
  12992. return reHasUnicode.test(string);
  12993. }
  12994. module.exports = hasUnicode;
  12995. /***/ }),
  12996. /***/ "../../node_modules/lodash/_hashClear.js":
  12997. /*!*************************************************************!*\
  12998. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashClear.js ***!
  12999. \*************************************************************/
  13000. /*! no static exports found */
  13001. /***/ (function(module, exports, __webpack_require__) {
  13002. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13003. /**
  13004. * Removes all key-value entries from the hash.
  13005. *
  13006. * @private
  13007. * @name clear
  13008. * @memberOf Hash
  13009. */
  13010. function hashClear() {
  13011. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  13012. this.size = 0;
  13013. }
  13014. module.exports = hashClear;
  13015. /***/ }),
  13016. /***/ "../../node_modules/lodash/_hashDelete.js":
  13017. /*!**************************************************************!*\
  13018. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  13019. \**************************************************************/
  13020. /*! no static exports found */
  13021. /***/ (function(module, exports) {
  13022. /**
  13023. * Removes `key` and its value from the hash.
  13024. *
  13025. * @private
  13026. * @name delete
  13027. * @memberOf Hash
  13028. * @param {Object} hash The hash to modify.
  13029. * @param {string} key The key of the value to remove.
  13030. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13031. */
  13032. function hashDelete(key) {
  13033. var result = this.has(key) && delete this.__data__[key];
  13034. this.size -= result ? 1 : 0;
  13035. return result;
  13036. }
  13037. module.exports = hashDelete;
  13038. /***/ }),
  13039. /***/ "../../node_modules/lodash/_hashGet.js":
  13040. /*!***********************************************************!*\
  13041. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashGet.js ***!
  13042. \***********************************************************/
  13043. /*! no static exports found */
  13044. /***/ (function(module, exports, __webpack_require__) {
  13045. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13046. /** Used to stand-in for `undefined` hash values. */
  13047. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13048. /** Used for built-in method references. */
  13049. var objectProto = Object.prototype;
  13050. /** Used to check objects for own properties. */
  13051. var hasOwnProperty = objectProto.hasOwnProperty;
  13052. /**
  13053. * Gets the hash value for `key`.
  13054. *
  13055. * @private
  13056. * @name get
  13057. * @memberOf Hash
  13058. * @param {string} key The key of the value to get.
  13059. * @returns {*} Returns the entry value.
  13060. */
  13061. function hashGet(key) {
  13062. var data = this.__data__;
  13063. if (nativeCreate) {
  13064. var result = data[key];
  13065. return result === HASH_UNDEFINED ? undefined : result;
  13066. }
  13067. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  13068. }
  13069. module.exports = hashGet;
  13070. /***/ }),
  13071. /***/ "../../node_modules/lodash/_hashHas.js":
  13072. /*!***********************************************************!*\
  13073. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashHas.js ***!
  13074. \***********************************************************/
  13075. /*! no static exports found */
  13076. /***/ (function(module, exports, __webpack_require__) {
  13077. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13078. /** Used for built-in method references. */
  13079. var objectProto = Object.prototype;
  13080. /** Used to check objects for own properties. */
  13081. var hasOwnProperty = objectProto.hasOwnProperty;
  13082. /**
  13083. * Checks if a hash value for `key` exists.
  13084. *
  13085. * @private
  13086. * @name has
  13087. * @memberOf Hash
  13088. * @param {string} key The key of the entry to check.
  13089. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13090. */
  13091. function hashHas(key) {
  13092. var data = this.__data__;
  13093. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  13094. }
  13095. module.exports = hashHas;
  13096. /***/ }),
  13097. /***/ "../../node_modules/lodash/_hashSet.js":
  13098. /*!***********************************************************!*\
  13099. !*** E:/Repos/Babylon.js/node_modules/lodash/_hashSet.js ***!
  13100. \***********************************************************/
  13101. /*! no static exports found */
  13102. /***/ (function(module, exports, __webpack_require__) {
  13103. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  13104. /** Used to stand-in for `undefined` hash values. */
  13105. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13106. /**
  13107. * Sets the hash `key` to `value`.
  13108. *
  13109. * @private
  13110. * @name set
  13111. * @memberOf Hash
  13112. * @param {string} key The key of the value to set.
  13113. * @param {*} value The value to set.
  13114. * @returns {Object} Returns the hash instance.
  13115. */
  13116. function hashSet(key, value) {
  13117. var data = this.__data__;
  13118. this.size += this.has(key) ? 0 : 1;
  13119. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  13120. return this;
  13121. }
  13122. module.exports = hashSet;
  13123. /***/ }),
  13124. /***/ "../../node_modules/lodash/_initCloneArray.js":
  13125. /*!******************************************************************!*\
  13126. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  13127. \******************************************************************/
  13128. /*! no static exports found */
  13129. /***/ (function(module, exports) {
  13130. /** Used for built-in method references. */
  13131. var objectProto = Object.prototype;
  13132. /** Used to check objects for own properties. */
  13133. var hasOwnProperty = objectProto.hasOwnProperty;
  13134. /**
  13135. * Initializes an array clone.
  13136. *
  13137. * @private
  13138. * @param {Array} array The array to clone.
  13139. * @returns {Array} Returns the initialized clone.
  13140. */
  13141. function initCloneArray(array) {
  13142. var length = array.length,
  13143. result = new array.constructor(length);
  13144. // Add properties assigned by `RegExp#exec`.
  13145. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  13146. result.index = array.index;
  13147. result.input = array.input;
  13148. }
  13149. return result;
  13150. }
  13151. module.exports = initCloneArray;
  13152. /***/ }),
  13153. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  13154. /*!******************************************************************!*\
  13155. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  13156. \******************************************************************/
  13157. /*! no static exports found */
  13158. /***/ (function(module, exports, __webpack_require__) {
  13159. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  13160. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  13161. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  13162. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  13163. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  13164. /** `Object#toString` result references. */
  13165. var boolTag = '[object Boolean]',
  13166. dateTag = '[object Date]',
  13167. mapTag = '[object Map]',
  13168. numberTag = '[object Number]',
  13169. regexpTag = '[object RegExp]',
  13170. setTag = '[object Set]',
  13171. stringTag = '[object String]',
  13172. symbolTag = '[object Symbol]';
  13173. var arrayBufferTag = '[object ArrayBuffer]',
  13174. dataViewTag = '[object DataView]',
  13175. float32Tag = '[object Float32Array]',
  13176. float64Tag = '[object Float64Array]',
  13177. int8Tag = '[object Int8Array]',
  13178. int16Tag = '[object Int16Array]',
  13179. int32Tag = '[object Int32Array]',
  13180. uint8Tag = '[object Uint8Array]',
  13181. uint8ClampedTag = '[object Uint8ClampedArray]',
  13182. uint16Tag = '[object Uint16Array]',
  13183. uint32Tag = '[object Uint32Array]';
  13184. /**
  13185. * Initializes an object clone based on its `toStringTag`.
  13186. *
  13187. * **Note:** This function only supports cloning values with tags of
  13188. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  13189. *
  13190. * @private
  13191. * @param {Object} object The object to clone.
  13192. * @param {string} tag The `toStringTag` of the object to clone.
  13193. * @param {boolean} [isDeep] Specify a deep clone.
  13194. * @returns {Object} Returns the initialized clone.
  13195. */
  13196. function initCloneByTag(object, tag, isDeep) {
  13197. var Ctor = object.constructor;
  13198. switch (tag) {
  13199. case arrayBufferTag:
  13200. return cloneArrayBuffer(object);
  13201. case boolTag:
  13202. case dateTag:
  13203. return new Ctor(+object);
  13204. case dataViewTag:
  13205. return cloneDataView(object, isDeep);
  13206. case float32Tag: case float64Tag:
  13207. case int8Tag: case int16Tag: case int32Tag:
  13208. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  13209. return cloneTypedArray(object, isDeep);
  13210. case mapTag:
  13211. return new Ctor;
  13212. case numberTag:
  13213. case stringTag:
  13214. return new Ctor(object);
  13215. case regexpTag:
  13216. return cloneRegExp(object);
  13217. case setTag:
  13218. return new Ctor;
  13219. case symbolTag:
  13220. return cloneSymbol(object);
  13221. }
  13222. }
  13223. module.exports = initCloneByTag;
  13224. /***/ }),
  13225. /***/ "../../node_modules/lodash/_initCloneObject.js":
  13226. /*!*******************************************************************!*\
  13227. !*** E:/Repos/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  13228. \*******************************************************************/
  13229. /*! no static exports found */
  13230. /***/ (function(module, exports, __webpack_require__) {
  13231. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  13232. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  13233. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  13234. /**
  13235. * Initializes an object clone.
  13236. *
  13237. * @private
  13238. * @param {Object} object The object to clone.
  13239. * @returns {Object} Returns the initialized clone.
  13240. */
  13241. function initCloneObject(object) {
  13242. return (typeof object.constructor == 'function' && !isPrototype(object))
  13243. ? baseCreate(getPrototype(object))
  13244. : {};
  13245. }
  13246. module.exports = initCloneObject;
  13247. /***/ }),
  13248. /***/ "../../node_modules/lodash/_isFlattenable.js":
  13249. /*!*****************************************************************!*\
  13250. !*** E:/Repos/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  13251. \*****************************************************************/
  13252. /*! no static exports found */
  13253. /***/ (function(module, exports, __webpack_require__) {
  13254. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  13255. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  13256. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  13257. /** Built-in value references. */
  13258. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  13259. /**
  13260. * Checks if `value` is a flattenable `arguments` object or array.
  13261. *
  13262. * @private
  13263. * @param {*} value The value to check.
  13264. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  13265. */
  13266. function isFlattenable(value) {
  13267. return isArray(value) || isArguments(value) ||
  13268. !!(spreadableSymbol && value && value[spreadableSymbol]);
  13269. }
  13270. module.exports = isFlattenable;
  13271. /***/ }),
  13272. /***/ "../../node_modules/lodash/_isIndex.js":
  13273. /*!***********************************************************!*\
  13274. !*** E:/Repos/Babylon.js/node_modules/lodash/_isIndex.js ***!
  13275. \***********************************************************/
  13276. /*! no static exports found */
  13277. /***/ (function(module, exports) {
  13278. /** Used as references for various `Number` constants. */
  13279. var MAX_SAFE_INTEGER = 9007199254740991;
  13280. /** Used to detect unsigned integer values. */
  13281. var reIsUint = /^(?:0|[1-9]\d*)$/;
  13282. /**
  13283. * Checks if `value` is a valid array-like index.
  13284. *
  13285. * @private
  13286. * @param {*} value The value to check.
  13287. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13288. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13289. */
  13290. function isIndex(value, length) {
  13291. var type = typeof value;
  13292. length = length == null ? MAX_SAFE_INTEGER : length;
  13293. return !!length &&
  13294. (type == 'number' ||
  13295. (type != 'symbol' && reIsUint.test(value))) &&
  13296. (value > -1 && value % 1 == 0 && value < length);
  13297. }
  13298. module.exports = isIndex;
  13299. /***/ }),
  13300. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  13301. /*!******************************************************************!*\
  13302. !*** E:/Repos/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  13303. \******************************************************************/
  13304. /*! no static exports found */
  13305. /***/ (function(module, exports, __webpack_require__) {
  13306. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  13307. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  13308. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  13309. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13310. /**
  13311. * Checks if the given arguments are from an iteratee call.
  13312. *
  13313. * @private
  13314. * @param {*} value The potential iteratee value argument.
  13315. * @param {*} index The potential iteratee index or key argument.
  13316. * @param {*} object The potential iteratee object argument.
  13317. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13318. * else `false`.
  13319. */
  13320. function isIterateeCall(value, index, object) {
  13321. if (!isObject(object)) {
  13322. return false;
  13323. }
  13324. var type = typeof index;
  13325. if (type == 'number'
  13326. ? (isArrayLike(object) && isIndex(index, object.length))
  13327. : (type == 'string' && index in object)
  13328. ) {
  13329. return eq(object[index], value);
  13330. }
  13331. return false;
  13332. }
  13333. module.exports = isIterateeCall;
  13334. /***/ }),
  13335. /***/ "../../node_modules/lodash/_isKey.js":
  13336. /*!*********************************************************!*\
  13337. !*** E:/Repos/Babylon.js/node_modules/lodash/_isKey.js ***!
  13338. \*********************************************************/
  13339. /*! no static exports found */
  13340. /***/ (function(module, exports, __webpack_require__) {
  13341. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  13342. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13343. /** Used to match property names within property paths. */
  13344. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  13345. reIsPlainProp = /^\w*$/;
  13346. /**
  13347. * Checks if `value` is a property name and not a property path.
  13348. *
  13349. * @private
  13350. * @param {*} value The value to check.
  13351. * @param {Object} [object] The object to query keys on.
  13352. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  13353. */
  13354. function isKey(value, object) {
  13355. if (isArray(value)) {
  13356. return false;
  13357. }
  13358. var type = typeof value;
  13359. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  13360. value == null || isSymbol(value)) {
  13361. return true;
  13362. }
  13363. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  13364. (object != null && value in Object(object));
  13365. }
  13366. module.exports = isKey;
  13367. /***/ }),
  13368. /***/ "../../node_modules/lodash/_isKeyable.js":
  13369. /*!*************************************************************!*\
  13370. !*** E:/Repos/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  13371. \*************************************************************/
  13372. /*! no static exports found */
  13373. /***/ (function(module, exports) {
  13374. /**
  13375. * Checks if `value` is suitable for use as unique object key.
  13376. *
  13377. * @private
  13378. * @param {*} value The value to check.
  13379. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13380. */
  13381. function isKeyable(value) {
  13382. var type = typeof value;
  13383. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13384. ? (value !== '__proto__')
  13385. : (value === null);
  13386. }
  13387. module.exports = isKeyable;
  13388. /***/ }),
  13389. /***/ "../../node_modules/lodash/_isMasked.js":
  13390. /*!************************************************************!*\
  13391. !*** E:/Repos/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13392. \************************************************************/
  13393. /*! no static exports found */
  13394. /***/ (function(module, exports, __webpack_require__) {
  13395. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13396. /** Used to detect methods masquerading as native. */
  13397. var maskSrcKey = (function() {
  13398. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13399. return uid ? ('Symbol(src)_1.' + uid) : '';
  13400. }());
  13401. /**
  13402. * Checks if `func` has its source masked.
  13403. *
  13404. * @private
  13405. * @param {Function} func The function to check.
  13406. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13407. */
  13408. function isMasked(func) {
  13409. return !!maskSrcKey && (maskSrcKey in func);
  13410. }
  13411. module.exports = isMasked;
  13412. /***/ }),
  13413. /***/ "../../node_modules/lodash/_isPrototype.js":
  13414. /*!***************************************************************!*\
  13415. !*** E:/Repos/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13416. \***************************************************************/
  13417. /*! no static exports found */
  13418. /***/ (function(module, exports) {
  13419. /** Used for built-in method references. */
  13420. var objectProto = Object.prototype;
  13421. /**
  13422. * Checks if `value` is likely a prototype object.
  13423. *
  13424. * @private
  13425. * @param {*} value The value to check.
  13426. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13427. */
  13428. function isPrototype(value) {
  13429. var Ctor = value && value.constructor,
  13430. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13431. return value === proto;
  13432. }
  13433. module.exports = isPrototype;
  13434. /***/ }),
  13435. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13436. /*!**********************************************************************!*\
  13437. !*** E:/Repos/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13438. \**********************************************************************/
  13439. /*! no static exports found */
  13440. /***/ (function(module, exports, __webpack_require__) {
  13441. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13442. /**
  13443. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13444. *
  13445. * @private
  13446. * @param {*} value The value to check.
  13447. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13448. * equality comparisons, else `false`.
  13449. */
  13450. function isStrictComparable(value) {
  13451. return value === value && !isObject(value);
  13452. }
  13453. module.exports = isStrictComparable;
  13454. /***/ }),
  13455. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13456. /*!******************************************************************!*\
  13457. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13458. \******************************************************************/
  13459. /*! no static exports found */
  13460. /***/ (function(module, exports) {
  13461. /**
  13462. * Removes all key-value entries from the list cache.
  13463. *
  13464. * @private
  13465. * @name clear
  13466. * @memberOf ListCache
  13467. */
  13468. function listCacheClear() {
  13469. this.__data__ = [];
  13470. this.size = 0;
  13471. }
  13472. module.exports = listCacheClear;
  13473. /***/ }),
  13474. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13475. /*!*******************************************************************!*\
  13476. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13477. \*******************************************************************/
  13478. /*! no static exports found */
  13479. /***/ (function(module, exports, __webpack_require__) {
  13480. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13481. /** Used for built-in method references. */
  13482. var arrayProto = Array.prototype;
  13483. /** Built-in value references. */
  13484. var splice = arrayProto.splice;
  13485. /**
  13486. * Removes `key` and its value from the list cache.
  13487. *
  13488. * @private
  13489. * @name delete
  13490. * @memberOf ListCache
  13491. * @param {string} key The key of the value to remove.
  13492. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13493. */
  13494. function listCacheDelete(key) {
  13495. var data = this.__data__,
  13496. index = assocIndexOf(data, key);
  13497. if (index < 0) {
  13498. return false;
  13499. }
  13500. var lastIndex = data.length - 1;
  13501. if (index == lastIndex) {
  13502. data.pop();
  13503. } else {
  13504. splice.call(data, index, 1);
  13505. }
  13506. --this.size;
  13507. return true;
  13508. }
  13509. module.exports = listCacheDelete;
  13510. /***/ }),
  13511. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13512. /*!****************************************************************!*\
  13513. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13514. \****************************************************************/
  13515. /*! no static exports found */
  13516. /***/ (function(module, exports, __webpack_require__) {
  13517. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13518. /**
  13519. * Gets the list cache value for `key`.
  13520. *
  13521. * @private
  13522. * @name get
  13523. * @memberOf ListCache
  13524. * @param {string} key The key of the value to get.
  13525. * @returns {*} Returns the entry value.
  13526. */
  13527. function listCacheGet(key) {
  13528. var data = this.__data__,
  13529. index = assocIndexOf(data, key);
  13530. return index < 0 ? undefined : data[index][1];
  13531. }
  13532. module.exports = listCacheGet;
  13533. /***/ }),
  13534. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13535. /*!****************************************************************!*\
  13536. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13537. \****************************************************************/
  13538. /*! no static exports found */
  13539. /***/ (function(module, exports, __webpack_require__) {
  13540. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13541. /**
  13542. * Checks if a list cache value for `key` exists.
  13543. *
  13544. * @private
  13545. * @name has
  13546. * @memberOf ListCache
  13547. * @param {string} key The key of the entry to check.
  13548. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13549. */
  13550. function listCacheHas(key) {
  13551. return assocIndexOf(this.__data__, key) > -1;
  13552. }
  13553. module.exports = listCacheHas;
  13554. /***/ }),
  13555. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13556. /*!****************************************************************!*\
  13557. !*** E:/Repos/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13558. \****************************************************************/
  13559. /*! no static exports found */
  13560. /***/ (function(module, exports, __webpack_require__) {
  13561. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13562. /**
  13563. * Sets the list cache `key` to `value`.
  13564. *
  13565. * @private
  13566. * @name set
  13567. * @memberOf ListCache
  13568. * @param {string} key The key of the value to set.
  13569. * @param {*} value The value to set.
  13570. * @returns {Object} Returns the list cache instance.
  13571. */
  13572. function listCacheSet(key, value) {
  13573. var data = this.__data__,
  13574. index = assocIndexOf(data, key);
  13575. if (index < 0) {
  13576. ++this.size;
  13577. data.push([key, value]);
  13578. } else {
  13579. data[index][1] = value;
  13580. }
  13581. return this;
  13582. }
  13583. module.exports = listCacheSet;
  13584. /***/ }),
  13585. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13586. /*!*****************************************************************!*\
  13587. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13588. \*****************************************************************/
  13589. /*! no static exports found */
  13590. /***/ (function(module, exports, __webpack_require__) {
  13591. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13592. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13593. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13594. /**
  13595. * Removes all key-value entries from the map.
  13596. *
  13597. * @private
  13598. * @name clear
  13599. * @memberOf MapCache
  13600. */
  13601. function mapCacheClear() {
  13602. this.size = 0;
  13603. this.__data__ = {
  13604. 'hash': new Hash,
  13605. 'map': new (Map || ListCache),
  13606. 'string': new Hash
  13607. };
  13608. }
  13609. module.exports = mapCacheClear;
  13610. /***/ }),
  13611. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13612. /*!******************************************************************!*\
  13613. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13614. \******************************************************************/
  13615. /*! no static exports found */
  13616. /***/ (function(module, exports, __webpack_require__) {
  13617. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13618. /**
  13619. * Removes `key` and its value from the map.
  13620. *
  13621. * @private
  13622. * @name delete
  13623. * @memberOf MapCache
  13624. * @param {string} key The key of the value to remove.
  13625. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13626. */
  13627. function mapCacheDelete(key) {
  13628. var result = getMapData(this, key)['delete'](key);
  13629. this.size -= result ? 1 : 0;
  13630. return result;
  13631. }
  13632. module.exports = mapCacheDelete;
  13633. /***/ }),
  13634. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13635. /*!***************************************************************!*\
  13636. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13637. \***************************************************************/
  13638. /*! no static exports found */
  13639. /***/ (function(module, exports, __webpack_require__) {
  13640. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13641. /**
  13642. * Gets the map value for `key`.
  13643. *
  13644. * @private
  13645. * @name get
  13646. * @memberOf MapCache
  13647. * @param {string} key The key of the value to get.
  13648. * @returns {*} Returns the entry value.
  13649. */
  13650. function mapCacheGet(key) {
  13651. return getMapData(this, key).get(key);
  13652. }
  13653. module.exports = mapCacheGet;
  13654. /***/ }),
  13655. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13656. /*!***************************************************************!*\
  13657. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13658. \***************************************************************/
  13659. /*! no static exports found */
  13660. /***/ (function(module, exports, __webpack_require__) {
  13661. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13662. /**
  13663. * Checks if a map value for `key` exists.
  13664. *
  13665. * @private
  13666. * @name has
  13667. * @memberOf MapCache
  13668. * @param {string} key The key of the entry to check.
  13669. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13670. */
  13671. function mapCacheHas(key) {
  13672. return getMapData(this, key).has(key);
  13673. }
  13674. module.exports = mapCacheHas;
  13675. /***/ }),
  13676. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13677. /*!***************************************************************!*\
  13678. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13679. \***************************************************************/
  13680. /*! no static exports found */
  13681. /***/ (function(module, exports, __webpack_require__) {
  13682. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13683. /**
  13684. * Sets the map `key` to `value`.
  13685. *
  13686. * @private
  13687. * @name set
  13688. * @memberOf MapCache
  13689. * @param {string} key The key of the value to set.
  13690. * @param {*} value The value to set.
  13691. * @returns {Object} Returns the map cache instance.
  13692. */
  13693. function mapCacheSet(key, value) {
  13694. var data = getMapData(this, key),
  13695. size = data.size;
  13696. data.set(key, value);
  13697. this.size += data.size == size ? 0 : 1;
  13698. return this;
  13699. }
  13700. module.exports = mapCacheSet;
  13701. /***/ }),
  13702. /***/ "../../node_modules/lodash/_mapToArray.js":
  13703. /*!**************************************************************!*\
  13704. !*** E:/Repos/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13705. \**************************************************************/
  13706. /*! no static exports found */
  13707. /***/ (function(module, exports) {
  13708. /**
  13709. * Converts `map` to its key-value pairs.
  13710. *
  13711. * @private
  13712. * @param {Object} map The map to convert.
  13713. * @returns {Array} Returns the key-value pairs.
  13714. */
  13715. function mapToArray(map) {
  13716. var index = -1,
  13717. result = Array(map.size);
  13718. map.forEach(function(value, key) {
  13719. result[++index] = [key, value];
  13720. });
  13721. return result;
  13722. }
  13723. module.exports = mapToArray;
  13724. /***/ }),
  13725. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13726. /*!***************************************************************************!*\
  13727. !*** E:/Repos/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13728. \***************************************************************************/
  13729. /*! no static exports found */
  13730. /***/ (function(module, exports) {
  13731. /**
  13732. * A specialized version of `matchesProperty` for source values suitable
  13733. * for strict equality comparisons, i.e. `===`.
  13734. *
  13735. * @private
  13736. * @param {string} key The key of the property to get.
  13737. * @param {*} srcValue The value to match.
  13738. * @returns {Function} Returns the new spec function.
  13739. */
  13740. function matchesStrictComparable(key, srcValue) {
  13741. return function(object) {
  13742. if (object == null) {
  13743. return false;
  13744. }
  13745. return object[key] === srcValue &&
  13746. (srcValue !== undefined || (key in Object(object)));
  13747. };
  13748. }
  13749. module.exports = matchesStrictComparable;
  13750. /***/ }),
  13751. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13752. /*!*****************************************************************!*\
  13753. !*** E:/Repos/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13754. \*****************************************************************/
  13755. /*! no static exports found */
  13756. /***/ (function(module, exports, __webpack_require__) {
  13757. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13758. /** Used as the maximum memoize cache size. */
  13759. var MAX_MEMOIZE_SIZE = 500;
  13760. /**
  13761. * A specialized version of `_.memoize` which clears the memoized function's
  13762. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13763. *
  13764. * @private
  13765. * @param {Function} func The function to have its output memoized.
  13766. * @returns {Function} Returns the new memoized function.
  13767. */
  13768. function memoizeCapped(func) {
  13769. var result = memoize(func, function(key) {
  13770. if (cache.size === MAX_MEMOIZE_SIZE) {
  13771. cache.clear();
  13772. }
  13773. return key;
  13774. });
  13775. var cache = result.cache;
  13776. return result;
  13777. }
  13778. module.exports = memoizeCapped;
  13779. /***/ }),
  13780. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13781. /*!****************************************************************!*\
  13782. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13783. \****************************************************************/
  13784. /*! no static exports found */
  13785. /***/ (function(module, exports, __webpack_require__) {
  13786. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13787. /* Built-in method references that are verified to be native. */
  13788. var nativeCreate = getNative(Object, 'create');
  13789. module.exports = nativeCreate;
  13790. /***/ }),
  13791. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13792. /*!**************************************************************!*\
  13793. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13794. \**************************************************************/
  13795. /*! no static exports found */
  13796. /***/ (function(module, exports, __webpack_require__) {
  13797. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13798. /* Built-in method references for those with the same name as other `lodash` methods. */
  13799. var nativeKeys = overArg(Object.keys, Object);
  13800. module.exports = nativeKeys;
  13801. /***/ }),
  13802. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13803. /*!****************************************************************!*\
  13804. !*** E:/Repos/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13805. \****************************************************************/
  13806. /*! no static exports found */
  13807. /***/ (function(module, exports) {
  13808. /**
  13809. * This function is like
  13810. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13811. * except that it includes inherited enumerable properties.
  13812. *
  13813. * @private
  13814. * @param {Object} object The object to query.
  13815. * @returns {Array} Returns the array of property names.
  13816. */
  13817. function nativeKeysIn(object) {
  13818. var result = [];
  13819. if (object != null) {
  13820. for (var key in Object(object)) {
  13821. result.push(key);
  13822. }
  13823. }
  13824. return result;
  13825. }
  13826. module.exports = nativeKeysIn;
  13827. /***/ }),
  13828. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13829. /*!************************************************************!*\
  13830. !*** E:/Repos/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13831. \************************************************************/
  13832. /*! no static exports found */
  13833. /***/ (function(module, exports, __webpack_require__) {
  13834. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13835. /** Detect free variable `exports`. */
  13836. var freeExports = true && exports && !exports.nodeType && exports;
  13837. /** Detect free variable `module`. */
  13838. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13839. /** Detect the popular CommonJS extension `module.exports`. */
  13840. var moduleExports = freeModule && freeModule.exports === freeExports;
  13841. /** Detect free variable `process` from Node.js. */
  13842. var freeProcess = moduleExports && freeGlobal.process;
  13843. /** Used to access faster Node.js helpers. */
  13844. var nodeUtil = (function() {
  13845. try {
  13846. // Use `util.types` for Node.js 10+.
  13847. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13848. if (types) {
  13849. return types;
  13850. }
  13851. // Legacy `process.binding('util')` for Node.js < 10.
  13852. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13853. } catch (e) {}
  13854. }());
  13855. module.exports = nodeUtil;
  13856. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13857. /***/ }),
  13858. /***/ "../../node_modules/lodash/_objectToString.js":
  13859. /*!******************************************************************!*\
  13860. !*** E:/Repos/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13861. \******************************************************************/
  13862. /*! no static exports found */
  13863. /***/ (function(module, exports) {
  13864. /** Used for built-in method references. */
  13865. var objectProto = Object.prototype;
  13866. /**
  13867. * Used to resolve the
  13868. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13869. * of values.
  13870. */
  13871. var nativeObjectToString = objectProto.toString;
  13872. /**
  13873. * Converts `value` to a string using `Object.prototype.toString`.
  13874. *
  13875. * @private
  13876. * @param {*} value The value to convert.
  13877. * @returns {string} Returns the converted string.
  13878. */
  13879. function objectToString(value) {
  13880. return nativeObjectToString.call(value);
  13881. }
  13882. module.exports = objectToString;
  13883. /***/ }),
  13884. /***/ "../../node_modules/lodash/_overArg.js":
  13885. /*!***********************************************************!*\
  13886. !*** E:/Repos/Babylon.js/node_modules/lodash/_overArg.js ***!
  13887. \***********************************************************/
  13888. /*! no static exports found */
  13889. /***/ (function(module, exports) {
  13890. /**
  13891. * Creates a unary function that invokes `func` with its argument transformed.
  13892. *
  13893. * @private
  13894. * @param {Function} func The function to wrap.
  13895. * @param {Function} transform The argument transform.
  13896. * @returns {Function} Returns the new function.
  13897. */
  13898. function overArg(func, transform) {
  13899. return function(arg) {
  13900. return func(transform(arg));
  13901. };
  13902. }
  13903. module.exports = overArg;
  13904. /***/ }),
  13905. /***/ "../../node_modules/lodash/_overRest.js":
  13906. /*!************************************************************!*\
  13907. !*** E:/Repos/Babylon.js/node_modules/lodash/_overRest.js ***!
  13908. \************************************************************/
  13909. /*! no static exports found */
  13910. /***/ (function(module, exports, __webpack_require__) {
  13911. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13912. /* Built-in method references for those with the same name as other `lodash` methods. */
  13913. var nativeMax = Math.max;
  13914. /**
  13915. * A specialized version of `baseRest` which transforms the rest array.
  13916. *
  13917. * @private
  13918. * @param {Function} func The function to apply a rest parameter to.
  13919. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13920. * @param {Function} transform The rest array transform.
  13921. * @returns {Function} Returns the new function.
  13922. */
  13923. function overRest(func, start, transform) {
  13924. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13925. return function() {
  13926. var args = arguments,
  13927. index = -1,
  13928. length = nativeMax(args.length - start, 0),
  13929. array = Array(length);
  13930. while (++index < length) {
  13931. array[index] = args[start + index];
  13932. }
  13933. index = -1;
  13934. var otherArgs = Array(start + 1);
  13935. while (++index < start) {
  13936. otherArgs[index] = args[index];
  13937. }
  13938. otherArgs[start] = transform(array);
  13939. return apply(func, this, otherArgs);
  13940. };
  13941. }
  13942. module.exports = overRest;
  13943. /***/ }),
  13944. /***/ "../../node_modules/lodash/_root.js":
  13945. /*!********************************************************!*\
  13946. !*** E:/Repos/Babylon.js/node_modules/lodash/_root.js ***!
  13947. \********************************************************/
  13948. /*! no static exports found */
  13949. /***/ (function(module, exports, __webpack_require__) {
  13950. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13951. /** Detect free variable `self`. */
  13952. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13953. /** Used as a reference to the global object. */
  13954. var root = freeGlobal || freeSelf || Function('return this')();
  13955. module.exports = root;
  13956. /***/ }),
  13957. /***/ "../../node_modules/lodash/_safeGet.js":
  13958. /*!***********************************************************!*\
  13959. !*** E:/Repos/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13960. \***********************************************************/
  13961. /*! no static exports found */
  13962. /***/ (function(module, exports) {
  13963. /**
  13964. * Gets the value at `key`, unless `key` is "__proto__".
  13965. *
  13966. * @private
  13967. * @param {Object} object The object to query.
  13968. * @param {string} key The key of the property to get.
  13969. * @returns {*} Returns the property value.
  13970. */
  13971. function safeGet(object, key) {
  13972. if (key == '__proto__') {
  13973. return;
  13974. }
  13975. return object[key];
  13976. }
  13977. module.exports = safeGet;
  13978. /***/ }),
  13979. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  13980. /*!***************************************************************!*\
  13981. !*** E:/Repos/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  13982. \***************************************************************/
  13983. /*! no static exports found */
  13984. /***/ (function(module, exports) {
  13985. /** Used to stand-in for `undefined` hash values. */
  13986. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13987. /**
  13988. * Adds `value` to the array cache.
  13989. *
  13990. * @private
  13991. * @name add
  13992. * @memberOf SetCache
  13993. * @alias push
  13994. * @param {*} value The value to cache.
  13995. * @returns {Object} Returns the cache instance.
  13996. */
  13997. function setCacheAdd(value) {
  13998. this.__data__.set(value, HASH_UNDEFINED);
  13999. return this;
  14000. }
  14001. module.exports = setCacheAdd;
  14002. /***/ }),
  14003. /***/ "../../node_modules/lodash/_setCacheHas.js":
  14004. /*!***************************************************************!*\
  14005. !*** E:/Repos/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  14006. \***************************************************************/
  14007. /*! no static exports found */
  14008. /***/ (function(module, exports) {
  14009. /**
  14010. * Checks if `value` is in the array cache.
  14011. *
  14012. * @private
  14013. * @name has
  14014. * @memberOf SetCache
  14015. * @param {*} value The value to search for.
  14016. * @returns {number} Returns `true` if `value` is found, else `false`.
  14017. */
  14018. function setCacheHas(value) {
  14019. return this.__data__.has(value);
  14020. }
  14021. module.exports = setCacheHas;
  14022. /***/ }),
  14023. /***/ "../../node_modules/lodash/_setToArray.js":
  14024. /*!**************************************************************!*\
  14025. !*** E:/Repos/Babylon.js/node_modules/lodash/_setToArray.js ***!
  14026. \**************************************************************/
  14027. /*! no static exports found */
  14028. /***/ (function(module, exports) {
  14029. /**
  14030. * Converts `set` to an array of its values.
  14031. *
  14032. * @private
  14033. * @param {Object} set The set to convert.
  14034. * @returns {Array} Returns the values.
  14035. */
  14036. function setToArray(set) {
  14037. var index = -1,
  14038. result = Array(set.size);
  14039. set.forEach(function(value) {
  14040. result[++index] = value;
  14041. });
  14042. return result;
  14043. }
  14044. module.exports = setToArray;
  14045. /***/ }),
  14046. /***/ "../../node_modules/lodash/_setToString.js":
  14047. /*!***************************************************************!*\
  14048. !*** E:/Repos/Babylon.js/node_modules/lodash/_setToString.js ***!
  14049. \***************************************************************/
  14050. /*! no static exports found */
  14051. /***/ (function(module, exports, __webpack_require__) {
  14052. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  14053. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  14054. /**
  14055. * Sets the `toString` method of `func` to return `string`.
  14056. *
  14057. * @private
  14058. * @param {Function} func The function to modify.
  14059. * @param {Function} string The `toString` result.
  14060. * @returns {Function} Returns `func`.
  14061. */
  14062. var setToString = shortOut(baseSetToString);
  14063. module.exports = setToString;
  14064. /***/ }),
  14065. /***/ "../../node_modules/lodash/_shortOut.js":
  14066. /*!************************************************************!*\
  14067. !*** E:/Repos/Babylon.js/node_modules/lodash/_shortOut.js ***!
  14068. \************************************************************/
  14069. /*! no static exports found */
  14070. /***/ (function(module, exports) {
  14071. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  14072. var HOT_COUNT = 800,
  14073. HOT_SPAN = 16;
  14074. /* Built-in method references for those with the same name as other `lodash` methods. */
  14075. var nativeNow = Date.now;
  14076. /**
  14077. * Creates a function that'll short out and invoke `identity` instead
  14078. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  14079. * milliseconds.
  14080. *
  14081. * @private
  14082. * @param {Function} func The function to restrict.
  14083. * @returns {Function} Returns the new shortable function.
  14084. */
  14085. function shortOut(func) {
  14086. var count = 0,
  14087. lastCalled = 0;
  14088. return function() {
  14089. var stamp = nativeNow(),
  14090. remaining = HOT_SPAN - (stamp - lastCalled);
  14091. lastCalled = stamp;
  14092. if (remaining > 0) {
  14093. if (++count >= HOT_COUNT) {
  14094. return arguments[0];
  14095. }
  14096. } else {
  14097. count = 0;
  14098. }
  14099. return func.apply(undefined, arguments);
  14100. };
  14101. }
  14102. module.exports = shortOut;
  14103. /***/ }),
  14104. /***/ "../../node_modules/lodash/_stackClear.js":
  14105. /*!**************************************************************!*\
  14106. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackClear.js ***!
  14107. \**************************************************************/
  14108. /*! no static exports found */
  14109. /***/ (function(module, exports, __webpack_require__) {
  14110. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  14111. /**
  14112. * Removes all key-value entries from the stack.
  14113. *
  14114. * @private
  14115. * @name clear
  14116. * @memberOf Stack
  14117. */
  14118. function stackClear() {
  14119. this.__data__ = new ListCache;
  14120. this.size = 0;
  14121. }
  14122. module.exports = stackClear;
  14123. /***/ }),
  14124. /***/ "../../node_modules/lodash/_stackDelete.js":
  14125. /*!***************************************************************!*\
  14126. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  14127. \***************************************************************/
  14128. /*! no static exports found */
  14129. /***/ (function(module, exports) {
  14130. /**
  14131. * Removes `key` and its value from the stack.
  14132. *
  14133. * @private
  14134. * @name delete
  14135. * @memberOf Stack
  14136. * @param {string} key The key of the value to remove.
  14137. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  14138. */
  14139. function stackDelete(key) {
  14140. var data = this.__data__,
  14141. result = data['delete'](key);
  14142. this.size = data.size;
  14143. return result;
  14144. }
  14145. module.exports = stackDelete;
  14146. /***/ }),
  14147. /***/ "../../node_modules/lodash/_stackGet.js":
  14148. /*!************************************************************!*\
  14149. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackGet.js ***!
  14150. \************************************************************/
  14151. /*! no static exports found */
  14152. /***/ (function(module, exports) {
  14153. /**
  14154. * Gets the stack value for `key`.
  14155. *
  14156. * @private
  14157. * @name get
  14158. * @memberOf Stack
  14159. * @param {string} key The key of the value to get.
  14160. * @returns {*} Returns the entry value.
  14161. */
  14162. function stackGet(key) {
  14163. return this.__data__.get(key);
  14164. }
  14165. module.exports = stackGet;
  14166. /***/ }),
  14167. /***/ "../../node_modules/lodash/_stackHas.js":
  14168. /*!************************************************************!*\
  14169. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackHas.js ***!
  14170. \************************************************************/
  14171. /*! no static exports found */
  14172. /***/ (function(module, exports) {
  14173. /**
  14174. * Checks if a stack value for `key` exists.
  14175. *
  14176. * @private
  14177. * @name has
  14178. * @memberOf Stack
  14179. * @param {string} key The key of the entry to check.
  14180. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  14181. */
  14182. function stackHas(key) {
  14183. return this.__data__.has(key);
  14184. }
  14185. module.exports = stackHas;
  14186. /***/ }),
  14187. /***/ "../../node_modules/lodash/_stackSet.js":
  14188. /*!************************************************************!*\
  14189. !*** E:/Repos/Babylon.js/node_modules/lodash/_stackSet.js ***!
  14190. \************************************************************/
  14191. /*! no static exports found */
  14192. /***/ (function(module, exports, __webpack_require__) {
  14193. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  14194. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  14195. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  14196. /** Used as the size to enable large array optimizations. */
  14197. var LARGE_ARRAY_SIZE = 200;
  14198. /**
  14199. * Sets the stack `key` to `value`.
  14200. *
  14201. * @private
  14202. * @name set
  14203. * @memberOf Stack
  14204. * @param {string} key The key of the value to set.
  14205. * @param {*} value The value to set.
  14206. * @returns {Object} Returns the stack cache instance.
  14207. */
  14208. function stackSet(key, value) {
  14209. var data = this.__data__;
  14210. if (data instanceof ListCache) {
  14211. var pairs = data.__data__;
  14212. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  14213. pairs.push([key, value]);
  14214. this.size = ++data.size;
  14215. return this;
  14216. }
  14217. data = this.__data__ = new MapCache(pairs);
  14218. }
  14219. data.set(key, value);
  14220. this.size = data.size;
  14221. return this;
  14222. }
  14223. module.exports = stackSet;
  14224. /***/ }),
  14225. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  14226. /*!*****************************************************************!*\
  14227. !*** E:/Repos/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  14228. \*****************************************************************/
  14229. /*! no static exports found */
  14230. /***/ (function(module, exports) {
  14231. /**
  14232. * A specialized version of `_.indexOf` which performs strict equality
  14233. * comparisons of values, i.e. `===`.
  14234. *
  14235. * @private
  14236. * @param {Array} array The array to inspect.
  14237. * @param {*} value The value to search for.
  14238. * @param {number} fromIndex The index to search from.
  14239. * @returns {number} Returns the index of the matched value, else `-1`.
  14240. */
  14241. function strictIndexOf(array, value, fromIndex) {
  14242. var index = fromIndex - 1,
  14243. length = array.length;
  14244. while (++index < length) {
  14245. if (array[index] === value) {
  14246. return index;
  14247. }
  14248. }
  14249. return -1;
  14250. }
  14251. module.exports = strictIndexOf;
  14252. /***/ }),
  14253. /***/ "../../node_modules/lodash/_stringSize.js":
  14254. /*!**************************************************************!*\
  14255. !*** E:/Repos/Babylon.js/node_modules/lodash/_stringSize.js ***!
  14256. \**************************************************************/
  14257. /*! no static exports found */
  14258. /***/ (function(module, exports, __webpack_require__) {
  14259. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  14260. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  14261. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  14262. /**
  14263. * Gets the number of symbols in `string`.
  14264. *
  14265. * @private
  14266. * @param {string} string The string to inspect.
  14267. * @returns {number} Returns the string size.
  14268. */
  14269. function stringSize(string) {
  14270. return hasUnicode(string)
  14271. ? unicodeSize(string)
  14272. : asciiSize(string);
  14273. }
  14274. module.exports = stringSize;
  14275. /***/ }),
  14276. /***/ "../../node_modules/lodash/_stringToPath.js":
  14277. /*!****************************************************************!*\
  14278. !*** E:/Repos/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  14279. \****************************************************************/
  14280. /*! no static exports found */
  14281. /***/ (function(module, exports, __webpack_require__) {
  14282. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  14283. /** Used to match property names within property paths. */
  14284. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  14285. /** Used to match backslashes in property paths. */
  14286. var reEscapeChar = /\\(\\)?/g;
  14287. /**
  14288. * Converts `string` to a property path array.
  14289. *
  14290. * @private
  14291. * @param {string} string The string to convert.
  14292. * @returns {Array} Returns the property path array.
  14293. */
  14294. var stringToPath = memoizeCapped(function(string) {
  14295. var result = [];
  14296. if (string.charCodeAt(0) === 46 /* . */) {
  14297. result.push('');
  14298. }
  14299. string.replace(rePropName, function(match, number, quote, subString) {
  14300. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  14301. });
  14302. return result;
  14303. });
  14304. module.exports = stringToPath;
  14305. /***/ }),
  14306. /***/ "../../node_modules/lodash/_toKey.js":
  14307. /*!*********************************************************!*\
  14308. !*** E:/Repos/Babylon.js/node_modules/lodash/_toKey.js ***!
  14309. \*********************************************************/
  14310. /*! no static exports found */
  14311. /***/ (function(module, exports, __webpack_require__) {
  14312. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  14313. /** Used as references for various `Number` constants. */
  14314. var INFINITY = 1 / 0;
  14315. /**
  14316. * Converts `value` to a string key if it's not a string or symbol.
  14317. *
  14318. * @private
  14319. * @param {*} value The value to inspect.
  14320. * @returns {string|symbol} Returns the key.
  14321. */
  14322. function toKey(value) {
  14323. if (typeof value == 'string' || isSymbol(value)) {
  14324. return value;
  14325. }
  14326. var result = (value + '');
  14327. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  14328. }
  14329. module.exports = toKey;
  14330. /***/ }),
  14331. /***/ "../../node_modules/lodash/_toSource.js":
  14332. /*!************************************************************!*\
  14333. !*** E:/Repos/Babylon.js/node_modules/lodash/_toSource.js ***!
  14334. \************************************************************/
  14335. /*! no static exports found */
  14336. /***/ (function(module, exports) {
  14337. /** Used for built-in method references. */
  14338. var funcProto = Function.prototype;
  14339. /** Used to resolve the decompiled source of functions. */
  14340. var funcToString = funcProto.toString;
  14341. /**
  14342. * Converts `func` to its source code.
  14343. *
  14344. * @private
  14345. * @param {Function} func The function to convert.
  14346. * @returns {string} Returns the source code.
  14347. */
  14348. function toSource(func) {
  14349. if (func != null) {
  14350. try {
  14351. return funcToString.call(func);
  14352. } catch (e) {}
  14353. try {
  14354. return (func + '');
  14355. } catch (e) {}
  14356. }
  14357. return '';
  14358. }
  14359. module.exports = toSource;
  14360. /***/ }),
  14361. /***/ "../../node_modules/lodash/_unicodeSize.js":
  14362. /*!***************************************************************!*\
  14363. !*** E:/Repos/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  14364. \***************************************************************/
  14365. /*! no static exports found */
  14366. /***/ (function(module, exports) {
  14367. /** Used to compose unicode character classes. */
  14368. var rsAstralRange = '\\ud800-\\udfff',
  14369. rsComboMarksRange = '\\u0300-\\u036f',
  14370. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  14371. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  14372. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  14373. rsVarRange = '\\ufe0e\\ufe0f';
  14374. /** Used to compose unicode capture groups. */
  14375. var rsAstral = '[' + rsAstralRange + ']',
  14376. rsCombo = '[' + rsComboRange + ']',
  14377. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  14378. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  14379. rsNonAstral = '[^' + rsAstralRange + ']',
  14380. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  14381. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14382. rsZWJ = '\\u200d';
  14383. /** Used to compose unicode regexes. */
  14384. var reOptMod = rsModifier + '?',
  14385. rsOptVar = '[' + rsVarRange + ']?',
  14386. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14387. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14388. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14389. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14390. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14391. /**
  14392. * Gets the size of a Unicode `string`.
  14393. *
  14394. * @private
  14395. * @param {string} string The string inspect.
  14396. * @returns {number} Returns the string size.
  14397. */
  14398. function unicodeSize(string) {
  14399. var result = reUnicode.lastIndex = 0;
  14400. while (reUnicode.test(string)) {
  14401. ++result;
  14402. }
  14403. return result;
  14404. }
  14405. module.exports = unicodeSize;
  14406. /***/ }),
  14407. /***/ "../../node_modules/lodash/clone.js":
  14408. /*!********************************************************!*\
  14409. !*** E:/Repos/Babylon.js/node_modules/lodash/clone.js ***!
  14410. \********************************************************/
  14411. /*! no static exports found */
  14412. /***/ (function(module, exports, __webpack_require__) {
  14413. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14414. /** Used to compose bitmasks for cloning. */
  14415. var CLONE_SYMBOLS_FLAG = 4;
  14416. /**
  14417. * Creates a shallow clone of `value`.
  14418. *
  14419. * **Note:** This method is loosely based on the
  14420. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14421. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14422. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14423. * arrays. The own enumerable properties of `arguments` objects are cloned
  14424. * as plain objects. An empty object is returned for uncloneable values such
  14425. * as error objects, functions, DOM nodes, and WeakMaps.
  14426. *
  14427. * @static
  14428. * @memberOf _
  14429. * @since 0.1.0
  14430. * @category Lang
  14431. * @param {*} value The value to clone.
  14432. * @returns {*} Returns the cloned value.
  14433. * @see _.cloneDeep
  14434. * @example
  14435. *
  14436. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14437. *
  14438. * var shallow = _.clone(objects);
  14439. * console.log(shallow[0] === objects[0]);
  14440. * // => true
  14441. */
  14442. function clone(value) {
  14443. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14444. }
  14445. module.exports = clone;
  14446. /***/ }),
  14447. /***/ "../../node_modules/lodash/cloneDeep.js":
  14448. /*!************************************************************!*\
  14449. !*** E:/Repos/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14450. \************************************************************/
  14451. /*! no static exports found */
  14452. /***/ (function(module, exports, __webpack_require__) {
  14453. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14454. /** Used to compose bitmasks for cloning. */
  14455. var CLONE_DEEP_FLAG = 1,
  14456. CLONE_SYMBOLS_FLAG = 4;
  14457. /**
  14458. * This method is like `_.clone` except that it recursively clones `value`.
  14459. *
  14460. * @static
  14461. * @memberOf _
  14462. * @since 1.0.0
  14463. * @category Lang
  14464. * @param {*} value The value to recursively clone.
  14465. * @returns {*} Returns the deep cloned value.
  14466. * @see _.clone
  14467. * @example
  14468. *
  14469. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14470. *
  14471. * var deep = _.cloneDeep(objects);
  14472. * console.log(deep[0] === objects[0]);
  14473. * // => false
  14474. */
  14475. function cloneDeep(value) {
  14476. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14477. }
  14478. module.exports = cloneDeep;
  14479. /***/ }),
  14480. /***/ "../../node_modules/lodash/constant.js":
  14481. /*!***********************************************************!*\
  14482. !*** E:/Repos/Babylon.js/node_modules/lodash/constant.js ***!
  14483. \***********************************************************/
  14484. /*! no static exports found */
  14485. /***/ (function(module, exports) {
  14486. /**
  14487. * Creates a function that returns `value`.
  14488. *
  14489. * @static
  14490. * @memberOf _
  14491. * @since 2.4.0
  14492. * @category Util
  14493. * @param {*} value The value to return from the new function.
  14494. * @returns {Function} Returns the new constant function.
  14495. * @example
  14496. *
  14497. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14498. *
  14499. * console.log(objects);
  14500. * // => [{ 'a': 1 }, { 'a': 1 }]
  14501. *
  14502. * console.log(objects[0] === objects[1]);
  14503. * // => true
  14504. */
  14505. function constant(value) {
  14506. return function() {
  14507. return value;
  14508. };
  14509. }
  14510. module.exports = constant;
  14511. /***/ }),
  14512. /***/ "../../node_modules/lodash/defaults.js":
  14513. /*!***********************************************************!*\
  14514. !*** E:/Repos/Babylon.js/node_modules/lodash/defaults.js ***!
  14515. \***********************************************************/
  14516. /*! no static exports found */
  14517. /***/ (function(module, exports, __webpack_require__) {
  14518. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14519. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14520. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14521. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14522. /** Used for built-in method references. */
  14523. var objectProto = Object.prototype;
  14524. /** Used to check objects for own properties. */
  14525. var hasOwnProperty = objectProto.hasOwnProperty;
  14526. /**
  14527. * Assigns own and inherited enumerable string keyed properties of source
  14528. * objects to the destination object for all destination properties that
  14529. * resolve to `undefined`. Source objects are applied from left to right.
  14530. * Once a property is set, additional values of the same property are ignored.
  14531. *
  14532. * **Note:** This method mutates `object`.
  14533. *
  14534. * @static
  14535. * @since 0.1.0
  14536. * @memberOf _
  14537. * @category Object
  14538. * @param {Object} object The destination object.
  14539. * @param {...Object} [sources] The source objects.
  14540. * @returns {Object} Returns `object`.
  14541. * @see _.defaultsDeep
  14542. * @example
  14543. *
  14544. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14545. * // => { 'a': 1, 'b': 2 }
  14546. */
  14547. var defaults = baseRest(function(object, sources) {
  14548. object = Object(object);
  14549. var index = -1;
  14550. var length = sources.length;
  14551. var guard = length > 2 ? sources[2] : undefined;
  14552. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14553. length = 1;
  14554. }
  14555. while (++index < length) {
  14556. var source = sources[index];
  14557. var props = keysIn(source);
  14558. var propsIndex = -1;
  14559. var propsLength = props.length;
  14560. while (++propsIndex < propsLength) {
  14561. var key = props[propsIndex];
  14562. var value = object[key];
  14563. if (value === undefined ||
  14564. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14565. object[key] = source[key];
  14566. }
  14567. }
  14568. }
  14569. return object;
  14570. });
  14571. module.exports = defaults;
  14572. /***/ }),
  14573. /***/ "../../node_modules/lodash/each.js":
  14574. /*!*******************************************************!*\
  14575. !*** E:/Repos/Babylon.js/node_modules/lodash/each.js ***!
  14576. \*******************************************************/
  14577. /*! no static exports found */
  14578. /***/ (function(module, exports, __webpack_require__) {
  14579. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14580. /***/ }),
  14581. /***/ "../../node_modules/lodash/eq.js":
  14582. /*!*****************************************************!*\
  14583. !*** E:/Repos/Babylon.js/node_modules/lodash/eq.js ***!
  14584. \*****************************************************/
  14585. /*! no static exports found */
  14586. /***/ (function(module, exports) {
  14587. /**
  14588. * Performs a
  14589. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14590. * comparison between two values to determine if they are equivalent.
  14591. *
  14592. * @static
  14593. * @memberOf _
  14594. * @since 4.0.0
  14595. * @category Lang
  14596. * @param {*} value The value to compare.
  14597. * @param {*} other The other value to compare.
  14598. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14599. * @example
  14600. *
  14601. * var object = { 'a': 1 };
  14602. * var other = { 'a': 1 };
  14603. *
  14604. * _.eq(object, object);
  14605. * // => true
  14606. *
  14607. * _.eq(object, other);
  14608. * // => false
  14609. *
  14610. * _.eq('a', 'a');
  14611. * // => true
  14612. *
  14613. * _.eq('a', Object('a'));
  14614. * // => false
  14615. *
  14616. * _.eq(NaN, NaN);
  14617. * // => true
  14618. */
  14619. function eq(value, other) {
  14620. return value === other || (value !== value && other !== other);
  14621. }
  14622. module.exports = eq;
  14623. /***/ }),
  14624. /***/ "../../node_modules/lodash/filter.js":
  14625. /*!*********************************************************!*\
  14626. !*** E:/Repos/Babylon.js/node_modules/lodash/filter.js ***!
  14627. \*********************************************************/
  14628. /*! no static exports found */
  14629. /***/ (function(module, exports, __webpack_require__) {
  14630. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14631. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14632. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14633. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14634. /**
  14635. * Iterates over elements of `collection`, returning an array of all elements
  14636. * `predicate` returns truthy for. The predicate is invoked with three
  14637. * arguments: (value, index|key, collection).
  14638. *
  14639. * **Note:** Unlike `_.remove`, this method returns a new array.
  14640. *
  14641. * @static
  14642. * @memberOf _
  14643. * @since 0.1.0
  14644. * @category Collection
  14645. * @param {Array|Object} collection The collection to iterate over.
  14646. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14647. * @returns {Array} Returns the new filtered array.
  14648. * @see _.reject
  14649. * @example
  14650. *
  14651. * var users = [
  14652. * { 'user': 'barney', 'age': 36, 'active': true },
  14653. * { 'user': 'fred', 'age': 40, 'active': false }
  14654. * ];
  14655. *
  14656. * _.filter(users, function(o) { return !o.active; });
  14657. * // => objects for ['fred']
  14658. *
  14659. * // The `_.matches` iteratee shorthand.
  14660. * _.filter(users, { 'age': 36, 'active': true });
  14661. * // => objects for ['barney']
  14662. *
  14663. * // The `_.matchesProperty` iteratee shorthand.
  14664. * _.filter(users, ['active', false]);
  14665. * // => objects for ['fred']
  14666. *
  14667. * // The `_.property` iteratee shorthand.
  14668. * _.filter(users, 'active');
  14669. * // => objects for ['barney']
  14670. */
  14671. function filter(collection, predicate) {
  14672. var func = isArray(collection) ? arrayFilter : baseFilter;
  14673. return func(collection, baseIteratee(predicate, 3));
  14674. }
  14675. module.exports = filter;
  14676. /***/ }),
  14677. /***/ "../../node_modules/lodash/find.js":
  14678. /*!*******************************************************!*\
  14679. !*** E:/Repos/Babylon.js/node_modules/lodash/find.js ***!
  14680. \*******************************************************/
  14681. /*! no static exports found */
  14682. /***/ (function(module, exports, __webpack_require__) {
  14683. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14684. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14685. /**
  14686. * Iterates over elements of `collection`, returning the first element
  14687. * `predicate` returns truthy for. The predicate is invoked with three
  14688. * arguments: (value, index|key, collection).
  14689. *
  14690. * @static
  14691. * @memberOf _
  14692. * @since 0.1.0
  14693. * @category Collection
  14694. * @param {Array|Object} collection The collection to inspect.
  14695. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14696. * @param {number} [fromIndex=0] The index to search from.
  14697. * @returns {*} Returns the matched element, else `undefined`.
  14698. * @example
  14699. *
  14700. * var users = [
  14701. * { 'user': 'barney', 'age': 36, 'active': true },
  14702. * { 'user': 'fred', 'age': 40, 'active': false },
  14703. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14704. * ];
  14705. *
  14706. * _.find(users, function(o) { return o.age < 40; });
  14707. * // => object for 'barney'
  14708. *
  14709. * // The `_.matches` iteratee shorthand.
  14710. * _.find(users, { 'age': 1, 'active': true });
  14711. * // => object for 'pebbles'
  14712. *
  14713. * // The `_.matchesProperty` iteratee shorthand.
  14714. * _.find(users, ['active', false]);
  14715. * // => object for 'fred'
  14716. *
  14717. * // The `_.property` iteratee shorthand.
  14718. * _.find(users, 'active');
  14719. * // => object for 'barney'
  14720. */
  14721. var find = createFind(findIndex);
  14722. module.exports = find;
  14723. /***/ }),
  14724. /***/ "../../node_modules/lodash/findIndex.js":
  14725. /*!************************************************************!*\
  14726. !*** E:/Repos/Babylon.js/node_modules/lodash/findIndex.js ***!
  14727. \************************************************************/
  14728. /*! no static exports found */
  14729. /***/ (function(module, exports, __webpack_require__) {
  14730. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14731. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14732. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14733. /* Built-in method references for those with the same name as other `lodash` methods. */
  14734. var nativeMax = Math.max;
  14735. /**
  14736. * This method is like `_.find` except that it returns the index of the first
  14737. * element `predicate` returns truthy for instead of the element itself.
  14738. *
  14739. * @static
  14740. * @memberOf _
  14741. * @since 1.1.0
  14742. * @category Array
  14743. * @param {Array} array The array to inspect.
  14744. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14745. * @param {number} [fromIndex=0] The index to search from.
  14746. * @returns {number} Returns the index of the found element, else `-1`.
  14747. * @example
  14748. *
  14749. * var users = [
  14750. * { 'user': 'barney', 'active': false },
  14751. * { 'user': 'fred', 'active': false },
  14752. * { 'user': 'pebbles', 'active': true }
  14753. * ];
  14754. *
  14755. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14756. * // => 0
  14757. *
  14758. * // The `_.matches` iteratee shorthand.
  14759. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14760. * // => 1
  14761. *
  14762. * // The `_.matchesProperty` iteratee shorthand.
  14763. * _.findIndex(users, ['active', false]);
  14764. * // => 0
  14765. *
  14766. * // The `_.property` iteratee shorthand.
  14767. * _.findIndex(users, 'active');
  14768. * // => 2
  14769. */
  14770. function findIndex(array, predicate, fromIndex) {
  14771. var length = array == null ? 0 : array.length;
  14772. if (!length) {
  14773. return -1;
  14774. }
  14775. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14776. if (index < 0) {
  14777. index = nativeMax(length + index, 0);
  14778. }
  14779. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14780. }
  14781. module.exports = findIndex;
  14782. /***/ }),
  14783. /***/ "../../node_modules/lodash/flatten.js":
  14784. /*!**********************************************************!*\
  14785. !*** E:/Repos/Babylon.js/node_modules/lodash/flatten.js ***!
  14786. \**********************************************************/
  14787. /*! no static exports found */
  14788. /***/ (function(module, exports, __webpack_require__) {
  14789. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  14790. /**
  14791. * Flattens `array` a single level deep.
  14792. *
  14793. * @static
  14794. * @memberOf _
  14795. * @since 0.1.0
  14796. * @category Array
  14797. * @param {Array} array The array to flatten.
  14798. * @returns {Array} Returns the new flattened array.
  14799. * @example
  14800. *
  14801. * _.flatten([1, [2, [3, [4]], 5]]);
  14802. * // => [1, 2, [3, [4]], 5]
  14803. */
  14804. function flatten(array) {
  14805. var length = array == null ? 0 : array.length;
  14806. return length ? baseFlatten(array, 1) : [];
  14807. }
  14808. module.exports = flatten;
  14809. /***/ }),
  14810. /***/ "../../node_modules/lodash/forEach.js":
  14811. /*!**********************************************************!*\
  14812. !*** E:/Repos/Babylon.js/node_modules/lodash/forEach.js ***!
  14813. \**********************************************************/
  14814. /*! no static exports found */
  14815. /***/ (function(module, exports, __webpack_require__) {
  14816. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14817. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  14818. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14819. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14820. /**
  14821. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  14822. * The iteratee is invoked with three arguments: (value, index|key, collection).
  14823. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14824. *
  14825. * **Note:** As with other "Collections" methods, objects with a "length"
  14826. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  14827. * or `_.forOwn` for object iteration.
  14828. *
  14829. * @static
  14830. * @memberOf _
  14831. * @since 0.1.0
  14832. * @alias each
  14833. * @category Collection
  14834. * @param {Array|Object} collection The collection to iterate over.
  14835. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14836. * @returns {Array|Object} Returns `collection`.
  14837. * @see _.forEachRight
  14838. * @example
  14839. *
  14840. * _.forEach([1, 2], function(value) {
  14841. * console.log(value);
  14842. * });
  14843. * // => Logs `1` then `2`.
  14844. *
  14845. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  14846. * console.log(key);
  14847. * });
  14848. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  14849. */
  14850. function forEach(collection, iteratee) {
  14851. var func = isArray(collection) ? arrayEach : baseEach;
  14852. return func(collection, castFunction(iteratee));
  14853. }
  14854. module.exports = forEach;
  14855. /***/ }),
  14856. /***/ "../../node_modules/lodash/forIn.js":
  14857. /*!********************************************************!*\
  14858. !*** E:/Repos/Babylon.js/node_modules/lodash/forIn.js ***!
  14859. \********************************************************/
  14860. /*! no static exports found */
  14861. /***/ (function(module, exports, __webpack_require__) {
  14862. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14863. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14864. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14865. /**
  14866. * Iterates over own and inherited enumerable string keyed properties of an
  14867. * object and invokes `iteratee` for each property. The iteratee is invoked
  14868. * with three arguments: (value, key, object). Iteratee functions may exit
  14869. * iteration early by explicitly returning `false`.
  14870. *
  14871. * @static
  14872. * @memberOf _
  14873. * @since 0.3.0
  14874. * @category Object
  14875. * @param {Object} object The object to iterate over.
  14876. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14877. * @returns {Object} Returns `object`.
  14878. * @see _.forInRight
  14879. * @example
  14880. *
  14881. * function Foo() {
  14882. * this.a = 1;
  14883. * this.b = 2;
  14884. * }
  14885. *
  14886. * Foo.prototype.c = 3;
  14887. *
  14888. * _.forIn(new Foo, function(value, key) {
  14889. * console.log(key);
  14890. * });
  14891. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  14892. */
  14893. function forIn(object, iteratee) {
  14894. return object == null
  14895. ? object
  14896. : baseFor(object, castFunction(iteratee), keysIn);
  14897. }
  14898. module.exports = forIn;
  14899. /***/ }),
  14900. /***/ "../../node_modules/lodash/get.js":
  14901. /*!******************************************************!*\
  14902. !*** E:/Repos/Babylon.js/node_modules/lodash/get.js ***!
  14903. \******************************************************/
  14904. /*! no static exports found */
  14905. /***/ (function(module, exports, __webpack_require__) {
  14906. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  14907. /**
  14908. * Gets the value at `path` of `object`. If the resolved value is
  14909. * `undefined`, the `defaultValue` is returned in its place.
  14910. *
  14911. * @static
  14912. * @memberOf _
  14913. * @since 3.7.0
  14914. * @category Object
  14915. * @param {Object} object The object to query.
  14916. * @param {Array|string} path The path of the property to get.
  14917. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  14918. * @returns {*} Returns the resolved value.
  14919. * @example
  14920. *
  14921. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  14922. *
  14923. * _.get(object, 'a[0].b.c');
  14924. * // => 3
  14925. *
  14926. * _.get(object, ['a', '0', 'b', 'c']);
  14927. * // => 3
  14928. *
  14929. * _.get(object, 'a.b.c', 'default');
  14930. * // => 'default'
  14931. */
  14932. function get(object, path, defaultValue) {
  14933. var result = object == null ? undefined : baseGet(object, path);
  14934. return result === undefined ? defaultValue : result;
  14935. }
  14936. module.exports = get;
  14937. /***/ }),
  14938. /***/ "../../node_modules/lodash/has.js":
  14939. /*!******************************************************!*\
  14940. !*** E:/Repos/Babylon.js/node_modules/lodash/has.js ***!
  14941. \******************************************************/
  14942. /*! no static exports found */
  14943. /***/ (function(module, exports, __webpack_require__) {
  14944. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  14945. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14946. /**
  14947. * Checks if `path` is a direct property of `object`.
  14948. *
  14949. * @static
  14950. * @since 0.1.0
  14951. * @memberOf _
  14952. * @category Object
  14953. * @param {Object} object The object to query.
  14954. * @param {Array|string} path The path to check.
  14955. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14956. * @example
  14957. *
  14958. * var object = { 'a': { 'b': 2 } };
  14959. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  14960. *
  14961. * _.has(object, 'a');
  14962. * // => true
  14963. *
  14964. * _.has(object, 'a.b');
  14965. * // => true
  14966. *
  14967. * _.has(object, ['a', 'b']);
  14968. * // => true
  14969. *
  14970. * _.has(other, 'a');
  14971. * // => false
  14972. */
  14973. function has(object, path) {
  14974. return object != null && hasPath(object, path, baseHas);
  14975. }
  14976. module.exports = has;
  14977. /***/ }),
  14978. /***/ "../../node_modules/lodash/hasIn.js":
  14979. /*!********************************************************!*\
  14980. !*** E:/Repos/Babylon.js/node_modules/lodash/hasIn.js ***!
  14981. \********************************************************/
  14982. /*! no static exports found */
  14983. /***/ (function(module, exports, __webpack_require__) {
  14984. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  14985. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14986. /**
  14987. * Checks if `path` is a direct or inherited property of `object`.
  14988. *
  14989. * @static
  14990. * @memberOf _
  14991. * @since 4.0.0
  14992. * @category Object
  14993. * @param {Object} object The object to query.
  14994. * @param {Array|string} path The path to check.
  14995. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14996. * @example
  14997. *
  14998. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  14999. *
  15000. * _.hasIn(object, 'a');
  15001. * // => true
  15002. *
  15003. * _.hasIn(object, 'a.b');
  15004. * // => true
  15005. *
  15006. * _.hasIn(object, ['a', 'b']);
  15007. * // => true
  15008. *
  15009. * _.hasIn(object, 'b');
  15010. * // => false
  15011. */
  15012. function hasIn(object, path) {
  15013. return object != null && hasPath(object, path, baseHasIn);
  15014. }
  15015. module.exports = hasIn;
  15016. /***/ }),
  15017. /***/ "../../node_modules/lodash/identity.js":
  15018. /*!***********************************************************!*\
  15019. !*** E:/Repos/Babylon.js/node_modules/lodash/identity.js ***!
  15020. \***********************************************************/
  15021. /*! no static exports found */
  15022. /***/ (function(module, exports) {
  15023. /**
  15024. * This method returns the first argument it receives.
  15025. *
  15026. * @static
  15027. * @since 0.1.0
  15028. * @memberOf _
  15029. * @category Util
  15030. * @param {*} value Any value.
  15031. * @returns {*} Returns `value`.
  15032. * @example
  15033. *
  15034. * var object = { 'a': 1 };
  15035. *
  15036. * console.log(_.identity(object) === object);
  15037. * // => true
  15038. */
  15039. function identity(value) {
  15040. return value;
  15041. }
  15042. module.exports = identity;
  15043. /***/ }),
  15044. /***/ "../../node_modules/lodash/isArguments.js":
  15045. /*!**************************************************************!*\
  15046. !*** E:/Repos/Babylon.js/node_modules/lodash/isArguments.js ***!
  15047. \**************************************************************/
  15048. /*! no static exports found */
  15049. /***/ (function(module, exports, __webpack_require__) {
  15050. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  15051. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15052. /** Used for built-in method references. */
  15053. var objectProto = Object.prototype;
  15054. /** Used to check objects for own properties. */
  15055. var hasOwnProperty = objectProto.hasOwnProperty;
  15056. /** Built-in value references. */
  15057. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  15058. /**
  15059. * Checks if `value` is likely an `arguments` object.
  15060. *
  15061. * @static
  15062. * @memberOf _
  15063. * @since 0.1.0
  15064. * @category Lang
  15065. * @param {*} value The value to check.
  15066. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  15067. * else `false`.
  15068. * @example
  15069. *
  15070. * _.isArguments(function() { return arguments; }());
  15071. * // => true
  15072. *
  15073. * _.isArguments([1, 2, 3]);
  15074. * // => false
  15075. */
  15076. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  15077. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  15078. !propertyIsEnumerable.call(value, 'callee');
  15079. };
  15080. module.exports = isArguments;
  15081. /***/ }),
  15082. /***/ "../../node_modules/lodash/isArray.js":
  15083. /*!**********************************************************!*\
  15084. !*** E:/Repos/Babylon.js/node_modules/lodash/isArray.js ***!
  15085. \**********************************************************/
  15086. /*! no static exports found */
  15087. /***/ (function(module, exports) {
  15088. /**
  15089. * Checks if `value` is classified as an `Array` object.
  15090. *
  15091. * @static
  15092. * @memberOf _
  15093. * @since 0.1.0
  15094. * @category Lang
  15095. * @param {*} value The value to check.
  15096. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  15097. * @example
  15098. *
  15099. * _.isArray([1, 2, 3]);
  15100. * // => true
  15101. *
  15102. * _.isArray(document.body.children);
  15103. * // => false
  15104. *
  15105. * _.isArray('abc');
  15106. * // => false
  15107. *
  15108. * _.isArray(_.noop);
  15109. * // => false
  15110. */
  15111. var isArray = Array.isArray;
  15112. module.exports = isArray;
  15113. /***/ }),
  15114. /***/ "../../node_modules/lodash/isArrayLike.js":
  15115. /*!**************************************************************!*\
  15116. !*** E:/Repos/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  15117. \**************************************************************/
  15118. /*! no static exports found */
  15119. /***/ (function(module, exports, __webpack_require__) {
  15120. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  15121. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  15122. /**
  15123. * Checks if `value` is array-like. A value is considered array-like if it's
  15124. * not a function and has a `value.length` that's an integer greater than or
  15125. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  15126. *
  15127. * @static
  15128. * @memberOf _
  15129. * @since 4.0.0
  15130. * @category Lang
  15131. * @param {*} value The value to check.
  15132. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  15133. * @example
  15134. *
  15135. * _.isArrayLike([1, 2, 3]);
  15136. * // => true
  15137. *
  15138. * _.isArrayLike(document.body.children);
  15139. * // => true
  15140. *
  15141. * _.isArrayLike('abc');
  15142. * // => true
  15143. *
  15144. * _.isArrayLike(_.noop);
  15145. * // => false
  15146. */
  15147. function isArrayLike(value) {
  15148. return value != null && isLength(value.length) && !isFunction(value);
  15149. }
  15150. module.exports = isArrayLike;
  15151. /***/ }),
  15152. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  15153. /*!********************************************************************!*\
  15154. !*** E:/Repos/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  15155. \********************************************************************/
  15156. /*! no static exports found */
  15157. /***/ (function(module, exports, __webpack_require__) {
  15158. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15159. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15160. /**
  15161. * This method is like `_.isArrayLike` except that it also checks if `value`
  15162. * is an object.
  15163. *
  15164. * @static
  15165. * @memberOf _
  15166. * @since 4.0.0
  15167. * @category Lang
  15168. * @param {*} value The value to check.
  15169. * @returns {boolean} Returns `true` if `value` is an array-like object,
  15170. * else `false`.
  15171. * @example
  15172. *
  15173. * _.isArrayLikeObject([1, 2, 3]);
  15174. * // => true
  15175. *
  15176. * _.isArrayLikeObject(document.body.children);
  15177. * // => true
  15178. *
  15179. * _.isArrayLikeObject('abc');
  15180. * // => false
  15181. *
  15182. * _.isArrayLikeObject(_.noop);
  15183. * // => false
  15184. */
  15185. function isArrayLikeObject(value) {
  15186. return isObjectLike(value) && isArrayLike(value);
  15187. }
  15188. module.exports = isArrayLikeObject;
  15189. /***/ }),
  15190. /***/ "../../node_modules/lodash/isBuffer.js":
  15191. /*!***********************************************************!*\
  15192. !*** E:/Repos/Babylon.js/node_modules/lodash/isBuffer.js ***!
  15193. \***********************************************************/
  15194. /*! no static exports found */
  15195. /***/ (function(module, exports, __webpack_require__) {
  15196. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  15197. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  15198. /** Detect free variable `exports`. */
  15199. var freeExports = true && exports && !exports.nodeType && exports;
  15200. /** Detect free variable `module`. */
  15201. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  15202. /** Detect the popular CommonJS extension `module.exports`. */
  15203. var moduleExports = freeModule && freeModule.exports === freeExports;
  15204. /** Built-in value references. */
  15205. var Buffer = moduleExports ? root.Buffer : undefined;
  15206. /* Built-in method references for those with the same name as other `lodash` methods. */
  15207. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  15208. /**
  15209. * Checks if `value` is a buffer.
  15210. *
  15211. * @static
  15212. * @memberOf _
  15213. * @since 4.3.0
  15214. * @category Lang
  15215. * @param {*} value The value to check.
  15216. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  15217. * @example
  15218. *
  15219. * _.isBuffer(new Buffer(2));
  15220. * // => true
  15221. *
  15222. * _.isBuffer(new Uint8Array(2));
  15223. * // => false
  15224. */
  15225. var isBuffer = nativeIsBuffer || stubFalse;
  15226. module.exports = isBuffer;
  15227. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  15228. /***/ }),
  15229. /***/ "../../node_modules/lodash/isEmpty.js":
  15230. /*!**********************************************************!*\
  15231. !*** E:/Repos/Babylon.js/node_modules/lodash/isEmpty.js ***!
  15232. \**********************************************************/
  15233. /*! no static exports found */
  15234. /***/ (function(module, exports, __webpack_require__) {
  15235. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15236. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15237. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  15238. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15239. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15240. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  15241. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  15242. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  15243. /** `Object#toString` result references. */
  15244. var mapTag = '[object Map]',
  15245. setTag = '[object Set]';
  15246. /** Used for built-in method references. */
  15247. var objectProto = Object.prototype;
  15248. /** Used to check objects for own properties. */
  15249. var hasOwnProperty = objectProto.hasOwnProperty;
  15250. /**
  15251. * Checks if `value` is an empty object, collection, map, or set.
  15252. *
  15253. * Objects are considered empty if they have no own enumerable string keyed
  15254. * properties.
  15255. *
  15256. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  15257. * jQuery-like collections are considered empty if they have a `length` of `0`.
  15258. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  15259. *
  15260. * @static
  15261. * @memberOf _
  15262. * @since 0.1.0
  15263. * @category Lang
  15264. * @param {*} value The value to check.
  15265. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  15266. * @example
  15267. *
  15268. * _.isEmpty(null);
  15269. * // => true
  15270. *
  15271. * _.isEmpty(true);
  15272. * // => true
  15273. *
  15274. * _.isEmpty(1);
  15275. * // => true
  15276. *
  15277. * _.isEmpty([1, 2, 3]);
  15278. * // => false
  15279. *
  15280. * _.isEmpty({ 'a': 1 });
  15281. * // => false
  15282. */
  15283. function isEmpty(value) {
  15284. if (value == null) {
  15285. return true;
  15286. }
  15287. if (isArrayLike(value) &&
  15288. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  15289. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  15290. return !value.length;
  15291. }
  15292. var tag = getTag(value);
  15293. if (tag == mapTag || tag == setTag) {
  15294. return !value.size;
  15295. }
  15296. if (isPrototype(value)) {
  15297. return !baseKeys(value).length;
  15298. }
  15299. for (var key in value) {
  15300. if (hasOwnProperty.call(value, key)) {
  15301. return false;
  15302. }
  15303. }
  15304. return true;
  15305. }
  15306. module.exports = isEmpty;
  15307. /***/ }),
  15308. /***/ "../../node_modules/lodash/isFunction.js":
  15309. /*!*************************************************************!*\
  15310. !*** E:/Repos/Babylon.js/node_modules/lodash/isFunction.js ***!
  15311. \*************************************************************/
  15312. /*! no static exports found */
  15313. /***/ (function(module, exports, __webpack_require__) {
  15314. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15315. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  15316. /** `Object#toString` result references. */
  15317. var asyncTag = '[object AsyncFunction]',
  15318. funcTag = '[object Function]',
  15319. genTag = '[object GeneratorFunction]',
  15320. proxyTag = '[object Proxy]';
  15321. /**
  15322. * Checks if `value` is classified as a `Function` object.
  15323. *
  15324. * @static
  15325. * @memberOf _
  15326. * @since 0.1.0
  15327. * @category Lang
  15328. * @param {*} value The value to check.
  15329. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  15330. * @example
  15331. *
  15332. * _.isFunction(_);
  15333. * // => true
  15334. *
  15335. * _.isFunction(/abc/);
  15336. * // => false
  15337. */
  15338. function isFunction(value) {
  15339. if (!isObject(value)) {
  15340. return false;
  15341. }
  15342. // The use of `Object#toString` avoids issues with the `typeof` operator
  15343. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  15344. var tag = baseGetTag(value);
  15345. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  15346. }
  15347. module.exports = isFunction;
  15348. /***/ }),
  15349. /***/ "../../node_modules/lodash/isLength.js":
  15350. /*!***********************************************************!*\
  15351. !*** E:/Repos/Babylon.js/node_modules/lodash/isLength.js ***!
  15352. \***********************************************************/
  15353. /*! no static exports found */
  15354. /***/ (function(module, exports) {
  15355. /** Used as references for various `Number` constants. */
  15356. var MAX_SAFE_INTEGER = 9007199254740991;
  15357. /**
  15358. * Checks if `value` is a valid array-like length.
  15359. *
  15360. * **Note:** This method is loosely based on
  15361. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  15362. *
  15363. * @static
  15364. * @memberOf _
  15365. * @since 4.0.0
  15366. * @category Lang
  15367. * @param {*} value The value to check.
  15368. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  15369. * @example
  15370. *
  15371. * _.isLength(3);
  15372. * // => true
  15373. *
  15374. * _.isLength(Number.MIN_VALUE);
  15375. * // => false
  15376. *
  15377. * _.isLength(Infinity);
  15378. * // => false
  15379. *
  15380. * _.isLength('3');
  15381. * // => false
  15382. */
  15383. function isLength(value) {
  15384. return typeof value == 'number' &&
  15385. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15386. }
  15387. module.exports = isLength;
  15388. /***/ }),
  15389. /***/ "../../node_modules/lodash/isMap.js":
  15390. /*!********************************************************!*\
  15391. !*** E:/Repos/Babylon.js/node_modules/lodash/isMap.js ***!
  15392. \********************************************************/
  15393. /*! no static exports found */
  15394. /***/ (function(module, exports, __webpack_require__) {
  15395. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15396. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15397. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15398. /* Node.js helper references. */
  15399. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15400. /**
  15401. * Checks if `value` is classified as a `Map` object.
  15402. *
  15403. * @static
  15404. * @memberOf _
  15405. * @since 4.3.0
  15406. * @category Lang
  15407. * @param {*} value The value to check.
  15408. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15409. * @example
  15410. *
  15411. * _.isMap(new Map);
  15412. * // => true
  15413. *
  15414. * _.isMap(new WeakMap);
  15415. * // => false
  15416. */
  15417. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15418. module.exports = isMap;
  15419. /***/ }),
  15420. /***/ "../../node_modules/lodash/isObject.js":
  15421. /*!***********************************************************!*\
  15422. !*** E:/Repos/Babylon.js/node_modules/lodash/isObject.js ***!
  15423. \***********************************************************/
  15424. /*! no static exports found */
  15425. /***/ (function(module, exports) {
  15426. /**
  15427. * Checks if `value` is the
  15428. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15429. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15430. *
  15431. * @static
  15432. * @memberOf _
  15433. * @since 0.1.0
  15434. * @category Lang
  15435. * @param {*} value The value to check.
  15436. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15437. * @example
  15438. *
  15439. * _.isObject({});
  15440. * // => true
  15441. *
  15442. * _.isObject([1, 2, 3]);
  15443. * // => true
  15444. *
  15445. * _.isObject(_.noop);
  15446. * // => true
  15447. *
  15448. * _.isObject(null);
  15449. * // => false
  15450. */
  15451. function isObject(value) {
  15452. var type = typeof value;
  15453. return value != null && (type == 'object' || type == 'function');
  15454. }
  15455. module.exports = isObject;
  15456. /***/ }),
  15457. /***/ "../../node_modules/lodash/isObjectLike.js":
  15458. /*!***************************************************************!*\
  15459. !*** E:/Repos/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15460. \***************************************************************/
  15461. /*! no static exports found */
  15462. /***/ (function(module, exports) {
  15463. /**
  15464. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15465. * and has a `typeof` result of "object".
  15466. *
  15467. * @static
  15468. * @memberOf _
  15469. * @since 4.0.0
  15470. * @category Lang
  15471. * @param {*} value The value to check.
  15472. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15473. * @example
  15474. *
  15475. * _.isObjectLike({});
  15476. * // => true
  15477. *
  15478. * _.isObjectLike([1, 2, 3]);
  15479. * // => true
  15480. *
  15481. * _.isObjectLike(_.noop);
  15482. * // => false
  15483. *
  15484. * _.isObjectLike(null);
  15485. * // => false
  15486. */
  15487. function isObjectLike(value) {
  15488. return value != null && typeof value == 'object';
  15489. }
  15490. module.exports = isObjectLike;
  15491. /***/ }),
  15492. /***/ "../../node_modules/lodash/isPlainObject.js":
  15493. /*!****************************************************************!*\
  15494. !*** E:/Repos/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15495. \****************************************************************/
  15496. /*! no static exports found */
  15497. /***/ (function(module, exports, __webpack_require__) {
  15498. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15499. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15500. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15501. /** `Object#toString` result references. */
  15502. var objectTag = '[object Object]';
  15503. /** Used for built-in method references. */
  15504. var funcProto = Function.prototype,
  15505. objectProto = Object.prototype;
  15506. /** Used to resolve the decompiled source of functions. */
  15507. var funcToString = funcProto.toString;
  15508. /** Used to check objects for own properties. */
  15509. var hasOwnProperty = objectProto.hasOwnProperty;
  15510. /** Used to infer the `Object` constructor. */
  15511. var objectCtorString = funcToString.call(Object);
  15512. /**
  15513. * Checks if `value` is a plain object, that is, an object created by the
  15514. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15515. *
  15516. * @static
  15517. * @memberOf _
  15518. * @since 0.8.0
  15519. * @category Lang
  15520. * @param {*} value The value to check.
  15521. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15522. * @example
  15523. *
  15524. * function Foo() {
  15525. * this.a = 1;
  15526. * }
  15527. *
  15528. * _.isPlainObject(new Foo);
  15529. * // => false
  15530. *
  15531. * _.isPlainObject([1, 2, 3]);
  15532. * // => false
  15533. *
  15534. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15535. * // => true
  15536. *
  15537. * _.isPlainObject(Object.create(null));
  15538. * // => true
  15539. */
  15540. function isPlainObject(value) {
  15541. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15542. return false;
  15543. }
  15544. var proto = getPrototype(value);
  15545. if (proto === null) {
  15546. return true;
  15547. }
  15548. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15549. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15550. funcToString.call(Ctor) == objectCtorString;
  15551. }
  15552. module.exports = isPlainObject;
  15553. /***/ }),
  15554. /***/ "../../node_modules/lodash/isSet.js":
  15555. /*!********************************************************!*\
  15556. !*** E:/Repos/Babylon.js/node_modules/lodash/isSet.js ***!
  15557. \********************************************************/
  15558. /*! no static exports found */
  15559. /***/ (function(module, exports, __webpack_require__) {
  15560. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15561. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15562. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15563. /* Node.js helper references. */
  15564. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15565. /**
  15566. * Checks if `value` is classified as a `Set` object.
  15567. *
  15568. * @static
  15569. * @memberOf _
  15570. * @since 4.3.0
  15571. * @category Lang
  15572. * @param {*} value The value to check.
  15573. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15574. * @example
  15575. *
  15576. * _.isSet(new Set);
  15577. * // => true
  15578. *
  15579. * _.isSet(new WeakSet);
  15580. * // => false
  15581. */
  15582. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15583. module.exports = isSet;
  15584. /***/ }),
  15585. /***/ "../../node_modules/lodash/isString.js":
  15586. /*!***********************************************************!*\
  15587. !*** E:/Repos/Babylon.js/node_modules/lodash/isString.js ***!
  15588. \***********************************************************/
  15589. /*! no static exports found */
  15590. /***/ (function(module, exports, __webpack_require__) {
  15591. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15592. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15593. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15594. /** `Object#toString` result references. */
  15595. var stringTag = '[object String]';
  15596. /**
  15597. * Checks if `value` is classified as a `String` primitive or object.
  15598. *
  15599. * @static
  15600. * @since 0.1.0
  15601. * @memberOf _
  15602. * @category Lang
  15603. * @param {*} value The value to check.
  15604. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15605. * @example
  15606. *
  15607. * _.isString('abc');
  15608. * // => true
  15609. *
  15610. * _.isString(1);
  15611. * // => false
  15612. */
  15613. function isString(value) {
  15614. return typeof value == 'string' ||
  15615. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15616. }
  15617. module.exports = isString;
  15618. /***/ }),
  15619. /***/ "../../node_modules/lodash/isSymbol.js":
  15620. /*!***********************************************************!*\
  15621. !*** E:/Repos/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15622. \***********************************************************/
  15623. /*! no static exports found */
  15624. /***/ (function(module, exports, __webpack_require__) {
  15625. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15626. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15627. /** `Object#toString` result references. */
  15628. var symbolTag = '[object Symbol]';
  15629. /**
  15630. * Checks if `value` is classified as a `Symbol` primitive or object.
  15631. *
  15632. * @static
  15633. * @memberOf _
  15634. * @since 4.0.0
  15635. * @category Lang
  15636. * @param {*} value The value to check.
  15637. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15638. * @example
  15639. *
  15640. * _.isSymbol(Symbol.iterator);
  15641. * // => true
  15642. *
  15643. * _.isSymbol('abc');
  15644. * // => false
  15645. */
  15646. function isSymbol(value) {
  15647. return typeof value == 'symbol' ||
  15648. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15649. }
  15650. module.exports = isSymbol;
  15651. /***/ }),
  15652. /***/ "../../node_modules/lodash/isTypedArray.js":
  15653. /*!***************************************************************!*\
  15654. !*** E:/Repos/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15655. \***************************************************************/
  15656. /*! no static exports found */
  15657. /***/ (function(module, exports, __webpack_require__) {
  15658. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15659. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15660. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15661. /* Node.js helper references. */
  15662. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15663. /**
  15664. * Checks if `value` is classified as a typed array.
  15665. *
  15666. * @static
  15667. * @memberOf _
  15668. * @since 3.0.0
  15669. * @category Lang
  15670. * @param {*} value The value to check.
  15671. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15672. * @example
  15673. *
  15674. * _.isTypedArray(new Uint8Array);
  15675. * // => true
  15676. *
  15677. * _.isTypedArray([]);
  15678. * // => false
  15679. */
  15680. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15681. module.exports = isTypedArray;
  15682. /***/ }),
  15683. /***/ "../../node_modules/lodash/isUndefined.js":
  15684. /*!**************************************************************!*\
  15685. !*** E:/Repos/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15686. \**************************************************************/
  15687. /*! no static exports found */
  15688. /***/ (function(module, exports) {
  15689. /**
  15690. * Checks if `value` is `undefined`.
  15691. *
  15692. * @static
  15693. * @since 0.1.0
  15694. * @memberOf _
  15695. * @category Lang
  15696. * @param {*} value The value to check.
  15697. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15698. * @example
  15699. *
  15700. * _.isUndefined(void 0);
  15701. * // => true
  15702. *
  15703. * _.isUndefined(null);
  15704. * // => false
  15705. */
  15706. function isUndefined(value) {
  15707. return value === undefined;
  15708. }
  15709. module.exports = isUndefined;
  15710. /***/ }),
  15711. /***/ "../../node_modules/lodash/keys.js":
  15712. /*!*******************************************************!*\
  15713. !*** E:/Repos/Babylon.js/node_modules/lodash/keys.js ***!
  15714. \*******************************************************/
  15715. /*! no static exports found */
  15716. /***/ (function(module, exports, __webpack_require__) {
  15717. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15718. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15719. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15720. /**
  15721. * Creates an array of the own enumerable property names of `object`.
  15722. *
  15723. * **Note:** Non-object values are coerced to objects. See the
  15724. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15725. * for more details.
  15726. *
  15727. * @static
  15728. * @since 0.1.0
  15729. * @memberOf _
  15730. * @category Object
  15731. * @param {Object} object The object to query.
  15732. * @returns {Array} Returns the array of property names.
  15733. * @example
  15734. *
  15735. * function Foo() {
  15736. * this.a = 1;
  15737. * this.b = 2;
  15738. * }
  15739. *
  15740. * Foo.prototype.c = 3;
  15741. *
  15742. * _.keys(new Foo);
  15743. * // => ['a', 'b'] (iteration order is not guaranteed)
  15744. *
  15745. * _.keys('hi');
  15746. * // => ['0', '1']
  15747. */
  15748. function keys(object) {
  15749. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  15750. }
  15751. module.exports = keys;
  15752. /***/ }),
  15753. /***/ "../../node_modules/lodash/keysIn.js":
  15754. /*!*********************************************************!*\
  15755. !*** E:/Repos/Babylon.js/node_modules/lodash/keysIn.js ***!
  15756. \*********************************************************/
  15757. /*! no static exports found */
  15758. /***/ (function(module, exports, __webpack_require__) {
  15759. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15760. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  15761. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15762. /**
  15763. * Creates an array of the own and inherited enumerable property names of `object`.
  15764. *
  15765. * **Note:** Non-object values are coerced to objects.
  15766. *
  15767. * @static
  15768. * @memberOf _
  15769. * @since 3.0.0
  15770. * @category Object
  15771. * @param {Object} object The object to query.
  15772. * @returns {Array} Returns the array of property names.
  15773. * @example
  15774. *
  15775. * function Foo() {
  15776. * this.a = 1;
  15777. * this.b = 2;
  15778. * }
  15779. *
  15780. * Foo.prototype.c = 3;
  15781. *
  15782. * _.keysIn(new Foo);
  15783. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  15784. */
  15785. function keysIn(object) {
  15786. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  15787. }
  15788. module.exports = keysIn;
  15789. /***/ }),
  15790. /***/ "../../node_modules/lodash/last.js":
  15791. /*!*******************************************************!*\
  15792. !*** E:/Repos/Babylon.js/node_modules/lodash/last.js ***!
  15793. \*******************************************************/
  15794. /*! no static exports found */
  15795. /***/ (function(module, exports) {
  15796. /**
  15797. * Gets the last element of `array`.
  15798. *
  15799. * @static
  15800. * @memberOf _
  15801. * @since 0.1.0
  15802. * @category Array
  15803. * @param {Array} array The array to query.
  15804. * @returns {*} Returns the last element of `array`.
  15805. * @example
  15806. *
  15807. * _.last([1, 2, 3]);
  15808. * // => 3
  15809. */
  15810. function last(array) {
  15811. var length = array == null ? 0 : array.length;
  15812. return length ? array[length - 1] : undefined;
  15813. }
  15814. module.exports = last;
  15815. /***/ }),
  15816. /***/ "../../node_modules/lodash/lodash.js":
  15817. /*!*********************************************************!*\
  15818. !*** E:/Repos/Babylon.js/node_modules/lodash/lodash.js ***!
  15819. \*********************************************************/
  15820. /*! no static exports found */
  15821. /***/ (function(module, exports, __webpack_require__) {
  15822. /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
  15823. * @license
  15824. * Lodash <https://lodash.com/>
  15825. * Copyright JS Foundation and other contributors <https://js.foundation/>
  15826. * Released under MIT license <https://lodash.com/license>
  15827. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  15828. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  15829. */
  15830. ;(function() {
  15831. /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  15832. var undefined;
  15833. /** Used as the semantic version number. */
  15834. var VERSION = '4.17.11';
  15835. /** Used as the size to enable large array optimizations. */
  15836. var LARGE_ARRAY_SIZE = 200;
  15837. /** Error message constants. */
  15838. var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
  15839. FUNC_ERROR_TEXT = 'Expected a function';
  15840. /** Used to stand-in for `undefined` hash values. */
  15841. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  15842. /** Used as the maximum memoize cache size. */
  15843. var MAX_MEMOIZE_SIZE = 500;
  15844. /** Used as the internal argument placeholder. */
  15845. var PLACEHOLDER = '__lodash_placeholder__';
  15846. /** Used to compose bitmasks for cloning. */
  15847. var CLONE_DEEP_FLAG = 1,
  15848. CLONE_FLAT_FLAG = 2,
  15849. CLONE_SYMBOLS_FLAG = 4;
  15850. /** Used to compose bitmasks for value comparisons. */
  15851. var COMPARE_PARTIAL_FLAG = 1,
  15852. COMPARE_UNORDERED_FLAG = 2;
  15853. /** Used to compose bitmasks for function metadata. */
  15854. var WRAP_BIND_FLAG = 1,
  15855. WRAP_BIND_KEY_FLAG = 2,
  15856. WRAP_CURRY_BOUND_FLAG = 4,
  15857. WRAP_CURRY_FLAG = 8,
  15858. WRAP_CURRY_RIGHT_FLAG = 16,
  15859. WRAP_PARTIAL_FLAG = 32,
  15860. WRAP_PARTIAL_RIGHT_FLAG = 64,
  15861. WRAP_ARY_FLAG = 128,
  15862. WRAP_REARG_FLAG = 256,
  15863. WRAP_FLIP_FLAG = 512;
  15864. /** Used as default options for `_.truncate`. */
  15865. var DEFAULT_TRUNC_LENGTH = 30,
  15866. DEFAULT_TRUNC_OMISSION = '...';
  15867. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  15868. var HOT_COUNT = 800,
  15869. HOT_SPAN = 16;
  15870. /** Used to indicate the type of lazy iteratees. */
  15871. var LAZY_FILTER_FLAG = 1,
  15872. LAZY_MAP_FLAG = 2,
  15873. LAZY_WHILE_FLAG = 3;
  15874. /** Used as references for various `Number` constants. */
  15875. var INFINITY = 1 / 0,
  15876. MAX_SAFE_INTEGER = 9007199254740991,
  15877. MAX_INTEGER = 1.7976931348623157e+308,
  15878. NAN = 0 / 0;
  15879. /** Used as references for the maximum length and index of an array. */
  15880. var MAX_ARRAY_LENGTH = 4294967295,
  15881. MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
  15882. HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
  15883. /** Used to associate wrap methods with their bit flags. */
  15884. var wrapFlags = [
  15885. ['ary', WRAP_ARY_FLAG],
  15886. ['bind', WRAP_BIND_FLAG],
  15887. ['bindKey', WRAP_BIND_KEY_FLAG],
  15888. ['curry', WRAP_CURRY_FLAG],
  15889. ['curryRight', WRAP_CURRY_RIGHT_FLAG],
  15890. ['flip', WRAP_FLIP_FLAG],
  15891. ['partial', WRAP_PARTIAL_FLAG],
  15892. ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
  15893. ['rearg', WRAP_REARG_FLAG]
  15894. ];
  15895. /** `Object#toString` result references. */
  15896. var argsTag = '[object Arguments]',
  15897. arrayTag = '[object Array]',
  15898. asyncTag = '[object AsyncFunction]',
  15899. boolTag = '[object Boolean]',
  15900. dateTag = '[object Date]',
  15901. domExcTag = '[object DOMException]',
  15902. errorTag = '[object Error]',
  15903. funcTag = '[object Function]',
  15904. genTag = '[object GeneratorFunction]',
  15905. mapTag = '[object Map]',
  15906. numberTag = '[object Number]',
  15907. nullTag = '[object Null]',
  15908. objectTag = '[object Object]',
  15909. promiseTag = '[object Promise]',
  15910. proxyTag = '[object Proxy]',
  15911. regexpTag = '[object RegExp]',
  15912. setTag = '[object Set]',
  15913. stringTag = '[object String]',
  15914. symbolTag = '[object Symbol]',
  15915. undefinedTag = '[object Undefined]',
  15916. weakMapTag = '[object WeakMap]',
  15917. weakSetTag = '[object WeakSet]';
  15918. var arrayBufferTag = '[object ArrayBuffer]',
  15919. dataViewTag = '[object DataView]',
  15920. float32Tag = '[object Float32Array]',
  15921. float64Tag = '[object Float64Array]',
  15922. int8Tag = '[object Int8Array]',
  15923. int16Tag = '[object Int16Array]',
  15924. int32Tag = '[object Int32Array]',
  15925. uint8Tag = '[object Uint8Array]',
  15926. uint8ClampedTag = '[object Uint8ClampedArray]',
  15927. uint16Tag = '[object Uint16Array]',
  15928. uint32Tag = '[object Uint32Array]';
  15929. /** Used to match empty string literals in compiled template source. */
  15930. var reEmptyStringLeading = /\b__p \+= '';/g,
  15931. reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
  15932. reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
  15933. /** Used to match HTML entities and HTML characters. */
  15934. var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
  15935. reUnescapedHtml = /[&<>"']/g,
  15936. reHasEscapedHtml = RegExp(reEscapedHtml.source),
  15937. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  15938. /** Used to match template delimiters. */
  15939. var reEscape = /<%-([\s\S]+?)%>/g,
  15940. reEvaluate = /<%([\s\S]+?)%>/g,
  15941. reInterpolate = /<%=([\s\S]+?)%>/g;
  15942. /** Used to match property names within property paths. */
  15943. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  15944. reIsPlainProp = /^\w*$/,
  15945. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  15946. /**
  15947. * Used to match `RegExp`
  15948. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  15949. */
  15950. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
  15951. reHasRegExpChar = RegExp(reRegExpChar.source);
  15952. /** Used to match leading and trailing whitespace. */
  15953. var reTrim = /^\s+|\s+$/g,
  15954. reTrimStart = /^\s+/,
  15955. reTrimEnd = /\s+$/;
  15956. /** Used to match wrap detail comments. */
  15957. var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
  15958. reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
  15959. reSplitDetails = /,? & /;
  15960. /** Used to match words composed of alphanumeric characters. */
  15961. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  15962. /** Used to match backslashes in property paths. */
  15963. var reEscapeChar = /\\(\\)?/g;
  15964. /**
  15965. * Used to match
  15966. * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
  15967. */
  15968. var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
  15969. /** Used to match `RegExp` flags from their coerced string values. */
  15970. var reFlags = /\w*$/;
  15971. /** Used to detect bad signed hexadecimal string values. */
  15972. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  15973. /** Used to detect binary string values. */
  15974. var reIsBinary = /^0b[01]+$/i;
  15975. /** Used to detect host constructors (Safari). */
  15976. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  15977. /** Used to detect octal string values. */
  15978. var reIsOctal = /^0o[0-7]+$/i;
  15979. /** Used to detect unsigned integer values. */
  15980. var reIsUint = /^(?:0|[1-9]\d*)$/;
  15981. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  15982. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  15983. /** Used to ensure capturing order of template delimiters. */
  15984. var reNoMatch = /($^)/;
  15985. /** Used to match unescaped characters in compiled string literals. */
  15986. var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
  15987. /** Used to compose unicode character classes. */
  15988. var rsAstralRange = '\\ud800-\\udfff',
  15989. rsComboMarksRange = '\\u0300-\\u036f',
  15990. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  15991. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  15992. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  15993. rsDingbatRange = '\\u2700-\\u27bf',
  15994. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  15995. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  15996. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  15997. rsPunctuationRange = '\\u2000-\\u206f',
  15998. 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',
  15999. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  16000. rsVarRange = '\\ufe0e\\ufe0f',
  16001. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  16002. /** Used to compose unicode capture groups. */
  16003. var rsApos = "['\u2019]",
  16004. rsAstral = '[' + rsAstralRange + ']',
  16005. rsBreak = '[' + rsBreakRange + ']',
  16006. rsCombo = '[' + rsComboRange + ']',
  16007. rsDigits = '\\d+',
  16008. rsDingbat = '[' + rsDingbatRange + ']',
  16009. rsLower = '[' + rsLowerRange + ']',
  16010. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  16011. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  16012. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  16013. rsNonAstral = '[^' + rsAstralRange + ']',
  16014. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  16015. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  16016. rsUpper = '[' + rsUpperRange + ']',
  16017. rsZWJ = '\\u200d';
  16018. /** Used to compose unicode regexes. */
  16019. var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
  16020. rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
  16021. rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  16022. rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  16023. reOptMod = rsModifier + '?',
  16024. rsOptVar = '[' + rsVarRange + ']?',
  16025. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  16026. rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
  16027. rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
  16028. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  16029. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  16030. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  16031. /** Used to match apostrophes. */
  16032. var reApos = RegExp(rsApos, 'g');
  16033. /**
  16034. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  16035. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  16036. */
  16037. var reComboMark = RegExp(rsCombo, 'g');
  16038. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  16039. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  16040. /** Used to match complex or compound words. */
  16041. var reUnicodeWord = RegExp([
  16042. rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  16043. rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
  16044. rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
  16045. rsUpper + '+' + rsOptContrUpper,
  16046. rsOrdUpper,
  16047. rsOrdLower,
  16048. rsDigits,
  16049. rsEmoji
  16050. ].join('|'), 'g');
  16051. /** 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/). */
  16052. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  16053. /** Used to detect strings that need a more robust regexp to match words. */
  16054. 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 ]/;
  16055. /** Used to assign default `context` object properties. */
  16056. var contextProps = [
  16057. 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
  16058. 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
  16059. 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
  16060. 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
  16061. '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  16062. ];
  16063. /** Used to make template sourceURLs easier to identify. */
  16064. var templateCounter = -1;
  16065. /** Used to identify `toStringTag` values of typed arrays. */
  16066. var typedArrayTags = {};
  16067. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  16068. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  16069. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  16070. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  16071. typedArrayTags[uint32Tag] = true;
  16072. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  16073. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  16074. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  16075. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  16076. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  16077. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  16078. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  16079. typedArrayTags[weakMapTag] = false;
  16080. /** Used to identify `toStringTag` values supported by `_.clone`. */
  16081. var cloneableTags = {};
  16082. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  16083. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  16084. cloneableTags[boolTag] = cloneableTags[dateTag] =
  16085. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  16086. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  16087. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  16088. cloneableTags[numberTag] = cloneableTags[objectTag] =
  16089. cloneableTags[regexpTag] = cloneableTags[setTag] =
  16090. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  16091. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  16092. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  16093. cloneableTags[errorTag] = cloneableTags[funcTag] =
  16094. cloneableTags[weakMapTag] = false;
  16095. /** Used to map Latin Unicode letters to basic Latin letters. */
  16096. var deburredLetters = {
  16097. // Latin-1 Supplement block.
  16098. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  16099. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  16100. '\xc7': 'C', '\xe7': 'c',
  16101. '\xd0': 'D', '\xf0': 'd',
  16102. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  16103. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  16104. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  16105. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  16106. '\xd1': 'N', '\xf1': 'n',
  16107. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  16108. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  16109. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  16110. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  16111. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  16112. '\xc6': 'Ae', '\xe6': 'ae',
  16113. '\xde': 'Th', '\xfe': 'th',
  16114. '\xdf': 'ss',
  16115. // Latin Extended-A block.
  16116. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  16117. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  16118. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  16119. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  16120. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  16121. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  16122. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  16123. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  16124. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  16125. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  16126. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  16127. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  16128. '\u0134': 'J', '\u0135': 'j',
  16129. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  16130. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  16131. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  16132. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  16133. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  16134. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  16135. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  16136. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  16137. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  16138. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  16139. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  16140. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  16141. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  16142. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  16143. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  16144. '\u0174': 'W', '\u0175': 'w',
  16145. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  16146. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  16147. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  16148. '\u0132': 'IJ', '\u0133': 'ij',
  16149. '\u0152': 'Oe', '\u0153': 'oe',
  16150. '\u0149': "'n", '\u017f': 's'
  16151. };
  16152. /** Used to map characters to HTML entities. */
  16153. var htmlEscapes = {
  16154. '&': '&amp;',
  16155. '<': '&lt;',
  16156. '>': '&gt;',
  16157. '"': '&quot;',
  16158. "'": '&#39;'
  16159. };
  16160. /** Used to map HTML entities to characters. */
  16161. var htmlUnescapes = {
  16162. '&amp;': '&',
  16163. '&lt;': '<',
  16164. '&gt;': '>',
  16165. '&quot;': '"',
  16166. '&#39;': "'"
  16167. };
  16168. /** Used to escape characters for inclusion in compiled string literals. */
  16169. var stringEscapes = {
  16170. '\\': '\\',
  16171. "'": "'",
  16172. '\n': 'n',
  16173. '\r': 'r',
  16174. '\u2028': 'u2028',
  16175. '\u2029': 'u2029'
  16176. };
  16177. /** Built-in method references without a dependency on `root`. */
  16178. var freeParseFloat = parseFloat,
  16179. freeParseInt = parseInt;
  16180. /** Detect free variable `global` from Node.js. */
  16181. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  16182. /** Detect free variable `self`. */
  16183. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  16184. /** Used as a reference to the global object. */
  16185. var root = freeGlobal || freeSelf || Function('return this')();
  16186. /** Detect free variable `exports`. */
  16187. var freeExports = true && exports && !exports.nodeType && exports;
  16188. /** Detect free variable `module`. */
  16189. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  16190. /** Detect the popular CommonJS extension `module.exports`. */
  16191. var moduleExports = freeModule && freeModule.exports === freeExports;
  16192. /** Detect free variable `process` from Node.js. */
  16193. var freeProcess = moduleExports && freeGlobal.process;
  16194. /** Used to access faster Node.js helpers. */
  16195. var nodeUtil = (function() {
  16196. try {
  16197. // Use `util.types` for Node.js 10+.
  16198. var types = freeModule && freeModule.require && freeModule.require('util').types;
  16199. if (types) {
  16200. return types;
  16201. }
  16202. // Legacy `process.binding('util')` for Node.js < 10.
  16203. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  16204. } catch (e) {}
  16205. }());
  16206. /* Node.js helper references. */
  16207. var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
  16208. nodeIsDate = nodeUtil && nodeUtil.isDate,
  16209. nodeIsMap = nodeUtil && nodeUtil.isMap,
  16210. nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
  16211. nodeIsSet = nodeUtil && nodeUtil.isSet,
  16212. nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  16213. /*--------------------------------------------------------------------------*/
  16214. /**
  16215. * A faster alternative to `Function#apply`, this function invokes `func`
  16216. * with the `this` binding of `thisArg` and the arguments of `args`.
  16217. *
  16218. * @private
  16219. * @param {Function} func The function to invoke.
  16220. * @param {*} thisArg The `this` binding of `func`.
  16221. * @param {Array} args The arguments to invoke `func` with.
  16222. * @returns {*} Returns the result of `func`.
  16223. */
  16224. function apply(func, thisArg, args) {
  16225. switch (args.length) {
  16226. case 0: return func.call(thisArg);
  16227. case 1: return func.call(thisArg, args[0]);
  16228. case 2: return func.call(thisArg, args[0], args[1]);
  16229. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  16230. }
  16231. return func.apply(thisArg, args);
  16232. }
  16233. /**
  16234. * A specialized version of `baseAggregator` for arrays.
  16235. *
  16236. * @private
  16237. * @param {Array} [array] The array to iterate over.
  16238. * @param {Function} setter The function to set `accumulator` values.
  16239. * @param {Function} iteratee The iteratee to transform keys.
  16240. * @param {Object} accumulator The initial aggregated object.
  16241. * @returns {Function} Returns `accumulator`.
  16242. */
  16243. function arrayAggregator(array, setter, iteratee, accumulator) {
  16244. var index = -1,
  16245. length = array == null ? 0 : array.length;
  16246. while (++index < length) {
  16247. var value = array[index];
  16248. setter(accumulator, value, iteratee(value), array);
  16249. }
  16250. return accumulator;
  16251. }
  16252. /**
  16253. * A specialized version of `_.forEach` for arrays without support for
  16254. * iteratee shorthands.
  16255. *
  16256. * @private
  16257. * @param {Array} [array] The array to iterate over.
  16258. * @param {Function} iteratee The function invoked per iteration.
  16259. * @returns {Array} Returns `array`.
  16260. */
  16261. function arrayEach(array, iteratee) {
  16262. var index = -1,
  16263. length = array == null ? 0 : array.length;
  16264. while (++index < length) {
  16265. if (iteratee(array[index], index, array) === false) {
  16266. break;
  16267. }
  16268. }
  16269. return array;
  16270. }
  16271. /**
  16272. * A specialized version of `_.forEachRight` for arrays without support for
  16273. * iteratee shorthands.
  16274. *
  16275. * @private
  16276. * @param {Array} [array] The array to iterate over.
  16277. * @param {Function} iteratee The function invoked per iteration.
  16278. * @returns {Array} Returns `array`.
  16279. */
  16280. function arrayEachRight(array, iteratee) {
  16281. var length = array == null ? 0 : array.length;
  16282. while (length--) {
  16283. if (iteratee(array[length], length, array) === false) {
  16284. break;
  16285. }
  16286. }
  16287. return array;
  16288. }
  16289. /**
  16290. * A specialized version of `_.every` for arrays without support for
  16291. * iteratee shorthands.
  16292. *
  16293. * @private
  16294. * @param {Array} [array] The array to iterate over.
  16295. * @param {Function} predicate The function invoked per iteration.
  16296. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  16297. * else `false`.
  16298. */
  16299. function arrayEvery(array, predicate) {
  16300. var index = -1,
  16301. length = array == null ? 0 : array.length;
  16302. while (++index < length) {
  16303. if (!predicate(array[index], index, array)) {
  16304. return false;
  16305. }
  16306. }
  16307. return true;
  16308. }
  16309. /**
  16310. * A specialized version of `_.filter` for arrays without support for
  16311. * iteratee shorthands.
  16312. *
  16313. * @private
  16314. * @param {Array} [array] The array to iterate over.
  16315. * @param {Function} predicate The function invoked per iteration.
  16316. * @returns {Array} Returns the new filtered array.
  16317. */
  16318. function arrayFilter(array, predicate) {
  16319. var index = -1,
  16320. length = array == null ? 0 : array.length,
  16321. resIndex = 0,
  16322. result = [];
  16323. while (++index < length) {
  16324. var value = array[index];
  16325. if (predicate(value, index, array)) {
  16326. result[resIndex++] = value;
  16327. }
  16328. }
  16329. return result;
  16330. }
  16331. /**
  16332. * A specialized version of `_.includes` for arrays without support for
  16333. * specifying an index to search from.
  16334. *
  16335. * @private
  16336. * @param {Array} [array] The array to inspect.
  16337. * @param {*} target The value to search for.
  16338. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16339. */
  16340. function arrayIncludes(array, value) {
  16341. var length = array == null ? 0 : array.length;
  16342. return !!length && baseIndexOf(array, value, 0) > -1;
  16343. }
  16344. /**
  16345. * This function is like `arrayIncludes` except that it accepts a comparator.
  16346. *
  16347. * @private
  16348. * @param {Array} [array] The array to inspect.
  16349. * @param {*} target The value to search for.
  16350. * @param {Function} comparator The comparator invoked per element.
  16351. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  16352. */
  16353. function arrayIncludesWith(array, value, comparator) {
  16354. var index = -1,
  16355. length = array == null ? 0 : array.length;
  16356. while (++index < length) {
  16357. if (comparator(value, array[index])) {
  16358. return true;
  16359. }
  16360. }
  16361. return false;
  16362. }
  16363. /**
  16364. * A specialized version of `_.map` for arrays without support for iteratee
  16365. * shorthands.
  16366. *
  16367. * @private
  16368. * @param {Array} [array] The array to iterate over.
  16369. * @param {Function} iteratee The function invoked per iteration.
  16370. * @returns {Array} Returns the new mapped array.
  16371. */
  16372. function arrayMap(array, iteratee) {
  16373. var index = -1,
  16374. length = array == null ? 0 : array.length,
  16375. result = Array(length);
  16376. while (++index < length) {
  16377. result[index] = iteratee(array[index], index, array);
  16378. }
  16379. return result;
  16380. }
  16381. /**
  16382. * Appends the elements of `values` to `array`.
  16383. *
  16384. * @private
  16385. * @param {Array} array The array to modify.
  16386. * @param {Array} values The values to append.
  16387. * @returns {Array} Returns `array`.
  16388. */
  16389. function arrayPush(array, values) {
  16390. var index = -1,
  16391. length = values.length,
  16392. offset = array.length;
  16393. while (++index < length) {
  16394. array[offset + index] = values[index];
  16395. }
  16396. return array;
  16397. }
  16398. /**
  16399. * A specialized version of `_.reduce` for arrays without support for
  16400. * iteratee shorthands.
  16401. *
  16402. * @private
  16403. * @param {Array} [array] The array to iterate over.
  16404. * @param {Function} iteratee The function invoked per iteration.
  16405. * @param {*} [accumulator] The initial value.
  16406. * @param {boolean} [initAccum] Specify using the first element of `array` as
  16407. * the initial value.
  16408. * @returns {*} Returns the accumulated value.
  16409. */
  16410. function arrayReduce(array, iteratee, accumulator, initAccum) {
  16411. var index = -1,
  16412. length = array == null ? 0 : array.length;
  16413. if (initAccum && length) {
  16414. accumulator = array[++index];
  16415. }
  16416. while (++index < length) {
  16417. accumulator = iteratee(accumulator, array[index], index, array);
  16418. }
  16419. return accumulator;
  16420. }
  16421. /**
  16422. * A specialized version of `_.reduceRight` for arrays without support for
  16423. * iteratee shorthands.
  16424. *
  16425. * @private
  16426. * @param {Array} [array] The array to iterate over.
  16427. * @param {Function} iteratee The function invoked per iteration.
  16428. * @param {*} [accumulator] The initial value.
  16429. * @param {boolean} [initAccum] Specify using the last element of `array` as
  16430. * the initial value.
  16431. * @returns {*} Returns the accumulated value.
  16432. */
  16433. function arrayReduceRight(array, iteratee, accumulator, initAccum) {
  16434. var length = array == null ? 0 : array.length;
  16435. if (initAccum && length) {
  16436. accumulator = array[--length];
  16437. }
  16438. while (length--) {
  16439. accumulator = iteratee(accumulator, array[length], length, array);
  16440. }
  16441. return accumulator;
  16442. }
  16443. /**
  16444. * A specialized version of `_.some` for arrays without support for iteratee
  16445. * shorthands.
  16446. *
  16447. * @private
  16448. * @param {Array} [array] The array to iterate over.
  16449. * @param {Function} predicate The function invoked per iteration.
  16450. * @returns {boolean} Returns `true` if any element passes the predicate check,
  16451. * else `false`.
  16452. */
  16453. function arraySome(array, predicate) {
  16454. var index = -1,
  16455. length = array == null ? 0 : array.length;
  16456. while (++index < length) {
  16457. if (predicate(array[index], index, array)) {
  16458. return true;
  16459. }
  16460. }
  16461. return false;
  16462. }
  16463. /**
  16464. * Gets the size of an ASCII `string`.
  16465. *
  16466. * @private
  16467. * @param {string} string The string inspect.
  16468. * @returns {number} Returns the string size.
  16469. */
  16470. var asciiSize = baseProperty('length');
  16471. /**
  16472. * Converts an ASCII `string` to an array.
  16473. *
  16474. * @private
  16475. * @param {string} string The string to convert.
  16476. * @returns {Array} Returns the converted array.
  16477. */
  16478. function asciiToArray(string) {
  16479. return string.split('');
  16480. }
  16481. /**
  16482. * Splits an ASCII `string` into an array of its words.
  16483. *
  16484. * @private
  16485. * @param {string} The string to inspect.
  16486. * @returns {Array} Returns the words of `string`.
  16487. */
  16488. function asciiWords(string) {
  16489. return string.match(reAsciiWord) || [];
  16490. }
  16491. /**
  16492. * The base implementation of methods like `_.findKey` and `_.findLastKey`,
  16493. * without support for iteratee shorthands, which iterates over `collection`
  16494. * using `eachFunc`.
  16495. *
  16496. * @private
  16497. * @param {Array|Object} collection The collection to inspect.
  16498. * @param {Function} predicate The function invoked per iteration.
  16499. * @param {Function} eachFunc The function to iterate over `collection`.
  16500. * @returns {*} Returns the found element or its key, else `undefined`.
  16501. */
  16502. function baseFindKey(collection, predicate, eachFunc) {
  16503. var result;
  16504. eachFunc(collection, function(value, key, collection) {
  16505. if (predicate(value, key, collection)) {
  16506. result = key;
  16507. return false;
  16508. }
  16509. });
  16510. return result;
  16511. }
  16512. /**
  16513. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  16514. * support for iteratee shorthands.
  16515. *
  16516. * @private
  16517. * @param {Array} array The array to inspect.
  16518. * @param {Function} predicate The function invoked per iteration.
  16519. * @param {number} fromIndex The index to search from.
  16520. * @param {boolean} [fromRight] Specify iterating from right to left.
  16521. * @returns {number} Returns the index of the matched value, else `-1`.
  16522. */
  16523. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  16524. var length = array.length,
  16525. index = fromIndex + (fromRight ? 1 : -1);
  16526. while ((fromRight ? index-- : ++index < length)) {
  16527. if (predicate(array[index], index, array)) {
  16528. return index;
  16529. }
  16530. }
  16531. return -1;
  16532. }
  16533. /**
  16534. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  16535. *
  16536. * @private
  16537. * @param {Array} array The array to inspect.
  16538. * @param {*} value The value to search for.
  16539. * @param {number} fromIndex The index to search from.
  16540. * @returns {number} Returns the index of the matched value, else `-1`.
  16541. */
  16542. function baseIndexOf(array, value, fromIndex) {
  16543. return value === value
  16544. ? strictIndexOf(array, value, fromIndex)
  16545. : baseFindIndex(array, baseIsNaN, fromIndex);
  16546. }
  16547. /**
  16548. * This function is like `baseIndexOf` except that it accepts a comparator.
  16549. *
  16550. * @private
  16551. * @param {Array} array The array to inspect.
  16552. * @param {*} value The value to search for.
  16553. * @param {number} fromIndex The index to search from.
  16554. * @param {Function} comparator The comparator invoked per element.
  16555. * @returns {number} Returns the index of the matched value, else `-1`.
  16556. */
  16557. function baseIndexOfWith(array, value, fromIndex, comparator) {
  16558. var index = fromIndex - 1,
  16559. length = array.length;
  16560. while (++index < length) {
  16561. if (comparator(array[index], value)) {
  16562. return index;
  16563. }
  16564. }
  16565. return -1;
  16566. }
  16567. /**
  16568. * The base implementation of `_.isNaN` without support for number objects.
  16569. *
  16570. * @private
  16571. * @param {*} value The value to check.
  16572. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  16573. */
  16574. function baseIsNaN(value) {
  16575. return value !== value;
  16576. }
  16577. /**
  16578. * The base implementation of `_.mean` and `_.meanBy` without support for
  16579. * iteratee shorthands.
  16580. *
  16581. * @private
  16582. * @param {Array} array The array to iterate over.
  16583. * @param {Function} iteratee The function invoked per iteration.
  16584. * @returns {number} Returns the mean.
  16585. */
  16586. function baseMean(array, iteratee) {
  16587. var length = array == null ? 0 : array.length;
  16588. return length ? (baseSum(array, iteratee) / length) : NAN;
  16589. }
  16590. /**
  16591. * The base implementation of `_.property` without support for deep paths.
  16592. *
  16593. * @private
  16594. * @param {string} key The key of the property to get.
  16595. * @returns {Function} Returns the new accessor function.
  16596. */
  16597. function baseProperty(key) {
  16598. return function(object) {
  16599. return object == null ? undefined : object[key];
  16600. };
  16601. }
  16602. /**
  16603. * The base implementation of `_.propertyOf` without support for deep paths.
  16604. *
  16605. * @private
  16606. * @param {Object} object The object to query.
  16607. * @returns {Function} Returns the new accessor function.
  16608. */
  16609. function basePropertyOf(object) {
  16610. return function(key) {
  16611. return object == null ? undefined : object[key];
  16612. };
  16613. }
  16614. /**
  16615. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  16616. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  16617. *
  16618. * @private
  16619. * @param {Array|Object} collection The collection to iterate over.
  16620. * @param {Function} iteratee The function invoked per iteration.
  16621. * @param {*} accumulator The initial value.
  16622. * @param {boolean} initAccum Specify using the first or last element of
  16623. * `collection` as the initial value.
  16624. * @param {Function} eachFunc The function to iterate over `collection`.
  16625. * @returns {*} Returns the accumulated value.
  16626. */
  16627. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  16628. eachFunc(collection, function(value, index, collection) {
  16629. accumulator = initAccum
  16630. ? (initAccum = false, value)
  16631. : iteratee(accumulator, value, index, collection);
  16632. });
  16633. return accumulator;
  16634. }
  16635. /**
  16636. * The base implementation of `_.sortBy` which uses `comparer` to define the
  16637. * sort order of `array` and replaces criteria objects with their corresponding
  16638. * values.
  16639. *
  16640. * @private
  16641. * @param {Array} array The array to sort.
  16642. * @param {Function} comparer The function to define sort order.
  16643. * @returns {Array} Returns `array`.
  16644. */
  16645. function baseSortBy(array, comparer) {
  16646. var length = array.length;
  16647. array.sort(comparer);
  16648. while (length--) {
  16649. array[length] = array[length].value;
  16650. }
  16651. return array;
  16652. }
  16653. /**
  16654. * The base implementation of `_.sum` and `_.sumBy` without support for
  16655. * iteratee shorthands.
  16656. *
  16657. * @private
  16658. * @param {Array} array The array to iterate over.
  16659. * @param {Function} iteratee The function invoked per iteration.
  16660. * @returns {number} Returns the sum.
  16661. */
  16662. function baseSum(array, iteratee) {
  16663. var result,
  16664. index = -1,
  16665. length = array.length;
  16666. while (++index < length) {
  16667. var current = iteratee(array[index]);
  16668. if (current !== undefined) {
  16669. result = result === undefined ? current : (result + current);
  16670. }
  16671. }
  16672. return result;
  16673. }
  16674. /**
  16675. * The base implementation of `_.times` without support for iteratee shorthands
  16676. * or max array length checks.
  16677. *
  16678. * @private
  16679. * @param {number} n The number of times to invoke `iteratee`.
  16680. * @param {Function} iteratee The function invoked per iteration.
  16681. * @returns {Array} Returns the array of results.
  16682. */
  16683. function baseTimes(n, iteratee) {
  16684. var index = -1,
  16685. result = Array(n);
  16686. while (++index < n) {
  16687. result[index] = iteratee(index);
  16688. }
  16689. return result;
  16690. }
  16691. /**
  16692. * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
  16693. * of key-value pairs for `object` corresponding to the property names of `props`.
  16694. *
  16695. * @private
  16696. * @param {Object} object The object to query.
  16697. * @param {Array} props The property names to get values for.
  16698. * @returns {Object} Returns the key-value pairs.
  16699. */
  16700. function baseToPairs(object, props) {
  16701. return arrayMap(props, function(key) {
  16702. return [key, object[key]];
  16703. });
  16704. }
  16705. /**
  16706. * The base implementation of `_.unary` without support for storing metadata.
  16707. *
  16708. * @private
  16709. * @param {Function} func The function to cap arguments for.
  16710. * @returns {Function} Returns the new capped function.
  16711. */
  16712. function baseUnary(func) {
  16713. return function(value) {
  16714. return func(value);
  16715. };
  16716. }
  16717. /**
  16718. * The base implementation of `_.values` and `_.valuesIn` which creates an
  16719. * array of `object` property values corresponding to the property names
  16720. * of `props`.
  16721. *
  16722. * @private
  16723. * @param {Object} object The object to query.
  16724. * @param {Array} props The property names to get values for.
  16725. * @returns {Object} Returns the array of property values.
  16726. */
  16727. function baseValues(object, props) {
  16728. return arrayMap(props, function(key) {
  16729. return object[key];
  16730. });
  16731. }
  16732. /**
  16733. * Checks if a `cache` value for `key` exists.
  16734. *
  16735. * @private
  16736. * @param {Object} cache The cache to query.
  16737. * @param {string} key The key of the entry to check.
  16738. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  16739. */
  16740. function cacheHas(cache, key) {
  16741. return cache.has(key);
  16742. }
  16743. /**
  16744. * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
  16745. * that is not found in the character symbols.
  16746. *
  16747. * @private
  16748. * @param {Array} strSymbols The string symbols to inspect.
  16749. * @param {Array} chrSymbols The character symbols to find.
  16750. * @returns {number} Returns the index of the first unmatched string symbol.
  16751. */
  16752. function charsStartIndex(strSymbols, chrSymbols) {
  16753. var index = -1,
  16754. length = strSymbols.length;
  16755. while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16756. return index;
  16757. }
  16758. /**
  16759. * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
  16760. * that is not found in the character symbols.
  16761. *
  16762. * @private
  16763. * @param {Array} strSymbols The string symbols to inspect.
  16764. * @param {Array} chrSymbols The character symbols to find.
  16765. * @returns {number} Returns the index of the last unmatched string symbol.
  16766. */
  16767. function charsEndIndex(strSymbols, chrSymbols) {
  16768. var index = strSymbols.length;
  16769. while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
  16770. return index;
  16771. }
  16772. /**
  16773. * Gets the number of `placeholder` occurrences in `array`.
  16774. *
  16775. * @private
  16776. * @param {Array} array The array to inspect.
  16777. * @param {*} placeholder The placeholder to search for.
  16778. * @returns {number} Returns the placeholder count.
  16779. */
  16780. function countHolders(array, placeholder) {
  16781. var length = array.length,
  16782. result = 0;
  16783. while (length--) {
  16784. if (array[length] === placeholder) {
  16785. ++result;
  16786. }
  16787. }
  16788. return result;
  16789. }
  16790. /**
  16791. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  16792. * letters to basic Latin letters.
  16793. *
  16794. * @private
  16795. * @param {string} letter The matched letter to deburr.
  16796. * @returns {string} Returns the deburred letter.
  16797. */
  16798. var deburrLetter = basePropertyOf(deburredLetters);
  16799. /**
  16800. * Used by `_.escape` to convert characters to HTML entities.
  16801. *
  16802. * @private
  16803. * @param {string} chr The matched character to escape.
  16804. * @returns {string} Returns the escaped character.
  16805. */
  16806. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  16807. /**
  16808. * Used by `_.template` to escape characters for inclusion in compiled string literals.
  16809. *
  16810. * @private
  16811. * @param {string} chr The matched character to escape.
  16812. * @returns {string} Returns the escaped character.
  16813. */
  16814. function escapeStringChar(chr) {
  16815. return '\\' + stringEscapes[chr];
  16816. }
  16817. /**
  16818. * Gets the value at `key` of `object`.
  16819. *
  16820. * @private
  16821. * @param {Object} [object] The object to query.
  16822. * @param {string} key The key of the property to get.
  16823. * @returns {*} Returns the property value.
  16824. */
  16825. function getValue(object, key) {
  16826. return object == null ? undefined : object[key];
  16827. }
  16828. /**
  16829. * Checks if `string` contains Unicode symbols.
  16830. *
  16831. * @private
  16832. * @param {string} string The string to inspect.
  16833. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  16834. */
  16835. function hasUnicode(string) {
  16836. return reHasUnicode.test(string);
  16837. }
  16838. /**
  16839. * Checks if `string` contains a word composed of Unicode symbols.
  16840. *
  16841. * @private
  16842. * @param {string} string The string to inspect.
  16843. * @returns {boolean} Returns `true` if a word is found, else `false`.
  16844. */
  16845. function hasUnicodeWord(string) {
  16846. return reHasUnicodeWord.test(string);
  16847. }
  16848. /**
  16849. * Converts `iterator` to an array.
  16850. *
  16851. * @private
  16852. * @param {Object} iterator The iterator to convert.
  16853. * @returns {Array} Returns the converted array.
  16854. */
  16855. function iteratorToArray(iterator) {
  16856. var data,
  16857. result = [];
  16858. while (!(data = iterator.next()).done) {
  16859. result.push(data.value);
  16860. }
  16861. return result;
  16862. }
  16863. /**
  16864. * Converts `map` to its key-value pairs.
  16865. *
  16866. * @private
  16867. * @param {Object} map The map to convert.
  16868. * @returns {Array} Returns the key-value pairs.
  16869. */
  16870. function mapToArray(map) {
  16871. var index = -1,
  16872. result = Array(map.size);
  16873. map.forEach(function(value, key) {
  16874. result[++index] = [key, value];
  16875. });
  16876. return result;
  16877. }
  16878. /**
  16879. * Creates a unary function that invokes `func` with its argument transformed.
  16880. *
  16881. * @private
  16882. * @param {Function} func The function to wrap.
  16883. * @param {Function} transform The argument transform.
  16884. * @returns {Function} Returns the new function.
  16885. */
  16886. function overArg(func, transform) {
  16887. return function(arg) {
  16888. return func(transform(arg));
  16889. };
  16890. }
  16891. /**
  16892. * Replaces all `placeholder` elements in `array` with an internal placeholder
  16893. * and returns an array of their indexes.
  16894. *
  16895. * @private
  16896. * @param {Array} array The array to modify.
  16897. * @param {*} placeholder The placeholder to replace.
  16898. * @returns {Array} Returns the new array of placeholder indexes.
  16899. */
  16900. function replaceHolders(array, placeholder) {
  16901. var index = -1,
  16902. length = array.length,
  16903. resIndex = 0,
  16904. result = [];
  16905. while (++index < length) {
  16906. var value = array[index];
  16907. if (value === placeholder || value === PLACEHOLDER) {
  16908. array[index] = PLACEHOLDER;
  16909. result[resIndex++] = index;
  16910. }
  16911. }
  16912. return result;
  16913. }
  16914. /**
  16915. * Converts `set` to an array of its values.
  16916. *
  16917. * @private
  16918. * @param {Object} set The set to convert.
  16919. * @returns {Array} Returns the values.
  16920. */
  16921. function setToArray(set) {
  16922. var index = -1,
  16923. result = Array(set.size);
  16924. set.forEach(function(value) {
  16925. result[++index] = value;
  16926. });
  16927. return result;
  16928. }
  16929. /**
  16930. * Converts `set` to its value-value pairs.
  16931. *
  16932. * @private
  16933. * @param {Object} set The set to convert.
  16934. * @returns {Array} Returns the value-value pairs.
  16935. */
  16936. function setToPairs(set) {
  16937. var index = -1,
  16938. result = Array(set.size);
  16939. set.forEach(function(value) {
  16940. result[++index] = [value, value];
  16941. });
  16942. return result;
  16943. }
  16944. /**
  16945. * A specialized version of `_.indexOf` which performs strict equality
  16946. * comparisons of values, i.e. `===`.
  16947. *
  16948. * @private
  16949. * @param {Array} array The array to inspect.
  16950. * @param {*} value The value to search for.
  16951. * @param {number} fromIndex The index to search from.
  16952. * @returns {number} Returns the index of the matched value, else `-1`.
  16953. */
  16954. function strictIndexOf(array, value, fromIndex) {
  16955. var index = fromIndex - 1,
  16956. length = array.length;
  16957. while (++index < length) {
  16958. if (array[index] === value) {
  16959. return index;
  16960. }
  16961. }
  16962. return -1;
  16963. }
  16964. /**
  16965. * A specialized version of `_.lastIndexOf` which performs strict equality
  16966. * comparisons of values, i.e. `===`.
  16967. *
  16968. * @private
  16969. * @param {Array} array The array to inspect.
  16970. * @param {*} value The value to search for.
  16971. * @param {number} fromIndex The index to search from.
  16972. * @returns {number} Returns the index of the matched value, else `-1`.
  16973. */
  16974. function strictLastIndexOf(array, value, fromIndex) {
  16975. var index = fromIndex + 1;
  16976. while (index--) {
  16977. if (array[index] === value) {
  16978. return index;
  16979. }
  16980. }
  16981. return index;
  16982. }
  16983. /**
  16984. * Gets the number of symbols in `string`.
  16985. *
  16986. * @private
  16987. * @param {string} string The string to inspect.
  16988. * @returns {number} Returns the string size.
  16989. */
  16990. function stringSize(string) {
  16991. return hasUnicode(string)
  16992. ? unicodeSize(string)
  16993. : asciiSize(string);
  16994. }
  16995. /**
  16996. * Converts `string` to an array.
  16997. *
  16998. * @private
  16999. * @param {string} string The string to convert.
  17000. * @returns {Array} Returns the converted array.
  17001. */
  17002. function stringToArray(string) {
  17003. return hasUnicode(string)
  17004. ? unicodeToArray(string)
  17005. : asciiToArray(string);
  17006. }
  17007. /**
  17008. * Used by `_.unescape` to convert HTML entities to characters.
  17009. *
  17010. * @private
  17011. * @param {string} chr The matched character to unescape.
  17012. * @returns {string} Returns the unescaped character.
  17013. */
  17014. var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
  17015. /**
  17016. * Gets the size of a Unicode `string`.
  17017. *
  17018. * @private
  17019. * @param {string} string The string inspect.
  17020. * @returns {number} Returns the string size.
  17021. */
  17022. function unicodeSize(string) {
  17023. var result = reUnicode.lastIndex = 0;
  17024. while (reUnicode.test(string)) {
  17025. ++result;
  17026. }
  17027. return result;
  17028. }
  17029. /**
  17030. * Converts a Unicode `string` to an array.
  17031. *
  17032. * @private
  17033. * @param {string} string The string to convert.
  17034. * @returns {Array} Returns the converted array.
  17035. */
  17036. function unicodeToArray(string) {
  17037. return string.match(reUnicode) || [];
  17038. }
  17039. /**
  17040. * Splits a Unicode `string` into an array of its words.
  17041. *
  17042. * @private
  17043. * @param {string} The string to inspect.
  17044. * @returns {Array} Returns the words of `string`.
  17045. */
  17046. function unicodeWords(string) {
  17047. return string.match(reUnicodeWord) || [];
  17048. }
  17049. /*--------------------------------------------------------------------------*/
  17050. /**
  17051. * Create a new pristine `lodash` function using the `context` object.
  17052. *
  17053. * @static
  17054. * @memberOf _
  17055. * @since 1.1.0
  17056. * @category Util
  17057. * @param {Object} [context=root] The context object.
  17058. * @returns {Function} Returns a new `lodash` function.
  17059. * @example
  17060. *
  17061. * _.mixin({ 'foo': _.constant('foo') });
  17062. *
  17063. * var lodash = _.runInContext();
  17064. * lodash.mixin({ 'bar': lodash.constant('bar') });
  17065. *
  17066. * _.isFunction(_.foo);
  17067. * // => true
  17068. * _.isFunction(_.bar);
  17069. * // => false
  17070. *
  17071. * lodash.isFunction(lodash.foo);
  17072. * // => false
  17073. * lodash.isFunction(lodash.bar);
  17074. * // => true
  17075. *
  17076. * // Create a suped-up `defer` in Node.js.
  17077. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
  17078. */
  17079. var runInContext = (function runInContext(context) {
  17080. context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
  17081. /** Built-in constructor references. */
  17082. var Array = context.Array,
  17083. Date = context.Date,
  17084. Error = context.Error,
  17085. Function = context.Function,
  17086. Math = context.Math,
  17087. Object = context.Object,
  17088. RegExp = context.RegExp,
  17089. String = context.String,
  17090. TypeError = context.TypeError;
  17091. /** Used for built-in method references. */
  17092. var arrayProto = Array.prototype,
  17093. funcProto = Function.prototype,
  17094. objectProto = Object.prototype;
  17095. /** Used to detect overreaching core-js shims. */
  17096. var coreJsData = context['__core-js_shared__'];
  17097. /** Used to resolve the decompiled source of functions. */
  17098. var funcToString = funcProto.toString;
  17099. /** Used to check objects for own properties. */
  17100. var hasOwnProperty = objectProto.hasOwnProperty;
  17101. /** Used to generate unique IDs. */
  17102. var idCounter = 0;
  17103. /** Used to detect methods masquerading as native. */
  17104. var maskSrcKey = (function() {
  17105. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  17106. return uid ? ('Symbol(src)_1.' + uid) : '';
  17107. }());
  17108. /**
  17109. * Used to resolve the
  17110. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  17111. * of values.
  17112. */
  17113. var nativeObjectToString = objectProto.toString;
  17114. /** Used to infer the `Object` constructor. */
  17115. var objectCtorString = funcToString.call(Object);
  17116. /** Used to restore the original `_` reference in `_.noConflict`. */
  17117. var oldDash = root._;
  17118. /** Used to detect if a method is native. */
  17119. var reIsNative = RegExp('^' +
  17120. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  17121. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  17122. );
  17123. /** Built-in value references. */
  17124. var Buffer = moduleExports ? context.Buffer : undefined,
  17125. Symbol = context.Symbol,
  17126. Uint8Array = context.Uint8Array,
  17127. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  17128. getPrototype = overArg(Object.getPrototypeOf, Object),
  17129. objectCreate = Object.create,
  17130. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  17131. splice = arrayProto.splice,
  17132. spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
  17133. symIterator = Symbol ? Symbol.iterator : undefined,
  17134. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  17135. var defineProperty = (function() {
  17136. try {
  17137. var func = getNative(Object, 'defineProperty');
  17138. func({}, '', {});
  17139. return func;
  17140. } catch (e) {}
  17141. }());
  17142. /** Mocked built-ins. */
  17143. var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
  17144. ctxNow = Date && Date.now !== root.Date.now && Date.now,
  17145. ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
  17146. /* Built-in method references for those with the same name as other `lodash` methods. */
  17147. var nativeCeil = Math.ceil,
  17148. nativeFloor = Math.floor,
  17149. nativeGetSymbols = Object.getOwnPropertySymbols,
  17150. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  17151. nativeIsFinite = context.isFinite,
  17152. nativeJoin = arrayProto.join,
  17153. nativeKeys = overArg(Object.keys, Object),
  17154. nativeMax = Math.max,
  17155. nativeMin = Math.min,
  17156. nativeNow = Date.now,
  17157. nativeParseInt = context.parseInt,
  17158. nativeRandom = Math.random,
  17159. nativeReverse = arrayProto.reverse;
  17160. /* Built-in method references that are verified to be native. */
  17161. var DataView = getNative(context, 'DataView'),
  17162. Map = getNative(context, 'Map'),
  17163. Promise = getNative(context, 'Promise'),
  17164. Set = getNative(context, 'Set'),
  17165. WeakMap = getNative(context, 'WeakMap'),
  17166. nativeCreate = getNative(Object, 'create');
  17167. /** Used to store function metadata. */
  17168. var metaMap = WeakMap && new WeakMap;
  17169. /** Used to lookup unminified function names. */
  17170. var realNames = {};
  17171. /** Used to detect maps, sets, and weakmaps. */
  17172. var dataViewCtorString = toSource(DataView),
  17173. mapCtorString = toSource(Map),
  17174. promiseCtorString = toSource(Promise),
  17175. setCtorString = toSource(Set),
  17176. weakMapCtorString = toSource(WeakMap);
  17177. /** Used to convert symbols to primitives and strings. */
  17178. var symbolProto = Symbol ? Symbol.prototype : undefined,
  17179. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
  17180. symbolToString = symbolProto ? symbolProto.toString : undefined;
  17181. /*------------------------------------------------------------------------*/
  17182. /**
  17183. * Creates a `lodash` object which wraps `value` to enable implicit method
  17184. * chain sequences. Methods that operate on and return arrays, collections,
  17185. * and functions can be chained together. Methods that retrieve a single value
  17186. * or may return a primitive value will automatically end the chain sequence
  17187. * and return the unwrapped value. Otherwise, the value must be unwrapped
  17188. * with `_#value`.
  17189. *
  17190. * Explicit chain sequences, which must be unwrapped with `_#value`, may be
  17191. * enabled using `_.chain`.
  17192. *
  17193. * The execution of chained methods is lazy, that is, it's deferred until
  17194. * `_#value` is implicitly or explicitly called.
  17195. *
  17196. * Lazy evaluation allows several methods to support shortcut fusion.
  17197. * Shortcut fusion is an optimization to merge iteratee calls; this avoids
  17198. * the creation of intermediate arrays and can greatly reduce the number of
  17199. * iteratee executions. Sections of a chain sequence qualify for shortcut
  17200. * fusion if the section is applied to an array and iteratees accept only
  17201. * one argument. The heuristic for whether a section qualifies for shortcut
  17202. * fusion is subject to change.
  17203. *
  17204. * Chaining is supported in custom builds as long as the `_#value` method is
  17205. * directly or indirectly included in the build.
  17206. *
  17207. * In addition to lodash methods, wrappers have `Array` and `String` methods.
  17208. *
  17209. * The wrapper `Array` methods are:
  17210. * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
  17211. *
  17212. * The wrapper `String` methods are:
  17213. * `replace` and `split`
  17214. *
  17215. * The wrapper methods that support shortcut fusion are:
  17216. * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
  17217. * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
  17218. * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
  17219. *
  17220. * The chainable wrapper methods are:
  17221. * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
  17222. * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
  17223. * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
  17224. * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
  17225. * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
  17226. * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
  17227. * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
  17228. * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
  17229. * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
  17230. * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
  17231. * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
  17232. * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
  17233. * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
  17234. * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
  17235. * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
  17236. * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
  17237. * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
  17238. * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
  17239. * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
  17240. * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
  17241. * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
  17242. * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
  17243. * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
  17244. * `zipObject`, `zipObjectDeep`, and `zipWith`
  17245. *
  17246. * The wrapper methods that are **not** chainable by default are:
  17247. * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
  17248. * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
  17249. * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
  17250. * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
  17251. * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
  17252. * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
  17253. * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
  17254. * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
  17255. * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
  17256. * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
  17257. * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
  17258. * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
  17259. * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
  17260. * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
  17261. * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
  17262. * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
  17263. * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
  17264. * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
  17265. * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
  17266. * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
  17267. * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
  17268. * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
  17269. * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
  17270. * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
  17271. * `upperFirst`, `value`, and `words`
  17272. *
  17273. * @name _
  17274. * @constructor
  17275. * @category Seq
  17276. * @param {*} value The value to wrap in a `lodash` instance.
  17277. * @returns {Object} Returns the new `lodash` wrapper instance.
  17278. * @example
  17279. *
  17280. * function square(n) {
  17281. * return n * n;
  17282. * }
  17283. *
  17284. * var wrapped = _([1, 2, 3]);
  17285. *
  17286. * // Returns an unwrapped value.
  17287. * wrapped.reduce(_.add);
  17288. * // => 6
  17289. *
  17290. * // Returns a wrapped value.
  17291. * var squares = wrapped.map(square);
  17292. *
  17293. * _.isArray(squares);
  17294. * // => false
  17295. *
  17296. * _.isArray(squares.value());
  17297. * // => true
  17298. */
  17299. function lodash(value) {
  17300. if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
  17301. if (value instanceof LodashWrapper) {
  17302. return value;
  17303. }
  17304. if (hasOwnProperty.call(value, '__wrapped__')) {
  17305. return wrapperClone(value);
  17306. }
  17307. }
  17308. return new LodashWrapper(value);
  17309. }
  17310. /**
  17311. * The base implementation of `_.create` without support for assigning
  17312. * properties to the created object.
  17313. *
  17314. * @private
  17315. * @param {Object} proto The object to inherit from.
  17316. * @returns {Object} Returns the new object.
  17317. */
  17318. var baseCreate = (function() {
  17319. function object() {}
  17320. return function(proto) {
  17321. if (!isObject(proto)) {
  17322. return {};
  17323. }
  17324. if (objectCreate) {
  17325. return objectCreate(proto);
  17326. }
  17327. object.prototype = proto;
  17328. var result = new object;
  17329. object.prototype = undefined;
  17330. return result;
  17331. };
  17332. }());
  17333. /**
  17334. * The function whose prototype chain sequence wrappers inherit from.
  17335. *
  17336. * @private
  17337. */
  17338. function baseLodash() {
  17339. // No operation performed.
  17340. }
  17341. /**
  17342. * The base constructor for creating `lodash` wrapper objects.
  17343. *
  17344. * @private
  17345. * @param {*} value The value to wrap.
  17346. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  17347. */
  17348. function LodashWrapper(value, chainAll) {
  17349. this.__wrapped__ = value;
  17350. this.__actions__ = [];
  17351. this.__chain__ = !!chainAll;
  17352. this.__index__ = 0;
  17353. this.__values__ = undefined;
  17354. }
  17355. /**
  17356. * By default, the template delimiters used by lodash are like those in
  17357. * embedded Ruby (ERB) as well as ES2015 template strings. Change the
  17358. * following template settings to use alternative delimiters.
  17359. *
  17360. * @static
  17361. * @memberOf _
  17362. * @type {Object}
  17363. */
  17364. lodash.templateSettings = {
  17365. /**
  17366. * Used to detect `data` property values to be HTML-escaped.
  17367. *
  17368. * @memberOf _.templateSettings
  17369. * @type {RegExp}
  17370. */
  17371. 'escape': reEscape,
  17372. /**
  17373. * Used to detect code to be evaluated.
  17374. *
  17375. * @memberOf _.templateSettings
  17376. * @type {RegExp}
  17377. */
  17378. 'evaluate': reEvaluate,
  17379. /**
  17380. * Used to detect `data` property values to inject.
  17381. *
  17382. * @memberOf _.templateSettings
  17383. * @type {RegExp}
  17384. */
  17385. 'interpolate': reInterpolate,
  17386. /**
  17387. * Used to reference the data object in the template text.
  17388. *
  17389. * @memberOf _.templateSettings
  17390. * @type {string}
  17391. */
  17392. 'variable': '',
  17393. /**
  17394. * Used to import variables into the compiled template.
  17395. *
  17396. * @memberOf _.templateSettings
  17397. * @type {Object}
  17398. */
  17399. 'imports': {
  17400. /**
  17401. * A reference to the `lodash` function.
  17402. *
  17403. * @memberOf _.templateSettings.imports
  17404. * @type {Function}
  17405. */
  17406. '_': lodash
  17407. }
  17408. };
  17409. // Ensure wrappers are instances of `baseLodash`.
  17410. lodash.prototype = baseLodash.prototype;
  17411. lodash.prototype.constructor = lodash;
  17412. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  17413. LodashWrapper.prototype.constructor = LodashWrapper;
  17414. /*------------------------------------------------------------------------*/
  17415. /**
  17416. * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
  17417. *
  17418. * @private
  17419. * @constructor
  17420. * @param {*} value The value to wrap.
  17421. */
  17422. function LazyWrapper(value) {
  17423. this.__wrapped__ = value;
  17424. this.__actions__ = [];
  17425. this.__dir__ = 1;
  17426. this.__filtered__ = false;
  17427. this.__iteratees__ = [];
  17428. this.__takeCount__ = MAX_ARRAY_LENGTH;
  17429. this.__views__ = [];
  17430. }
  17431. /**
  17432. * Creates a clone of the lazy wrapper object.
  17433. *
  17434. * @private
  17435. * @name clone
  17436. * @memberOf LazyWrapper
  17437. * @returns {Object} Returns the cloned `LazyWrapper` object.
  17438. */
  17439. function lazyClone() {
  17440. var result = new LazyWrapper(this.__wrapped__);
  17441. result.__actions__ = copyArray(this.__actions__);
  17442. result.__dir__ = this.__dir__;
  17443. result.__filtered__ = this.__filtered__;
  17444. result.__iteratees__ = copyArray(this.__iteratees__);
  17445. result.__takeCount__ = this.__takeCount__;
  17446. result.__views__ = copyArray(this.__views__);
  17447. return result;
  17448. }
  17449. /**
  17450. * Reverses the direction of lazy iteration.
  17451. *
  17452. * @private
  17453. * @name reverse
  17454. * @memberOf LazyWrapper
  17455. * @returns {Object} Returns the new reversed `LazyWrapper` object.
  17456. */
  17457. function lazyReverse() {
  17458. if (this.__filtered__) {
  17459. var result = new LazyWrapper(this);
  17460. result.__dir__ = -1;
  17461. result.__filtered__ = true;
  17462. } else {
  17463. result = this.clone();
  17464. result.__dir__ *= -1;
  17465. }
  17466. return result;
  17467. }
  17468. /**
  17469. * Extracts the unwrapped value from its lazy wrapper.
  17470. *
  17471. * @private
  17472. * @name value
  17473. * @memberOf LazyWrapper
  17474. * @returns {*} Returns the unwrapped value.
  17475. */
  17476. function lazyValue() {
  17477. var array = this.__wrapped__.value(),
  17478. dir = this.__dir__,
  17479. isArr = isArray(array),
  17480. isRight = dir < 0,
  17481. arrLength = isArr ? array.length : 0,
  17482. view = getView(0, arrLength, this.__views__),
  17483. start = view.start,
  17484. end = view.end,
  17485. length = end - start,
  17486. index = isRight ? end : (start - 1),
  17487. iteratees = this.__iteratees__,
  17488. iterLength = iteratees.length,
  17489. resIndex = 0,
  17490. takeCount = nativeMin(length, this.__takeCount__);
  17491. if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
  17492. return baseWrapperValue(array, this.__actions__);
  17493. }
  17494. var result = [];
  17495. outer:
  17496. while (length-- && resIndex < takeCount) {
  17497. index += dir;
  17498. var iterIndex = -1,
  17499. value = array[index];
  17500. while (++iterIndex < iterLength) {
  17501. var data = iteratees[iterIndex],
  17502. iteratee = data.iteratee,
  17503. type = data.type,
  17504. computed = iteratee(value);
  17505. if (type == LAZY_MAP_FLAG) {
  17506. value = computed;
  17507. } else if (!computed) {
  17508. if (type == LAZY_FILTER_FLAG) {
  17509. continue outer;
  17510. } else {
  17511. break outer;
  17512. }
  17513. }
  17514. }
  17515. result[resIndex++] = value;
  17516. }
  17517. return result;
  17518. }
  17519. // Ensure `LazyWrapper` is an instance of `baseLodash`.
  17520. LazyWrapper.prototype = baseCreate(baseLodash.prototype);
  17521. LazyWrapper.prototype.constructor = LazyWrapper;
  17522. /*------------------------------------------------------------------------*/
  17523. /**
  17524. * Creates a hash object.
  17525. *
  17526. * @private
  17527. * @constructor
  17528. * @param {Array} [entries] The key-value pairs to cache.
  17529. */
  17530. function Hash(entries) {
  17531. var index = -1,
  17532. length = entries == null ? 0 : entries.length;
  17533. this.clear();
  17534. while (++index < length) {
  17535. var entry = entries[index];
  17536. this.set(entry[0], entry[1]);
  17537. }
  17538. }
  17539. /**
  17540. * Removes all key-value entries from the hash.
  17541. *
  17542. * @private
  17543. * @name clear
  17544. * @memberOf Hash
  17545. */
  17546. function hashClear() {
  17547. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  17548. this.size = 0;
  17549. }
  17550. /**
  17551. * Removes `key` and its value from the hash.
  17552. *
  17553. * @private
  17554. * @name delete
  17555. * @memberOf Hash
  17556. * @param {Object} hash The hash to modify.
  17557. * @param {string} key The key of the value to remove.
  17558. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17559. */
  17560. function hashDelete(key) {
  17561. var result = this.has(key) && delete this.__data__[key];
  17562. this.size -= result ? 1 : 0;
  17563. return result;
  17564. }
  17565. /**
  17566. * Gets the hash value for `key`.
  17567. *
  17568. * @private
  17569. * @name get
  17570. * @memberOf Hash
  17571. * @param {string} key The key of the value to get.
  17572. * @returns {*} Returns the entry value.
  17573. */
  17574. function hashGet(key) {
  17575. var data = this.__data__;
  17576. if (nativeCreate) {
  17577. var result = data[key];
  17578. return result === HASH_UNDEFINED ? undefined : result;
  17579. }
  17580. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  17581. }
  17582. /**
  17583. * Checks if a hash value for `key` exists.
  17584. *
  17585. * @private
  17586. * @name has
  17587. * @memberOf Hash
  17588. * @param {string} key The key of the entry to check.
  17589. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17590. */
  17591. function hashHas(key) {
  17592. var data = this.__data__;
  17593. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  17594. }
  17595. /**
  17596. * Sets the hash `key` to `value`.
  17597. *
  17598. * @private
  17599. * @name set
  17600. * @memberOf Hash
  17601. * @param {string} key The key of the value to set.
  17602. * @param {*} value The value to set.
  17603. * @returns {Object} Returns the hash instance.
  17604. */
  17605. function hashSet(key, value) {
  17606. var data = this.__data__;
  17607. this.size += this.has(key) ? 0 : 1;
  17608. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  17609. return this;
  17610. }
  17611. // Add methods to `Hash`.
  17612. Hash.prototype.clear = hashClear;
  17613. Hash.prototype['delete'] = hashDelete;
  17614. Hash.prototype.get = hashGet;
  17615. Hash.prototype.has = hashHas;
  17616. Hash.prototype.set = hashSet;
  17617. /*------------------------------------------------------------------------*/
  17618. /**
  17619. * Creates an list cache object.
  17620. *
  17621. * @private
  17622. * @constructor
  17623. * @param {Array} [entries] The key-value pairs to cache.
  17624. */
  17625. function ListCache(entries) {
  17626. var index = -1,
  17627. length = entries == null ? 0 : entries.length;
  17628. this.clear();
  17629. while (++index < length) {
  17630. var entry = entries[index];
  17631. this.set(entry[0], entry[1]);
  17632. }
  17633. }
  17634. /**
  17635. * Removes all key-value entries from the list cache.
  17636. *
  17637. * @private
  17638. * @name clear
  17639. * @memberOf ListCache
  17640. */
  17641. function listCacheClear() {
  17642. this.__data__ = [];
  17643. this.size = 0;
  17644. }
  17645. /**
  17646. * Removes `key` and its value from the list cache.
  17647. *
  17648. * @private
  17649. * @name delete
  17650. * @memberOf ListCache
  17651. * @param {string} key The key of the value to remove.
  17652. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17653. */
  17654. function listCacheDelete(key) {
  17655. var data = this.__data__,
  17656. index = assocIndexOf(data, key);
  17657. if (index < 0) {
  17658. return false;
  17659. }
  17660. var lastIndex = data.length - 1;
  17661. if (index == lastIndex) {
  17662. data.pop();
  17663. } else {
  17664. splice.call(data, index, 1);
  17665. }
  17666. --this.size;
  17667. return true;
  17668. }
  17669. /**
  17670. * Gets the list cache value for `key`.
  17671. *
  17672. * @private
  17673. * @name get
  17674. * @memberOf ListCache
  17675. * @param {string} key The key of the value to get.
  17676. * @returns {*} Returns the entry value.
  17677. */
  17678. function listCacheGet(key) {
  17679. var data = this.__data__,
  17680. index = assocIndexOf(data, key);
  17681. return index < 0 ? undefined : data[index][1];
  17682. }
  17683. /**
  17684. * Checks if a list cache value for `key` exists.
  17685. *
  17686. * @private
  17687. * @name has
  17688. * @memberOf ListCache
  17689. * @param {string} key The key of the entry to check.
  17690. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17691. */
  17692. function listCacheHas(key) {
  17693. return assocIndexOf(this.__data__, key) > -1;
  17694. }
  17695. /**
  17696. * Sets the list cache `key` to `value`.
  17697. *
  17698. * @private
  17699. * @name set
  17700. * @memberOf ListCache
  17701. * @param {string} key The key of the value to set.
  17702. * @param {*} value The value to set.
  17703. * @returns {Object} Returns the list cache instance.
  17704. */
  17705. function listCacheSet(key, value) {
  17706. var data = this.__data__,
  17707. index = assocIndexOf(data, key);
  17708. if (index < 0) {
  17709. ++this.size;
  17710. data.push([key, value]);
  17711. } else {
  17712. data[index][1] = value;
  17713. }
  17714. return this;
  17715. }
  17716. // Add methods to `ListCache`.
  17717. ListCache.prototype.clear = listCacheClear;
  17718. ListCache.prototype['delete'] = listCacheDelete;
  17719. ListCache.prototype.get = listCacheGet;
  17720. ListCache.prototype.has = listCacheHas;
  17721. ListCache.prototype.set = listCacheSet;
  17722. /*------------------------------------------------------------------------*/
  17723. /**
  17724. * Creates a map cache object to store key-value pairs.
  17725. *
  17726. * @private
  17727. * @constructor
  17728. * @param {Array} [entries] The key-value pairs to cache.
  17729. */
  17730. function MapCache(entries) {
  17731. var index = -1,
  17732. length = entries == null ? 0 : entries.length;
  17733. this.clear();
  17734. while (++index < length) {
  17735. var entry = entries[index];
  17736. this.set(entry[0], entry[1]);
  17737. }
  17738. }
  17739. /**
  17740. * Removes all key-value entries from the map.
  17741. *
  17742. * @private
  17743. * @name clear
  17744. * @memberOf MapCache
  17745. */
  17746. function mapCacheClear() {
  17747. this.size = 0;
  17748. this.__data__ = {
  17749. 'hash': new Hash,
  17750. 'map': new (Map || ListCache),
  17751. 'string': new Hash
  17752. };
  17753. }
  17754. /**
  17755. * Removes `key` and its value from the map.
  17756. *
  17757. * @private
  17758. * @name delete
  17759. * @memberOf MapCache
  17760. * @param {string} key The key of the value to remove.
  17761. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17762. */
  17763. function mapCacheDelete(key) {
  17764. var result = getMapData(this, key)['delete'](key);
  17765. this.size -= result ? 1 : 0;
  17766. return result;
  17767. }
  17768. /**
  17769. * Gets the map value for `key`.
  17770. *
  17771. * @private
  17772. * @name get
  17773. * @memberOf MapCache
  17774. * @param {string} key The key of the value to get.
  17775. * @returns {*} Returns the entry value.
  17776. */
  17777. function mapCacheGet(key) {
  17778. return getMapData(this, key).get(key);
  17779. }
  17780. /**
  17781. * Checks if a map value for `key` exists.
  17782. *
  17783. * @private
  17784. * @name has
  17785. * @memberOf MapCache
  17786. * @param {string} key The key of the entry to check.
  17787. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17788. */
  17789. function mapCacheHas(key) {
  17790. return getMapData(this, key).has(key);
  17791. }
  17792. /**
  17793. * Sets the map `key` to `value`.
  17794. *
  17795. * @private
  17796. * @name set
  17797. * @memberOf MapCache
  17798. * @param {string} key The key of the value to set.
  17799. * @param {*} value The value to set.
  17800. * @returns {Object} Returns the map cache instance.
  17801. */
  17802. function mapCacheSet(key, value) {
  17803. var data = getMapData(this, key),
  17804. size = data.size;
  17805. data.set(key, value);
  17806. this.size += data.size == size ? 0 : 1;
  17807. return this;
  17808. }
  17809. // Add methods to `MapCache`.
  17810. MapCache.prototype.clear = mapCacheClear;
  17811. MapCache.prototype['delete'] = mapCacheDelete;
  17812. MapCache.prototype.get = mapCacheGet;
  17813. MapCache.prototype.has = mapCacheHas;
  17814. MapCache.prototype.set = mapCacheSet;
  17815. /*------------------------------------------------------------------------*/
  17816. /**
  17817. *
  17818. * Creates an array cache object to store unique values.
  17819. *
  17820. * @private
  17821. * @constructor
  17822. * @param {Array} [values] The values to cache.
  17823. */
  17824. function SetCache(values) {
  17825. var index = -1,
  17826. length = values == null ? 0 : values.length;
  17827. this.__data__ = new MapCache;
  17828. while (++index < length) {
  17829. this.add(values[index]);
  17830. }
  17831. }
  17832. /**
  17833. * Adds `value` to the array cache.
  17834. *
  17835. * @private
  17836. * @name add
  17837. * @memberOf SetCache
  17838. * @alias push
  17839. * @param {*} value The value to cache.
  17840. * @returns {Object} Returns the cache instance.
  17841. */
  17842. function setCacheAdd(value) {
  17843. this.__data__.set(value, HASH_UNDEFINED);
  17844. return this;
  17845. }
  17846. /**
  17847. * Checks if `value` is in the array cache.
  17848. *
  17849. * @private
  17850. * @name has
  17851. * @memberOf SetCache
  17852. * @param {*} value The value to search for.
  17853. * @returns {number} Returns `true` if `value` is found, else `false`.
  17854. */
  17855. function setCacheHas(value) {
  17856. return this.__data__.has(value);
  17857. }
  17858. // Add methods to `SetCache`.
  17859. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  17860. SetCache.prototype.has = setCacheHas;
  17861. /*------------------------------------------------------------------------*/
  17862. /**
  17863. * Creates a stack cache object to store key-value pairs.
  17864. *
  17865. * @private
  17866. * @constructor
  17867. * @param {Array} [entries] The key-value pairs to cache.
  17868. */
  17869. function Stack(entries) {
  17870. var data = this.__data__ = new ListCache(entries);
  17871. this.size = data.size;
  17872. }
  17873. /**
  17874. * Removes all key-value entries from the stack.
  17875. *
  17876. * @private
  17877. * @name clear
  17878. * @memberOf Stack
  17879. */
  17880. function stackClear() {
  17881. this.__data__ = new ListCache;
  17882. this.size = 0;
  17883. }
  17884. /**
  17885. * Removes `key` and its value from the stack.
  17886. *
  17887. * @private
  17888. * @name delete
  17889. * @memberOf Stack
  17890. * @param {string} key The key of the value to remove.
  17891. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  17892. */
  17893. function stackDelete(key) {
  17894. var data = this.__data__,
  17895. result = data['delete'](key);
  17896. this.size = data.size;
  17897. return result;
  17898. }
  17899. /**
  17900. * Gets the stack value for `key`.
  17901. *
  17902. * @private
  17903. * @name get
  17904. * @memberOf Stack
  17905. * @param {string} key The key of the value to get.
  17906. * @returns {*} Returns the entry value.
  17907. */
  17908. function stackGet(key) {
  17909. return this.__data__.get(key);
  17910. }
  17911. /**
  17912. * Checks if a stack value for `key` exists.
  17913. *
  17914. * @private
  17915. * @name has
  17916. * @memberOf Stack
  17917. * @param {string} key The key of the entry to check.
  17918. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  17919. */
  17920. function stackHas(key) {
  17921. return this.__data__.has(key);
  17922. }
  17923. /**
  17924. * Sets the stack `key` to `value`.
  17925. *
  17926. * @private
  17927. * @name set
  17928. * @memberOf Stack
  17929. * @param {string} key The key of the value to set.
  17930. * @param {*} value The value to set.
  17931. * @returns {Object} Returns the stack cache instance.
  17932. */
  17933. function stackSet(key, value) {
  17934. var data = this.__data__;
  17935. if (data instanceof ListCache) {
  17936. var pairs = data.__data__;
  17937. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  17938. pairs.push([key, value]);
  17939. this.size = ++data.size;
  17940. return this;
  17941. }
  17942. data = this.__data__ = new MapCache(pairs);
  17943. }
  17944. data.set(key, value);
  17945. this.size = data.size;
  17946. return this;
  17947. }
  17948. // Add methods to `Stack`.
  17949. Stack.prototype.clear = stackClear;
  17950. Stack.prototype['delete'] = stackDelete;
  17951. Stack.prototype.get = stackGet;
  17952. Stack.prototype.has = stackHas;
  17953. Stack.prototype.set = stackSet;
  17954. /*------------------------------------------------------------------------*/
  17955. /**
  17956. * Creates an array of the enumerable property names of the array-like `value`.
  17957. *
  17958. * @private
  17959. * @param {*} value The value to query.
  17960. * @param {boolean} inherited Specify returning inherited property names.
  17961. * @returns {Array} Returns the array of property names.
  17962. */
  17963. function arrayLikeKeys(value, inherited) {
  17964. var isArr = isArray(value),
  17965. isArg = !isArr && isArguments(value),
  17966. isBuff = !isArr && !isArg && isBuffer(value),
  17967. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  17968. skipIndexes = isArr || isArg || isBuff || isType,
  17969. result = skipIndexes ? baseTimes(value.length, String) : [],
  17970. length = result.length;
  17971. for (var key in value) {
  17972. if ((inherited || hasOwnProperty.call(value, key)) &&
  17973. !(skipIndexes && (
  17974. // Safari 9 has enumerable `arguments.length` in strict mode.
  17975. key == 'length' ||
  17976. // Node.js 0.10 has enumerable non-index properties on buffers.
  17977. (isBuff && (key == 'offset' || key == 'parent')) ||
  17978. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  17979. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  17980. // Skip index properties.
  17981. isIndex(key, length)
  17982. ))) {
  17983. result.push(key);
  17984. }
  17985. }
  17986. return result;
  17987. }
  17988. /**
  17989. * A specialized version of `_.sample` for arrays.
  17990. *
  17991. * @private
  17992. * @param {Array} array The array to sample.
  17993. * @returns {*} Returns the random element.
  17994. */
  17995. function arraySample(array) {
  17996. var length = array.length;
  17997. return length ? array[baseRandom(0, length - 1)] : undefined;
  17998. }
  17999. /**
  18000. * A specialized version of `_.sampleSize` for arrays.
  18001. *
  18002. * @private
  18003. * @param {Array} array The array to sample.
  18004. * @param {number} n The number of elements to sample.
  18005. * @returns {Array} Returns the random elements.
  18006. */
  18007. function arraySampleSize(array, n) {
  18008. return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
  18009. }
  18010. /**
  18011. * A specialized version of `_.shuffle` for arrays.
  18012. *
  18013. * @private
  18014. * @param {Array} array The array to shuffle.
  18015. * @returns {Array} Returns the new shuffled array.
  18016. */
  18017. function arrayShuffle(array) {
  18018. return shuffleSelf(copyArray(array));
  18019. }
  18020. /**
  18021. * This function is like `assignValue` except that it doesn't assign
  18022. * `undefined` values.
  18023. *
  18024. * @private
  18025. * @param {Object} object The object to modify.
  18026. * @param {string} key The key of the property to assign.
  18027. * @param {*} value The value to assign.
  18028. */
  18029. function assignMergeValue(object, key, value) {
  18030. if ((value !== undefined && !eq(object[key], value)) ||
  18031. (value === undefined && !(key in object))) {
  18032. baseAssignValue(object, key, value);
  18033. }
  18034. }
  18035. /**
  18036. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  18037. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  18038. * for equality comparisons.
  18039. *
  18040. * @private
  18041. * @param {Object} object The object to modify.
  18042. * @param {string} key The key of the property to assign.
  18043. * @param {*} value The value to assign.
  18044. */
  18045. function assignValue(object, key, value) {
  18046. var objValue = object[key];
  18047. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  18048. (value === undefined && !(key in object))) {
  18049. baseAssignValue(object, key, value);
  18050. }
  18051. }
  18052. /**
  18053. * Gets the index at which the `key` is found in `array` of key-value pairs.
  18054. *
  18055. * @private
  18056. * @param {Array} array The array to inspect.
  18057. * @param {*} key The key to search for.
  18058. * @returns {number} Returns the index of the matched value, else `-1`.
  18059. */
  18060. function assocIndexOf(array, key) {
  18061. var length = array.length;
  18062. while (length--) {
  18063. if (eq(array[length][0], key)) {
  18064. return length;
  18065. }
  18066. }
  18067. return -1;
  18068. }
  18069. /**
  18070. * Aggregates elements of `collection` on `accumulator` with keys transformed
  18071. * by `iteratee` and values set by `setter`.
  18072. *
  18073. * @private
  18074. * @param {Array|Object} collection The collection to iterate over.
  18075. * @param {Function} setter The function to set `accumulator` values.
  18076. * @param {Function} iteratee The iteratee to transform keys.
  18077. * @param {Object} accumulator The initial aggregated object.
  18078. * @returns {Function} Returns `accumulator`.
  18079. */
  18080. function baseAggregator(collection, setter, iteratee, accumulator) {
  18081. baseEach(collection, function(value, key, collection) {
  18082. setter(accumulator, value, iteratee(value), collection);
  18083. });
  18084. return accumulator;
  18085. }
  18086. /**
  18087. * The base implementation of `_.assign` without support for multiple sources
  18088. * or `customizer` functions.
  18089. *
  18090. * @private
  18091. * @param {Object} object The destination object.
  18092. * @param {Object} source The source object.
  18093. * @returns {Object} Returns `object`.
  18094. */
  18095. function baseAssign(object, source) {
  18096. return object && copyObject(source, keys(source), object);
  18097. }
  18098. /**
  18099. * The base implementation of `_.assignIn` 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 baseAssignIn(object, source) {
  18108. return object && copyObject(source, keysIn(source), object);
  18109. }
  18110. /**
  18111. * The base implementation of `assignValue` and `assignMergeValue` without
  18112. * value checks.
  18113. *
  18114. * @private
  18115. * @param {Object} object The object to modify.
  18116. * @param {string} key The key of the property to assign.
  18117. * @param {*} value The value to assign.
  18118. */
  18119. function baseAssignValue(object, key, value) {
  18120. if (key == '__proto__' && defineProperty) {
  18121. defineProperty(object, key, {
  18122. 'configurable': true,
  18123. 'enumerable': true,
  18124. 'value': value,
  18125. 'writable': true
  18126. });
  18127. } else {
  18128. object[key] = value;
  18129. }
  18130. }
  18131. /**
  18132. * The base implementation of `_.at` without support for individual paths.
  18133. *
  18134. * @private
  18135. * @param {Object} object The object to iterate over.
  18136. * @param {string[]} paths The property paths to pick.
  18137. * @returns {Array} Returns the picked elements.
  18138. */
  18139. function baseAt(object, paths) {
  18140. var index = -1,
  18141. length = paths.length,
  18142. result = Array(length),
  18143. skip = object == null;
  18144. while (++index < length) {
  18145. result[index] = skip ? undefined : get(object, paths[index]);
  18146. }
  18147. return result;
  18148. }
  18149. /**
  18150. * The base implementation of `_.clamp` which doesn't coerce arguments.
  18151. *
  18152. * @private
  18153. * @param {number} number The number to clamp.
  18154. * @param {number} [lower] The lower bound.
  18155. * @param {number} upper The upper bound.
  18156. * @returns {number} Returns the clamped number.
  18157. */
  18158. function baseClamp(number, lower, upper) {
  18159. if (number === number) {
  18160. if (upper !== undefined) {
  18161. number = number <= upper ? number : upper;
  18162. }
  18163. if (lower !== undefined) {
  18164. number = number >= lower ? number : lower;
  18165. }
  18166. }
  18167. return number;
  18168. }
  18169. /**
  18170. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  18171. * traversed objects.
  18172. *
  18173. * @private
  18174. * @param {*} value The value to clone.
  18175. * @param {boolean} bitmask The bitmask flags.
  18176. * 1 - Deep clone
  18177. * 2 - Flatten inherited properties
  18178. * 4 - Clone symbols
  18179. * @param {Function} [customizer] The function to customize cloning.
  18180. * @param {string} [key] The key of `value`.
  18181. * @param {Object} [object] The parent object of `value`.
  18182. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  18183. * @returns {*} Returns the cloned value.
  18184. */
  18185. function baseClone(value, bitmask, customizer, key, object, stack) {
  18186. var result,
  18187. isDeep = bitmask & CLONE_DEEP_FLAG,
  18188. isFlat = bitmask & CLONE_FLAT_FLAG,
  18189. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  18190. if (customizer) {
  18191. result = object ? customizer(value, key, object, stack) : customizer(value);
  18192. }
  18193. if (result !== undefined) {
  18194. return result;
  18195. }
  18196. if (!isObject(value)) {
  18197. return value;
  18198. }
  18199. var isArr = isArray(value);
  18200. if (isArr) {
  18201. result = initCloneArray(value);
  18202. if (!isDeep) {
  18203. return copyArray(value, result);
  18204. }
  18205. } else {
  18206. var tag = getTag(value),
  18207. isFunc = tag == funcTag || tag == genTag;
  18208. if (isBuffer(value)) {
  18209. return cloneBuffer(value, isDeep);
  18210. }
  18211. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  18212. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  18213. if (!isDeep) {
  18214. return isFlat
  18215. ? copySymbolsIn(value, baseAssignIn(result, value))
  18216. : copySymbols(value, baseAssign(result, value));
  18217. }
  18218. } else {
  18219. if (!cloneableTags[tag]) {
  18220. return object ? value : {};
  18221. }
  18222. result = initCloneByTag(value, tag, isDeep);
  18223. }
  18224. }
  18225. // Check for circular references and return its corresponding clone.
  18226. stack || (stack = new Stack);
  18227. var stacked = stack.get(value);
  18228. if (stacked) {
  18229. return stacked;
  18230. }
  18231. stack.set(value, result);
  18232. if (isSet(value)) {
  18233. value.forEach(function(subValue) {
  18234. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  18235. });
  18236. return result;
  18237. }
  18238. if (isMap(value)) {
  18239. value.forEach(function(subValue, key) {
  18240. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18241. });
  18242. return result;
  18243. }
  18244. var keysFunc = isFull
  18245. ? (isFlat ? getAllKeysIn : getAllKeys)
  18246. : (isFlat ? keysIn : keys);
  18247. var props = isArr ? undefined : keysFunc(value);
  18248. arrayEach(props || value, function(subValue, key) {
  18249. if (props) {
  18250. key = subValue;
  18251. subValue = value[key];
  18252. }
  18253. // Recursively populate clone (susceptible to call stack limits).
  18254. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  18255. });
  18256. return result;
  18257. }
  18258. /**
  18259. * The base implementation of `_.conforms` which doesn't clone `source`.
  18260. *
  18261. * @private
  18262. * @param {Object} source The object of property predicates to conform to.
  18263. * @returns {Function} Returns the new spec function.
  18264. */
  18265. function baseConforms(source) {
  18266. var props = keys(source);
  18267. return function(object) {
  18268. return baseConformsTo(object, source, props);
  18269. };
  18270. }
  18271. /**
  18272. * The base implementation of `_.conformsTo` which accepts `props` to check.
  18273. *
  18274. * @private
  18275. * @param {Object} object The object to inspect.
  18276. * @param {Object} source The object of property predicates to conform to.
  18277. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  18278. */
  18279. function baseConformsTo(object, source, props) {
  18280. var length = props.length;
  18281. if (object == null) {
  18282. return !length;
  18283. }
  18284. object = Object(object);
  18285. while (length--) {
  18286. var key = props[length],
  18287. predicate = source[key],
  18288. value = object[key];
  18289. if ((value === undefined && !(key in object)) || !predicate(value)) {
  18290. return false;
  18291. }
  18292. }
  18293. return true;
  18294. }
  18295. /**
  18296. * The base implementation of `_.delay` and `_.defer` which accepts `args`
  18297. * to provide to `func`.
  18298. *
  18299. * @private
  18300. * @param {Function} func The function to delay.
  18301. * @param {number} wait The number of milliseconds to delay invocation.
  18302. * @param {Array} args The arguments to provide to `func`.
  18303. * @returns {number|Object} Returns the timer id or timeout object.
  18304. */
  18305. function baseDelay(func, wait, args) {
  18306. if (typeof func != 'function') {
  18307. throw new TypeError(FUNC_ERROR_TEXT);
  18308. }
  18309. return setTimeout(function() { func.apply(undefined, args); }, wait);
  18310. }
  18311. /**
  18312. * The base implementation of methods like `_.difference` without support
  18313. * for excluding multiple arrays or iteratee shorthands.
  18314. *
  18315. * @private
  18316. * @param {Array} array The array to inspect.
  18317. * @param {Array} values The values to exclude.
  18318. * @param {Function} [iteratee] The iteratee invoked per element.
  18319. * @param {Function} [comparator] The comparator invoked per element.
  18320. * @returns {Array} Returns the new array of filtered values.
  18321. */
  18322. function baseDifference(array, values, iteratee, comparator) {
  18323. var index = -1,
  18324. includes = arrayIncludes,
  18325. isCommon = true,
  18326. length = array.length,
  18327. result = [],
  18328. valuesLength = values.length;
  18329. if (!length) {
  18330. return result;
  18331. }
  18332. if (iteratee) {
  18333. values = arrayMap(values, baseUnary(iteratee));
  18334. }
  18335. if (comparator) {
  18336. includes = arrayIncludesWith;
  18337. isCommon = false;
  18338. }
  18339. else if (values.length >= LARGE_ARRAY_SIZE) {
  18340. includes = cacheHas;
  18341. isCommon = false;
  18342. values = new SetCache(values);
  18343. }
  18344. outer:
  18345. while (++index < length) {
  18346. var value = array[index],
  18347. computed = iteratee == null ? value : iteratee(value);
  18348. value = (comparator || value !== 0) ? value : 0;
  18349. if (isCommon && computed === computed) {
  18350. var valuesIndex = valuesLength;
  18351. while (valuesIndex--) {
  18352. if (values[valuesIndex] === computed) {
  18353. continue outer;
  18354. }
  18355. }
  18356. result.push(value);
  18357. }
  18358. else if (!includes(values, computed, comparator)) {
  18359. result.push(value);
  18360. }
  18361. }
  18362. return result;
  18363. }
  18364. /**
  18365. * The base implementation of `_.forEach` without support for iteratee shorthands.
  18366. *
  18367. * @private
  18368. * @param {Array|Object} collection The collection to iterate over.
  18369. * @param {Function} iteratee The function invoked per iteration.
  18370. * @returns {Array|Object} Returns `collection`.
  18371. */
  18372. var baseEach = createBaseEach(baseForOwn);
  18373. /**
  18374. * The base implementation of `_.forEachRight` 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 baseEachRight = createBaseEach(baseForOwnRight, true);
  18382. /**
  18383. * The base implementation of `_.every` without support for iteratee shorthands.
  18384. *
  18385. * @private
  18386. * @param {Array|Object} collection The collection to iterate over.
  18387. * @param {Function} predicate The function invoked per iteration.
  18388. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  18389. * else `false`
  18390. */
  18391. function baseEvery(collection, predicate) {
  18392. var result = true;
  18393. baseEach(collection, function(value, index, collection) {
  18394. result = !!predicate(value, index, collection);
  18395. return result;
  18396. });
  18397. return result;
  18398. }
  18399. /**
  18400. * The base implementation of methods like `_.max` and `_.min` which accepts a
  18401. * `comparator` to determine the extremum value.
  18402. *
  18403. * @private
  18404. * @param {Array} array The array to iterate over.
  18405. * @param {Function} iteratee The iteratee invoked per iteration.
  18406. * @param {Function} comparator The comparator used to compare values.
  18407. * @returns {*} Returns the extremum value.
  18408. */
  18409. function baseExtremum(array, iteratee, comparator) {
  18410. var index = -1,
  18411. length = array.length;
  18412. while (++index < length) {
  18413. var value = array[index],
  18414. current = iteratee(value);
  18415. if (current != null && (computed === undefined
  18416. ? (current === current && !isSymbol(current))
  18417. : comparator(current, computed)
  18418. )) {
  18419. var computed = current,
  18420. result = value;
  18421. }
  18422. }
  18423. return result;
  18424. }
  18425. /**
  18426. * The base implementation of `_.fill` without an iteratee call guard.
  18427. *
  18428. * @private
  18429. * @param {Array} array The array to fill.
  18430. * @param {*} value The value to fill `array` with.
  18431. * @param {number} [start=0] The start position.
  18432. * @param {number} [end=array.length] The end position.
  18433. * @returns {Array} Returns `array`.
  18434. */
  18435. function baseFill(array, value, start, end) {
  18436. var length = array.length;
  18437. start = toInteger(start);
  18438. if (start < 0) {
  18439. start = -start > length ? 0 : (length + start);
  18440. }
  18441. end = (end === undefined || end > length) ? length : toInteger(end);
  18442. if (end < 0) {
  18443. end += length;
  18444. }
  18445. end = start > end ? 0 : toLength(end);
  18446. while (start < end) {
  18447. array[start++] = value;
  18448. }
  18449. return array;
  18450. }
  18451. /**
  18452. * The base implementation of `_.filter` without support for iteratee shorthands.
  18453. *
  18454. * @private
  18455. * @param {Array|Object} collection The collection to iterate over.
  18456. * @param {Function} predicate The function invoked per iteration.
  18457. * @returns {Array} Returns the new filtered array.
  18458. */
  18459. function baseFilter(collection, predicate) {
  18460. var result = [];
  18461. baseEach(collection, function(value, index, collection) {
  18462. if (predicate(value, index, collection)) {
  18463. result.push(value);
  18464. }
  18465. });
  18466. return result;
  18467. }
  18468. /**
  18469. * The base implementation of `_.flatten` with support for restricting flattening.
  18470. *
  18471. * @private
  18472. * @param {Array} array The array to flatten.
  18473. * @param {number} depth The maximum recursion depth.
  18474. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  18475. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  18476. * @param {Array} [result=[]] The initial result value.
  18477. * @returns {Array} Returns the new flattened array.
  18478. */
  18479. function baseFlatten(array, depth, predicate, isStrict, result) {
  18480. var index = -1,
  18481. length = array.length;
  18482. predicate || (predicate = isFlattenable);
  18483. result || (result = []);
  18484. while (++index < length) {
  18485. var value = array[index];
  18486. if (depth > 0 && predicate(value)) {
  18487. if (depth > 1) {
  18488. // Recursively flatten arrays (susceptible to call stack limits).
  18489. baseFlatten(value, depth - 1, predicate, isStrict, result);
  18490. } else {
  18491. arrayPush(result, value);
  18492. }
  18493. } else if (!isStrict) {
  18494. result[result.length] = value;
  18495. }
  18496. }
  18497. return result;
  18498. }
  18499. /**
  18500. * The base implementation of `baseForOwn` which iterates over `object`
  18501. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  18502. * Iteratee functions may exit iteration early by explicitly returning `false`.
  18503. *
  18504. * @private
  18505. * @param {Object} object The object to iterate over.
  18506. * @param {Function} iteratee The function invoked per iteration.
  18507. * @param {Function} keysFunc The function to get the keys of `object`.
  18508. * @returns {Object} Returns `object`.
  18509. */
  18510. var baseFor = createBaseFor();
  18511. /**
  18512. * This function is like `baseFor` except that it iterates over properties
  18513. * in the opposite order.
  18514. *
  18515. * @private
  18516. * @param {Object} object The object to iterate over.
  18517. * @param {Function} iteratee The function invoked per iteration.
  18518. * @param {Function} keysFunc The function to get the keys of `object`.
  18519. * @returns {Object} Returns `object`.
  18520. */
  18521. var baseForRight = createBaseFor(true);
  18522. /**
  18523. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  18524. *
  18525. * @private
  18526. * @param {Object} object The object to iterate over.
  18527. * @param {Function} iteratee The function invoked per iteration.
  18528. * @returns {Object} Returns `object`.
  18529. */
  18530. function baseForOwn(object, iteratee) {
  18531. return object && baseFor(object, iteratee, keys);
  18532. }
  18533. /**
  18534. * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
  18535. *
  18536. * @private
  18537. * @param {Object} object The object to iterate over.
  18538. * @param {Function} iteratee The function invoked per iteration.
  18539. * @returns {Object} Returns `object`.
  18540. */
  18541. function baseForOwnRight(object, iteratee) {
  18542. return object && baseForRight(object, iteratee, keys);
  18543. }
  18544. /**
  18545. * The base implementation of `_.functions` which creates an array of
  18546. * `object` function property names filtered from `props`.
  18547. *
  18548. * @private
  18549. * @param {Object} object The object to inspect.
  18550. * @param {Array} props The property names to filter.
  18551. * @returns {Array} Returns the function names.
  18552. */
  18553. function baseFunctions(object, props) {
  18554. return arrayFilter(props, function(key) {
  18555. return isFunction(object[key]);
  18556. });
  18557. }
  18558. /**
  18559. * The base implementation of `_.get` without support for default values.
  18560. *
  18561. * @private
  18562. * @param {Object} object The object to query.
  18563. * @param {Array|string} path The path of the property to get.
  18564. * @returns {*} Returns the resolved value.
  18565. */
  18566. function baseGet(object, path) {
  18567. path = castPath(path, object);
  18568. var index = 0,
  18569. length = path.length;
  18570. while (object != null && index < length) {
  18571. object = object[toKey(path[index++])];
  18572. }
  18573. return (index && index == length) ? object : undefined;
  18574. }
  18575. /**
  18576. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  18577. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  18578. * symbols of `object`.
  18579. *
  18580. * @private
  18581. * @param {Object} object The object to query.
  18582. * @param {Function} keysFunc The function to get the keys of `object`.
  18583. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  18584. * @returns {Array} Returns the array of property names and symbols.
  18585. */
  18586. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  18587. var result = keysFunc(object);
  18588. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  18589. }
  18590. /**
  18591. * The base implementation of `getTag` without fallbacks for buggy environments.
  18592. *
  18593. * @private
  18594. * @param {*} value The value to query.
  18595. * @returns {string} Returns the `toStringTag`.
  18596. */
  18597. function baseGetTag(value) {
  18598. if (value == null) {
  18599. return value === undefined ? undefinedTag : nullTag;
  18600. }
  18601. return (symToStringTag && symToStringTag in Object(value))
  18602. ? getRawTag(value)
  18603. : objectToString(value);
  18604. }
  18605. /**
  18606. * The base implementation of `_.gt` which doesn't coerce arguments.
  18607. *
  18608. * @private
  18609. * @param {*} value The value to compare.
  18610. * @param {*} other The other value to compare.
  18611. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  18612. * else `false`.
  18613. */
  18614. function baseGt(value, other) {
  18615. return value > other;
  18616. }
  18617. /**
  18618. * The base implementation of `_.has` without support for deep paths.
  18619. *
  18620. * @private
  18621. * @param {Object} [object] The object to query.
  18622. * @param {Array|string} key The key to check.
  18623. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18624. */
  18625. function baseHas(object, key) {
  18626. return object != null && hasOwnProperty.call(object, key);
  18627. }
  18628. /**
  18629. * The base implementation of `_.hasIn` without support for deep paths.
  18630. *
  18631. * @private
  18632. * @param {Object} [object] The object to query.
  18633. * @param {Array|string} key The key to check.
  18634. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  18635. */
  18636. function baseHasIn(object, key) {
  18637. return object != null && key in Object(object);
  18638. }
  18639. /**
  18640. * The base implementation of `_.inRange` which doesn't coerce arguments.
  18641. *
  18642. * @private
  18643. * @param {number} number The number to check.
  18644. * @param {number} start The start of the range.
  18645. * @param {number} end The end of the range.
  18646. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  18647. */
  18648. function baseInRange(number, start, end) {
  18649. return number >= nativeMin(start, end) && number < nativeMax(start, end);
  18650. }
  18651. /**
  18652. * The base implementation of methods like `_.intersection`, without support
  18653. * for iteratee shorthands, that accepts an array of arrays to inspect.
  18654. *
  18655. * @private
  18656. * @param {Array} arrays The arrays to inspect.
  18657. * @param {Function} [iteratee] The iteratee invoked per element.
  18658. * @param {Function} [comparator] The comparator invoked per element.
  18659. * @returns {Array} Returns the new array of shared values.
  18660. */
  18661. function baseIntersection(arrays, iteratee, comparator) {
  18662. var includes = comparator ? arrayIncludesWith : arrayIncludes,
  18663. length = arrays[0].length,
  18664. othLength = arrays.length,
  18665. othIndex = othLength,
  18666. caches = Array(othLength),
  18667. maxLength = Infinity,
  18668. result = [];
  18669. while (othIndex--) {
  18670. var array = arrays[othIndex];
  18671. if (othIndex && iteratee) {
  18672. array = arrayMap(array, baseUnary(iteratee));
  18673. }
  18674. maxLength = nativeMin(array.length, maxLength);
  18675. caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
  18676. ? new SetCache(othIndex && array)
  18677. : undefined;
  18678. }
  18679. array = arrays[0];
  18680. var index = -1,
  18681. seen = caches[0];
  18682. outer:
  18683. while (++index < length && result.length < maxLength) {
  18684. var value = array[index],
  18685. computed = iteratee ? iteratee(value) : value;
  18686. value = (comparator || value !== 0) ? value : 0;
  18687. if (!(seen
  18688. ? cacheHas(seen, computed)
  18689. : includes(result, computed, comparator)
  18690. )) {
  18691. othIndex = othLength;
  18692. while (--othIndex) {
  18693. var cache = caches[othIndex];
  18694. if (!(cache
  18695. ? cacheHas(cache, computed)
  18696. : includes(arrays[othIndex], computed, comparator))
  18697. ) {
  18698. continue outer;
  18699. }
  18700. }
  18701. if (seen) {
  18702. seen.push(computed);
  18703. }
  18704. result.push(value);
  18705. }
  18706. }
  18707. return result;
  18708. }
  18709. /**
  18710. * The base implementation of `_.invert` and `_.invertBy` which inverts
  18711. * `object` with values transformed by `iteratee` and set by `setter`.
  18712. *
  18713. * @private
  18714. * @param {Object} object The object to iterate over.
  18715. * @param {Function} setter The function to set `accumulator` values.
  18716. * @param {Function} iteratee The iteratee to transform values.
  18717. * @param {Object} accumulator The initial inverted object.
  18718. * @returns {Function} Returns `accumulator`.
  18719. */
  18720. function baseInverter(object, setter, iteratee, accumulator) {
  18721. baseForOwn(object, function(value, key, object) {
  18722. setter(accumulator, iteratee(value), key, object);
  18723. });
  18724. return accumulator;
  18725. }
  18726. /**
  18727. * The base implementation of `_.invoke` without support for individual
  18728. * method arguments.
  18729. *
  18730. * @private
  18731. * @param {Object} object The object to query.
  18732. * @param {Array|string} path The path of the method to invoke.
  18733. * @param {Array} args The arguments to invoke the method with.
  18734. * @returns {*} Returns the result of the invoked method.
  18735. */
  18736. function baseInvoke(object, path, args) {
  18737. path = castPath(path, object);
  18738. object = parent(object, path);
  18739. var func = object == null ? object : object[toKey(last(path))];
  18740. return func == null ? undefined : apply(func, object, args);
  18741. }
  18742. /**
  18743. * The base implementation of `_.isArguments`.
  18744. *
  18745. * @private
  18746. * @param {*} value The value to check.
  18747. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  18748. */
  18749. function baseIsArguments(value) {
  18750. return isObjectLike(value) && baseGetTag(value) == argsTag;
  18751. }
  18752. /**
  18753. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  18754. *
  18755. * @private
  18756. * @param {*} value The value to check.
  18757. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  18758. */
  18759. function baseIsArrayBuffer(value) {
  18760. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  18761. }
  18762. /**
  18763. * The base implementation of `_.isDate` without Node.js optimizations.
  18764. *
  18765. * @private
  18766. * @param {*} value The value to check.
  18767. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  18768. */
  18769. function baseIsDate(value) {
  18770. return isObjectLike(value) && baseGetTag(value) == dateTag;
  18771. }
  18772. /**
  18773. * The base implementation of `_.isEqual` which supports partial comparisons
  18774. * and tracks traversed objects.
  18775. *
  18776. * @private
  18777. * @param {*} value The value to compare.
  18778. * @param {*} other The other value to compare.
  18779. * @param {boolean} bitmask The bitmask flags.
  18780. * 1 - Unordered comparison
  18781. * 2 - Partial comparison
  18782. * @param {Function} [customizer] The function to customize comparisons.
  18783. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  18784. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  18785. */
  18786. function baseIsEqual(value, other, bitmask, customizer, stack) {
  18787. if (value === other) {
  18788. return true;
  18789. }
  18790. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  18791. return value !== value && other !== other;
  18792. }
  18793. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  18794. }
  18795. /**
  18796. * A specialized version of `baseIsEqual` for arrays and objects which performs
  18797. * deep comparisons and tracks traversed objects enabling objects with circular
  18798. * references to be compared.
  18799. *
  18800. * @private
  18801. * @param {Object} object The object to compare.
  18802. * @param {Object} other The other object to compare.
  18803. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  18804. * @param {Function} customizer The function to customize comparisons.
  18805. * @param {Function} equalFunc The function to determine equivalents of values.
  18806. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  18807. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  18808. */
  18809. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  18810. var objIsArr = isArray(object),
  18811. othIsArr = isArray(other),
  18812. objTag = objIsArr ? arrayTag : getTag(object),
  18813. othTag = othIsArr ? arrayTag : getTag(other);
  18814. objTag = objTag == argsTag ? objectTag : objTag;
  18815. othTag = othTag == argsTag ? objectTag : othTag;
  18816. var objIsObj = objTag == objectTag,
  18817. othIsObj = othTag == objectTag,
  18818. isSameTag = objTag == othTag;
  18819. if (isSameTag && isBuffer(object)) {
  18820. if (!isBuffer(other)) {
  18821. return false;
  18822. }
  18823. objIsArr = true;
  18824. objIsObj = false;
  18825. }
  18826. if (isSameTag && !objIsObj) {
  18827. stack || (stack = new Stack);
  18828. return (objIsArr || isTypedArray(object))
  18829. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  18830. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  18831. }
  18832. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  18833. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  18834. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  18835. if (objIsWrapped || othIsWrapped) {
  18836. var objUnwrapped = objIsWrapped ? object.value() : object,
  18837. othUnwrapped = othIsWrapped ? other.value() : other;
  18838. stack || (stack = new Stack);
  18839. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  18840. }
  18841. }
  18842. if (!isSameTag) {
  18843. return false;
  18844. }
  18845. stack || (stack = new Stack);
  18846. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  18847. }
  18848. /**
  18849. * The base implementation of `_.isMap` without Node.js optimizations.
  18850. *
  18851. * @private
  18852. * @param {*} value The value to check.
  18853. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  18854. */
  18855. function baseIsMap(value) {
  18856. return isObjectLike(value) && getTag(value) == mapTag;
  18857. }
  18858. /**
  18859. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  18860. *
  18861. * @private
  18862. * @param {Object} object The object to inspect.
  18863. * @param {Object} source The object of property values to match.
  18864. * @param {Array} matchData The property names, values, and compare flags to match.
  18865. * @param {Function} [customizer] The function to customize comparisons.
  18866. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  18867. */
  18868. function baseIsMatch(object, source, matchData, customizer) {
  18869. var index = matchData.length,
  18870. length = index,
  18871. noCustomizer = !customizer;
  18872. if (object == null) {
  18873. return !length;
  18874. }
  18875. object = Object(object);
  18876. while (index--) {
  18877. var data = matchData[index];
  18878. if ((noCustomizer && data[2])
  18879. ? data[1] !== object[data[0]]
  18880. : !(data[0] in object)
  18881. ) {
  18882. return false;
  18883. }
  18884. }
  18885. while (++index < length) {
  18886. data = matchData[index];
  18887. var key = data[0],
  18888. objValue = object[key],
  18889. srcValue = data[1];
  18890. if (noCustomizer && data[2]) {
  18891. if (objValue === undefined && !(key in object)) {
  18892. return false;
  18893. }
  18894. } else {
  18895. var stack = new Stack;
  18896. if (customizer) {
  18897. var result = customizer(objValue, srcValue, key, object, source, stack);
  18898. }
  18899. if (!(result === undefined
  18900. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  18901. : result
  18902. )) {
  18903. return false;
  18904. }
  18905. }
  18906. }
  18907. return true;
  18908. }
  18909. /**
  18910. * The base implementation of `_.isNative` without bad shim checks.
  18911. *
  18912. * @private
  18913. * @param {*} value The value to check.
  18914. * @returns {boolean} Returns `true` if `value` is a native function,
  18915. * else `false`.
  18916. */
  18917. function baseIsNative(value) {
  18918. if (!isObject(value) || isMasked(value)) {
  18919. return false;
  18920. }
  18921. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  18922. return pattern.test(toSource(value));
  18923. }
  18924. /**
  18925. * The base implementation of `_.isRegExp` without Node.js optimizations.
  18926. *
  18927. * @private
  18928. * @param {*} value The value to check.
  18929. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  18930. */
  18931. function baseIsRegExp(value) {
  18932. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  18933. }
  18934. /**
  18935. * The base implementation of `_.isSet` without Node.js optimizations.
  18936. *
  18937. * @private
  18938. * @param {*} value The value to check.
  18939. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  18940. */
  18941. function baseIsSet(value) {
  18942. return isObjectLike(value) && getTag(value) == setTag;
  18943. }
  18944. /**
  18945. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  18946. *
  18947. * @private
  18948. * @param {*} value The value to check.
  18949. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  18950. */
  18951. function baseIsTypedArray(value) {
  18952. return isObjectLike(value) &&
  18953. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  18954. }
  18955. /**
  18956. * The base implementation of `_.iteratee`.
  18957. *
  18958. * @private
  18959. * @param {*} [value=_.identity] The value to convert to an iteratee.
  18960. * @returns {Function} Returns the iteratee.
  18961. */
  18962. function baseIteratee(value) {
  18963. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  18964. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  18965. if (typeof value == 'function') {
  18966. return value;
  18967. }
  18968. if (value == null) {
  18969. return identity;
  18970. }
  18971. if (typeof value == 'object') {
  18972. return isArray(value)
  18973. ? baseMatchesProperty(value[0], value[1])
  18974. : baseMatches(value);
  18975. }
  18976. return property(value);
  18977. }
  18978. /**
  18979. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  18980. *
  18981. * @private
  18982. * @param {Object} object The object to query.
  18983. * @returns {Array} Returns the array of property names.
  18984. */
  18985. function baseKeys(object) {
  18986. if (!isPrototype(object)) {
  18987. return nativeKeys(object);
  18988. }
  18989. var result = [];
  18990. for (var key in Object(object)) {
  18991. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  18992. result.push(key);
  18993. }
  18994. }
  18995. return result;
  18996. }
  18997. /**
  18998. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  18999. *
  19000. * @private
  19001. * @param {Object} object The object to query.
  19002. * @returns {Array} Returns the array of property names.
  19003. */
  19004. function baseKeysIn(object) {
  19005. if (!isObject(object)) {
  19006. return nativeKeysIn(object);
  19007. }
  19008. var isProto = isPrototype(object),
  19009. result = [];
  19010. for (var key in object) {
  19011. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  19012. result.push(key);
  19013. }
  19014. }
  19015. return result;
  19016. }
  19017. /**
  19018. * The base implementation of `_.lt` which doesn't coerce arguments.
  19019. *
  19020. * @private
  19021. * @param {*} value The value to compare.
  19022. * @param {*} other The other value to compare.
  19023. * @returns {boolean} Returns `true` if `value` is less than `other`,
  19024. * else `false`.
  19025. */
  19026. function baseLt(value, other) {
  19027. return value < other;
  19028. }
  19029. /**
  19030. * The base implementation of `_.map` without support for iteratee shorthands.
  19031. *
  19032. * @private
  19033. * @param {Array|Object} collection The collection to iterate over.
  19034. * @param {Function} iteratee The function invoked per iteration.
  19035. * @returns {Array} Returns the new mapped array.
  19036. */
  19037. function baseMap(collection, iteratee) {
  19038. var index = -1,
  19039. result = isArrayLike(collection) ? Array(collection.length) : [];
  19040. baseEach(collection, function(value, key, collection) {
  19041. result[++index] = iteratee(value, key, collection);
  19042. });
  19043. return result;
  19044. }
  19045. /**
  19046. * The base implementation of `_.matches` which doesn't clone `source`.
  19047. *
  19048. * @private
  19049. * @param {Object} source The object of property values to match.
  19050. * @returns {Function} Returns the new spec function.
  19051. */
  19052. function baseMatches(source) {
  19053. var matchData = getMatchData(source);
  19054. if (matchData.length == 1 && matchData[0][2]) {
  19055. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  19056. }
  19057. return function(object) {
  19058. return object === source || baseIsMatch(object, source, matchData);
  19059. };
  19060. }
  19061. /**
  19062. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  19063. *
  19064. * @private
  19065. * @param {string} path The path of the property to get.
  19066. * @param {*} srcValue The value to match.
  19067. * @returns {Function} Returns the new spec function.
  19068. */
  19069. function baseMatchesProperty(path, srcValue) {
  19070. if (isKey(path) && isStrictComparable(srcValue)) {
  19071. return matchesStrictComparable(toKey(path), srcValue);
  19072. }
  19073. return function(object) {
  19074. var objValue = get(object, path);
  19075. return (objValue === undefined && objValue === srcValue)
  19076. ? hasIn(object, path)
  19077. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  19078. };
  19079. }
  19080. /**
  19081. * The base implementation of `_.merge` without support for multiple sources.
  19082. *
  19083. * @private
  19084. * @param {Object} object The destination object.
  19085. * @param {Object} source The source object.
  19086. * @param {number} srcIndex The index of `source`.
  19087. * @param {Function} [customizer] The function to customize merged values.
  19088. * @param {Object} [stack] Tracks traversed source values and their merged
  19089. * counterparts.
  19090. */
  19091. function baseMerge(object, source, srcIndex, customizer, stack) {
  19092. if (object === source) {
  19093. return;
  19094. }
  19095. baseFor(source, function(srcValue, key) {
  19096. if (isObject(srcValue)) {
  19097. stack || (stack = new Stack);
  19098. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  19099. }
  19100. else {
  19101. var newValue = customizer
  19102. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  19103. : undefined;
  19104. if (newValue === undefined) {
  19105. newValue = srcValue;
  19106. }
  19107. assignMergeValue(object, key, newValue);
  19108. }
  19109. }, keysIn);
  19110. }
  19111. /**
  19112. * A specialized version of `baseMerge` for arrays and objects which performs
  19113. * deep merges and tracks traversed objects enabling objects with circular
  19114. * references to be merged.
  19115. *
  19116. * @private
  19117. * @param {Object} object The destination object.
  19118. * @param {Object} source The source object.
  19119. * @param {string} key The key of the value to merge.
  19120. * @param {number} srcIndex The index of `source`.
  19121. * @param {Function} mergeFunc The function to merge values.
  19122. * @param {Function} [customizer] The function to customize assigned values.
  19123. * @param {Object} [stack] Tracks traversed source values and their merged
  19124. * counterparts.
  19125. */
  19126. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  19127. var objValue = safeGet(object, key),
  19128. srcValue = safeGet(source, key),
  19129. stacked = stack.get(srcValue);
  19130. if (stacked) {
  19131. assignMergeValue(object, key, stacked);
  19132. return;
  19133. }
  19134. var newValue = customizer
  19135. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  19136. : undefined;
  19137. var isCommon = newValue === undefined;
  19138. if (isCommon) {
  19139. var isArr = isArray(srcValue),
  19140. isBuff = !isArr && isBuffer(srcValue),
  19141. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  19142. newValue = srcValue;
  19143. if (isArr || isBuff || isTyped) {
  19144. if (isArray(objValue)) {
  19145. newValue = objValue;
  19146. }
  19147. else if (isArrayLikeObject(objValue)) {
  19148. newValue = copyArray(objValue);
  19149. }
  19150. else if (isBuff) {
  19151. isCommon = false;
  19152. newValue = cloneBuffer(srcValue, true);
  19153. }
  19154. else if (isTyped) {
  19155. isCommon = false;
  19156. newValue = cloneTypedArray(srcValue, true);
  19157. }
  19158. else {
  19159. newValue = [];
  19160. }
  19161. }
  19162. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  19163. newValue = objValue;
  19164. if (isArguments(objValue)) {
  19165. newValue = toPlainObject(objValue);
  19166. }
  19167. else if (!isObject(objValue) || isFunction(objValue)) {
  19168. newValue = initCloneObject(srcValue);
  19169. }
  19170. }
  19171. else {
  19172. isCommon = false;
  19173. }
  19174. }
  19175. if (isCommon) {
  19176. // Recursively merge objects and arrays (susceptible to call stack limits).
  19177. stack.set(srcValue, newValue);
  19178. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  19179. stack['delete'](srcValue);
  19180. }
  19181. assignMergeValue(object, key, newValue);
  19182. }
  19183. /**
  19184. * The base implementation of `_.nth` which doesn't coerce arguments.
  19185. *
  19186. * @private
  19187. * @param {Array} array The array to query.
  19188. * @param {number} n The index of the element to return.
  19189. * @returns {*} Returns the nth element of `array`.
  19190. */
  19191. function baseNth(array, n) {
  19192. var length = array.length;
  19193. if (!length) {
  19194. return;
  19195. }
  19196. n += n < 0 ? length : 0;
  19197. return isIndex(n, length) ? array[n] : undefined;
  19198. }
  19199. /**
  19200. * The base implementation of `_.orderBy` without param guards.
  19201. *
  19202. * @private
  19203. * @param {Array|Object} collection The collection to iterate over.
  19204. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  19205. * @param {string[]} orders The sort orders of `iteratees`.
  19206. * @returns {Array} Returns the new sorted array.
  19207. */
  19208. function baseOrderBy(collection, iteratees, orders) {
  19209. var index = -1;
  19210. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
  19211. var result = baseMap(collection, function(value, key, collection) {
  19212. var criteria = arrayMap(iteratees, function(iteratee) {
  19213. return iteratee(value);
  19214. });
  19215. return { 'criteria': criteria, 'index': ++index, 'value': value };
  19216. });
  19217. return baseSortBy(result, function(object, other) {
  19218. return compareMultiple(object, other, orders);
  19219. });
  19220. }
  19221. /**
  19222. * The base implementation of `_.pick` without support for individual
  19223. * property identifiers.
  19224. *
  19225. * @private
  19226. * @param {Object} object The source object.
  19227. * @param {string[]} paths The property paths to pick.
  19228. * @returns {Object} Returns the new object.
  19229. */
  19230. function basePick(object, paths) {
  19231. return basePickBy(object, paths, function(value, path) {
  19232. return hasIn(object, path);
  19233. });
  19234. }
  19235. /**
  19236. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  19237. *
  19238. * @private
  19239. * @param {Object} object The source object.
  19240. * @param {string[]} paths The property paths to pick.
  19241. * @param {Function} predicate The function invoked per property.
  19242. * @returns {Object} Returns the new object.
  19243. */
  19244. function basePickBy(object, paths, predicate) {
  19245. var index = -1,
  19246. length = paths.length,
  19247. result = {};
  19248. while (++index < length) {
  19249. var path = paths[index],
  19250. value = baseGet(object, path);
  19251. if (predicate(value, path)) {
  19252. baseSet(result, castPath(path, object), value);
  19253. }
  19254. }
  19255. return result;
  19256. }
  19257. /**
  19258. * A specialized version of `baseProperty` which supports deep paths.
  19259. *
  19260. * @private
  19261. * @param {Array|string} path The path of the property to get.
  19262. * @returns {Function} Returns the new accessor function.
  19263. */
  19264. function basePropertyDeep(path) {
  19265. return function(object) {
  19266. return baseGet(object, path);
  19267. };
  19268. }
  19269. /**
  19270. * The base implementation of `_.pullAllBy` without support for iteratee
  19271. * shorthands.
  19272. *
  19273. * @private
  19274. * @param {Array} array The array to modify.
  19275. * @param {Array} values The values to remove.
  19276. * @param {Function} [iteratee] The iteratee invoked per element.
  19277. * @param {Function} [comparator] The comparator invoked per element.
  19278. * @returns {Array} Returns `array`.
  19279. */
  19280. function basePullAll(array, values, iteratee, comparator) {
  19281. var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
  19282. index = -1,
  19283. length = values.length,
  19284. seen = array;
  19285. if (array === values) {
  19286. values = copyArray(values);
  19287. }
  19288. if (iteratee) {
  19289. seen = arrayMap(array, baseUnary(iteratee));
  19290. }
  19291. while (++index < length) {
  19292. var fromIndex = 0,
  19293. value = values[index],
  19294. computed = iteratee ? iteratee(value) : value;
  19295. while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
  19296. if (seen !== array) {
  19297. splice.call(seen, fromIndex, 1);
  19298. }
  19299. splice.call(array, fromIndex, 1);
  19300. }
  19301. }
  19302. return array;
  19303. }
  19304. /**
  19305. * The base implementation of `_.pullAt` without support for individual
  19306. * indexes or capturing the removed elements.
  19307. *
  19308. * @private
  19309. * @param {Array} array The array to modify.
  19310. * @param {number[]} indexes The indexes of elements to remove.
  19311. * @returns {Array} Returns `array`.
  19312. */
  19313. function basePullAt(array, indexes) {
  19314. var length = array ? indexes.length : 0,
  19315. lastIndex = length - 1;
  19316. while (length--) {
  19317. var index = indexes[length];
  19318. if (length == lastIndex || index !== previous) {
  19319. var previous = index;
  19320. if (isIndex(index)) {
  19321. splice.call(array, index, 1);
  19322. } else {
  19323. baseUnset(array, index);
  19324. }
  19325. }
  19326. }
  19327. return array;
  19328. }
  19329. /**
  19330. * The base implementation of `_.random` without support for returning
  19331. * floating-point numbers.
  19332. *
  19333. * @private
  19334. * @param {number} lower The lower bound.
  19335. * @param {number} upper The upper bound.
  19336. * @returns {number} Returns the random number.
  19337. */
  19338. function baseRandom(lower, upper) {
  19339. return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
  19340. }
  19341. /**
  19342. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  19343. * coerce arguments.
  19344. *
  19345. * @private
  19346. * @param {number} start The start of the range.
  19347. * @param {number} end The end of the range.
  19348. * @param {number} step The value to increment or decrement by.
  19349. * @param {boolean} [fromRight] Specify iterating from right to left.
  19350. * @returns {Array} Returns the range of numbers.
  19351. */
  19352. function baseRange(start, end, step, fromRight) {
  19353. var index = -1,
  19354. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  19355. result = Array(length);
  19356. while (length--) {
  19357. result[fromRight ? length : ++index] = start;
  19358. start += step;
  19359. }
  19360. return result;
  19361. }
  19362. /**
  19363. * The base implementation of `_.repeat` which doesn't coerce arguments.
  19364. *
  19365. * @private
  19366. * @param {string} string The string to repeat.
  19367. * @param {number} n The number of times to repeat the string.
  19368. * @returns {string} Returns the repeated string.
  19369. */
  19370. function baseRepeat(string, n) {
  19371. var result = '';
  19372. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  19373. return result;
  19374. }
  19375. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  19376. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  19377. do {
  19378. if (n % 2) {
  19379. result += string;
  19380. }
  19381. n = nativeFloor(n / 2);
  19382. if (n) {
  19383. string += string;
  19384. }
  19385. } while (n);
  19386. return result;
  19387. }
  19388. /**
  19389. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  19390. *
  19391. * @private
  19392. * @param {Function} func The function to apply a rest parameter to.
  19393. * @param {number} [start=func.length-1] The start position of the rest parameter.
  19394. * @returns {Function} Returns the new function.
  19395. */
  19396. function baseRest(func, start) {
  19397. return setToString(overRest(func, start, identity), func + '');
  19398. }
  19399. /**
  19400. * The base implementation of `_.sample`.
  19401. *
  19402. * @private
  19403. * @param {Array|Object} collection The collection to sample.
  19404. * @returns {*} Returns the random element.
  19405. */
  19406. function baseSample(collection) {
  19407. return arraySample(values(collection));
  19408. }
  19409. /**
  19410. * The base implementation of `_.sampleSize` without param guards.
  19411. *
  19412. * @private
  19413. * @param {Array|Object} collection The collection to sample.
  19414. * @param {number} n The number of elements to sample.
  19415. * @returns {Array} Returns the random elements.
  19416. */
  19417. function baseSampleSize(collection, n) {
  19418. var array = values(collection);
  19419. return shuffleSelf(array, baseClamp(n, 0, array.length));
  19420. }
  19421. /**
  19422. * The base implementation of `_.set`.
  19423. *
  19424. * @private
  19425. * @param {Object} object The object to modify.
  19426. * @param {Array|string} path The path of the property to set.
  19427. * @param {*} value The value to set.
  19428. * @param {Function} [customizer] The function to customize path creation.
  19429. * @returns {Object} Returns `object`.
  19430. */
  19431. function baseSet(object, path, value, customizer) {
  19432. if (!isObject(object)) {
  19433. return object;
  19434. }
  19435. path = castPath(path, object);
  19436. var index = -1,
  19437. length = path.length,
  19438. lastIndex = length - 1,
  19439. nested = object;
  19440. while (nested != null && ++index < length) {
  19441. var key = toKey(path[index]),
  19442. newValue = value;
  19443. if (index != lastIndex) {
  19444. var objValue = nested[key];
  19445. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  19446. if (newValue === undefined) {
  19447. newValue = isObject(objValue)
  19448. ? objValue
  19449. : (isIndex(path[index + 1]) ? [] : {});
  19450. }
  19451. }
  19452. assignValue(nested, key, newValue);
  19453. nested = nested[key];
  19454. }
  19455. return object;
  19456. }
  19457. /**
  19458. * The base implementation of `setData` without support for hot loop shorting.
  19459. *
  19460. * @private
  19461. * @param {Function} func The function to associate metadata with.
  19462. * @param {*} data The metadata.
  19463. * @returns {Function} Returns `func`.
  19464. */
  19465. var baseSetData = !metaMap ? identity : function(func, data) {
  19466. metaMap.set(func, data);
  19467. return func;
  19468. };
  19469. /**
  19470. * The base implementation of `setToString` without support for hot loop shorting.
  19471. *
  19472. * @private
  19473. * @param {Function} func The function to modify.
  19474. * @param {Function} string The `toString` result.
  19475. * @returns {Function} Returns `func`.
  19476. */
  19477. var baseSetToString = !defineProperty ? identity : function(func, string) {
  19478. return defineProperty(func, 'toString', {
  19479. 'configurable': true,
  19480. 'enumerable': false,
  19481. 'value': constant(string),
  19482. 'writable': true
  19483. });
  19484. };
  19485. /**
  19486. * The base implementation of `_.shuffle`.
  19487. *
  19488. * @private
  19489. * @param {Array|Object} collection The collection to shuffle.
  19490. * @returns {Array} Returns the new shuffled array.
  19491. */
  19492. function baseShuffle(collection) {
  19493. return shuffleSelf(values(collection));
  19494. }
  19495. /**
  19496. * The base implementation of `_.slice` without an iteratee call guard.
  19497. *
  19498. * @private
  19499. * @param {Array} array The array to slice.
  19500. * @param {number} [start=0] The start position.
  19501. * @param {number} [end=array.length] The end position.
  19502. * @returns {Array} Returns the slice of `array`.
  19503. */
  19504. function baseSlice(array, start, end) {
  19505. var index = -1,
  19506. length = array.length;
  19507. if (start < 0) {
  19508. start = -start > length ? 0 : (length + start);
  19509. }
  19510. end = end > length ? length : end;
  19511. if (end < 0) {
  19512. end += length;
  19513. }
  19514. length = start > end ? 0 : ((end - start) >>> 0);
  19515. start >>>= 0;
  19516. var result = Array(length);
  19517. while (++index < length) {
  19518. result[index] = array[index + start];
  19519. }
  19520. return result;
  19521. }
  19522. /**
  19523. * The base implementation of `_.some` without support for iteratee shorthands.
  19524. *
  19525. * @private
  19526. * @param {Array|Object} collection The collection to iterate over.
  19527. * @param {Function} predicate The function invoked per iteration.
  19528. * @returns {boolean} Returns `true` if any element passes the predicate check,
  19529. * else `false`.
  19530. */
  19531. function baseSome(collection, predicate) {
  19532. var result;
  19533. baseEach(collection, function(value, index, collection) {
  19534. result = predicate(value, index, collection);
  19535. return !result;
  19536. });
  19537. return !!result;
  19538. }
  19539. /**
  19540. * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
  19541. * performs a binary search of `array` to determine the index at which `value`
  19542. * should be inserted into `array` in order to maintain its sort order.
  19543. *
  19544. * @private
  19545. * @param {Array} array The sorted array to inspect.
  19546. * @param {*} value The value to evaluate.
  19547. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19548. * @returns {number} Returns the index at which `value` should be inserted
  19549. * into `array`.
  19550. */
  19551. function baseSortedIndex(array, value, retHighest) {
  19552. var low = 0,
  19553. high = array == null ? low : array.length;
  19554. if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
  19555. while (low < high) {
  19556. var mid = (low + high) >>> 1,
  19557. computed = array[mid];
  19558. if (computed !== null && !isSymbol(computed) &&
  19559. (retHighest ? (computed <= value) : (computed < value))) {
  19560. low = mid + 1;
  19561. } else {
  19562. high = mid;
  19563. }
  19564. }
  19565. return high;
  19566. }
  19567. return baseSortedIndexBy(array, value, identity, retHighest);
  19568. }
  19569. /**
  19570. * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
  19571. * which invokes `iteratee` for `value` and each element of `array` to compute
  19572. * their sort ranking. The iteratee is invoked with one argument; (value).
  19573. *
  19574. * @private
  19575. * @param {Array} array The sorted array to inspect.
  19576. * @param {*} value The value to evaluate.
  19577. * @param {Function} iteratee The iteratee invoked per element.
  19578. * @param {boolean} [retHighest] Specify returning the highest qualified index.
  19579. * @returns {number} Returns the index at which `value` should be inserted
  19580. * into `array`.
  19581. */
  19582. function baseSortedIndexBy(array, value, iteratee, retHighest) {
  19583. value = iteratee(value);
  19584. var low = 0,
  19585. high = array == null ? 0 : array.length,
  19586. valIsNaN = value !== value,
  19587. valIsNull = value === null,
  19588. valIsSymbol = isSymbol(value),
  19589. valIsUndefined = value === undefined;
  19590. while (low < high) {
  19591. var mid = nativeFloor((low + high) / 2),
  19592. computed = iteratee(array[mid]),
  19593. othIsDefined = computed !== undefined,
  19594. othIsNull = computed === null,
  19595. othIsReflexive = computed === computed,
  19596. othIsSymbol = isSymbol(computed);
  19597. if (valIsNaN) {
  19598. var setLow = retHighest || othIsReflexive;
  19599. } else if (valIsUndefined) {
  19600. setLow = othIsReflexive && (retHighest || othIsDefined);
  19601. } else if (valIsNull) {
  19602. setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
  19603. } else if (valIsSymbol) {
  19604. setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
  19605. } else if (othIsNull || othIsSymbol) {
  19606. setLow = false;
  19607. } else {
  19608. setLow = retHighest ? (computed <= value) : (computed < value);
  19609. }
  19610. if (setLow) {
  19611. low = mid + 1;
  19612. } else {
  19613. high = mid;
  19614. }
  19615. }
  19616. return nativeMin(high, MAX_ARRAY_INDEX);
  19617. }
  19618. /**
  19619. * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
  19620. * support for iteratee shorthands.
  19621. *
  19622. * @private
  19623. * @param {Array} array The array to inspect.
  19624. * @param {Function} [iteratee] The iteratee invoked per element.
  19625. * @returns {Array} Returns the new duplicate free array.
  19626. */
  19627. function baseSortedUniq(array, iteratee) {
  19628. var index = -1,
  19629. length = array.length,
  19630. resIndex = 0,
  19631. result = [];
  19632. while (++index < length) {
  19633. var value = array[index],
  19634. computed = iteratee ? iteratee(value) : value;
  19635. if (!index || !eq(computed, seen)) {
  19636. var seen = computed;
  19637. result[resIndex++] = value === 0 ? 0 : value;
  19638. }
  19639. }
  19640. return result;
  19641. }
  19642. /**
  19643. * The base implementation of `_.toNumber` which doesn't ensure correct
  19644. * conversions of binary, hexadecimal, or octal string values.
  19645. *
  19646. * @private
  19647. * @param {*} value The value to process.
  19648. * @returns {number} Returns the number.
  19649. */
  19650. function baseToNumber(value) {
  19651. if (typeof value == 'number') {
  19652. return value;
  19653. }
  19654. if (isSymbol(value)) {
  19655. return NAN;
  19656. }
  19657. return +value;
  19658. }
  19659. /**
  19660. * The base implementation of `_.toString` which doesn't convert nullish
  19661. * values to empty strings.
  19662. *
  19663. * @private
  19664. * @param {*} value The value to process.
  19665. * @returns {string} Returns the string.
  19666. */
  19667. function baseToString(value) {
  19668. // Exit early for strings to avoid a performance hit in some environments.
  19669. if (typeof value == 'string') {
  19670. return value;
  19671. }
  19672. if (isArray(value)) {
  19673. // Recursively convert values (susceptible to call stack limits).
  19674. return arrayMap(value, baseToString) + '';
  19675. }
  19676. if (isSymbol(value)) {
  19677. return symbolToString ? symbolToString.call(value) : '';
  19678. }
  19679. var result = (value + '');
  19680. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  19681. }
  19682. /**
  19683. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  19684. *
  19685. * @private
  19686. * @param {Array} array The array to inspect.
  19687. * @param {Function} [iteratee] The iteratee invoked per element.
  19688. * @param {Function} [comparator] The comparator invoked per element.
  19689. * @returns {Array} Returns the new duplicate free array.
  19690. */
  19691. function baseUniq(array, iteratee, comparator) {
  19692. var index = -1,
  19693. includes = arrayIncludes,
  19694. length = array.length,
  19695. isCommon = true,
  19696. result = [],
  19697. seen = result;
  19698. if (comparator) {
  19699. isCommon = false;
  19700. includes = arrayIncludesWith;
  19701. }
  19702. else if (length >= LARGE_ARRAY_SIZE) {
  19703. var set = iteratee ? null : createSet(array);
  19704. if (set) {
  19705. return setToArray(set);
  19706. }
  19707. isCommon = false;
  19708. includes = cacheHas;
  19709. seen = new SetCache;
  19710. }
  19711. else {
  19712. seen = iteratee ? [] : result;
  19713. }
  19714. outer:
  19715. while (++index < length) {
  19716. var value = array[index],
  19717. computed = iteratee ? iteratee(value) : value;
  19718. value = (comparator || value !== 0) ? value : 0;
  19719. if (isCommon && computed === computed) {
  19720. var seenIndex = seen.length;
  19721. while (seenIndex--) {
  19722. if (seen[seenIndex] === computed) {
  19723. continue outer;
  19724. }
  19725. }
  19726. if (iteratee) {
  19727. seen.push(computed);
  19728. }
  19729. result.push(value);
  19730. }
  19731. else if (!includes(seen, computed, comparator)) {
  19732. if (seen !== result) {
  19733. seen.push(computed);
  19734. }
  19735. result.push(value);
  19736. }
  19737. }
  19738. return result;
  19739. }
  19740. /**
  19741. * The base implementation of `_.unset`.
  19742. *
  19743. * @private
  19744. * @param {Object} object The object to modify.
  19745. * @param {Array|string} path The property path to unset.
  19746. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  19747. */
  19748. function baseUnset(object, path) {
  19749. path = castPath(path, object);
  19750. object = parent(object, path);
  19751. return object == null || delete object[toKey(last(path))];
  19752. }
  19753. /**
  19754. * The base implementation of `_.update`.
  19755. *
  19756. * @private
  19757. * @param {Object} object The object to modify.
  19758. * @param {Array|string} path The path of the property to update.
  19759. * @param {Function} updater The function to produce the updated value.
  19760. * @param {Function} [customizer] The function to customize path creation.
  19761. * @returns {Object} Returns `object`.
  19762. */
  19763. function baseUpdate(object, path, updater, customizer) {
  19764. return baseSet(object, path, updater(baseGet(object, path)), customizer);
  19765. }
  19766. /**
  19767. * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
  19768. * without support for iteratee shorthands.
  19769. *
  19770. * @private
  19771. * @param {Array} array The array to query.
  19772. * @param {Function} predicate The function invoked per iteration.
  19773. * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
  19774. * @param {boolean} [fromRight] Specify iterating from right to left.
  19775. * @returns {Array} Returns the slice of `array`.
  19776. */
  19777. function baseWhile(array, predicate, isDrop, fromRight) {
  19778. var length = array.length,
  19779. index = fromRight ? length : -1;
  19780. while ((fromRight ? index-- : ++index < length) &&
  19781. predicate(array[index], index, array)) {}
  19782. return isDrop
  19783. ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
  19784. : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
  19785. }
  19786. /**
  19787. * The base implementation of `wrapperValue` which returns the result of
  19788. * performing a sequence of actions on the unwrapped `value`, where each
  19789. * successive action is supplied the return value of the previous.
  19790. *
  19791. * @private
  19792. * @param {*} value The unwrapped value.
  19793. * @param {Array} actions Actions to perform to resolve the unwrapped value.
  19794. * @returns {*} Returns the resolved value.
  19795. */
  19796. function baseWrapperValue(value, actions) {
  19797. var result = value;
  19798. if (result instanceof LazyWrapper) {
  19799. result = result.value();
  19800. }
  19801. return arrayReduce(actions, function(result, action) {
  19802. return action.func.apply(action.thisArg, arrayPush([result], action.args));
  19803. }, result);
  19804. }
  19805. /**
  19806. * The base implementation of methods like `_.xor`, without support for
  19807. * iteratee shorthands, that accepts an array of arrays to inspect.
  19808. *
  19809. * @private
  19810. * @param {Array} arrays The arrays to inspect.
  19811. * @param {Function} [iteratee] The iteratee invoked per element.
  19812. * @param {Function} [comparator] The comparator invoked per element.
  19813. * @returns {Array} Returns the new array of values.
  19814. */
  19815. function baseXor(arrays, iteratee, comparator) {
  19816. var length = arrays.length;
  19817. if (length < 2) {
  19818. return length ? baseUniq(arrays[0]) : [];
  19819. }
  19820. var index = -1,
  19821. result = Array(length);
  19822. while (++index < length) {
  19823. var array = arrays[index],
  19824. othIndex = -1;
  19825. while (++othIndex < length) {
  19826. if (othIndex != index) {
  19827. result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
  19828. }
  19829. }
  19830. }
  19831. return baseUniq(baseFlatten(result, 1), iteratee, comparator);
  19832. }
  19833. /**
  19834. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  19835. *
  19836. * @private
  19837. * @param {Array} props The property identifiers.
  19838. * @param {Array} values The property values.
  19839. * @param {Function} assignFunc The function to assign values.
  19840. * @returns {Object} Returns the new object.
  19841. */
  19842. function baseZipObject(props, values, assignFunc) {
  19843. var index = -1,
  19844. length = props.length,
  19845. valsLength = values.length,
  19846. result = {};
  19847. while (++index < length) {
  19848. var value = index < valsLength ? values[index] : undefined;
  19849. assignFunc(result, props[index], value);
  19850. }
  19851. return result;
  19852. }
  19853. /**
  19854. * Casts `value` to an empty array if it's not an array like object.
  19855. *
  19856. * @private
  19857. * @param {*} value The value to inspect.
  19858. * @returns {Array|Object} Returns the cast array-like object.
  19859. */
  19860. function castArrayLikeObject(value) {
  19861. return isArrayLikeObject(value) ? value : [];
  19862. }
  19863. /**
  19864. * Casts `value` to `identity` if it's not a function.
  19865. *
  19866. * @private
  19867. * @param {*} value The value to inspect.
  19868. * @returns {Function} Returns cast function.
  19869. */
  19870. function castFunction(value) {
  19871. return typeof value == 'function' ? value : identity;
  19872. }
  19873. /**
  19874. * Casts `value` to a path array if it's not one.
  19875. *
  19876. * @private
  19877. * @param {*} value The value to inspect.
  19878. * @param {Object} [object] The object to query keys on.
  19879. * @returns {Array} Returns the cast property path array.
  19880. */
  19881. function castPath(value, object) {
  19882. if (isArray(value)) {
  19883. return value;
  19884. }
  19885. return isKey(value, object) ? [value] : stringToPath(toString(value));
  19886. }
  19887. /**
  19888. * A `baseRest` alias which can be replaced with `identity` by module
  19889. * replacement plugins.
  19890. *
  19891. * @private
  19892. * @type {Function}
  19893. * @param {Function} func The function to apply a rest parameter to.
  19894. * @returns {Function} Returns the new function.
  19895. */
  19896. var castRest = baseRest;
  19897. /**
  19898. * Casts `array` to a slice if it's needed.
  19899. *
  19900. * @private
  19901. * @param {Array} array The array to inspect.
  19902. * @param {number} start The start position.
  19903. * @param {number} [end=array.length] The end position.
  19904. * @returns {Array} Returns the cast slice.
  19905. */
  19906. function castSlice(array, start, end) {
  19907. var length = array.length;
  19908. end = end === undefined ? length : end;
  19909. return (!start && end >= length) ? array : baseSlice(array, start, end);
  19910. }
  19911. /**
  19912. * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
  19913. *
  19914. * @private
  19915. * @param {number|Object} id The timer id or timeout object of the timer to clear.
  19916. */
  19917. var clearTimeout = ctxClearTimeout || function(id) {
  19918. return root.clearTimeout(id);
  19919. };
  19920. /**
  19921. * Creates a clone of `buffer`.
  19922. *
  19923. * @private
  19924. * @param {Buffer} buffer The buffer to clone.
  19925. * @param {boolean} [isDeep] Specify a deep clone.
  19926. * @returns {Buffer} Returns the cloned buffer.
  19927. */
  19928. function cloneBuffer(buffer, isDeep) {
  19929. if (isDeep) {
  19930. return buffer.slice();
  19931. }
  19932. var length = buffer.length,
  19933. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  19934. buffer.copy(result);
  19935. return result;
  19936. }
  19937. /**
  19938. * Creates a clone of `arrayBuffer`.
  19939. *
  19940. * @private
  19941. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  19942. * @returns {ArrayBuffer} Returns the cloned array buffer.
  19943. */
  19944. function cloneArrayBuffer(arrayBuffer) {
  19945. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  19946. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  19947. return result;
  19948. }
  19949. /**
  19950. * Creates a clone of `dataView`.
  19951. *
  19952. * @private
  19953. * @param {Object} dataView The data view to clone.
  19954. * @param {boolean} [isDeep] Specify a deep clone.
  19955. * @returns {Object} Returns the cloned data view.
  19956. */
  19957. function cloneDataView(dataView, isDeep) {
  19958. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  19959. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  19960. }
  19961. /**
  19962. * Creates a clone of `regexp`.
  19963. *
  19964. * @private
  19965. * @param {Object} regexp The regexp to clone.
  19966. * @returns {Object} Returns the cloned regexp.
  19967. */
  19968. function cloneRegExp(regexp) {
  19969. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  19970. result.lastIndex = regexp.lastIndex;
  19971. return result;
  19972. }
  19973. /**
  19974. * Creates a clone of the `symbol` object.
  19975. *
  19976. * @private
  19977. * @param {Object} symbol The symbol object to clone.
  19978. * @returns {Object} Returns the cloned symbol object.
  19979. */
  19980. function cloneSymbol(symbol) {
  19981. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  19982. }
  19983. /**
  19984. * Creates a clone of `typedArray`.
  19985. *
  19986. * @private
  19987. * @param {Object} typedArray The typed array to clone.
  19988. * @param {boolean} [isDeep] Specify a deep clone.
  19989. * @returns {Object} Returns the cloned typed array.
  19990. */
  19991. function cloneTypedArray(typedArray, isDeep) {
  19992. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  19993. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  19994. }
  19995. /**
  19996. * Compares values to sort them in ascending order.
  19997. *
  19998. * @private
  19999. * @param {*} value The value to compare.
  20000. * @param {*} other The other value to compare.
  20001. * @returns {number} Returns the sort order indicator for `value`.
  20002. */
  20003. function compareAscending(value, other) {
  20004. if (value !== other) {
  20005. var valIsDefined = value !== undefined,
  20006. valIsNull = value === null,
  20007. valIsReflexive = value === value,
  20008. valIsSymbol = isSymbol(value);
  20009. var othIsDefined = other !== undefined,
  20010. othIsNull = other === null,
  20011. othIsReflexive = other === other,
  20012. othIsSymbol = isSymbol(other);
  20013. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  20014. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  20015. (valIsNull && othIsDefined && othIsReflexive) ||
  20016. (!valIsDefined && othIsReflexive) ||
  20017. !valIsReflexive) {
  20018. return 1;
  20019. }
  20020. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  20021. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  20022. (othIsNull && valIsDefined && valIsReflexive) ||
  20023. (!othIsDefined && valIsReflexive) ||
  20024. !othIsReflexive) {
  20025. return -1;
  20026. }
  20027. }
  20028. return 0;
  20029. }
  20030. /**
  20031. * Used by `_.orderBy` to compare multiple properties of a value to another
  20032. * and stable sort them.
  20033. *
  20034. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  20035. * specify an order of "desc" for descending or "asc" for ascending sort order
  20036. * of corresponding values.
  20037. *
  20038. * @private
  20039. * @param {Object} object The object to compare.
  20040. * @param {Object} other The other object to compare.
  20041. * @param {boolean[]|string[]} orders The order to sort by for each property.
  20042. * @returns {number} Returns the sort order indicator for `object`.
  20043. */
  20044. function compareMultiple(object, other, orders) {
  20045. var index = -1,
  20046. objCriteria = object.criteria,
  20047. othCriteria = other.criteria,
  20048. length = objCriteria.length,
  20049. ordersLength = orders.length;
  20050. while (++index < length) {
  20051. var result = compareAscending(objCriteria[index], othCriteria[index]);
  20052. if (result) {
  20053. if (index >= ordersLength) {
  20054. return result;
  20055. }
  20056. var order = orders[index];
  20057. return result * (order == 'desc' ? -1 : 1);
  20058. }
  20059. }
  20060. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  20061. // that causes it, under certain circumstances, to provide the same value for
  20062. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  20063. // for more details.
  20064. //
  20065. // This also ensures a stable sort in V8 and other engines.
  20066. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  20067. return object.index - other.index;
  20068. }
  20069. /**
  20070. * Creates an array that is the composition of partially applied arguments,
  20071. * placeholders, and provided arguments into a single array of arguments.
  20072. *
  20073. * @private
  20074. * @param {Array} args The provided arguments.
  20075. * @param {Array} partials The arguments to prepend to those provided.
  20076. * @param {Array} holders The `partials` placeholder indexes.
  20077. * @params {boolean} [isCurried] Specify composing for a curried function.
  20078. * @returns {Array} Returns the new array of composed arguments.
  20079. */
  20080. function composeArgs(args, partials, holders, isCurried) {
  20081. var argsIndex = -1,
  20082. argsLength = args.length,
  20083. holdersLength = holders.length,
  20084. leftIndex = -1,
  20085. leftLength = partials.length,
  20086. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20087. result = Array(leftLength + rangeLength),
  20088. isUncurried = !isCurried;
  20089. while (++leftIndex < leftLength) {
  20090. result[leftIndex] = partials[leftIndex];
  20091. }
  20092. while (++argsIndex < holdersLength) {
  20093. if (isUncurried || argsIndex < argsLength) {
  20094. result[holders[argsIndex]] = args[argsIndex];
  20095. }
  20096. }
  20097. while (rangeLength--) {
  20098. result[leftIndex++] = args[argsIndex++];
  20099. }
  20100. return result;
  20101. }
  20102. /**
  20103. * This function is like `composeArgs` except that the arguments composition
  20104. * is tailored for `_.partialRight`.
  20105. *
  20106. * @private
  20107. * @param {Array} args The provided arguments.
  20108. * @param {Array} partials The arguments to append to those provided.
  20109. * @param {Array} holders The `partials` placeholder indexes.
  20110. * @params {boolean} [isCurried] Specify composing for a curried function.
  20111. * @returns {Array} Returns the new array of composed arguments.
  20112. */
  20113. function composeArgsRight(args, partials, holders, isCurried) {
  20114. var argsIndex = -1,
  20115. argsLength = args.length,
  20116. holdersIndex = -1,
  20117. holdersLength = holders.length,
  20118. rightIndex = -1,
  20119. rightLength = partials.length,
  20120. rangeLength = nativeMax(argsLength - holdersLength, 0),
  20121. result = Array(rangeLength + rightLength),
  20122. isUncurried = !isCurried;
  20123. while (++argsIndex < rangeLength) {
  20124. result[argsIndex] = args[argsIndex];
  20125. }
  20126. var offset = argsIndex;
  20127. while (++rightIndex < rightLength) {
  20128. result[offset + rightIndex] = partials[rightIndex];
  20129. }
  20130. while (++holdersIndex < holdersLength) {
  20131. if (isUncurried || argsIndex < argsLength) {
  20132. result[offset + holders[holdersIndex]] = args[argsIndex++];
  20133. }
  20134. }
  20135. return result;
  20136. }
  20137. /**
  20138. * Copies the values of `source` to `array`.
  20139. *
  20140. * @private
  20141. * @param {Array} source The array to copy values from.
  20142. * @param {Array} [array=[]] The array to copy values to.
  20143. * @returns {Array} Returns `array`.
  20144. */
  20145. function copyArray(source, array) {
  20146. var index = -1,
  20147. length = source.length;
  20148. array || (array = Array(length));
  20149. while (++index < length) {
  20150. array[index] = source[index];
  20151. }
  20152. return array;
  20153. }
  20154. /**
  20155. * Copies properties of `source` to `object`.
  20156. *
  20157. * @private
  20158. * @param {Object} source The object to copy properties from.
  20159. * @param {Array} props The property identifiers to copy.
  20160. * @param {Object} [object={}] The object to copy properties to.
  20161. * @param {Function} [customizer] The function to customize copied values.
  20162. * @returns {Object} Returns `object`.
  20163. */
  20164. function copyObject(source, props, object, customizer) {
  20165. var isNew = !object;
  20166. object || (object = {});
  20167. var index = -1,
  20168. length = props.length;
  20169. while (++index < length) {
  20170. var key = props[index];
  20171. var newValue = customizer
  20172. ? customizer(object[key], source[key], key, object, source)
  20173. : undefined;
  20174. if (newValue === undefined) {
  20175. newValue = source[key];
  20176. }
  20177. if (isNew) {
  20178. baseAssignValue(object, key, newValue);
  20179. } else {
  20180. assignValue(object, key, newValue);
  20181. }
  20182. }
  20183. return object;
  20184. }
  20185. /**
  20186. * Copies own symbols of `source` to `object`.
  20187. *
  20188. * @private
  20189. * @param {Object} source The object to copy symbols from.
  20190. * @param {Object} [object={}] The object to copy symbols to.
  20191. * @returns {Object} Returns `object`.
  20192. */
  20193. function copySymbols(source, object) {
  20194. return copyObject(source, getSymbols(source), object);
  20195. }
  20196. /**
  20197. * Copies own and inherited symbols of `source` to `object`.
  20198. *
  20199. * @private
  20200. * @param {Object} source The object to copy symbols from.
  20201. * @param {Object} [object={}] The object to copy symbols to.
  20202. * @returns {Object} Returns `object`.
  20203. */
  20204. function copySymbolsIn(source, object) {
  20205. return copyObject(source, getSymbolsIn(source), object);
  20206. }
  20207. /**
  20208. * Creates a function like `_.groupBy`.
  20209. *
  20210. * @private
  20211. * @param {Function} setter The function to set accumulator values.
  20212. * @param {Function} [initializer] The accumulator object initializer.
  20213. * @returns {Function} Returns the new aggregator function.
  20214. */
  20215. function createAggregator(setter, initializer) {
  20216. return function(collection, iteratee) {
  20217. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  20218. accumulator = initializer ? initializer() : {};
  20219. return func(collection, setter, getIteratee(iteratee, 2), accumulator);
  20220. };
  20221. }
  20222. /**
  20223. * Creates a function like `_.assign`.
  20224. *
  20225. * @private
  20226. * @param {Function} assigner The function to assign values.
  20227. * @returns {Function} Returns the new assigner function.
  20228. */
  20229. function createAssigner(assigner) {
  20230. return baseRest(function(object, sources) {
  20231. var index = -1,
  20232. length = sources.length,
  20233. customizer = length > 1 ? sources[length - 1] : undefined,
  20234. guard = length > 2 ? sources[2] : undefined;
  20235. customizer = (assigner.length > 3 && typeof customizer == 'function')
  20236. ? (length--, customizer)
  20237. : undefined;
  20238. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  20239. customizer = length < 3 ? undefined : customizer;
  20240. length = 1;
  20241. }
  20242. object = Object(object);
  20243. while (++index < length) {
  20244. var source = sources[index];
  20245. if (source) {
  20246. assigner(object, source, index, customizer);
  20247. }
  20248. }
  20249. return object;
  20250. });
  20251. }
  20252. /**
  20253. * Creates a `baseEach` or `baseEachRight` function.
  20254. *
  20255. * @private
  20256. * @param {Function} eachFunc The function to iterate over a collection.
  20257. * @param {boolean} [fromRight] Specify iterating from right to left.
  20258. * @returns {Function} Returns the new base function.
  20259. */
  20260. function createBaseEach(eachFunc, fromRight) {
  20261. return function(collection, iteratee) {
  20262. if (collection == null) {
  20263. return collection;
  20264. }
  20265. if (!isArrayLike(collection)) {
  20266. return eachFunc(collection, iteratee);
  20267. }
  20268. var length = collection.length,
  20269. index = fromRight ? length : -1,
  20270. iterable = Object(collection);
  20271. while ((fromRight ? index-- : ++index < length)) {
  20272. if (iteratee(iterable[index], index, iterable) === false) {
  20273. break;
  20274. }
  20275. }
  20276. return collection;
  20277. };
  20278. }
  20279. /**
  20280. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  20281. *
  20282. * @private
  20283. * @param {boolean} [fromRight] Specify iterating from right to left.
  20284. * @returns {Function} Returns the new base function.
  20285. */
  20286. function createBaseFor(fromRight) {
  20287. return function(object, iteratee, keysFunc) {
  20288. var index = -1,
  20289. iterable = Object(object),
  20290. props = keysFunc(object),
  20291. length = props.length;
  20292. while (length--) {
  20293. var key = props[fromRight ? length : ++index];
  20294. if (iteratee(iterable[key], key, iterable) === false) {
  20295. break;
  20296. }
  20297. }
  20298. return object;
  20299. };
  20300. }
  20301. /**
  20302. * Creates a function that wraps `func` to invoke it with the optional `this`
  20303. * binding of `thisArg`.
  20304. *
  20305. * @private
  20306. * @param {Function} func The function to wrap.
  20307. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20308. * @param {*} [thisArg] The `this` binding of `func`.
  20309. * @returns {Function} Returns the new wrapped function.
  20310. */
  20311. function createBind(func, bitmask, thisArg) {
  20312. var isBind = bitmask & WRAP_BIND_FLAG,
  20313. Ctor = createCtor(func);
  20314. function wrapper() {
  20315. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20316. return fn.apply(isBind ? thisArg : this, arguments);
  20317. }
  20318. return wrapper;
  20319. }
  20320. /**
  20321. * Creates a function like `_.lowerFirst`.
  20322. *
  20323. * @private
  20324. * @param {string} methodName The name of the `String` case method to use.
  20325. * @returns {Function} Returns the new case function.
  20326. */
  20327. function createCaseFirst(methodName) {
  20328. return function(string) {
  20329. string = toString(string);
  20330. var strSymbols = hasUnicode(string)
  20331. ? stringToArray(string)
  20332. : undefined;
  20333. var chr = strSymbols
  20334. ? strSymbols[0]
  20335. : string.charAt(0);
  20336. var trailing = strSymbols
  20337. ? castSlice(strSymbols, 1).join('')
  20338. : string.slice(1);
  20339. return chr[methodName]() + trailing;
  20340. };
  20341. }
  20342. /**
  20343. * Creates a function like `_.camelCase`.
  20344. *
  20345. * @private
  20346. * @param {Function} callback The function to combine each word.
  20347. * @returns {Function} Returns the new compounder function.
  20348. */
  20349. function createCompounder(callback) {
  20350. return function(string) {
  20351. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  20352. };
  20353. }
  20354. /**
  20355. * Creates a function that produces an instance of `Ctor` regardless of
  20356. * whether it was invoked as part of a `new` expression or by `call` or `apply`.
  20357. *
  20358. * @private
  20359. * @param {Function} Ctor The constructor to wrap.
  20360. * @returns {Function} Returns the new wrapped function.
  20361. */
  20362. function createCtor(Ctor) {
  20363. return function() {
  20364. // Use a `switch` statement to work with class constructors. See
  20365. // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
  20366. // for more details.
  20367. var args = arguments;
  20368. switch (args.length) {
  20369. case 0: return new Ctor;
  20370. case 1: return new Ctor(args[0]);
  20371. case 2: return new Ctor(args[0], args[1]);
  20372. case 3: return new Ctor(args[0], args[1], args[2]);
  20373. case 4: return new Ctor(args[0], args[1], args[2], args[3]);
  20374. case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
  20375. case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
  20376. case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
  20377. }
  20378. var thisBinding = baseCreate(Ctor.prototype),
  20379. result = Ctor.apply(thisBinding, args);
  20380. // Mimic the constructor's `return` behavior.
  20381. // See https://es5.github.io/#x13.2.2 for more details.
  20382. return isObject(result) ? result : thisBinding;
  20383. };
  20384. }
  20385. /**
  20386. * Creates a function that wraps `func` to enable currying.
  20387. *
  20388. * @private
  20389. * @param {Function} func The function to wrap.
  20390. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20391. * @param {number} arity The arity of `func`.
  20392. * @returns {Function} Returns the new wrapped function.
  20393. */
  20394. function createCurry(func, bitmask, arity) {
  20395. var Ctor = createCtor(func);
  20396. function wrapper() {
  20397. var length = arguments.length,
  20398. args = Array(length),
  20399. index = length,
  20400. placeholder = getHolder(wrapper);
  20401. while (index--) {
  20402. args[index] = arguments[index];
  20403. }
  20404. var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
  20405. ? []
  20406. : replaceHolders(args, placeholder);
  20407. length -= holders.length;
  20408. if (length < arity) {
  20409. return createRecurry(
  20410. func, bitmask, createHybrid, wrapper.placeholder, undefined,
  20411. args, holders, undefined, undefined, arity - length);
  20412. }
  20413. var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20414. return apply(fn, this, args);
  20415. }
  20416. return wrapper;
  20417. }
  20418. /**
  20419. * Creates a `_.find` or `_.findLast` function.
  20420. *
  20421. * @private
  20422. * @param {Function} findIndexFunc The function to find the collection index.
  20423. * @returns {Function} Returns the new find function.
  20424. */
  20425. function createFind(findIndexFunc) {
  20426. return function(collection, predicate, fromIndex) {
  20427. var iterable = Object(collection);
  20428. if (!isArrayLike(collection)) {
  20429. var iteratee = getIteratee(predicate, 3);
  20430. collection = keys(collection);
  20431. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  20432. }
  20433. var index = findIndexFunc(collection, predicate, fromIndex);
  20434. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  20435. };
  20436. }
  20437. /**
  20438. * Creates a `_.flow` or `_.flowRight` function.
  20439. *
  20440. * @private
  20441. * @param {boolean} [fromRight] Specify iterating from right to left.
  20442. * @returns {Function} Returns the new flow function.
  20443. */
  20444. function createFlow(fromRight) {
  20445. return flatRest(function(funcs) {
  20446. var length = funcs.length,
  20447. index = length,
  20448. prereq = LodashWrapper.prototype.thru;
  20449. if (fromRight) {
  20450. funcs.reverse();
  20451. }
  20452. while (index--) {
  20453. var func = funcs[index];
  20454. if (typeof func != 'function') {
  20455. throw new TypeError(FUNC_ERROR_TEXT);
  20456. }
  20457. if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
  20458. var wrapper = new LodashWrapper([], true);
  20459. }
  20460. }
  20461. index = wrapper ? index : length;
  20462. while (++index < length) {
  20463. func = funcs[index];
  20464. var funcName = getFuncName(func),
  20465. data = funcName == 'wrapper' ? getData(func) : undefined;
  20466. if (data && isLaziable(data[0]) &&
  20467. data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
  20468. !data[4].length && data[9] == 1
  20469. ) {
  20470. wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
  20471. } else {
  20472. wrapper = (func.length == 1 && isLaziable(func))
  20473. ? wrapper[funcName]()
  20474. : wrapper.thru(func);
  20475. }
  20476. }
  20477. return function() {
  20478. var args = arguments,
  20479. value = args[0];
  20480. if (wrapper && args.length == 1 && isArray(value)) {
  20481. return wrapper.plant(value).value();
  20482. }
  20483. var index = 0,
  20484. result = length ? funcs[index].apply(this, args) : value;
  20485. while (++index < length) {
  20486. result = funcs[index].call(this, result);
  20487. }
  20488. return result;
  20489. };
  20490. });
  20491. }
  20492. /**
  20493. * Creates a function that wraps `func` to invoke it with optional `this`
  20494. * binding of `thisArg`, partial application, and currying.
  20495. *
  20496. * @private
  20497. * @param {Function|string} func The function or method name to wrap.
  20498. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20499. * @param {*} [thisArg] The `this` binding of `func`.
  20500. * @param {Array} [partials] The arguments to prepend to those provided to
  20501. * the new function.
  20502. * @param {Array} [holders] The `partials` placeholder indexes.
  20503. * @param {Array} [partialsRight] The arguments to append to those provided
  20504. * to the new function.
  20505. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
  20506. * @param {Array} [argPos] The argument positions of the new function.
  20507. * @param {number} [ary] The arity cap of `func`.
  20508. * @param {number} [arity] The arity of `func`.
  20509. * @returns {Function} Returns the new wrapped function.
  20510. */
  20511. function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
  20512. var isAry = bitmask & WRAP_ARY_FLAG,
  20513. isBind = bitmask & WRAP_BIND_FLAG,
  20514. isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
  20515. isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
  20516. isFlip = bitmask & WRAP_FLIP_FLAG,
  20517. Ctor = isBindKey ? undefined : createCtor(func);
  20518. function wrapper() {
  20519. var length = arguments.length,
  20520. args = Array(length),
  20521. index = length;
  20522. while (index--) {
  20523. args[index] = arguments[index];
  20524. }
  20525. if (isCurried) {
  20526. var placeholder = getHolder(wrapper),
  20527. holdersCount = countHolders(args, placeholder);
  20528. }
  20529. if (partials) {
  20530. args = composeArgs(args, partials, holders, isCurried);
  20531. }
  20532. if (partialsRight) {
  20533. args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
  20534. }
  20535. length -= holdersCount;
  20536. if (isCurried && length < arity) {
  20537. var newHolders = replaceHolders(args, placeholder);
  20538. return createRecurry(
  20539. func, bitmask, createHybrid, wrapper.placeholder, thisArg,
  20540. args, newHolders, argPos, ary, arity - length
  20541. );
  20542. }
  20543. var thisBinding = isBind ? thisArg : this,
  20544. fn = isBindKey ? thisBinding[func] : func;
  20545. length = args.length;
  20546. if (argPos) {
  20547. args = reorder(args, argPos);
  20548. } else if (isFlip && length > 1) {
  20549. args.reverse();
  20550. }
  20551. if (isAry && ary < length) {
  20552. args.length = ary;
  20553. }
  20554. if (this && this !== root && this instanceof wrapper) {
  20555. fn = Ctor || createCtor(fn);
  20556. }
  20557. return fn.apply(thisBinding, args);
  20558. }
  20559. return wrapper;
  20560. }
  20561. /**
  20562. * Creates a function like `_.invertBy`.
  20563. *
  20564. * @private
  20565. * @param {Function} setter The function to set accumulator values.
  20566. * @param {Function} toIteratee The function to resolve iteratees.
  20567. * @returns {Function} Returns the new inverter function.
  20568. */
  20569. function createInverter(setter, toIteratee) {
  20570. return function(object, iteratee) {
  20571. return baseInverter(object, setter, toIteratee(iteratee), {});
  20572. };
  20573. }
  20574. /**
  20575. * Creates a function that performs a mathematical operation on two values.
  20576. *
  20577. * @private
  20578. * @param {Function} operator The function to perform the operation.
  20579. * @param {number} [defaultValue] The value used for `undefined` arguments.
  20580. * @returns {Function} Returns the new mathematical operation function.
  20581. */
  20582. function createMathOperation(operator, defaultValue) {
  20583. return function(value, other) {
  20584. var result;
  20585. if (value === undefined && other === undefined) {
  20586. return defaultValue;
  20587. }
  20588. if (value !== undefined) {
  20589. result = value;
  20590. }
  20591. if (other !== undefined) {
  20592. if (result === undefined) {
  20593. return other;
  20594. }
  20595. if (typeof value == 'string' || typeof other == 'string') {
  20596. value = baseToString(value);
  20597. other = baseToString(other);
  20598. } else {
  20599. value = baseToNumber(value);
  20600. other = baseToNumber(other);
  20601. }
  20602. result = operator(value, other);
  20603. }
  20604. return result;
  20605. };
  20606. }
  20607. /**
  20608. * Creates a function like `_.over`.
  20609. *
  20610. * @private
  20611. * @param {Function} arrayFunc The function to iterate over iteratees.
  20612. * @returns {Function} Returns the new over function.
  20613. */
  20614. function createOver(arrayFunc) {
  20615. return flatRest(function(iteratees) {
  20616. iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
  20617. return baseRest(function(args) {
  20618. var thisArg = this;
  20619. return arrayFunc(iteratees, function(iteratee) {
  20620. return apply(iteratee, thisArg, args);
  20621. });
  20622. });
  20623. });
  20624. }
  20625. /**
  20626. * Creates the padding for `string` based on `length`. The `chars` string
  20627. * is truncated if the number of characters exceeds `length`.
  20628. *
  20629. * @private
  20630. * @param {number} length The padding length.
  20631. * @param {string} [chars=' '] The string used as padding.
  20632. * @returns {string} Returns the padding for `string`.
  20633. */
  20634. function createPadding(length, chars) {
  20635. chars = chars === undefined ? ' ' : baseToString(chars);
  20636. var charsLength = chars.length;
  20637. if (charsLength < 2) {
  20638. return charsLength ? baseRepeat(chars, length) : chars;
  20639. }
  20640. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  20641. return hasUnicode(chars)
  20642. ? castSlice(stringToArray(result), 0, length).join('')
  20643. : result.slice(0, length);
  20644. }
  20645. /**
  20646. * Creates a function that wraps `func` to invoke it with the `this` binding
  20647. * of `thisArg` and `partials` prepended to the arguments it receives.
  20648. *
  20649. * @private
  20650. * @param {Function} func The function to wrap.
  20651. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20652. * @param {*} thisArg The `this` binding of `func`.
  20653. * @param {Array} partials The arguments to prepend to those provided to
  20654. * the new function.
  20655. * @returns {Function} Returns the new wrapped function.
  20656. */
  20657. function createPartial(func, bitmask, thisArg, partials) {
  20658. var isBind = bitmask & WRAP_BIND_FLAG,
  20659. Ctor = createCtor(func);
  20660. function wrapper() {
  20661. var argsIndex = -1,
  20662. argsLength = arguments.length,
  20663. leftIndex = -1,
  20664. leftLength = partials.length,
  20665. args = Array(leftLength + argsLength),
  20666. fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
  20667. while (++leftIndex < leftLength) {
  20668. args[leftIndex] = partials[leftIndex];
  20669. }
  20670. while (argsLength--) {
  20671. args[leftIndex++] = arguments[++argsIndex];
  20672. }
  20673. return apply(fn, isBind ? thisArg : this, args);
  20674. }
  20675. return wrapper;
  20676. }
  20677. /**
  20678. * Creates a `_.range` or `_.rangeRight` function.
  20679. *
  20680. * @private
  20681. * @param {boolean} [fromRight] Specify iterating from right to left.
  20682. * @returns {Function} Returns the new range function.
  20683. */
  20684. function createRange(fromRight) {
  20685. return function(start, end, step) {
  20686. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  20687. end = step = undefined;
  20688. }
  20689. // Ensure the sign of `-0` is preserved.
  20690. start = toFinite(start);
  20691. if (end === undefined) {
  20692. end = start;
  20693. start = 0;
  20694. } else {
  20695. end = toFinite(end);
  20696. }
  20697. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  20698. return baseRange(start, end, step, fromRight);
  20699. };
  20700. }
  20701. /**
  20702. * Creates a function that performs a relational operation on two values.
  20703. *
  20704. * @private
  20705. * @param {Function} operator The function to perform the operation.
  20706. * @returns {Function} Returns the new relational operation function.
  20707. */
  20708. function createRelationalOperation(operator) {
  20709. return function(value, other) {
  20710. if (!(typeof value == 'string' && typeof other == 'string')) {
  20711. value = toNumber(value);
  20712. other = toNumber(other);
  20713. }
  20714. return operator(value, other);
  20715. };
  20716. }
  20717. /**
  20718. * Creates a function that wraps `func` to continue currying.
  20719. *
  20720. * @private
  20721. * @param {Function} func The function to wrap.
  20722. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  20723. * @param {Function} wrapFunc The function to create the `func` wrapper.
  20724. * @param {*} placeholder The placeholder value.
  20725. * @param {*} [thisArg] The `this` binding of `func`.
  20726. * @param {Array} [partials] The arguments to prepend to those provided to
  20727. * the new function.
  20728. * @param {Array} [holders] The `partials` placeholder indexes.
  20729. * @param {Array} [argPos] The argument positions of the new function.
  20730. * @param {number} [ary] The arity cap of `func`.
  20731. * @param {number} [arity] The arity of `func`.
  20732. * @returns {Function} Returns the new wrapped function.
  20733. */
  20734. function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
  20735. var isCurry = bitmask & WRAP_CURRY_FLAG,
  20736. newHolders = isCurry ? holders : undefined,
  20737. newHoldersRight = isCurry ? undefined : holders,
  20738. newPartials = isCurry ? partials : undefined,
  20739. newPartialsRight = isCurry ? undefined : partials;
  20740. bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
  20741. bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
  20742. if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
  20743. bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
  20744. }
  20745. var newData = [
  20746. func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
  20747. newHoldersRight, argPos, ary, arity
  20748. ];
  20749. var result = wrapFunc.apply(undefined, newData);
  20750. if (isLaziable(func)) {
  20751. setData(result, newData);
  20752. }
  20753. result.placeholder = placeholder;
  20754. return setWrapToString(result, func, bitmask);
  20755. }
  20756. /**
  20757. * Creates a function like `_.round`.
  20758. *
  20759. * @private
  20760. * @param {string} methodName The name of the `Math` method to use when rounding.
  20761. * @returns {Function} Returns the new round function.
  20762. */
  20763. function createRound(methodName) {
  20764. var func = Math[methodName];
  20765. return function(number, precision) {
  20766. number = toNumber(number);
  20767. precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
  20768. if (precision) {
  20769. // Shift with exponential notation to avoid floating-point issues.
  20770. // See [MDN](https://mdn.io/round#Examples) for more details.
  20771. var pair = (toString(number) + 'e').split('e'),
  20772. value = func(pair[0] + 'e' + (+pair[1] + precision));
  20773. pair = (toString(value) + 'e').split('e');
  20774. return +(pair[0] + 'e' + (+pair[1] - precision));
  20775. }
  20776. return func(number);
  20777. };
  20778. }
  20779. /**
  20780. * Creates a set object of `values`.
  20781. *
  20782. * @private
  20783. * @param {Array} values The values to add to the set.
  20784. * @returns {Object} Returns the new set.
  20785. */
  20786. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  20787. return new Set(values);
  20788. };
  20789. /**
  20790. * Creates a `_.toPairs` or `_.toPairsIn` function.
  20791. *
  20792. * @private
  20793. * @param {Function} keysFunc The function to get the keys of a given object.
  20794. * @returns {Function} Returns the new pairs function.
  20795. */
  20796. function createToPairs(keysFunc) {
  20797. return function(object) {
  20798. var tag = getTag(object);
  20799. if (tag == mapTag) {
  20800. return mapToArray(object);
  20801. }
  20802. if (tag == setTag) {
  20803. return setToPairs(object);
  20804. }
  20805. return baseToPairs(object, keysFunc(object));
  20806. };
  20807. }
  20808. /**
  20809. * Creates a function that either curries or invokes `func` with optional
  20810. * `this` binding and partially applied arguments.
  20811. *
  20812. * @private
  20813. * @param {Function|string} func The function or method name to wrap.
  20814. * @param {number} bitmask The bitmask flags.
  20815. * 1 - `_.bind`
  20816. * 2 - `_.bindKey`
  20817. * 4 - `_.curry` or `_.curryRight` of a bound function
  20818. * 8 - `_.curry`
  20819. * 16 - `_.curryRight`
  20820. * 32 - `_.partial`
  20821. * 64 - `_.partialRight`
  20822. * 128 - `_.rearg`
  20823. * 256 - `_.ary`
  20824. * 512 - `_.flip`
  20825. * @param {*} [thisArg] The `this` binding of `func`.
  20826. * @param {Array} [partials] The arguments to be partially applied.
  20827. * @param {Array} [holders] The `partials` placeholder indexes.
  20828. * @param {Array} [argPos] The argument positions of the new function.
  20829. * @param {number} [ary] The arity cap of `func`.
  20830. * @param {number} [arity] The arity of `func`.
  20831. * @returns {Function} Returns the new wrapped function.
  20832. */
  20833. function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
  20834. var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
  20835. if (!isBindKey && typeof func != 'function') {
  20836. throw new TypeError(FUNC_ERROR_TEXT);
  20837. }
  20838. var length = partials ? partials.length : 0;
  20839. if (!length) {
  20840. bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
  20841. partials = holders = undefined;
  20842. }
  20843. ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
  20844. arity = arity === undefined ? arity : toInteger(arity);
  20845. length -= holders ? holders.length : 0;
  20846. if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
  20847. var partialsRight = partials,
  20848. holdersRight = holders;
  20849. partials = holders = undefined;
  20850. }
  20851. var data = isBindKey ? undefined : getData(func);
  20852. var newData = [
  20853. func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
  20854. argPos, ary, arity
  20855. ];
  20856. if (data) {
  20857. mergeData(newData, data);
  20858. }
  20859. func = newData[0];
  20860. bitmask = newData[1];
  20861. thisArg = newData[2];
  20862. partials = newData[3];
  20863. holders = newData[4];
  20864. arity = newData[9] = newData[9] === undefined
  20865. ? (isBindKey ? 0 : func.length)
  20866. : nativeMax(newData[9] - length, 0);
  20867. if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
  20868. bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
  20869. }
  20870. if (!bitmask || bitmask == WRAP_BIND_FLAG) {
  20871. var result = createBind(func, bitmask, thisArg);
  20872. } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
  20873. result = createCurry(func, bitmask, arity);
  20874. } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
  20875. result = createPartial(func, bitmask, thisArg, partials);
  20876. } else {
  20877. result = createHybrid.apply(undefined, newData);
  20878. }
  20879. var setter = data ? baseSetData : setData;
  20880. return setWrapToString(setter(result, newData), func, bitmask);
  20881. }
  20882. /**
  20883. * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
  20884. * of source objects to the destination object for all destination properties
  20885. * that resolve to `undefined`.
  20886. *
  20887. * @private
  20888. * @param {*} objValue The destination value.
  20889. * @param {*} srcValue The source value.
  20890. * @param {string} key The key of the property to assign.
  20891. * @param {Object} object The parent object of `objValue`.
  20892. * @returns {*} Returns the value to assign.
  20893. */
  20894. function customDefaultsAssignIn(objValue, srcValue, key, object) {
  20895. if (objValue === undefined ||
  20896. (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  20897. return srcValue;
  20898. }
  20899. return objValue;
  20900. }
  20901. /**
  20902. * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
  20903. * objects into destination objects that are passed thru.
  20904. *
  20905. * @private
  20906. * @param {*} objValue The destination value.
  20907. * @param {*} srcValue The source value.
  20908. * @param {string} key The key of the property to merge.
  20909. * @param {Object} object The parent object of `objValue`.
  20910. * @param {Object} source The parent object of `srcValue`.
  20911. * @param {Object} [stack] Tracks traversed source values and their merged
  20912. * counterparts.
  20913. * @returns {*} Returns the value to assign.
  20914. */
  20915. function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
  20916. if (isObject(objValue) && isObject(srcValue)) {
  20917. // Recursively merge objects and arrays (susceptible to call stack limits).
  20918. stack.set(srcValue, objValue);
  20919. baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
  20920. stack['delete'](srcValue);
  20921. }
  20922. return objValue;
  20923. }
  20924. /**
  20925. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  20926. * objects.
  20927. *
  20928. * @private
  20929. * @param {*} value The value to inspect.
  20930. * @param {string} key The key of the property to inspect.
  20931. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  20932. */
  20933. function customOmitClone(value) {
  20934. return isPlainObject(value) ? undefined : value;
  20935. }
  20936. /**
  20937. * A specialized version of `baseIsEqualDeep` for arrays with support for
  20938. * partial deep comparisons.
  20939. *
  20940. * @private
  20941. * @param {Array} array The array to compare.
  20942. * @param {Array} other The other array to compare.
  20943. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  20944. * @param {Function} customizer The function to customize comparisons.
  20945. * @param {Function} equalFunc The function to determine equivalents of values.
  20946. * @param {Object} stack Tracks traversed `array` and `other` objects.
  20947. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  20948. */
  20949. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  20950. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  20951. arrLength = array.length,
  20952. othLength = other.length;
  20953. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  20954. return false;
  20955. }
  20956. // Assume cyclic values are equal.
  20957. var stacked = stack.get(array);
  20958. if (stacked && stack.get(other)) {
  20959. return stacked == other;
  20960. }
  20961. var index = -1,
  20962. result = true,
  20963. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  20964. stack.set(array, other);
  20965. stack.set(other, array);
  20966. // Ignore non-index properties.
  20967. while (++index < arrLength) {
  20968. var arrValue = array[index],
  20969. othValue = other[index];
  20970. if (customizer) {
  20971. var compared = isPartial
  20972. ? customizer(othValue, arrValue, index, other, array, stack)
  20973. : customizer(arrValue, othValue, index, array, other, stack);
  20974. }
  20975. if (compared !== undefined) {
  20976. if (compared) {
  20977. continue;
  20978. }
  20979. result = false;
  20980. break;
  20981. }
  20982. // Recursively compare arrays (susceptible to call stack limits).
  20983. if (seen) {
  20984. if (!arraySome(other, function(othValue, othIndex) {
  20985. if (!cacheHas(seen, othIndex) &&
  20986. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  20987. return seen.push(othIndex);
  20988. }
  20989. })) {
  20990. result = false;
  20991. break;
  20992. }
  20993. } else if (!(
  20994. arrValue === othValue ||
  20995. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  20996. )) {
  20997. result = false;
  20998. break;
  20999. }
  21000. }
  21001. stack['delete'](array);
  21002. stack['delete'](other);
  21003. return result;
  21004. }
  21005. /**
  21006. * A specialized version of `baseIsEqualDeep` for comparing objects of
  21007. * the same `toStringTag`.
  21008. *
  21009. * **Note:** This function only supports comparing values with tags of
  21010. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  21011. *
  21012. * @private
  21013. * @param {Object} object The object to compare.
  21014. * @param {Object} other The other object to compare.
  21015. * @param {string} tag The `toStringTag` of the objects to compare.
  21016. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21017. * @param {Function} customizer The function to customize comparisons.
  21018. * @param {Function} equalFunc The function to determine equivalents of values.
  21019. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21020. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21021. */
  21022. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  21023. switch (tag) {
  21024. case dataViewTag:
  21025. if ((object.byteLength != other.byteLength) ||
  21026. (object.byteOffset != other.byteOffset)) {
  21027. return false;
  21028. }
  21029. object = object.buffer;
  21030. other = other.buffer;
  21031. case arrayBufferTag:
  21032. if ((object.byteLength != other.byteLength) ||
  21033. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  21034. return false;
  21035. }
  21036. return true;
  21037. case boolTag:
  21038. case dateTag:
  21039. case numberTag:
  21040. // Coerce booleans to `1` or `0` and dates to milliseconds.
  21041. // Invalid dates are coerced to `NaN`.
  21042. return eq(+object, +other);
  21043. case errorTag:
  21044. return object.name == other.name && object.message == other.message;
  21045. case regexpTag:
  21046. case stringTag:
  21047. // Coerce regexes to strings and treat strings, primitives and objects,
  21048. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  21049. // for more details.
  21050. return object == (other + '');
  21051. case mapTag:
  21052. var convert = mapToArray;
  21053. case setTag:
  21054. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  21055. convert || (convert = setToArray);
  21056. if (object.size != other.size && !isPartial) {
  21057. return false;
  21058. }
  21059. // Assume cyclic values are equal.
  21060. var stacked = stack.get(object);
  21061. if (stacked) {
  21062. return stacked == other;
  21063. }
  21064. bitmask |= COMPARE_UNORDERED_FLAG;
  21065. // Recursively compare objects (susceptible to call stack limits).
  21066. stack.set(object, other);
  21067. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  21068. stack['delete'](object);
  21069. return result;
  21070. case symbolTag:
  21071. if (symbolValueOf) {
  21072. return symbolValueOf.call(object) == symbolValueOf.call(other);
  21073. }
  21074. }
  21075. return false;
  21076. }
  21077. /**
  21078. * A specialized version of `baseIsEqualDeep` for objects with support for
  21079. * partial deep comparisons.
  21080. *
  21081. * @private
  21082. * @param {Object} object The object to compare.
  21083. * @param {Object} other The other object to compare.
  21084. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  21085. * @param {Function} customizer The function to customize comparisons.
  21086. * @param {Function} equalFunc The function to determine equivalents of values.
  21087. * @param {Object} stack Tracks traversed `object` and `other` objects.
  21088. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  21089. */
  21090. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  21091. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  21092. objProps = getAllKeys(object),
  21093. objLength = objProps.length,
  21094. othProps = getAllKeys(other),
  21095. othLength = othProps.length;
  21096. if (objLength != othLength && !isPartial) {
  21097. return false;
  21098. }
  21099. var index = objLength;
  21100. while (index--) {
  21101. var key = objProps[index];
  21102. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  21103. return false;
  21104. }
  21105. }
  21106. // Assume cyclic values are equal.
  21107. var stacked = stack.get(object);
  21108. if (stacked && stack.get(other)) {
  21109. return stacked == other;
  21110. }
  21111. var result = true;
  21112. stack.set(object, other);
  21113. stack.set(other, object);
  21114. var skipCtor = isPartial;
  21115. while (++index < objLength) {
  21116. key = objProps[index];
  21117. var objValue = object[key],
  21118. othValue = other[key];
  21119. if (customizer) {
  21120. var compared = isPartial
  21121. ? customizer(othValue, objValue, key, other, object, stack)
  21122. : customizer(objValue, othValue, key, object, other, stack);
  21123. }
  21124. // Recursively compare objects (susceptible to call stack limits).
  21125. if (!(compared === undefined
  21126. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  21127. : compared
  21128. )) {
  21129. result = false;
  21130. break;
  21131. }
  21132. skipCtor || (skipCtor = key == 'constructor');
  21133. }
  21134. if (result && !skipCtor) {
  21135. var objCtor = object.constructor,
  21136. othCtor = other.constructor;
  21137. // Non `Object` object instances with different constructors are not equal.
  21138. if (objCtor != othCtor &&
  21139. ('constructor' in object && 'constructor' in other) &&
  21140. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  21141. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  21142. result = false;
  21143. }
  21144. }
  21145. stack['delete'](object);
  21146. stack['delete'](other);
  21147. return result;
  21148. }
  21149. /**
  21150. * A specialized version of `baseRest` which flattens the rest array.
  21151. *
  21152. * @private
  21153. * @param {Function} func The function to apply a rest parameter to.
  21154. * @returns {Function} Returns the new function.
  21155. */
  21156. function flatRest(func) {
  21157. return setToString(overRest(func, undefined, flatten), func + '');
  21158. }
  21159. /**
  21160. * Creates an array of own enumerable property names and symbols of `object`.
  21161. *
  21162. * @private
  21163. * @param {Object} object The object to query.
  21164. * @returns {Array} Returns the array of property names and symbols.
  21165. */
  21166. function getAllKeys(object) {
  21167. return baseGetAllKeys(object, keys, getSymbols);
  21168. }
  21169. /**
  21170. * Creates an array of own and inherited enumerable property names and
  21171. * symbols of `object`.
  21172. *
  21173. * @private
  21174. * @param {Object} object The object to query.
  21175. * @returns {Array} Returns the array of property names and symbols.
  21176. */
  21177. function getAllKeysIn(object) {
  21178. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  21179. }
  21180. /**
  21181. * Gets metadata for `func`.
  21182. *
  21183. * @private
  21184. * @param {Function} func The function to query.
  21185. * @returns {*} Returns the metadata for `func`.
  21186. */
  21187. var getData = !metaMap ? noop : function(func) {
  21188. return metaMap.get(func);
  21189. };
  21190. /**
  21191. * Gets the name of `func`.
  21192. *
  21193. * @private
  21194. * @param {Function} func The function to query.
  21195. * @returns {string} Returns the function name.
  21196. */
  21197. function getFuncName(func) {
  21198. var result = (func.name + ''),
  21199. array = realNames[result],
  21200. length = hasOwnProperty.call(realNames, result) ? array.length : 0;
  21201. while (length--) {
  21202. var data = array[length],
  21203. otherFunc = data.func;
  21204. if (otherFunc == null || otherFunc == func) {
  21205. return data.name;
  21206. }
  21207. }
  21208. return result;
  21209. }
  21210. /**
  21211. * Gets the argument placeholder value for `func`.
  21212. *
  21213. * @private
  21214. * @param {Function} func The function to inspect.
  21215. * @returns {*} Returns the placeholder value.
  21216. */
  21217. function getHolder(func) {
  21218. var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
  21219. return object.placeholder;
  21220. }
  21221. /**
  21222. * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
  21223. * this function returns the custom method, otherwise it returns `baseIteratee`.
  21224. * If arguments are provided, the chosen function is invoked with them and
  21225. * its result is returned.
  21226. *
  21227. * @private
  21228. * @param {*} [value] The value to convert to an iteratee.
  21229. * @param {number} [arity] The arity of the created iteratee.
  21230. * @returns {Function} Returns the chosen function or its result.
  21231. */
  21232. function getIteratee() {
  21233. var result = lodash.iteratee || iteratee;
  21234. result = result === iteratee ? baseIteratee : result;
  21235. return arguments.length ? result(arguments[0], arguments[1]) : result;
  21236. }
  21237. /**
  21238. * Gets the data for `map`.
  21239. *
  21240. * @private
  21241. * @param {Object} map The map to query.
  21242. * @param {string} key The reference key.
  21243. * @returns {*} Returns the map data.
  21244. */
  21245. function getMapData(map, key) {
  21246. var data = map.__data__;
  21247. return isKeyable(key)
  21248. ? data[typeof key == 'string' ? 'string' : 'hash']
  21249. : data.map;
  21250. }
  21251. /**
  21252. * Gets the property names, values, and compare flags of `object`.
  21253. *
  21254. * @private
  21255. * @param {Object} object The object to query.
  21256. * @returns {Array} Returns the match data of `object`.
  21257. */
  21258. function getMatchData(object) {
  21259. var result = keys(object),
  21260. length = result.length;
  21261. while (length--) {
  21262. var key = result[length],
  21263. value = object[key];
  21264. result[length] = [key, value, isStrictComparable(value)];
  21265. }
  21266. return result;
  21267. }
  21268. /**
  21269. * Gets the native function at `key` of `object`.
  21270. *
  21271. * @private
  21272. * @param {Object} object The object to query.
  21273. * @param {string} key The key of the method to get.
  21274. * @returns {*} Returns the function if it's native, else `undefined`.
  21275. */
  21276. function getNative(object, key) {
  21277. var value = getValue(object, key);
  21278. return baseIsNative(value) ? value : undefined;
  21279. }
  21280. /**
  21281. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  21282. *
  21283. * @private
  21284. * @param {*} value The value to query.
  21285. * @returns {string} Returns the raw `toStringTag`.
  21286. */
  21287. function getRawTag(value) {
  21288. var isOwn = hasOwnProperty.call(value, symToStringTag),
  21289. tag = value[symToStringTag];
  21290. try {
  21291. value[symToStringTag] = undefined;
  21292. var unmasked = true;
  21293. } catch (e) {}
  21294. var result = nativeObjectToString.call(value);
  21295. if (unmasked) {
  21296. if (isOwn) {
  21297. value[symToStringTag] = tag;
  21298. } else {
  21299. delete value[symToStringTag];
  21300. }
  21301. }
  21302. return result;
  21303. }
  21304. /**
  21305. * Creates an array of the own enumerable symbols of `object`.
  21306. *
  21307. * @private
  21308. * @param {Object} object The object to query.
  21309. * @returns {Array} Returns the array of symbols.
  21310. */
  21311. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  21312. if (object == null) {
  21313. return [];
  21314. }
  21315. object = Object(object);
  21316. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  21317. return propertyIsEnumerable.call(object, symbol);
  21318. });
  21319. };
  21320. /**
  21321. * Creates an array of the own and inherited enumerable symbols of `object`.
  21322. *
  21323. * @private
  21324. * @param {Object} object The object to query.
  21325. * @returns {Array} Returns the array of symbols.
  21326. */
  21327. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  21328. var result = [];
  21329. while (object) {
  21330. arrayPush(result, getSymbols(object));
  21331. object = getPrototype(object);
  21332. }
  21333. return result;
  21334. };
  21335. /**
  21336. * Gets the `toStringTag` of `value`.
  21337. *
  21338. * @private
  21339. * @param {*} value The value to query.
  21340. * @returns {string} Returns the `toStringTag`.
  21341. */
  21342. var getTag = baseGetTag;
  21343. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  21344. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  21345. (Map && getTag(new Map) != mapTag) ||
  21346. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  21347. (Set && getTag(new Set) != setTag) ||
  21348. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  21349. getTag = function(value) {
  21350. var result = baseGetTag(value),
  21351. Ctor = result == objectTag ? value.constructor : undefined,
  21352. ctorString = Ctor ? toSource(Ctor) : '';
  21353. if (ctorString) {
  21354. switch (ctorString) {
  21355. case dataViewCtorString: return dataViewTag;
  21356. case mapCtorString: return mapTag;
  21357. case promiseCtorString: return promiseTag;
  21358. case setCtorString: return setTag;
  21359. case weakMapCtorString: return weakMapTag;
  21360. }
  21361. }
  21362. return result;
  21363. };
  21364. }
  21365. /**
  21366. * Gets the view, applying any `transforms` to the `start` and `end` positions.
  21367. *
  21368. * @private
  21369. * @param {number} start The start of the view.
  21370. * @param {number} end The end of the view.
  21371. * @param {Array} transforms The transformations to apply to the view.
  21372. * @returns {Object} Returns an object containing the `start` and `end`
  21373. * positions of the view.
  21374. */
  21375. function getView(start, end, transforms) {
  21376. var index = -1,
  21377. length = transforms.length;
  21378. while (++index < length) {
  21379. var data = transforms[index],
  21380. size = data.size;
  21381. switch (data.type) {
  21382. case 'drop': start += size; break;
  21383. case 'dropRight': end -= size; break;
  21384. case 'take': end = nativeMin(end, start + size); break;
  21385. case 'takeRight': start = nativeMax(start, end - size); break;
  21386. }
  21387. }
  21388. return { 'start': start, 'end': end };
  21389. }
  21390. /**
  21391. * Extracts wrapper details from the `source` body comment.
  21392. *
  21393. * @private
  21394. * @param {string} source The source to inspect.
  21395. * @returns {Array} Returns the wrapper details.
  21396. */
  21397. function getWrapDetails(source) {
  21398. var match = source.match(reWrapDetails);
  21399. return match ? match[1].split(reSplitDetails) : [];
  21400. }
  21401. /**
  21402. * Checks if `path` exists on `object`.
  21403. *
  21404. * @private
  21405. * @param {Object} object The object to query.
  21406. * @param {Array|string} path The path to check.
  21407. * @param {Function} hasFunc The function to check properties.
  21408. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  21409. */
  21410. function hasPath(object, path, hasFunc) {
  21411. path = castPath(path, object);
  21412. var index = -1,
  21413. length = path.length,
  21414. result = false;
  21415. while (++index < length) {
  21416. var key = toKey(path[index]);
  21417. if (!(result = object != null && hasFunc(object, key))) {
  21418. break;
  21419. }
  21420. object = object[key];
  21421. }
  21422. if (result || ++index != length) {
  21423. return result;
  21424. }
  21425. length = object == null ? 0 : object.length;
  21426. return !!length && isLength(length) && isIndex(key, length) &&
  21427. (isArray(object) || isArguments(object));
  21428. }
  21429. /**
  21430. * Initializes an array clone.
  21431. *
  21432. * @private
  21433. * @param {Array} array The array to clone.
  21434. * @returns {Array} Returns the initialized clone.
  21435. */
  21436. function initCloneArray(array) {
  21437. var length = array.length,
  21438. result = new array.constructor(length);
  21439. // Add properties assigned by `RegExp#exec`.
  21440. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  21441. result.index = array.index;
  21442. result.input = array.input;
  21443. }
  21444. return result;
  21445. }
  21446. /**
  21447. * Initializes an object clone.
  21448. *
  21449. * @private
  21450. * @param {Object} object The object to clone.
  21451. * @returns {Object} Returns the initialized clone.
  21452. */
  21453. function initCloneObject(object) {
  21454. return (typeof object.constructor == 'function' && !isPrototype(object))
  21455. ? baseCreate(getPrototype(object))
  21456. : {};
  21457. }
  21458. /**
  21459. * Initializes an object clone based on its `toStringTag`.
  21460. *
  21461. * **Note:** This function only supports cloning values with tags of
  21462. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  21463. *
  21464. * @private
  21465. * @param {Object} object The object to clone.
  21466. * @param {string} tag The `toStringTag` of the object to clone.
  21467. * @param {boolean} [isDeep] Specify a deep clone.
  21468. * @returns {Object} Returns the initialized clone.
  21469. */
  21470. function initCloneByTag(object, tag, isDeep) {
  21471. var Ctor = object.constructor;
  21472. switch (tag) {
  21473. case arrayBufferTag:
  21474. return cloneArrayBuffer(object);
  21475. case boolTag:
  21476. case dateTag:
  21477. return new Ctor(+object);
  21478. case dataViewTag:
  21479. return cloneDataView(object, isDeep);
  21480. case float32Tag: case float64Tag:
  21481. case int8Tag: case int16Tag: case int32Tag:
  21482. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  21483. return cloneTypedArray(object, isDeep);
  21484. case mapTag:
  21485. return new Ctor;
  21486. case numberTag:
  21487. case stringTag:
  21488. return new Ctor(object);
  21489. case regexpTag:
  21490. return cloneRegExp(object);
  21491. case setTag:
  21492. return new Ctor;
  21493. case symbolTag:
  21494. return cloneSymbol(object);
  21495. }
  21496. }
  21497. /**
  21498. * Inserts wrapper `details` in a comment at the top of the `source` body.
  21499. *
  21500. * @private
  21501. * @param {string} source The source to modify.
  21502. * @returns {Array} details The details to insert.
  21503. * @returns {string} Returns the modified source.
  21504. */
  21505. function insertWrapDetails(source, details) {
  21506. var length = details.length;
  21507. if (!length) {
  21508. return source;
  21509. }
  21510. var lastIndex = length - 1;
  21511. details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
  21512. details = details.join(length > 2 ? ', ' : ' ');
  21513. return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
  21514. }
  21515. /**
  21516. * Checks if `value` is a flattenable `arguments` object or array.
  21517. *
  21518. * @private
  21519. * @param {*} value The value to check.
  21520. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  21521. */
  21522. function isFlattenable(value) {
  21523. return isArray(value) || isArguments(value) ||
  21524. !!(spreadableSymbol && value && value[spreadableSymbol]);
  21525. }
  21526. /**
  21527. * Checks if `value` is a valid array-like index.
  21528. *
  21529. * @private
  21530. * @param {*} value The value to check.
  21531. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  21532. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  21533. */
  21534. function isIndex(value, length) {
  21535. var type = typeof value;
  21536. length = length == null ? MAX_SAFE_INTEGER : length;
  21537. return !!length &&
  21538. (type == 'number' ||
  21539. (type != 'symbol' && reIsUint.test(value))) &&
  21540. (value > -1 && value % 1 == 0 && value < length);
  21541. }
  21542. /**
  21543. * Checks if the given arguments are from an iteratee call.
  21544. *
  21545. * @private
  21546. * @param {*} value The potential iteratee value argument.
  21547. * @param {*} index The potential iteratee index or key argument.
  21548. * @param {*} object The potential iteratee object argument.
  21549. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  21550. * else `false`.
  21551. */
  21552. function isIterateeCall(value, index, object) {
  21553. if (!isObject(object)) {
  21554. return false;
  21555. }
  21556. var type = typeof index;
  21557. if (type == 'number'
  21558. ? (isArrayLike(object) && isIndex(index, object.length))
  21559. : (type == 'string' && index in object)
  21560. ) {
  21561. return eq(object[index], value);
  21562. }
  21563. return false;
  21564. }
  21565. /**
  21566. * Checks if `value` is a property name and not a property path.
  21567. *
  21568. * @private
  21569. * @param {*} value The value to check.
  21570. * @param {Object} [object] The object to query keys on.
  21571. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  21572. */
  21573. function isKey(value, object) {
  21574. if (isArray(value)) {
  21575. return false;
  21576. }
  21577. var type = typeof value;
  21578. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  21579. value == null || isSymbol(value)) {
  21580. return true;
  21581. }
  21582. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  21583. (object != null && value in Object(object));
  21584. }
  21585. /**
  21586. * Checks if `value` is suitable for use as unique object key.
  21587. *
  21588. * @private
  21589. * @param {*} value The value to check.
  21590. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  21591. */
  21592. function isKeyable(value) {
  21593. var type = typeof value;
  21594. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  21595. ? (value !== '__proto__')
  21596. : (value === null);
  21597. }
  21598. /**
  21599. * Checks if `func` has a lazy counterpart.
  21600. *
  21601. * @private
  21602. * @param {Function} func The function to check.
  21603. * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
  21604. * else `false`.
  21605. */
  21606. function isLaziable(func) {
  21607. var funcName = getFuncName(func),
  21608. other = lodash[funcName];
  21609. if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
  21610. return false;
  21611. }
  21612. if (func === other) {
  21613. return true;
  21614. }
  21615. var data = getData(other);
  21616. return !!data && func === data[0];
  21617. }
  21618. /**
  21619. * Checks if `func` has its source masked.
  21620. *
  21621. * @private
  21622. * @param {Function} func The function to check.
  21623. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  21624. */
  21625. function isMasked(func) {
  21626. return !!maskSrcKey && (maskSrcKey in func);
  21627. }
  21628. /**
  21629. * Checks if `func` is capable of being masked.
  21630. *
  21631. * @private
  21632. * @param {*} value The value to check.
  21633. * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
  21634. */
  21635. var isMaskable = coreJsData ? isFunction : stubFalse;
  21636. /**
  21637. * Checks if `value` is likely a prototype object.
  21638. *
  21639. * @private
  21640. * @param {*} value The value to check.
  21641. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  21642. */
  21643. function isPrototype(value) {
  21644. var Ctor = value && value.constructor,
  21645. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  21646. return value === proto;
  21647. }
  21648. /**
  21649. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  21650. *
  21651. * @private
  21652. * @param {*} value The value to check.
  21653. * @returns {boolean} Returns `true` if `value` if suitable for strict
  21654. * equality comparisons, else `false`.
  21655. */
  21656. function isStrictComparable(value) {
  21657. return value === value && !isObject(value);
  21658. }
  21659. /**
  21660. * A specialized version of `matchesProperty` for source values suitable
  21661. * for strict equality comparisons, i.e. `===`.
  21662. *
  21663. * @private
  21664. * @param {string} key The key of the property to get.
  21665. * @param {*} srcValue The value to match.
  21666. * @returns {Function} Returns the new spec function.
  21667. */
  21668. function matchesStrictComparable(key, srcValue) {
  21669. return function(object) {
  21670. if (object == null) {
  21671. return false;
  21672. }
  21673. return object[key] === srcValue &&
  21674. (srcValue !== undefined || (key in Object(object)));
  21675. };
  21676. }
  21677. /**
  21678. * A specialized version of `_.memoize` which clears the memoized function's
  21679. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  21680. *
  21681. * @private
  21682. * @param {Function} func The function to have its output memoized.
  21683. * @returns {Function} Returns the new memoized function.
  21684. */
  21685. function memoizeCapped(func) {
  21686. var result = memoize(func, function(key) {
  21687. if (cache.size === MAX_MEMOIZE_SIZE) {
  21688. cache.clear();
  21689. }
  21690. return key;
  21691. });
  21692. var cache = result.cache;
  21693. return result;
  21694. }
  21695. /**
  21696. * Merges the function metadata of `source` into `data`.
  21697. *
  21698. * Merging metadata reduces the number of wrappers used to invoke a function.
  21699. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
  21700. * may be applied regardless of execution order. Methods like `_.ary` and
  21701. * `_.rearg` modify function arguments, making the order in which they are
  21702. * executed important, preventing the merging of metadata. However, we make
  21703. * an exception for a safe combined case where curried functions have `_.ary`
  21704. * and or `_.rearg` applied.
  21705. *
  21706. * @private
  21707. * @param {Array} data The destination metadata.
  21708. * @param {Array} source The source metadata.
  21709. * @returns {Array} Returns `data`.
  21710. */
  21711. function mergeData(data, source) {
  21712. var bitmask = data[1],
  21713. srcBitmask = source[1],
  21714. newBitmask = bitmask | srcBitmask,
  21715. isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
  21716. var isCombo =
  21717. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
  21718. ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
  21719. ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
  21720. // Exit early if metadata can't be merged.
  21721. if (!(isCommon || isCombo)) {
  21722. return data;
  21723. }
  21724. // Use source `thisArg` if available.
  21725. if (srcBitmask & WRAP_BIND_FLAG) {
  21726. data[2] = source[2];
  21727. // Set when currying a bound function.
  21728. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
  21729. }
  21730. // Compose partial arguments.
  21731. var value = source[3];
  21732. if (value) {
  21733. var partials = data[3];
  21734. data[3] = partials ? composeArgs(partials, value, source[4]) : value;
  21735. data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
  21736. }
  21737. // Compose partial right arguments.
  21738. value = source[5];
  21739. if (value) {
  21740. partials = data[5];
  21741. data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
  21742. data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
  21743. }
  21744. // Use source `argPos` if available.
  21745. value = source[7];
  21746. if (value) {
  21747. data[7] = value;
  21748. }
  21749. // Use source `ary` if it's smaller.
  21750. if (srcBitmask & WRAP_ARY_FLAG) {
  21751. data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
  21752. }
  21753. // Use source `arity` if one is not provided.
  21754. if (data[9] == null) {
  21755. data[9] = source[9];
  21756. }
  21757. // Use source `func` and merge bitmasks.
  21758. data[0] = source[0];
  21759. data[1] = newBitmask;
  21760. return data;
  21761. }
  21762. /**
  21763. * This function is like
  21764. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  21765. * except that it includes inherited enumerable properties.
  21766. *
  21767. * @private
  21768. * @param {Object} object The object to query.
  21769. * @returns {Array} Returns the array of property names.
  21770. */
  21771. function nativeKeysIn(object) {
  21772. var result = [];
  21773. if (object != null) {
  21774. for (var key in Object(object)) {
  21775. result.push(key);
  21776. }
  21777. }
  21778. return result;
  21779. }
  21780. /**
  21781. * Converts `value` to a string using `Object.prototype.toString`.
  21782. *
  21783. * @private
  21784. * @param {*} value The value to convert.
  21785. * @returns {string} Returns the converted string.
  21786. */
  21787. function objectToString(value) {
  21788. return nativeObjectToString.call(value);
  21789. }
  21790. /**
  21791. * A specialized version of `baseRest` which transforms the rest array.
  21792. *
  21793. * @private
  21794. * @param {Function} func The function to apply a rest parameter to.
  21795. * @param {number} [start=func.length-1] The start position of the rest parameter.
  21796. * @param {Function} transform The rest array transform.
  21797. * @returns {Function} Returns the new function.
  21798. */
  21799. function overRest(func, start, transform) {
  21800. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  21801. return function() {
  21802. var args = arguments,
  21803. index = -1,
  21804. length = nativeMax(args.length - start, 0),
  21805. array = Array(length);
  21806. while (++index < length) {
  21807. array[index] = args[start + index];
  21808. }
  21809. index = -1;
  21810. var otherArgs = Array(start + 1);
  21811. while (++index < start) {
  21812. otherArgs[index] = args[index];
  21813. }
  21814. otherArgs[start] = transform(array);
  21815. return apply(func, this, otherArgs);
  21816. };
  21817. }
  21818. /**
  21819. * Gets the parent value at `path` of `object`.
  21820. *
  21821. * @private
  21822. * @param {Object} object The object to query.
  21823. * @param {Array} path The path to get the parent value of.
  21824. * @returns {*} Returns the parent value.
  21825. */
  21826. function parent(object, path) {
  21827. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  21828. }
  21829. /**
  21830. * Reorder `array` according to the specified indexes where the element at
  21831. * the first index is assigned as the first element, the element at
  21832. * the second index is assigned as the second element, and so on.
  21833. *
  21834. * @private
  21835. * @param {Array} array The array to reorder.
  21836. * @param {Array} indexes The arranged array indexes.
  21837. * @returns {Array} Returns `array`.
  21838. */
  21839. function reorder(array, indexes) {
  21840. var arrLength = array.length,
  21841. length = nativeMin(indexes.length, arrLength),
  21842. oldArray = copyArray(array);
  21843. while (length--) {
  21844. var index = indexes[length];
  21845. array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
  21846. }
  21847. return array;
  21848. }
  21849. /**
  21850. * Gets the value at `key`, unless `key` is "__proto__".
  21851. *
  21852. * @private
  21853. * @param {Object} object The object to query.
  21854. * @param {string} key The key of the property to get.
  21855. * @returns {*} Returns the property value.
  21856. */
  21857. function safeGet(object, key) {
  21858. if (key == '__proto__') {
  21859. return;
  21860. }
  21861. return object[key];
  21862. }
  21863. /**
  21864. * Sets metadata for `func`.
  21865. *
  21866. * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
  21867. * period of time, it will trip its breaker and transition to an identity
  21868. * function to avoid garbage collection pauses in V8. See
  21869. * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
  21870. * for more details.
  21871. *
  21872. * @private
  21873. * @param {Function} func The function to associate metadata with.
  21874. * @param {*} data The metadata.
  21875. * @returns {Function} Returns `func`.
  21876. */
  21877. var setData = shortOut(baseSetData);
  21878. /**
  21879. * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
  21880. *
  21881. * @private
  21882. * @param {Function} func The function to delay.
  21883. * @param {number} wait The number of milliseconds to delay invocation.
  21884. * @returns {number|Object} Returns the timer id or timeout object.
  21885. */
  21886. var setTimeout = ctxSetTimeout || function(func, wait) {
  21887. return root.setTimeout(func, wait);
  21888. };
  21889. /**
  21890. * Sets the `toString` method of `func` to return `string`.
  21891. *
  21892. * @private
  21893. * @param {Function} func The function to modify.
  21894. * @param {Function} string The `toString` result.
  21895. * @returns {Function} Returns `func`.
  21896. */
  21897. var setToString = shortOut(baseSetToString);
  21898. /**
  21899. * Sets the `toString` method of `wrapper` to mimic the source of `reference`
  21900. * with wrapper details in a comment at the top of the source body.
  21901. *
  21902. * @private
  21903. * @param {Function} wrapper The function to modify.
  21904. * @param {Function} reference The reference function.
  21905. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  21906. * @returns {Function} Returns `wrapper`.
  21907. */
  21908. function setWrapToString(wrapper, reference, bitmask) {
  21909. var source = (reference + '');
  21910. return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
  21911. }
  21912. /**
  21913. * Creates a function that'll short out and invoke `identity` instead
  21914. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  21915. * milliseconds.
  21916. *
  21917. * @private
  21918. * @param {Function} func The function to restrict.
  21919. * @returns {Function} Returns the new shortable function.
  21920. */
  21921. function shortOut(func) {
  21922. var count = 0,
  21923. lastCalled = 0;
  21924. return function() {
  21925. var stamp = nativeNow(),
  21926. remaining = HOT_SPAN - (stamp - lastCalled);
  21927. lastCalled = stamp;
  21928. if (remaining > 0) {
  21929. if (++count >= HOT_COUNT) {
  21930. return arguments[0];
  21931. }
  21932. } else {
  21933. count = 0;
  21934. }
  21935. return func.apply(undefined, arguments);
  21936. };
  21937. }
  21938. /**
  21939. * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
  21940. *
  21941. * @private
  21942. * @param {Array} array The array to shuffle.
  21943. * @param {number} [size=array.length] The size of `array`.
  21944. * @returns {Array} Returns `array`.
  21945. */
  21946. function shuffleSelf(array, size) {
  21947. var index = -1,
  21948. length = array.length,
  21949. lastIndex = length - 1;
  21950. size = size === undefined ? length : size;
  21951. while (++index < size) {
  21952. var rand = baseRandom(index, lastIndex),
  21953. value = array[rand];
  21954. array[rand] = array[index];
  21955. array[index] = value;
  21956. }
  21957. array.length = size;
  21958. return array;
  21959. }
  21960. /**
  21961. * Converts `string` to a property path array.
  21962. *
  21963. * @private
  21964. * @param {string} string The string to convert.
  21965. * @returns {Array} Returns the property path array.
  21966. */
  21967. var stringToPath = memoizeCapped(function(string) {
  21968. var result = [];
  21969. if (string.charCodeAt(0) === 46 /* . */) {
  21970. result.push('');
  21971. }
  21972. string.replace(rePropName, function(match, number, quote, subString) {
  21973. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  21974. });
  21975. return result;
  21976. });
  21977. /**
  21978. * Converts `value` to a string key if it's not a string or symbol.
  21979. *
  21980. * @private
  21981. * @param {*} value The value to inspect.
  21982. * @returns {string|symbol} Returns the key.
  21983. */
  21984. function toKey(value) {
  21985. if (typeof value == 'string' || isSymbol(value)) {
  21986. return value;
  21987. }
  21988. var result = (value + '');
  21989. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  21990. }
  21991. /**
  21992. * Converts `func` to its source code.
  21993. *
  21994. * @private
  21995. * @param {Function} func The function to convert.
  21996. * @returns {string} Returns the source code.
  21997. */
  21998. function toSource(func) {
  21999. if (func != null) {
  22000. try {
  22001. return funcToString.call(func);
  22002. } catch (e) {}
  22003. try {
  22004. return (func + '');
  22005. } catch (e) {}
  22006. }
  22007. return '';
  22008. }
  22009. /**
  22010. * Updates wrapper `details` based on `bitmask` flags.
  22011. *
  22012. * @private
  22013. * @returns {Array} details The details to modify.
  22014. * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
  22015. * @returns {Array} Returns `details`.
  22016. */
  22017. function updateWrapDetails(details, bitmask) {
  22018. arrayEach(wrapFlags, function(pair) {
  22019. var value = '_.' + pair[0];
  22020. if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
  22021. details.push(value);
  22022. }
  22023. });
  22024. return details.sort();
  22025. }
  22026. /**
  22027. * Creates a clone of `wrapper`.
  22028. *
  22029. * @private
  22030. * @param {Object} wrapper The wrapper to clone.
  22031. * @returns {Object} Returns the cloned wrapper.
  22032. */
  22033. function wrapperClone(wrapper) {
  22034. if (wrapper instanceof LazyWrapper) {
  22035. return wrapper.clone();
  22036. }
  22037. var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
  22038. result.__actions__ = copyArray(wrapper.__actions__);
  22039. result.__index__ = wrapper.__index__;
  22040. result.__values__ = wrapper.__values__;
  22041. return result;
  22042. }
  22043. /*------------------------------------------------------------------------*/
  22044. /**
  22045. * Creates an array of elements split into groups the length of `size`.
  22046. * If `array` can't be split evenly, the final chunk will be the remaining
  22047. * elements.
  22048. *
  22049. * @static
  22050. * @memberOf _
  22051. * @since 3.0.0
  22052. * @category Array
  22053. * @param {Array} array The array to process.
  22054. * @param {number} [size=1] The length of each chunk
  22055. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22056. * @returns {Array} Returns the new array of chunks.
  22057. * @example
  22058. *
  22059. * _.chunk(['a', 'b', 'c', 'd'], 2);
  22060. * // => [['a', 'b'], ['c', 'd']]
  22061. *
  22062. * _.chunk(['a', 'b', 'c', 'd'], 3);
  22063. * // => [['a', 'b', 'c'], ['d']]
  22064. */
  22065. function chunk(array, size, guard) {
  22066. if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
  22067. size = 1;
  22068. } else {
  22069. size = nativeMax(toInteger(size), 0);
  22070. }
  22071. var length = array == null ? 0 : array.length;
  22072. if (!length || size < 1) {
  22073. return [];
  22074. }
  22075. var index = 0,
  22076. resIndex = 0,
  22077. result = Array(nativeCeil(length / size));
  22078. while (index < length) {
  22079. result[resIndex++] = baseSlice(array, index, (index += size));
  22080. }
  22081. return result;
  22082. }
  22083. /**
  22084. * Creates an array with all falsey values removed. The values `false`, `null`,
  22085. * `0`, `""`, `undefined`, and `NaN` are falsey.
  22086. *
  22087. * @static
  22088. * @memberOf _
  22089. * @since 0.1.0
  22090. * @category Array
  22091. * @param {Array} array The array to compact.
  22092. * @returns {Array} Returns the new array of filtered values.
  22093. * @example
  22094. *
  22095. * _.compact([0, 1, false, 2, '', 3]);
  22096. * // => [1, 2, 3]
  22097. */
  22098. function compact(array) {
  22099. var index = -1,
  22100. length = array == null ? 0 : array.length,
  22101. resIndex = 0,
  22102. result = [];
  22103. while (++index < length) {
  22104. var value = array[index];
  22105. if (value) {
  22106. result[resIndex++] = value;
  22107. }
  22108. }
  22109. return result;
  22110. }
  22111. /**
  22112. * Creates a new array concatenating `array` with any additional arrays
  22113. * and/or values.
  22114. *
  22115. * @static
  22116. * @memberOf _
  22117. * @since 4.0.0
  22118. * @category Array
  22119. * @param {Array} array The array to concatenate.
  22120. * @param {...*} [values] The values to concatenate.
  22121. * @returns {Array} Returns the new concatenated array.
  22122. * @example
  22123. *
  22124. * var array = [1];
  22125. * var other = _.concat(array, 2, [3], [[4]]);
  22126. *
  22127. * console.log(other);
  22128. * // => [1, 2, 3, [4]]
  22129. *
  22130. * console.log(array);
  22131. * // => [1]
  22132. */
  22133. function concat() {
  22134. var length = arguments.length;
  22135. if (!length) {
  22136. return [];
  22137. }
  22138. var args = Array(length - 1),
  22139. array = arguments[0],
  22140. index = length;
  22141. while (index--) {
  22142. args[index - 1] = arguments[index];
  22143. }
  22144. return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
  22145. }
  22146. /**
  22147. * Creates an array of `array` values not included in the other given arrays
  22148. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22149. * for equality comparisons. The order and references of result values are
  22150. * determined by the first array.
  22151. *
  22152. * **Note:** Unlike `_.pullAll`, this method returns a new array.
  22153. *
  22154. * @static
  22155. * @memberOf _
  22156. * @since 0.1.0
  22157. * @category Array
  22158. * @param {Array} array The array to inspect.
  22159. * @param {...Array} [values] The values to exclude.
  22160. * @returns {Array} Returns the new array of filtered values.
  22161. * @see _.without, _.xor
  22162. * @example
  22163. *
  22164. * _.difference([2, 1], [2, 3]);
  22165. * // => [1]
  22166. */
  22167. var difference = baseRest(function(array, values) {
  22168. return isArrayLikeObject(array)
  22169. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
  22170. : [];
  22171. });
  22172. /**
  22173. * This method is like `_.difference` except that it accepts `iteratee` which
  22174. * is invoked for each element of `array` and `values` to generate the criterion
  22175. * by which they're compared. The order and references of result values are
  22176. * determined by the first array. The iteratee is invoked with one argument:
  22177. * (value).
  22178. *
  22179. * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
  22180. *
  22181. * @static
  22182. * @memberOf _
  22183. * @since 4.0.0
  22184. * @category Array
  22185. * @param {Array} array The array to inspect.
  22186. * @param {...Array} [values] The values to exclude.
  22187. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22188. * @returns {Array} Returns the new array of filtered values.
  22189. * @example
  22190. *
  22191. * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22192. * // => [1.2]
  22193. *
  22194. * // The `_.property` iteratee shorthand.
  22195. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
  22196. * // => [{ 'x': 2 }]
  22197. */
  22198. var differenceBy = baseRest(function(array, values) {
  22199. var iteratee = last(values);
  22200. if (isArrayLikeObject(iteratee)) {
  22201. iteratee = undefined;
  22202. }
  22203. return isArrayLikeObject(array)
  22204. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
  22205. : [];
  22206. });
  22207. /**
  22208. * This method is like `_.difference` except that it accepts `comparator`
  22209. * which is invoked to compare elements of `array` to `values`. The order and
  22210. * references of result values are determined by the first array. The comparator
  22211. * is invoked with two arguments: (arrVal, othVal).
  22212. *
  22213. * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
  22214. *
  22215. * @static
  22216. * @memberOf _
  22217. * @since 4.0.0
  22218. * @category Array
  22219. * @param {Array} array The array to inspect.
  22220. * @param {...Array} [values] The values to exclude.
  22221. * @param {Function} [comparator] The comparator invoked per element.
  22222. * @returns {Array} Returns the new array of filtered values.
  22223. * @example
  22224. *
  22225. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22226. *
  22227. * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
  22228. * // => [{ 'x': 2, 'y': 1 }]
  22229. */
  22230. var differenceWith = baseRest(function(array, values) {
  22231. var comparator = last(values);
  22232. if (isArrayLikeObject(comparator)) {
  22233. comparator = undefined;
  22234. }
  22235. return isArrayLikeObject(array)
  22236. ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
  22237. : [];
  22238. });
  22239. /**
  22240. * Creates a slice of `array` with `n` elements dropped from the beginning.
  22241. *
  22242. * @static
  22243. * @memberOf _
  22244. * @since 0.5.0
  22245. * @category Array
  22246. * @param {Array} array The array to query.
  22247. * @param {number} [n=1] The number of elements to drop.
  22248. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22249. * @returns {Array} Returns the slice of `array`.
  22250. * @example
  22251. *
  22252. * _.drop([1, 2, 3]);
  22253. * // => [2, 3]
  22254. *
  22255. * _.drop([1, 2, 3], 2);
  22256. * // => [3]
  22257. *
  22258. * _.drop([1, 2, 3], 5);
  22259. * // => []
  22260. *
  22261. * _.drop([1, 2, 3], 0);
  22262. * // => [1, 2, 3]
  22263. */
  22264. function drop(array, n, guard) {
  22265. var length = array == null ? 0 : array.length;
  22266. if (!length) {
  22267. return [];
  22268. }
  22269. n = (guard || n === undefined) ? 1 : toInteger(n);
  22270. return baseSlice(array, n < 0 ? 0 : n, length);
  22271. }
  22272. /**
  22273. * Creates a slice of `array` with `n` elements dropped from the end.
  22274. *
  22275. * @static
  22276. * @memberOf _
  22277. * @since 3.0.0
  22278. * @category Array
  22279. * @param {Array} array The array to query.
  22280. * @param {number} [n=1] The number of elements to drop.
  22281. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  22282. * @returns {Array} Returns the slice of `array`.
  22283. * @example
  22284. *
  22285. * _.dropRight([1, 2, 3]);
  22286. * // => [1, 2]
  22287. *
  22288. * _.dropRight([1, 2, 3], 2);
  22289. * // => [1]
  22290. *
  22291. * _.dropRight([1, 2, 3], 5);
  22292. * // => []
  22293. *
  22294. * _.dropRight([1, 2, 3], 0);
  22295. * // => [1, 2, 3]
  22296. */
  22297. function dropRight(array, n, guard) {
  22298. var length = array == null ? 0 : array.length;
  22299. if (!length) {
  22300. return [];
  22301. }
  22302. n = (guard || n === undefined) ? 1 : toInteger(n);
  22303. n = length - n;
  22304. return baseSlice(array, 0, n < 0 ? 0 : n);
  22305. }
  22306. /**
  22307. * Creates a slice of `array` excluding elements dropped from the end.
  22308. * Elements are dropped until `predicate` returns falsey. The predicate is
  22309. * invoked with three arguments: (value, index, array).
  22310. *
  22311. * @static
  22312. * @memberOf _
  22313. * @since 3.0.0
  22314. * @category Array
  22315. * @param {Array} array The array to query.
  22316. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22317. * @returns {Array} Returns the slice of `array`.
  22318. * @example
  22319. *
  22320. * var users = [
  22321. * { 'user': 'barney', 'active': true },
  22322. * { 'user': 'fred', 'active': false },
  22323. * { 'user': 'pebbles', 'active': false }
  22324. * ];
  22325. *
  22326. * _.dropRightWhile(users, function(o) { return !o.active; });
  22327. * // => objects for ['barney']
  22328. *
  22329. * // The `_.matches` iteratee shorthand.
  22330. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
  22331. * // => objects for ['barney', 'fred']
  22332. *
  22333. * // The `_.matchesProperty` iteratee shorthand.
  22334. * _.dropRightWhile(users, ['active', false]);
  22335. * // => objects for ['barney']
  22336. *
  22337. * // The `_.property` iteratee shorthand.
  22338. * _.dropRightWhile(users, 'active');
  22339. * // => objects for ['barney', 'fred', 'pebbles']
  22340. */
  22341. function dropRightWhile(array, predicate) {
  22342. return (array && array.length)
  22343. ? baseWhile(array, getIteratee(predicate, 3), true, true)
  22344. : [];
  22345. }
  22346. /**
  22347. * Creates a slice of `array` excluding elements dropped from the beginning.
  22348. * Elements are dropped until `predicate` returns falsey. The predicate is
  22349. * invoked with three arguments: (value, index, array).
  22350. *
  22351. * @static
  22352. * @memberOf _
  22353. * @since 3.0.0
  22354. * @category Array
  22355. * @param {Array} array The array to query.
  22356. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22357. * @returns {Array} Returns the slice of `array`.
  22358. * @example
  22359. *
  22360. * var users = [
  22361. * { 'user': 'barney', 'active': false },
  22362. * { 'user': 'fred', 'active': false },
  22363. * { 'user': 'pebbles', 'active': true }
  22364. * ];
  22365. *
  22366. * _.dropWhile(users, function(o) { return !o.active; });
  22367. * // => objects for ['pebbles']
  22368. *
  22369. * // The `_.matches` iteratee shorthand.
  22370. * _.dropWhile(users, { 'user': 'barney', 'active': false });
  22371. * // => objects for ['fred', 'pebbles']
  22372. *
  22373. * // The `_.matchesProperty` iteratee shorthand.
  22374. * _.dropWhile(users, ['active', false]);
  22375. * // => objects for ['pebbles']
  22376. *
  22377. * // The `_.property` iteratee shorthand.
  22378. * _.dropWhile(users, 'active');
  22379. * // => objects for ['barney', 'fred', 'pebbles']
  22380. */
  22381. function dropWhile(array, predicate) {
  22382. return (array && array.length)
  22383. ? baseWhile(array, getIteratee(predicate, 3), true)
  22384. : [];
  22385. }
  22386. /**
  22387. * Fills elements of `array` with `value` from `start` up to, but not
  22388. * including, `end`.
  22389. *
  22390. * **Note:** This method mutates `array`.
  22391. *
  22392. * @static
  22393. * @memberOf _
  22394. * @since 3.2.0
  22395. * @category Array
  22396. * @param {Array} array The array to fill.
  22397. * @param {*} value The value to fill `array` with.
  22398. * @param {number} [start=0] The start position.
  22399. * @param {number} [end=array.length] The end position.
  22400. * @returns {Array} Returns `array`.
  22401. * @example
  22402. *
  22403. * var array = [1, 2, 3];
  22404. *
  22405. * _.fill(array, 'a');
  22406. * console.log(array);
  22407. * // => ['a', 'a', 'a']
  22408. *
  22409. * _.fill(Array(3), 2);
  22410. * // => [2, 2, 2]
  22411. *
  22412. * _.fill([4, 6, 8, 10], '*', 1, 3);
  22413. * // => [4, '*', '*', 10]
  22414. */
  22415. function fill(array, value, start, end) {
  22416. var length = array == null ? 0 : array.length;
  22417. if (!length) {
  22418. return [];
  22419. }
  22420. if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
  22421. start = 0;
  22422. end = length;
  22423. }
  22424. return baseFill(array, value, start, end);
  22425. }
  22426. /**
  22427. * This method is like `_.find` except that it returns the index of the first
  22428. * element `predicate` returns truthy for instead of the element itself.
  22429. *
  22430. * @static
  22431. * @memberOf _
  22432. * @since 1.1.0
  22433. * @category Array
  22434. * @param {Array} array The array to inspect.
  22435. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22436. * @param {number} [fromIndex=0] The index to search from.
  22437. * @returns {number} Returns the index of the found element, else `-1`.
  22438. * @example
  22439. *
  22440. * var users = [
  22441. * { 'user': 'barney', 'active': false },
  22442. * { 'user': 'fred', 'active': false },
  22443. * { 'user': 'pebbles', 'active': true }
  22444. * ];
  22445. *
  22446. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  22447. * // => 0
  22448. *
  22449. * // The `_.matches` iteratee shorthand.
  22450. * _.findIndex(users, { 'user': 'fred', 'active': false });
  22451. * // => 1
  22452. *
  22453. * // The `_.matchesProperty` iteratee shorthand.
  22454. * _.findIndex(users, ['active', false]);
  22455. * // => 0
  22456. *
  22457. * // The `_.property` iteratee shorthand.
  22458. * _.findIndex(users, 'active');
  22459. * // => 2
  22460. */
  22461. function findIndex(array, predicate, fromIndex) {
  22462. var length = array == null ? 0 : array.length;
  22463. if (!length) {
  22464. return -1;
  22465. }
  22466. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22467. if (index < 0) {
  22468. index = nativeMax(length + index, 0);
  22469. }
  22470. return baseFindIndex(array, getIteratee(predicate, 3), index);
  22471. }
  22472. /**
  22473. * This method is like `_.findIndex` except that it iterates over elements
  22474. * of `collection` from right to left.
  22475. *
  22476. * @static
  22477. * @memberOf _
  22478. * @since 2.0.0
  22479. * @category Array
  22480. * @param {Array} array The array to inspect.
  22481. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  22482. * @param {number} [fromIndex=array.length-1] The index to search from.
  22483. * @returns {number} Returns the index of the found element, else `-1`.
  22484. * @example
  22485. *
  22486. * var users = [
  22487. * { 'user': 'barney', 'active': true },
  22488. * { 'user': 'fred', 'active': false },
  22489. * { 'user': 'pebbles', 'active': false }
  22490. * ];
  22491. *
  22492. * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
  22493. * // => 2
  22494. *
  22495. * // The `_.matches` iteratee shorthand.
  22496. * _.findLastIndex(users, { 'user': 'barney', 'active': true });
  22497. * // => 0
  22498. *
  22499. * // The `_.matchesProperty` iteratee shorthand.
  22500. * _.findLastIndex(users, ['active', false]);
  22501. * // => 2
  22502. *
  22503. * // The `_.property` iteratee shorthand.
  22504. * _.findLastIndex(users, 'active');
  22505. * // => 0
  22506. */
  22507. function findLastIndex(array, predicate, fromIndex) {
  22508. var length = array == null ? 0 : array.length;
  22509. if (!length) {
  22510. return -1;
  22511. }
  22512. var index = length - 1;
  22513. if (fromIndex !== undefined) {
  22514. index = toInteger(fromIndex);
  22515. index = fromIndex < 0
  22516. ? nativeMax(length + index, 0)
  22517. : nativeMin(index, length - 1);
  22518. }
  22519. return baseFindIndex(array, getIteratee(predicate, 3), index, true);
  22520. }
  22521. /**
  22522. * Flattens `array` a single level deep.
  22523. *
  22524. * @static
  22525. * @memberOf _
  22526. * @since 0.1.0
  22527. * @category Array
  22528. * @param {Array} array The array to flatten.
  22529. * @returns {Array} Returns the new flattened array.
  22530. * @example
  22531. *
  22532. * _.flatten([1, [2, [3, [4]], 5]]);
  22533. * // => [1, 2, [3, [4]], 5]
  22534. */
  22535. function flatten(array) {
  22536. var length = array == null ? 0 : array.length;
  22537. return length ? baseFlatten(array, 1) : [];
  22538. }
  22539. /**
  22540. * Recursively flattens `array`.
  22541. *
  22542. * @static
  22543. * @memberOf _
  22544. * @since 3.0.0
  22545. * @category Array
  22546. * @param {Array} array The array to flatten.
  22547. * @returns {Array} Returns the new flattened array.
  22548. * @example
  22549. *
  22550. * _.flattenDeep([1, [2, [3, [4]], 5]]);
  22551. * // => [1, 2, 3, 4, 5]
  22552. */
  22553. function flattenDeep(array) {
  22554. var length = array == null ? 0 : array.length;
  22555. return length ? baseFlatten(array, INFINITY) : [];
  22556. }
  22557. /**
  22558. * Recursively flatten `array` up to `depth` times.
  22559. *
  22560. * @static
  22561. * @memberOf _
  22562. * @since 4.4.0
  22563. * @category Array
  22564. * @param {Array} array The array to flatten.
  22565. * @param {number} [depth=1] The maximum recursion depth.
  22566. * @returns {Array} Returns the new flattened array.
  22567. * @example
  22568. *
  22569. * var array = [1, [2, [3, [4]], 5]];
  22570. *
  22571. * _.flattenDepth(array, 1);
  22572. * // => [1, 2, [3, [4]], 5]
  22573. *
  22574. * _.flattenDepth(array, 2);
  22575. * // => [1, 2, 3, [4], 5]
  22576. */
  22577. function flattenDepth(array, depth) {
  22578. var length = array == null ? 0 : array.length;
  22579. if (!length) {
  22580. return [];
  22581. }
  22582. depth = depth === undefined ? 1 : toInteger(depth);
  22583. return baseFlatten(array, depth);
  22584. }
  22585. /**
  22586. * The inverse of `_.toPairs`; this method returns an object composed
  22587. * from key-value `pairs`.
  22588. *
  22589. * @static
  22590. * @memberOf _
  22591. * @since 4.0.0
  22592. * @category Array
  22593. * @param {Array} pairs The key-value pairs.
  22594. * @returns {Object} Returns the new object.
  22595. * @example
  22596. *
  22597. * _.fromPairs([['a', 1], ['b', 2]]);
  22598. * // => { 'a': 1, 'b': 2 }
  22599. */
  22600. function fromPairs(pairs) {
  22601. var index = -1,
  22602. length = pairs == null ? 0 : pairs.length,
  22603. result = {};
  22604. while (++index < length) {
  22605. var pair = pairs[index];
  22606. result[pair[0]] = pair[1];
  22607. }
  22608. return result;
  22609. }
  22610. /**
  22611. * Gets the first element of `array`.
  22612. *
  22613. * @static
  22614. * @memberOf _
  22615. * @since 0.1.0
  22616. * @alias first
  22617. * @category Array
  22618. * @param {Array} array The array to query.
  22619. * @returns {*} Returns the first element of `array`.
  22620. * @example
  22621. *
  22622. * _.head([1, 2, 3]);
  22623. * // => 1
  22624. *
  22625. * _.head([]);
  22626. * // => undefined
  22627. */
  22628. function head(array) {
  22629. return (array && array.length) ? array[0] : undefined;
  22630. }
  22631. /**
  22632. * Gets the index at which the first occurrence of `value` is found in `array`
  22633. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22634. * for equality comparisons. If `fromIndex` is negative, it's used as the
  22635. * offset from the end of `array`.
  22636. *
  22637. * @static
  22638. * @memberOf _
  22639. * @since 0.1.0
  22640. * @category Array
  22641. * @param {Array} array The array to inspect.
  22642. * @param {*} value The value to search for.
  22643. * @param {number} [fromIndex=0] The index to search from.
  22644. * @returns {number} Returns the index of the matched value, else `-1`.
  22645. * @example
  22646. *
  22647. * _.indexOf([1, 2, 1, 2], 2);
  22648. * // => 1
  22649. *
  22650. * // Search from the `fromIndex`.
  22651. * _.indexOf([1, 2, 1, 2], 2, 2);
  22652. * // => 3
  22653. */
  22654. function indexOf(array, value, fromIndex) {
  22655. var length = array == null ? 0 : array.length;
  22656. if (!length) {
  22657. return -1;
  22658. }
  22659. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  22660. if (index < 0) {
  22661. index = nativeMax(length + index, 0);
  22662. }
  22663. return baseIndexOf(array, value, index);
  22664. }
  22665. /**
  22666. * Gets all but the last element of `array`.
  22667. *
  22668. * @static
  22669. * @memberOf _
  22670. * @since 0.1.0
  22671. * @category Array
  22672. * @param {Array} array The array to query.
  22673. * @returns {Array} Returns the slice of `array`.
  22674. * @example
  22675. *
  22676. * _.initial([1, 2, 3]);
  22677. * // => [1, 2]
  22678. */
  22679. function initial(array) {
  22680. var length = array == null ? 0 : array.length;
  22681. return length ? baseSlice(array, 0, -1) : [];
  22682. }
  22683. /**
  22684. * Creates an array of unique values that are included in all given arrays
  22685. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22686. * for equality comparisons. The order and references of result values are
  22687. * determined by the first array.
  22688. *
  22689. * @static
  22690. * @memberOf _
  22691. * @since 0.1.0
  22692. * @category Array
  22693. * @param {...Array} [arrays] The arrays to inspect.
  22694. * @returns {Array} Returns the new array of intersecting values.
  22695. * @example
  22696. *
  22697. * _.intersection([2, 1], [2, 3]);
  22698. * // => [2]
  22699. */
  22700. var intersection = baseRest(function(arrays) {
  22701. var mapped = arrayMap(arrays, castArrayLikeObject);
  22702. return (mapped.length && mapped[0] === arrays[0])
  22703. ? baseIntersection(mapped)
  22704. : [];
  22705. });
  22706. /**
  22707. * This method is like `_.intersection` except that it accepts `iteratee`
  22708. * which is invoked for each element of each `arrays` to generate the criterion
  22709. * by which they're compared. The order and references of result values are
  22710. * determined by the first array. The iteratee is invoked with one argument:
  22711. * (value).
  22712. *
  22713. * @static
  22714. * @memberOf _
  22715. * @since 4.0.0
  22716. * @category Array
  22717. * @param {...Array} [arrays] The arrays to inspect.
  22718. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22719. * @returns {Array} Returns the new array of intersecting values.
  22720. * @example
  22721. *
  22722. * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  22723. * // => [2.1]
  22724. *
  22725. * // The `_.property` iteratee shorthand.
  22726. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  22727. * // => [{ 'x': 1 }]
  22728. */
  22729. var intersectionBy = baseRest(function(arrays) {
  22730. var iteratee = last(arrays),
  22731. mapped = arrayMap(arrays, castArrayLikeObject);
  22732. if (iteratee === last(mapped)) {
  22733. iteratee = undefined;
  22734. } else {
  22735. mapped.pop();
  22736. }
  22737. return (mapped.length && mapped[0] === arrays[0])
  22738. ? baseIntersection(mapped, getIteratee(iteratee, 2))
  22739. : [];
  22740. });
  22741. /**
  22742. * This method is like `_.intersection` except that it accepts `comparator`
  22743. * which is invoked to compare elements of `arrays`. The order and references
  22744. * of result values are determined by the first array. The comparator is
  22745. * invoked with two arguments: (arrVal, othVal).
  22746. *
  22747. * @static
  22748. * @memberOf _
  22749. * @since 4.0.0
  22750. * @category Array
  22751. * @param {...Array} [arrays] The arrays to inspect.
  22752. * @param {Function} [comparator] The comparator invoked per element.
  22753. * @returns {Array} Returns the new array of intersecting values.
  22754. * @example
  22755. *
  22756. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  22757. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  22758. *
  22759. * _.intersectionWith(objects, others, _.isEqual);
  22760. * // => [{ 'x': 1, 'y': 2 }]
  22761. */
  22762. var intersectionWith = baseRest(function(arrays) {
  22763. var comparator = last(arrays),
  22764. mapped = arrayMap(arrays, castArrayLikeObject);
  22765. comparator = typeof comparator == 'function' ? comparator : undefined;
  22766. if (comparator) {
  22767. mapped.pop();
  22768. }
  22769. return (mapped.length && mapped[0] === arrays[0])
  22770. ? baseIntersection(mapped, undefined, comparator)
  22771. : [];
  22772. });
  22773. /**
  22774. * Converts all elements in `array` into a string separated by `separator`.
  22775. *
  22776. * @static
  22777. * @memberOf _
  22778. * @since 4.0.0
  22779. * @category Array
  22780. * @param {Array} array The array to convert.
  22781. * @param {string} [separator=','] The element separator.
  22782. * @returns {string} Returns the joined string.
  22783. * @example
  22784. *
  22785. * _.join(['a', 'b', 'c'], '~');
  22786. * // => 'a~b~c'
  22787. */
  22788. function join(array, separator) {
  22789. return array == null ? '' : nativeJoin.call(array, separator);
  22790. }
  22791. /**
  22792. * Gets the last element of `array`.
  22793. *
  22794. * @static
  22795. * @memberOf _
  22796. * @since 0.1.0
  22797. * @category Array
  22798. * @param {Array} array The array to query.
  22799. * @returns {*} Returns the last element of `array`.
  22800. * @example
  22801. *
  22802. * _.last([1, 2, 3]);
  22803. * // => 3
  22804. */
  22805. function last(array) {
  22806. var length = array == null ? 0 : array.length;
  22807. return length ? array[length - 1] : undefined;
  22808. }
  22809. /**
  22810. * This method is like `_.indexOf` except that it iterates over elements of
  22811. * `array` from right to left.
  22812. *
  22813. * @static
  22814. * @memberOf _
  22815. * @since 0.1.0
  22816. * @category Array
  22817. * @param {Array} array The array to inspect.
  22818. * @param {*} value The value to search for.
  22819. * @param {number} [fromIndex=array.length-1] The index to search from.
  22820. * @returns {number} Returns the index of the matched value, else `-1`.
  22821. * @example
  22822. *
  22823. * _.lastIndexOf([1, 2, 1, 2], 2);
  22824. * // => 3
  22825. *
  22826. * // Search from the `fromIndex`.
  22827. * _.lastIndexOf([1, 2, 1, 2], 2, 2);
  22828. * // => 1
  22829. */
  22830. function lastIndexOf(array, value, fromIndex) {
  22831. var length = array == null ? 0 : array.length;
  22832. if (!length) {
  22833. return -1;
  22834. }
  22835. var index = length;
  22836. if (fromIndex !== undefined) {
  22837. index = toInteger(fromIndex);
  22838. index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
  22839. }
  22840. return value === value
  22841. ? strictLastIndexOf(array, value, index)
  22842. : baseFindIndex(array, baseIsNaN, index, true);
  22843. }
  22844. /**
  22845. * Gets the element at index `n` of `array`. If `n` is negative, the nth
  22846. * element from the end is returned.
  22847. *
  22848. * @static
  22849. * @memberOf _
  22850. * @since 4.11.0
  22851. * @category Array
  22852. * @param {Array} array The array to query.
  22853. * @param {number} [n=0] The index of the element to return.
  22854. * @returns {*} Returns the nth element of `array`.
  22855. * @example
  22856. *
  22857. * var array = ['a', 'b', 'c', 'd'];
  22858. *
  22859. * _.nth(array, 1);
  22860. * // => 'b'
  22861. *
  22862. * _.nth(array, -2);
  22863. * // => 'c';
  22864. */
  22865. function nth(array, n) {
  22866. return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
  22867. }
  22868. /**
  22869. * Removes all given values from `array` using
  22870. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  22871. * for equality comparisons.
  22872. *
  22873. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  22874. * to remove elements from an array by predicate.
  22875. *
  22876. * @static
  22877. * @memberOf _
  22878. * @since 2.0.0
  22879. * @category Array
  22880. * @param {Array} array The array to modify.
  22881. * @param {...*} [values] The values to remove.
  22882. * @returns {Array} Returns `array`.
  22883. * @example
  22884. *
  22885. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22886. *
  22887. * _.pull(array, 'a', 'c');
  22888. * console.log(array);
  22889. * // => ['b', 'b']
  22890. */
  22891. var pull = baseRest(pullAll);
  22892. /**
  22893. * This method is like `_.pull` except that it accepts an array of values to remove.
  22894. *
  22895. * **Note:** Unlike `_.difference`, this method mutates `array`.
  22896. *
  22897. * @static
  22898. * @memberOf _
  22899. * @since 4.0.0
  22900. * @category Array
  22901. * @param {Array} array The array to modify.
  22902. * @param {Array} values The values to remove.
  22903. * @returns {Array} Returns `array`.
  22904. * @example
  22905. *
  22906. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  22907. *
  22908. * _.pullAll(array, ['a', 'c']);
  22909. * console.log(array);
  22910. * // => ['b', 'b']
  22911. */
  22912. function pullAll(array, values) {
  22913. return (array && array.length && values && values.length)
  22914. ? basePullAll(array, values)
  22915. : array;
  22916. }
  22917. /**
  22918. * This method is like `_.pullAll` except that it accepts `iteratee` which is
  22919. * invoked for each element of `array` and `values` to generate the criterion
  22920. * by which they're compared. The iteratee is invoked with one argument: (value).
  22921. *
  22922. * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
  22923. *
  22924. * @static
  22925. * @memberOf _
  22926. * @since 4.0.0
  22927. * @category Array
  22928. * @param {Array} array The array to modify.
  22929. * @param {Array} values The values to remove.
  22930. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  22931. * @returns {Array} Returns `array`.
  22932. * @example
  22933. *
  22934. * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
  22935. *
  22936. * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
  22937. * console.log(array);
  22938. * // => [{ 'x': 2 }]
  22939. */
  22940. function pullAllBy(array, values, iteratee) {
  22941. return (array && array.length && values && values.length)
  22942. ? basePullAll(array, values, getIteratee(iteratee, 2))
  22943. : array;
  22944. }
  22945. /**
  22946. * This method is like `_.pullAll` except that it accepts `comparator` which
  22947. * is invoked to compare elements of `array` to `values`. The comparator is
  22948. * invoked with two arguments: (arrVal, othVal).
  22949. *
  22950. * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
  22951. *
  22952. * @static
  22953. * @memberOf _
  22954. * @since 4.6.0
  22955. * @category Array
  22956. * @param {Array} array The array to modify.
  22957. * @param {Array} values The values to remove.
  22958. * @param {Function} [comparator] The comparator invoked per element.
  22959. * @returns {Array} Returns `array`.
  22960. * @example
  22961. *
  22962. * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
  22963. *
  22964. * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
  22965. * console.log(array);
  22966. * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
  22967. */
  22968. function pullAllWith(array, values, comparator) {
  22969. return (array && array.length && values && values.length)
  22970. ? basePullAll(array, values, undefined, comparator)
  22971. : array;
  22972. }
  22973. /**
  22974. * Removes elements from `array` corresponding to `indexes` and returns an
  22975. * array of removed elements.
  22976. *
  22977. * **Note:** Unlike `_.at`, this method mutates `array`.
  22978. *
  22979. * @static
  22980. * @memberOf _
  22981. * @since 3.0.0
  22982. * @category Array
  22983. * @param {Array} array The array to modify.
  22984. * @param {...(number|number[])} [indexes] The indexes of elements to remove.
  22985. * @returns {Array} Returns the new array of removed elements.
  22986. * @example
  22987. *
  22988. * var array = ['a', 'b', 'c', 'd'];
  22989. * var pulled = _.pullAt(array, [1, 3]);
  22990. *
  22991. * console.log(array);
  22992. * // => ['a', 'c']
  22993. *
  22994. * console.log(pulled);
  22995. * // => ['b', 'd']
  22996. */
  22997. var pullAt = flatRest(function(array, indexes) {
  22998. var length = array == null ? 0 : array.length,
  22999. result = baseAt(array, indexes);
  23000. basePullAt(array, arrayMap(indexes, function(index) {
  23001. return isIndex(index, length) ? +index : index;
  23002. }).sort(compareAscending));
  23003. return result;
  23004. });
  23005. /**
  23006. * Removes all elements from `array` that `predicate` returns truthy for
  23007. * and returns an array of the removed elements. The predicate is invoked
  23008. * with three arguments: (value, index, array).
  23009. *
  23010. * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
  23011. * to pull elements from an array by value.
  23012. *
  23013. * @static
  23014. * @memberOf _
  23015. * @since 2.0.0
  23016. * @category Array
  23017. * @param {Array} array The array to modify.
  23018. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23019. * @returns {Array} Returns the new array of removed elements.
  23020. * @example
  23021. *
  23022. * var array = [1, 2, 3, 4];
  23023. * var evens = _.remove(array, function(n) {
  23024. * return n % 2 == 0;
  23025. * });
  23026. *
  23027. * console.log(array);
  23028. * // => [1, 3]
  23029. *
  23030. * console.log(evens);
  23031. * // => [2, 4]
  23032. */
  23033. function remove(array, predicate) {
  23034. var result = [];
  23035. if (!(array && array.length)) {
  23036. return result;
  23037. }
  23038. var index = -1,
  23039. indexes = [],
  23040. length = array.length;
  23041. predicate = getIteratee(predicate, 3);
  23042. while (++index < length) {
  23043. var value = array[index];
  23044. if (predicate(value, index, array)) {
  23045. result.push(value);
  23046. indexes.push(index);
  23047. }
  23048. }
  23049. basePullAt(array, indexes);
  23050. return result;
  23051. }
  23052. /**
  23053. * Reverses `array` so that the first element becomes the last, the second
  23054. * element becomes the second to last, and so on.
  23055. *
  23056. * **Note:** This method mutates `array` and is based on
  23057. * [`Array#reverse`](https://mdn.io/Array/reverse).
  23058. *
  23059. * @static
  23060. * @memberOf _
  23061. * @since 4.0.0
  23062. * @category Array
  23063. * @param {Array} array The array to modify.
  23064. * @returns {Array} Returns `array`.
  23065. * @example
  23066. *
  23067. * var array = [1, 2, 3];
  23068. *
  23069. * _.reverse(array);
  23070. * // => [3, 2, 1]
  23071. *
  23072. * console.log(array);
  23073. * // => [3, 2, 1]
  23074. */
  23075. function reverse(array) {
  23076. return array == null ? array : nativeReverse.call(array);
  23077. }
  23078. /**
  23079. * Creates a slice of `array` from `start` up to, but not including, `end`.
  23080. *
  23081. * **Note:** This method is used instead of
  23082. * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
  23083. * returned.
  23084. *
  23085. * @static
  23086. * @memberOf _
  23087. * @since 3.0.0
  23088. * @category Array
  23089. * @param {Array} array The array to slice.
  23090. * @param {number} [start=0] The start position.
  23091. * @param {number} [end=array.length] The end position.
  23092. * @returns {Array} Returns the slice of `array`.
  23093. */
  23094. function slice(array, start, end) {
  23095. var length = array == null ? 0 : array.length;
  23096. if (!length) {
  23097. return [];
  23098. }
  23099. if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
  23100. start = 0;
  23101. end = length;
  23102. }
  23103. else {
  23104. start = start == null ? 0 : toInteger(start);
  23105. end = end === undefined ? length : toInteger(end);
  23106. }
  23107. return baseSlice(array, start, end);
  23108. }
  23109. /**
  23110. * Uses a binary search to determine the lowest index at which `value`
  23111. * should be inserted into `array` in order to maintain its sort order.
  23112. *
  23113. * @static
  23114. * @memberOf _
  23115. * @since 0.1.0
  23116. * @category Array
  23117. * @param {Array} array The sorted array to inspect.
  23118. * @param {*} value The value to evaluate.
  23119. * @returns {number} Returns the index at which `value` should be inserted
  23120. * into `array`.
  23121. * @example
  23122. *
  23123. * _.sortedIndex([30, 50], 40);
  23124. * // => 1
  23125. */
  23126. function sortedIndex(array, value) {
  23127. return baseSortedIndex(array, value);
  23128. }
  23129. /**
  23130. * This method is like `_.sortedIndex` except that it accepts `iteratee`
  23131. * which is invoked for `value` and each element of `array` to compute their
  23132. * sort ranking. The iteratee is invoked with one argument: (value).
  23133. *
  23134. * @static
  23135. * @memberOf _
  23136. * @since 4.0.0
  23137. * @category Array
  23138. * @param {Array} array The sorted array to inspect.
  23139. * @param {*} value The value to evaluate.
  23140. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23141. * @returns {number} Returns the index at which `value` should be inserted
  23142. * into `array`.
  23143. * @example
  23144. *
  23145. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23146. *
  23147. * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23148. * // => 0
  23149. *
  23150. * // The `_.property` iteratee shorthand.
  23151. * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
  23152. * // => 0
  23153. */
  23154. function sortedIndexBy(array, value, iteratee) {
  23155. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
  23156. }
  23157. /**
  23158. * This method is like `_.indexOf` except that it performs a binary
  23159. * search on a sorted `array`.
  23160. *
  23161. * @static
  23162. * @memberOf _
  23163. * @since 4.0.0
  23164. * @category Array
  23165. * @param {Array} array The array to inspect.
  23166. * @param {*} value The value to search for.
  23167. * @returns {number} Returns the index of the matched value, else `-1`.
  23168. * @example
  23169. *
  23170. * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
  23171. * // => 1
  23172. */
  23173. function sortedIndexOf(array, value) {
  23174. var length = array == null ? 0 : array.length;
  23175. if (length) {
  23176. var index = baseSortedIndex(array, value);
  23177. if (index < length && eq(array[index], value)) {
  23178. return index;
  23179. }
  23180. }
  23181. return -1;
  23182. }
  23183. /**
  23184. * This method is like `_.sortedIndex` except that it returns the highest
  23185. * index at which `value` should be inserted into `array` in order to
  23186. * maintain its sort order.
  23187. *
  23188. * @static
  23189. * @memberOf _
  23190. * @since 3.0.0
  23191. * @category Array
  23192. * @param {Array} array The sorted array to inspect.
  23193. * @param {*} value The value to evaluate.
  23194. * @returns {number} Returns the index at which `value` should be inserted
  23195. * into `array`.
  23196. * @example
  23197. *
  23198. * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
  23199. * // => 4
  23200. */
  23201. function sortedLastIndex(array, value) {
  23202. return baseSortedIndex(array, value, true);
  23203. }
  23204. /**
  23205. * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
  23206. * which is invoked for `value` and each element of `array` to compute their
  23207. * sort ranking. The iteratee is invoked with one argument: (value).
  23208. *
  23209. * @static
  23210. * @memberOf _
  23211. * @since 4.0.0
  23212. * @category Array
  23213. * @param {Array} array The sorted array to inspect.
  23214. * @param {*} value The value to evaluate.
  23215. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23216. * @returns {number} Returns the index at which `value` should be inserted
  23217. * into `array`.
  23218. * @example
  23219. *
  23220. * var objects = [{ 'x': 4 }, { 'x': 5 }];
  23221. *
  23222. * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
  23223. * // => 1
  23224. *
  23225. * // The `_.property` iteratee shorthand.
  23226. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
  23227. * // => 1
  23228. */
  23229. function sortedLastIndexBy(array, value, iteratee) {
  23230. return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
  23231. }
  23232. /**
  23233. * This method is like `_.lastIndexOf` except that it performs a binary
  23234. * search on a sorted `array`.
  23235. *
  23236. * @static
  23237. * @memberOf _
  23238. * @since 4.0.0
  23239. * @category Array
  23240. * @param {Array} array The array to inspect.
  23241. * @param {*} value The value to search for.
  23242. * @returns {number} Returns the index of the matched value, else `-1`.
  23243. * @example
  23244. *
  23245. * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
  23246. * // => 3
  23247. */
  23248. function sortedLastIndexOf(array, value) {
  23249. var length = array == null ? 0 : array.length;
  23250. if (length) {
  23251. var index = baseSortedIndex(array, value, true) - 1;
  23252. if (eq(array[index], value)) {
  23253. return index;
  23254. }
  23255. }
  23256. return -1;
  23257. }
  23258. /**
  23259. * This method is like `_.uniq` except that it's designed and optimized
  23260. * for sorted arrays.
  23261. *
  23262. * @static
  23263. * @memberOf _
  23264. * @since 4.0.0
  23265. * @category Array
  23266. * @param {Array} array The array to inspect.
  23267. * @returns {Array} Returns the new duplicate free array.
  23268. * @example
  23269. *
  23270. * _.sortedUniq([1, 1, 2]);
  23271. * // => [1, 2]
  23272. */
  23273. function sortedUniq(array) {
  23274. return (array && array.length)
  23275. ? baseSortedUniq(array)
  23276. : [];
  23277. }
  23278. /**
  23279. * This method is like `_.uniqBy` except that it's designed and optimized
  23280. * for sorted arrays.
  23281. *
  23282. * @static
  23283. * @memberOf _
  23284. * @since 4.0.0
  23285. * @category Array
  23286. * @param {Array} array The array to inspect.
  23287. * @param {Function} [iteratee] The iteratee invoked per element.
  23288. * @returns {Array} Returns the new duplicate free array.
  23289. * @example
  23290. *
  23291. * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
  23292. * // => [1.1, 2.3]
  23293. */
  23294. function sortedUniqBy(array, iteratee) {
  23295. return (array && array.length)
  23296. ? baseSortedUniq(array, getIteratee(iteratee, 2))
  23297. : [];
  23298. }
  23299. /**
  23300. * Gets all but the first element of `array`.
  23301. *
  23302. * @static
  23303. * @memberOf _
  23304. * @since 4.0.0
  23305. * @category Array
  23306. * @param {Array} array The array to query.
  23307. * @returns {Array} Returns the slice of `array`.
  23308. * @example
  23309. *
  23310. * _.tail([1, 2, 3]);
  23311. * // => [2, 3]
  23312. */
  23313. function tail(array) {
  23314. var length = array == null ? 0 : array.length;
  23315. return length ? baseSlice(array, 1, length) : [];
  23316. }
  23317. /**
  23318. * Creates a slice of `array` with `n` elements taken from the beginning.
  23319. *
  23320. * @static
  23321. * @memberOf _
  23322. * @since 0.1.0
  23323. * @category Array
  23324. * @param {Array} array The array to query.
  23325. * @param {number} [n=1] The number of elements to take.
  23326. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23327. * @returns {Array} Returns the slice of `array`.
  23328. * @example
  23329. *
  23330. * _.take([1, 2, 3]);
  23331. * // => [1]
  23332. *
  23333. * _.take([1, 2, 3], 2);
  23334. * // => [1, 2]
  23335. *
  23336. * _.take([1, 2, 3], 5);
  23337. * // => [1, 2, 3]
  23338. *
  23339. * _.take([1, 2, 3], 0);
  23340. * // => []
  23341. */
  23342. function take(array, n, guard) {
  23343. if (!(array && array.length)) {
  23344. return [];
  23345. }
  23346. n = (guard || n === undefined) ? 1 : toInteger(n);
  23347. return baseSlice(array, 0, n < 0 ? 0 : n);
  23348. }
  23349. /**
  23350. * Creates a slice of `array` with `n` elements taken from the end.
  23351. *
  23352. * @static
  23353. * @memberOf _
  23354. * @since 3.0.0
  23355. * @category Array
  23356. * @param {Array} array The array to query.
  23357. * @param {number} [n=1] The number of elements to take.
  23358. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  23359. * @returns {Array} Returns the slice of `array`.
  23360. * @example
  23361. *
  23362. * _.takeRight([1, 2, 3]);
  23363. * // => [3]
  23364. *
  23365. * _.takeRight([1, 2, 3], 2);
  23366. * // => [2, 3]
  23367. *
  23368. * _.takeRight([1, 2, 3], 5);
  23369. * // => [1, 2, 3]
  23370. *
  23371. * _.takeRight([1, 2, 3], 0);
  23372. * // => []
  23373. */
  23374. function takeRight(array, n, guard) {
  23375. var length = array == null ? 0 : array.length;
  23376. if (!length) {
  23377. return [];
  23378. }
  23379. n = (guard || n === undefined) ? 1 : toInteger(n);
  23380. n = length - n;
  23381. return baseSlice(array, n < 0 ? 0 : n, length);
  23382. }
  23383. /**
  23384. * Creates a slice of `array` with elements taken from the end. Elements are
  23385. * taken until `predicate` returns falsey. The predicate is invoked with
  23386. * three arguments: (value, index, array).
  23387. *
  23388. * @static
  23389. * @memberOf _
  23390. * @since 3.0.0
  23391. * @category Array
  23392. * @param {Array} array The array to query.
  23393. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23394. * @returns {Array} Returns the slice of `array`.
  23395. * @example
  23396. *
  23397. * var users = [
  23398. * { 'user': 'barney', 'active': true },
  23399. * { 'user': 'fred', 'active': false },
  23400. * { 'user': 'pebbles', 'active': false }
  23401. * ];
  23402. *
  23403. * _.takeRightWhile(users, function(o) { return !o.active; });
  23404. * // => objects for ['fred', 'pebbles']
  23405. *
  23406. * // The `_.matches` iteratee shorthand.
  23407. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
  23408. * // => objects for ['pebbles']
  23409. *
  23410. * // The `_.matchesProperty` iteratee shorthand.
  23411. * _.takeRightWhile(users, ['active', false]);
  23412. * // => objects for ['fred', 'pebbles']
  23413. *
  23414. * // The `_.property` iteratee shorthand.
  23415. * _.takeRightWhile(users, 'active');
  23416. * // => []
  23417. */
  23418. function takeRightWhile(array, predicate) {
  23419. return (array && array.length)
  23420. ? baseWhile(array, getIteratee(predicate, 3), false, true)
  23421. : [];
  23422. }
  23423. /**
  23424. * Creates a slice of `array` with elements taken from the beginning. Elements
  23425. * are taken until `predicate` returns falsey. The predicate is invoked with
  23426. * three arguments: (value, index, array).
  23427. *
  23428. * @static
  23429. * @memberOf _
  23430. * @since 3.0.0
  23431. * @category Array
  23432. * @param {Array} array The array to query.
  23433. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  23434. * @returns {Array} Returns the slice of `array`.
  23435. * @example
  23436. *
  23437. * var users = [
  23438. * { 'user': 'barney', 'active': false },
  23439. * { 'user': 'fred', 'active': false },
  23440. * { 'user': 'pebbles', 'active': true }
  23441. * ];
  23442. *
  23443. * _.takeWhile(users, function(o) { return !o.active; });
  23444. * // => objects for ['barney', 'fred']
  23445. *
  23446. * // The `_.matches` iteratee shorthand.
  23447. * _.takeWhile(users, { 'user': 'barney', 'active': false });
  23448. * // => objects for ['barney']
  23449. *
  23450. * // The `_.matchesProperty` iteratee shorthand.
  23451. * _.takeWhile(users, ['active', false]);
  23452. * // => objects for ['barney', 'fred']
  23453. *
  23454. * // The `_.property` iteratee shorthand.
  23455. * _.takeWhile(users, 'active');
  23456. * // => []
  23457. */
  23458. function takeWhile(array, predicate) {
  23459. return (array && array.length)
  23460. ? baseWhile(array, getIteratee(predicate, 3))
  23461. : [];
  23462. }
  23463. /**
  23464. * Creates an array of unique values, in order, from all given arrays using
  23465. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23466. * for equality comparisons.
  23467. *
  23468. * @static
  23469. * @memberOf _
  23470. * @since 0.1.0
  23471. * @category Array
  23472. * @param {...Array} [arrays] The arrays to inspect.
  23473. * @returns {Array} Returns the new array of combined values.
  23474. * @example
  23475. *
  23476. * _.union([2], [1, 2]);
  23477. * // => [2, 1]
  23478. */
  23479. var union = baseRest(function(arrays) {
  23480. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  23481. });
  23482. /**
  23483. * This method is like `_.union` except that it accepts `iteratee` which is
  23484. * invoked for each element of each `arrays` to generate the criterion by
  23485. * which uniqueness is computed. Result values are chosen from the first
  23486. * array in which the value occurs. The iteratee is invoked with one argument:
  23487. * (value).
  23488. *
  23489. * @static
  23490. * @memberOf _
  23491. * @since 4.0.0
  23492. * @category Array
  23493. * @param {...Array} [arrays] The arrays to inspect.
  23494. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23495. * @returns {Array} Returns the new array of combined values.
  23496. * @example
  23497. *
  23498. * _.unionBy([2.1], [1.2, 2.3], Math.floor);
  23499. * // => [2.1, 1.2]
  23500. *
  23501. * // The `_.property` iteratee shorthand.
  23502. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23503. * // => [{ 'x': 1 }, { 'x': 2 }]
  23504. */
  23505. var unionBy = baseRest(function(arrays) {
  23506. var iteratee = last(arrays);
  23507. if (isArrayLikeObject(iteratee)) {
  23508. iteratee = undefined;
  23509. }
  23510. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
  23511. });
  23512. /**
  23513. * This method is like `_.union` except that it accepts `comparator` which
  23514. * is invoked to compare elements of `arrays`. Result values are chosen from
  23515. * the first array in which the value occurs. The comparator is invoked
  23516. * with two arguments: (arrVal, othVal).
  23517. *
  23518. * @static
  23519. * @memberOf _
  23520. * @since 4.0.0
  23521. * @category Array
  23522. * @param {...Array} [arrays] The arrays to inspect.
  23523. * @param {Function} [comparator] The comparator invoked per element.
  23524. * @returns {Array} Returns the new array of combined values.
  23525. * @example
  23526. *
  23527. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23528. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23529. *
  23530. * _.unionWith(objects, others, _.isEqual);
  23531. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23532. */
  23533. var unionWith = baseRest(function(arrays) {
  23534. var comparator = last(arrays);
  23535. comparator = typeof comparator == 'function' ? comparator : undefined;
  23536. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
  23537. });
  23538. /**
  23539. * Creates a duplicate-free version of an array, using
  23540. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23541. * for equality comparisons, in which only the first occurrence of each element
  23542. * is kept. The order of result values is determined by the order they occur
  23543. * in the array.
  23544. *
  23545. * @static
  23546. * @memberOf _
  23547. * @since 0.1.0
  23548. * @category Array
  23549. * @param {Array} array The array to inspect.
  23550. * @returns {Array} Returns the new duplicate free array.
  23551. * @example
  23552. *
  23553. * _.uniq([2, 1, 2]);
  23554. * // => [2, 1]
  23555. */
  23556. function uniq(array) {
  23557. return (array && array.length) ? baseUniq(array) : [];
  23558. }
  23559. /**
  23560. * This method is like `_.uniq` except that it accepts `iteratee` which is
  23561. * invoked for each element in `array` to generate the criterion by which
  23562. * uniqueness is computed. The order of result values is determined by the
  23563. * order they occur in the array. The iteratee is invoked with one argument:
  23564. * (value).
  23565. *
  23566. * @static
  23567. * @memberOf _
  23568. * @since 4.0.0
  23569. * @category Array
  23570. * @param {Array} array The array to inspect.
  23571. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23572. * @returns {Array} Returns the new duplicate free array.
  23573. * @example
  23574. *
  23575. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  23576. * // => [2.1, 1.2]
  23577. *
  23578. * // The `_.property` iteratee shorthand.
  23579. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  23580. * // => [{ 'x': 1 }, { 'x': 2 }]
  23581. */
  23582. function uniqBy(array, iteratee) {
  23583. return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
  23584. }
  23585. /**
  23586. * This method is like `_.uniq` except that it accepts `comparator` which
  23587. * is invoked to compare elements of `array`. The order of result values is
  23588. * determined by the order they occur in the array.The comparator is invoked
  23589. * with two arguments: (arrVal, othVal).
  23590. *
  23591. * @static
  23592. * @memberOf _
  23593. * @since 4.0.0
  23594. * @category Array
  23595. * @param {Array} array The array to inspect.
  23596. * @param {Function} [comparator] The comparator invoked per element.
  23597. * @returns {Array} Returns the new duplicate free array.
  23598. * @example
  23599. *
  23600. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23601. *
  23602. * _.uniqWith(objects, _.isEqual);
  23603. * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
  23604. */
  23605. function uniqWith(array, comparator) {
  23606. comparator = typeof comparator == 'function' ? comparator : undefined;
  23607. return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
  23608. }
  23609. /**
  23610. * This method is like `_.zip` except that it accepts an array of grouped
  23611. * elements and creates an array regrouping the elements to their pre-zip
  23612. * configuration.
  23613. *
  23614. * @static
  23615. * @memberOf _
  23616. * @since 1.2.0
  23617. * @category Array
  23618. * @param {Array} array The array of grouped elements to process.
  23619. * @returns {Array} Returns the new array of regrouped elements.
  23620. * @example
  23621. *
  23622. * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
  23623. * // => [['a', 1, true], ['b', 2, false]]
  23624. *
  23625. * _.unzip(zipped);
  23626. * // => [['a', 'b'], [1, 2], [true, false]]
  23627. */
  23628. function unzip(array) {
  23629. if (!(array && array.length)) {
  23630. return [];
  23631. }
  23632. var length = 0;
  23633. array = arrayFilter(array, function(group) {
  23634. if (isArrayLikeObject(group)) {
  23635. length = nativeMax(group.length, length);
  23636. return true;
  23637. }
  23638. });
  23639. return baseTimes(length, function(index) {
  23640. return arrayMap(array, baseProperty(index));
  23641. });
  23642. }
  23643. /**
  23644. * This method is like `_.unzip` except that it accepts `iteratee` to specify
  23645. * how regrouped values should be combined. The iteratee is invoked with the
  23646. * elements of each group: (...group).
  23647. *
  23648. * @static
  23649. * @memberOf _
  23650. * @since 3.8.0
  23651. * @category Array
  23652. * @param {Array} array The array of grouped elements to process.
  23653. * @param {Function} [iteratee=_.identity] The function to combine
  23654. * regrouped values.
  23655. * @returns {Array} Returns the new array of regrouped elements.
  23656. * @example
  23657. *
  23658. * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
  23659. * // => [[1, 10, 100], [2, 20, 200]]
  23660. *
  23661. * _.unzipWith(zipped, _.add);
  23662. * // => [3, 30, 300]
  23663. */
  23664. function unzipWith(array, iteratee) {
  23665. if (!(array && array.length)) {
  23666. return [];
  23667. }
  23668. var result = unzip(array);
  23669. if (iteratee == null) {
  23670. return result;
  23671. }
  23672. return arrayMap(result, function(group) {
  23673. return apply(iteratee, undefined, group);
  23674. });
  23675. }
  23676. /**
  23677. * Creates an array excluding all given values using
  23678. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23679. * for equality comparisons.
  23680. *
  23681. * **Note:** Unlike `_.pull`, this method returns a new array.
  23682. *
  23683. * @static
  23684. * @memberOf _
  23685. * @since 0.1.0
  23686. * @category Array
  23687. * @param {Array} array The array to inspect.
  23688. * @param {...*} [values] The values to exclude.
  23689. * @returns {Array} Returns the new array of filtered values.
  23690. * @see _.difference, _.xor
  23691. * @example
  23692. *
  23693. * _.without([2, 1, 2, 3], 1, 2);
  23694. * // => [3]
  23695. */
  23696. var without = baseRest(function(array, values) {
  23697. return isArrayLikeObject(array)
  23698. ? baseDifference(array, values)
  23699. : [];
  23700. });
  23701. /**
  23702. * Creates an array of unique values that is the
  23703. * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
  23704. * of the given arrays. The order of result values is determined by the order
  23705. * they occur in the arrays.
  23706. *
  23707. * @static
  23708. * @memberOf _
  23709. * @since 2.4.0
  23710. * @category Array
  23711. * @param {...Array} [arrays] The arrays to inspect.
  23712. * @returns {Array} Returns the new array of filtered values.
  23713. * @see _.difference, _.without
  23714. * @example
  23715. *
  23716. * _.xor([2, 1], [2, 3]);
  23717. * // => [1, 3]
  23718. */
  23719. var xor = baseRest(function(arrays) {
  23720. return baseXor(arrayFilter(arrays, isArrayLikeObject));
  23721. });
  23722. /**
  23723. * This method is like `_.xor` except that it accepts `iteratee` which is
  23724. * invoked for each element of each `arrays` to generate the criterion by
  23725. * which by which they're compared. The order of result values is determined
  23726. * by the order they occur in the arrays. The iteratee is invoked with one
  23727. * argument: (value).
  23728. *
  23729. * @static
  23730. * @memberOf _
  23731. * @since 4.0.0
  23732. * @category Array
  23733. * @param {...Array} [arrays] The arrays to inspect.
  23734. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  23735. * @returns {Array} Returns the new array of filtered values.
  23736. * @example
  23737. *
  23738. * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
  23739. * // => [1.2, 3.4]
  23740. *
  23741. * // The `_.property` iteratee shorthand.
  23742. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
  23743. * // => [{ 'x': 2 }]
  23744. */
  23745. var xorBy = baseRest(function(arrays) {
  23746. var iteratee = last(arrays);
  23747. if (isArrayLikeObject(iteratee)) {
  23748. iteratee = undefined;
  23749. }
  23750. return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
  23751. });
  23752. /**
  23753. * This method is like `_.xor` except that it accepts `comparator` which is
  23754. * invoked to compare elements of `arrays`. The order of result values is
  23755. * determined by the order they occur in the arrays. The comparator is invoked
  23756. * with two arguments: (arrVal, othVal).
  23757. *
  23758. * @static
  23759. * @memberOf _
  23760. * @since 4.0.0
  23761. * @category Array
  23762. * @param {...Array} [arrays] The arrays to inspect.
  23763. * @param {Function} [comparator] The comparator invoked per element.
  23764. * @returns {Array} Returns the new array of filtered values.
  23765. * @example
  23766. *
  23767. * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
  23768. * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
  23769. *
  23770. * _.xorWith(objects, others, _.isEqual);
  23771. * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
  23772. */
  23773. var xorWith = baseRest(function(arrays) {
  23774. var comparator = last(arrays);
  23775. comparator = typeof comparator == 'function' ? comparator : undefined;
  23776. return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
  23777. });
  23778. /**
  23779. * Creates an array of grouped elements, the first of which contains the
  23780. * first elements of the given arrays, the second of which contains the
  23781. * second elements of the given arrays, and so on.
  23782. *
  23783. * @static
  23784. * @memberOf _
  23785. * @since 0.1.0
  23786. * @category Array
  23787. * @param {...Array} [arrays] The arrays to process.
  23788. * @returns {Array} Returns the new array of grouped elements.
  23789. * @example
  23790. *
  23791. * _.zip(['a', 'b'], [1, 2], [true, false]);
  23792. * // => [['a', 1, true], ['b', 2, false]]
  23793. */
  23794. var zip = baseRest(unzip);
  23795. /**
  23796. * This method is like `_.fromPairs` except that it accepts two arrays,
  23797. * one of property identifiers and one of corresponding values.
  23798. *
  23799. * @static
  23800. * @memberOf _
  23801. * @since 0.4.0
  23802. * @category Array
  23803. * @param {Array} [props=[]] The property identifiers.
  23804. * @param {Array} [values=[]] The property values.
  23805. * @returns {Object} Returns the new object.
  23806. * @example
  23807. *
  23808. * _.zipObject(['a', 'b'], [1, 2]);
  23809. * // => { 'a': 1, 'b': 2 }
  23810. */
  23811. function zipObject(props, values) {
  23812. return baseZipObject(props || [], values || [], assignValue);
  23813. }
  23814. /**
  23815. * This method is like `_.zipObject` except that it supports property paths.
  23816. *
  23817. * @static
  23818. * @memberOf _
  23819. * @since 4.1.0
  23820. * @category Array
  23821. * @param {Array} [props=[]] The property identifiers.
  23822. * @param {Array} [values=[]] The property values.
  23823. * @returns {Object} Returns the new object.
  23824. * @example
  23825. *
  23826. * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
  23827. * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
  23828. */
  23829. function zipObjectDeep(props, values) {
  23830. return baseZipObject(props || [], values || [], baseSet);
  23831. }
  23832. /**
  23833. * This method is like `_.zip` except that it accepts `iteratee` to specify
  23834. * how grouped values should be combined. The iteratee is invoked with the
  23835. * elements of each group: (...group).
  23836. *
  23837. * @static
  23838. * @memberOf _
  23839. * @since 3.8.0
  23840. * @category Array
  23841. * @param {...Array} [arrays] The arrays to process.
  23842. * @param {Function} [iteratee=_.identity] The function to combine
  23843. * grouped values.
  23844. * @returns {Array} Returns the new array of grouped elements.
  23845. * @example
  23846. *
  23847. * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
  23848. * return a + b + c;
  23849. * });
  23850. * // => [111, 222]
  23851. */
  23852. var zipWith = baseRest(function(arrays) {
  23853. var length = arrays.length,
  23854. iteratee = length > 1 ? arrays[length - 1] : undefined;
  23855. iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
  23856. return unzipWith(arrays, iteratee);
  23857. });
  23858. /*------------------------------------------------------------------------*/
  23859. /**
  23860. * Creates a `lodash` wrapper instance that wraps `value` with explicit method
  23861. * chain sequences enabled. The result of such sequences must be unwrapped
  23862. * with `_#value`.
  23863. *
  23864. * @static
  23865. * @memberOf _
  23866. * @since 1.3.0
  23867. * @category Seq
  23868. * @param {*} value The value to wrap.
  23869. * @returns {Object} Returns the new `lodash` wrapper instance.
  23870. * @example
  23871. *
  23872. * var users = [
  23873. * { 'user': 'barney', 'age': 36 },
  23874. * { 'user': 'fred', 'age': 40 },
  23875. * { 'user': 'pebbles', 'age': 1 }
  23876. * ];
  23877. *
  23878. * var youngest = _
  23879. * .chain(users)
  23880. * .sortBy('age')
  23881. * .map(function(o) {
  23882. * return o.user + ' is ' + o.age;
  23883. * })
  23884. * .head()
  23885. * .value();
  23886. * // => 'pebbles is 1'
  23887. */
  23888. function chain(value) {
  23889. var result = lodash(value);
  23890. result.__chain__ = true;
  23891. return result;
  23892. }
  23893. /**
  23894. * This method invokes `interceptor` and returns `value`. The interceptor
  23895. * is invoked with one argument; (value). The purpose of this method is to
  23896. * "tap into" a method chain sequence in order to modify intermediate results.
  23897. *
  23898. * @static
  23899. * @memberOf _
  23900. * @since 0.1.0
  23901. * @category Seq
  23902. * @param {*} value The value to provide to `interceptor`.
  23903. * @param {Function} interceptor The function to invoke.
  23904. * @returns {*} Returns `value`.
  23905. * @example
  23906. *
  23907. * _([1, 2, 3])
  23908. * .tap(function(array) {
  23909. * // Mutate input array.
  23910. * array.pop();
  23911. * })
  23912. * .reverse()
  23913. * .value();
  23914. * // => [2, 1]
  23915. */
  23916. function tap(value, interceptor) {
  23917. interceptor(value);
  23918. return value;
  23919. }
  23920. /**
  23921. * This method is like `_.tap` except that it returns the result of `interceptor`.
  23922. * The purpose of this method is to "pass thru" values replacing intermediate
  23923. * results in a method chain sequence.
  23924. *
  23925. * @static
  23926. * @memberOf _
  23927. * @since 3.0.0
  23928. * @category Seq
  23929. * @param {*} value The value to provide to `interceptor`.
  23930. * @param {Function} interceptor The function to invoke.
  23931. * @returns {*} Returns the result of `interceptor`.
  23932. * @example
  23933. *
  23934. * _(' abc ')
  23935. * .chain()
  23936. * .trim()
  23937. * .thru(function(value) {
  23938. * return [value];
  23939. * })
  23940. * .value();
  23941. * // => ['abc']
  23942. */
  23943. function thru(value, interceptor) {
  23944. return interceptor(value);
  23945. }
  23946. /**
  23947. * This method is the wrapper version of `_.at`.
  23948. *
  23949. * @name at
  23950. * @memberOf _
  23951. * @since 1.0.0
  23952. * @category Seq
  23953. * @param {...(string|string[])} [paths] The property paths to pick.
  23954. * @returns {Object} Returns the new `lodash` wrapper instance.
  23955. * @example
  23956. *
  23957. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  23958. *
  23959. * _(object).at(['a[0].b.c', 'a[1]']).value();
  23960. * // => [3, 4]
  23961. */
  23962. var wrapperAt = flatRest(function(paths) {
  23963. var length = paths.length,
  23964. start = length ? paths[0] : 0,
  23965. value = this.__wrapped__,
  23966. interceptor = function(object) { return baseAt(object, paths); };
  23967. if (length > 1 || this.__actions__.length ||
  23968. !(value instanceof LazyWrapper) || !isIndex(start)) {
  23969. return this.thru(interceptor);
  23970. }
  23971. value = value.slice(start, +start + (length ? 1 : 0));
  23972. value.__actions__.push({
  23973. 'func': thru,
  23974. 'args': [interceptor],
  23975. 'thisArg': undefined
  23976. });
  23977. return new LodashWrapper(value, this.__chain__).thru(function(array) {
  23978. if (length && !array.length) {
  23979. array.push(undefined);
  23980. }
  23981. return array;
  23982. });
  23983. });
  23984. /**
  23985. * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
  23986. *
  23987. * @name chain
  23988. * @memberOf _
  23989. * @since 0.1.0
  23990. * @category Seq
  23991. * @returns {Object} Returns the new `lodash` wrapper instance.
  23992. * @example
  23993. *
  23994. * var users = [
  23995. * { 'user': 'barney', 'age': 36 },
  23996. * { 'user': 'fred', 'age': 40 }
  23997. * ];
  23998. *
  23999. * // A sequence without explicit chaining.
  24000. * _(users).head();
  24001. * // => { 'user': 'barney', 'age': 36 }
  24002. *
  24003. * // A sequence with explicit chaining.
  24004. * _(users)
  24005. * .chain()
  24006. * .head()
  24007. * .pick('user')
  24008. * .value();
  24009. * // => { 'user': 'barney' }
  24010. */
  24011. function wrapperChain() {
  24012. return chain(this);
  24013. }
  24014. /**
  24015. * Executes the chain sequence and returns the wrapped result.
  24016. *
  24017. * @name commit
  24018. * @memberOf _
  24019. * @since 3.2.0
  24020. * @category Seq
  24021. * @returns {Object} Returns the new `lodash` wrapper instance.
  24022. * @example
  24023. *
  24024. * var array = [1, 2];
  24025. * var wrapped = _(array).push(3);
  24026. *
  24027. * console.log(array);
  24028. * // => [1, 2]
  24029. *
  24030. * wrapped = wrapped.commit();
  24031. * console.log(array);
  24032. * // => [1, 2, 3]
  24033. *
  24034. * wrapped.last();
  24035. * // => 3
  24036. *
  24037. * console.log(array);
  24038. * // => [1, 2, 3]
  24039. */
  24040. function wrapperCommit() {
  24041. return new LodashWrapper(this.value(), this.__chain__);
  24042. }
  24043. /**
  24044. * Gets the next value on a wrapped object following the
  24045. * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
  24046. *
  24047. * @name next
  24048. * @memberOf _
  24049. * @since 4.0.0
  24050. * @category Seq
  24051. * @returns {Object} Returns the next iterator value.
  24052. * @example
  24053. *
  24054. * var wrapped = _([1, 2]);
  24055. *
  24056. * wrapped.next();
  24057. * // => { 'done': false, 'value': 1 }
  24058. *
  24059. * wrapped.next();
  24060. * // => { 'done': false, 'value': 2 }
  24061. *
  24062. * wrapped.next();
  24063. * // => { 'done': true, 'value': undefined }
  24064. */
  24065. function wrapperNext() {
  24066. if (this.__values__ === undefined) {
  24067. this.__values__ = toArray(this.value());
  24068. }
  24069. var done = this.__index__ >= this.__values__.length,
  24070. value = done ? undefined : this.__values__[this.__index__++];
  24071. return { 'done': done, 'value': value };
  24072. }
  24073. /**
  24074. * Enables the wrapper to be iterable.
  24075. *
  24076. * @name Symbol.iterator
  24077. * @memberOf _
  24078. * @since 4.0.0
  24079. * @category Seq
  24080. * @returns {Object} Returns the wrapper object.
  24081. * @example
  24082. *
  24083. * var wrapped = _([1, 2]);
  24084. *
  24085. * wrapped[Symbol.iterator]() === wrapped;
  24086. * // => true
  24087. *
  24088. * Array.from(wrapped);
  24089. * // => [1, 2]
  24090. */
  24091. function wrapperToIterator() {
  24092. return this;
  24093. }
  24094. /**
  24095. * Creates a clone of the chain sequence planting `value` as the wrapped value.
  24096. *
  24097. * @name plant
  24098. * @memberOf _
  24099. * @since 3.2.0
  24100. * @category Seq
  24101. * @param {*} value The value to plant.
  24102. * @returns {Object} Returns the new `lodash` wrapper instance.
  24103. * @example
  24104. *
  24105. * function square(n) {
  24106. * return n * n;
  24107. * }
  24108. *
  24109. * var wrapped = _([1, 2]).map(square);
  24110. * var other = wrapped.plant([3, 4]);
  24111. *
  24112. * other.value();
  24113. * // => [9, 16]
  24114. *
  24115. * wrapped.value();
  24116. * // => [1, 4]
  24117. */
  24118. function wrapperPlant(value) {
  24119. var result,
  24120. parent = this;
  24121. while (parent instanceof baseLodash) {
  24122. var clone = wrapperClone(parent);
  24123. clone.__index__ = 0;
  24124. clone.__values__ = undefined;
  24125. if (result) {
  24126. previous.__wrapped__ = clone;
  24127. } else {
  24128. result = clone;
  24129. }
  24130. var previous = clone;
  24131. parent = parent.__wrapped__;
  24132. }
  24133. previous.__wrapped__ = value;
  24134. return result;
  24135. }
  24136. /**
  24137. * This method is the wrapper version of `_.reverse`.
  24138. *
  24139. * **Note:** This method mutates the wrapped array.
  24140. *
  24141. * @name reverse
  24142. * @memberOf _
  24143. * @since 0.1.0
  24144. * @category Seq
  24145. * @returns {Object} Returns the new `lodash` wrapper instance.
  24146. * @example
  24147. *
  24148. * var array = [1, 2, 3];
  24149. *
  24150. * _(array).reverse().value()
  24151. * // => [3, 2, 1]
  24152. *
  24153. * console.log(array);
  24154. * // => [3, 2, 1]
  24155. */
  24156. function wrapperReverse() {
  24157. var value = this.__wrapped__;
  24158. if (value instanceof LazyWrapper) {
  24159. var wrapped = value;
  24160. if (this.__actions__.length) {
  24161. wrapped = new LazyWrapper(this);
  24162. }
  24163. wrapped = wrapped.reverse();
  24164. wrapped.__actions__.push({
  24165. 'func': thru,
  24166. 'args': [reverse],
  24167. 'thisArg': undefined
  24168. });
  24169. return new LodashWrapper(wrapped, this.__chain__);
  24170. }
  24171. return this.thru(reverse);
  24172. }
  24173. /**
  24174. * Executes the chain sequence to resolve the unwrapped value.
  24175. *
  24176. * @name value
  24177. * @memberOf _
  24178. * @since 0.1.0
  24179. * @alias toJSON, valueOf
  24180. * @category Seq
  24181. * @returns {*} Returns the resolved unwrapped value.
  24182. * @example
  24183. *
  24184. * _([1, 2, 3]).value();
  24185. * // => [1, 2, 3]
  24186. */
  24187. function wrapperValue() {
  24188. return baseWrapperValue(this.__wrapped__, this.__actions__);
  24189. }
  24190. /*------------------------------------------------------------------------*/
  24191. /**
  24192. * Creates an object composed of keys generated from the results of running
  24193. * each element of `collection` thru `iteratee`. The corresponding value of
  24194. * each key is the number of times the key was returned by `iteratee`. The
  24195. * iteratee is invoked with one argument: (value).
  24196. *
  24197. * @static
  24198. * @memberOf _
  24199. * @since 0.5.0
  24200. * @category Collection
  24201. * @param {Array|Object} collection The collection to iterate over.
  24202. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24203. * @returns {Object} Returns the composed aggregate object.
  24204. * @example
  24205. *
  24206. * _.countBy([6.1, 4.2, 6.3], Math.floor);
  24207. * // => { '4': 1, '6': 2 }
  24208. *
  24209. * // The `_.property` iteratee shorthand.
  24210. * _.countBy(['one', 'two', 'three'], 'length');
  24211. * // => { '3': 2, '5': 1 }
  24212. */
  24213. var countBy = createAggregator(function(result, value, key) {
  24214. if (hasOwnProperty.call(result, key)) {
  24215. ++result[key];
  24216. } else {
  24217. baseAssignValue(result, key, 1);
  24218. }
  24219. });
  24220. /**
  24221. * Checks if `predicate` returns truthy for **all** elements of `collection`.
  24222. * Iteration is stopped once `predicate` returns falsey. The predicate is
  24223. * invoked with three arguments: (value, index|key, collection).
  24224. *
  24225. * **Note:** This method returns `true` for
  24226. * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
  24227. * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
  24228. * elements of empty collections.
  24229. *
  24230. * @static
  24231. * @memberOf _
  24232. * @since 0.1.0
  24233. * @category Collection
  24234. * @param {Array|Object} collection The collection to iterate over.
  24235. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24236. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24237. * @returns {boolean} Returns `true` if all elements pass the predicate check,
  24238. * else `false`.
  24239. * @example
  24240. *
  24241. * _.every([true, 1, null, 'yes'], Boolean);
  24242. * // => false
  24243. *
  24244. * var users = [
  24245. * { 'user': 'barney', 'age': 36, 'active': false },
  24246. * { 'user': 'fred', 'age': 40, 'active': false }
  24247. * ];
  24248. *
  24249. * // The `_.matches` iteratee shorthand.
  24250. * _.every(users, { 'user': 'barney', 'active': false });
  24251. * // => false
  24252. *
  24253. * // The `_.matchesProperty` iteratee shorthand.
  24254. * _.every(users, ['active', false]);
  24255. * // => true
  24256. *
  24257. * // The `_.property` iteratee shorthand.
  24258. * _.every(users, 'active');
  24259. * // => false
  24260. */
  24261. function every(collection, predicate, guard) {
  24262. var func = isArray(collection) ? arrayEvery : baseEvery;
  24263. if (guard && isIterateeCall(collection, predicate, guard)) {
  24264. predicate = undefined;
  24265. }
  24266. return func(collection, getIteratee(predicate, 3));
  24267. }
  24268. /**
  24269. * Iterates over elements of `collection`, returning an array of all elements
  24270. * `predicate` returns truthy for. The predicate is invoked with three
  24271. * arguments: (value, index|key, collection).
  24272. *
  24273. * **Note:** Unlike `_.remove`, this method returns a new array.
  24274. *
  24275. * @static
  24276. * @memberOf _
  24277. * @since 0.1.0
  24278. * @category Collection
  24279. * @param {Array|Object} collection The collection to iterate over.
  24280. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24281. * @returns {Array} Returns the new filtered array.
  24282. * @see _.reject
  24283. * @example
  24284. *
  24285. * var users = [
  24286. * { 'user': 'barney', 'age': 36, 'active': true },
  24287. * { 'user': 'fred', 'age': 40, 'active': false }
  24288. * ];
  24289. *
  24290. * _.filter(users, function(o) { return !o.active; });
  24291. * // => objects for ['fred']
  24292. *
  24293. * // The `_.matches` iteratee shorthand.
  24294. * _.filter(users, { 'age': 36, 'active': true });
  24295. * // => objects for ['barney']
  24296. *
  24297. * // The `_.matchesProperty` iteratee shorthand.
  24298. * _.filter(users, ['active', false]);
  24299. * // => objects for ['fred']
  24300. *
  24301. * // The `_.property` iteratee shorthand.
  24302. * _.filter(users, 'active');
  24303. * // => objects for ['barney']
  24304. */
  24305. function filter(collection, predicate) {
  24306. var func = isArray(collection) ? arrayFilter : baseFilter;
  24307. return func(collection, getIteratee(predicate, 3));
  24308. }
  24309. /**
  24310. * Iterates over elements of `collection`, returning the first element
  24311. * `predicate` returns truthy for. The predicate is invoked with three
  24312. * arguments: (value, index|key, collection).
  24313. *
  24314. * @static
  24315. * @memberOf _
  24316. * @since 0.1.0
  24317. * @category Collection
  24318. * @param {Array|Object} collection The collection to inspect.
  24319. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24320. * @param {number} [fromIndex=0] The index to search from.
  24321. * @returns {*} Returns the matched element, else `undefined`.
  24322. * @example
  24323. *
  24324. * var users = [
  24325. * { 'user': 'barney', 'age': 36, 'active': true },
  24326. * { 'user': 'fred', 'age': 40, 'active': false },
  24327. * { 'user': 'pebbles', 'age': 1, 'active': true }
  24328. * ];
  24329. *
  24330. * _.find(users, function(o) { return o.age < 40; });
  24331. * // => object for 'barney'
  24332. *
  24333. * // The `_.matches` iteratee shorthand.
  24334. * _.find(users, { 'age': 1, 'active': true });
  24335. * // => object for 'pebbles'
  24336. *
  24337. * // The `_.matchesProperty` iteratee shorthand.
  24338. * _.find(users, ['active', false]);
  24339. * // => object for 'fred'
  24340. *
  24341. * // The `_.property` iteratee shorthand.
  24342. * _.find(users, 'active');
  24343. * // => object for 'barney'
  24344. */
  24345. var find = createFind(findIndex);
  24346. /**
  24347. * This method is like `_.find` except that it iterates over elements of
  24348. * `collection` from right to left.
  24349. *
  24350. * @static
  24351. * @memberOf _
  24352. * @since 2.0.0
  24353. * @category Collection
  24354. * @param {Array|Object} collection The collection to inspect.
  24355. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24356. * @param {number} [fromIndex=collection.length-1] The index to search from.
  24357. * @returns {*} Returns the matched element, else `undefined`.
  24358. * @example
  24359. *
  24360. * _.findLast([1, 2, 3, 4], function(n) {
  24361. * return n % 2 == 1;
  24362. * });
  24363. * // => 3
  24364. */
  24365. var findLast = createFind(findLastIndex);
  24366. /**
  24367. * Creates a flattened array of values by running each element in `collection`
  24368. * thru `iteratee` and flattening the mapped results. The iteratee is invoked
  24369. * with three arguments: (value, index|key, collection).
  24370. *
  24371. * @static
  24372. * @memberOf _
  24373. * @since 4.0.0
  24374. * @category Collection
  24375. * @param {Array|Object} collection The collection to iterate over.
  24376. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24377. * @returns {Array} Returns the new flattened array.
  24378. * @example
  24379. *
  24380. * function duplicate(n) {
  24381. * return [n, n];
  24382. * }
  24383. *
  24384. * _.flatMap([1, 2], duplicate);
  24385. * // => [1, 1, 2, 2]
  24386. */
  24387. function flatMap(collection, iteratee) {
  24388. return baseFlatten(map(collection, iteratee), 1);
  24389. }
  24390. /**
  24391. * This method is like `_.flatMap` except that it recursively flattens the
  24392. * mapped results.
  24393. *
  24394. * @static
  24395. * @memberOf _
  24396. * @since 4.7.0
  24397. * @category Collection
  24398. * @param {Array|Object} collection The collection to iterate over.
  24399. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24400. * @returns {Array} Returns the new flattened array.
  24401. * @example
  24402. *
  24403. * function duplicate(n) {
  24404. * return [[[n, n]]];
  24405. * }
  24406. *
  24407. * _.flatMapDeep([1, 2], duplicate);
  24408. * // => [1, 1, 2, 2]
  24409. */
  24410. function flatMapDeep(collection, iteratee) {
  24411. return baseFlatten(map(collection, iteratee), INFINITY);
  24412. }
  24413. /**
  24414. * This method is like `_.flatMap` except that it recursively flattens the
  24415. * mapped results up to `depth` times.
  24416. *
  24417. * @static
  24418. * @memberOf _
  24419. * @since 4.7.0
  24420. * @category Collection
  24421. * @param {Array|Object} collection The collection to iterate over.
  24422. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24423. * @param {number} [depth=1] The maximum recursion depth.
  24424. * @returns {Array} Returns the new flattened array.
  24425. * @example
  24426. *
  24427. * function duplicate(n) {
  24428. * return [[[n, n]]];
  24429. * }
  24430. *
  24431. * _.flatMapDepth([1, 2], duplicate, 2);
  24432. * // => [[1, 1], [2, 2]]
  24433. */
  24434. function flatMapDepth(collection, iteratee, depth) {
  24435. depth = depth === undefined ? 1 : toInteger(depth);
  24436. return baseFlatten(map(collection, iteratee), depth);
  24437. }
  24438. /**
  24439. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  24440. * The iteratee is invoked with three arguments: (value, index|key, collection).
  24441. * Iteratee functions may exit iteration early by explicitly returning `false`.
  24442. *
  24443. * **Note:** As with other "Collections" methods, objects with a "length"
  24444. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  24445. * or `_.forOwn` for object iteration.
  24446. *
  24447. * @static
  24448. * @memberOf _
  24449. * @since 0.1.0
  24450. * @alias each
  24451. * @category Collection
  24452. * @param {Array|Object} collection The collection to iterate over.
  24453. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24454. * @returns {Array|Object} Returns `collection`.
  24455. * @see _.forEachRight
  24456. * @example
  24457. *
  24458. * _.forEach([1, 2], function(value) {
  24459. * console.log(value);
  24460. * });
  24461. * // => Logs `1` then `2`.
  24462. *
  24463. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  24464. * console.log(key);
  24465. * });
  24466. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  24467. */
  24468. function forEach(collection, iteratee) {
  24469. var func = isArray(collection) ? arrayEach : baseEach;
  24470. return func(collection, getIteratee(iteratee, 3));
  24471. }
  24472. /**
  24473. * This method is like `_.forEach` except that it iterates over elements of
  24474. * `collection` from right to left.
  24475. *
  24476. * @static
  24477. * @memberOf _
  24478. * @since 2.0.0
  24479. * @alias eachRight
  24480. * @category Collection
  24481. * @param {Array|Object} collection The collection to iterate over.
  24482. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24483. * @returns {Array|Object} Returns `collection`.
  24484. * @see _.forEach
  24485. * @example
  24486. *
  24487. * _.forEachRight([1, 2], function(value) {
  24488. * console.log(value);
  24489. * });
  24490. * // => Logs `2` then `1`.
  24491. */
  24492. function forEachRight(collection, iteratee) {
  24493. var func = isArray(collection) ? arrayEachRight : baseEachRight;
  24494. return func(collection, getIteratee(iteratee, 3));
  24495. }
  24496. /**
  24497. * Creates an object composed of keys generated from the results of running
  24498. * each element of `collection` thru `iteratee`. The order of grouped values
  24499. * is determined by the order they occur in `collection`. The corresponding
  24500. * value of each key is an array of elements responsible for generating the
  24501. * key. The iteratee is invoked with one argument: (value).
  24502. *
  24503. * @static
  24504. * @memberOf _
  24505. * @since 0.1.0
  24506. * @category Collection
  24507. * @param {Array|Object} collection The collection to iterate over.
  24508. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24509. * @returns {Object} Returns the composed aggregate object.
  24510. * @example
  24511. *
  24512. * _.groupBy([6.1, 4.2, 6.3], Math.floor);
  24513. * // => { '4': [4.2], '6': [6.1, 6.3] }
  24514. *
  24515. * // The `_.property` iteratee shorthand.
  24516. * _.groupBy(['one', 'two', 'three'], 'length');
  24517. * // => { '3': ['one', 'two'], '5': ['three'] }
  24518. */
  24519. var groupBy = createAggregator(function(result, value, key) {
  24520. if (hasOwnProperty.call(result, key)) {
  24521. result[key].push(value);
  24522. } else {
  24523. baseAssignValue(result, key, [value]);
  24524. }
  24525. });
  24526. /**
  24527. * Checks if `value` is in `collection`. If `collection` is a string, it's
  24528. * checked for a substring of `value`, otherwise
  24529. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  24530. * is used for equality comparisons. If `fromIndex` is negative, it's used as
  24531. * the offset from the end of `collection`.
  24532. *
  24533. * @static
  24534. * @memberOf _
  24535. * @since 0.1.0
  24536. * @category Collection
  24537. * @param {Array|Object|string} collection The collection to inspect.
  24538. * @param {*} value The value to search for.
  24539. * @param {number} [fromIndex=0] The index to search from.
  24540. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24541. * @returns {boolean} Returns `true` if `value` is found, else `false`.
  24542. * @example
  24543. *
  24544. * _.includes([1, 2, 3], 1);
  24545. * // => true
  24546. *
  24547. * _.includes([1, 2, 3], 1, 2);
  24548. * // => false
  24549. *
  24550. * _.includes({ 'a': 1, 'b': 2 }, 1);
  24551. * // => true
  24552. *
  24553. * _.includes('abcd', 'bc');
  24554. * // => true
  24555. */
  24556. function includes(collection, value, fromIndex, guard) {
  24557. collection = isArrayLike(collection) ? collection : values(collection);
  24558. fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
  24559. var length = collection.length;
  24560. if (fromIndex < 0) {
  24561. fromIndex = nativeMax(length + fromIndex, 0);
  24562. }
  24563. return isString(collection)
  24564. ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
  24565. : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
  24566. }
  24567. /**
  24568. * Invokes the method at `path` of each element in `collection`, returning
  24569. * an array of the results of each invoked method. Any additional arguments
  24570. * are provided to each invoked method. If `path` is a function, it's invoked
  24571. * for, and `this` bound to, each element in `collection`.
  24572. *
  24573. * @static
  24574. * @memberOf _
  24575. * @since 4.0.0
  24576. * @category Collection
  24577. * @param {Array|Object} collection The collection to iterate over.
  24578. * @param {Array|Function|string} path The path of the method to invoke or
  24579. * the function invoked per iteration.
  24580. * @param {...*} [args] The arguments to invoke each method with.
  24581. * @returns {Array} Returns the array of results.
  24582. * @example
  24583. *
  24584. * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
  24585. * // => [[1, 5, 7], [1, 2, 3]]
  24586. *
  24587. * _.invokeMap([123, 456], String.prototype.split, '');
  24588. * // => [['1', '2', '3'], ['4', '5', '6']]
  24589. */
  24590. var invokeMap = baseRest(function(collection, path, args) {
  24591. var index = -1,
  24592. isFunc = typeof path == 'function',
  24593. result = isArrayLike(collection) ? Array(collection.length) : [];
  24594. baseEach(collection, function(value) {
  24595. result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
  24596. });
  24597. return result;
  24598. });
  24599. /**
  24600. * Creates an object composed of keys generated from the results of running
  24601. * each element of `collection` thru `iteratee`. The corresponding value of
  24602. * each key is the last element responsible for generating the key. The
  24603. * iteratee is invoked with one argument: (value).
  24604. *
  24605. * @static
  24606. * @memberOf _
  24607. * @since 4.0.0
  24608. * @category Collection
  24609. * @param {Array|Object} collection The collection to iterate over.
  24610. * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
  24611. * @returns {Object} Returns the composed aggregate object.
  24612. * @example
  24613. *
  24614. * var array = [
  24615. * { 'dir': 'left', 'code': 97 },
  24616. * { 'dir': 'right', 'code': 100 }
  24617. * ];
  24618. *
  24619. * _.keyBy(array, function(o) {
  24620. * return String.fromCharCode(o.code);
  24621. * });
  24622. * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
  24623. *
  24624. * _.keyBy(array, 'dir');
  24625. * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
  24626. */
  24627. var keyBy = createAggregator(function(result, value, key) {
  24628. baseAssignValue(result, key, value);
  24629. });
  24630. /**
  24631. * Creates an array of values by running each element in `collection` thru
  24632. * `iteratee`. The iteratee is invoked with three arguments:
  24633. * (value, index|key, collection).
  24634. *
  24635. * Many lodash methods are guarded to work as iteratees for methods like
  24636. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  24637. *
  24638. * The guarded methods are:
  24639. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  24640. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  24641. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  24642. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  24643. *
  24644. * @static
  24645. * @memberOf _
  24646. * @since 0.1.0
  24647. * @category Collection
  24648. * @param {Array|Object} collection The collection to iterate over.
  24649. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24650. * @returns {Array} Returns the new mapped array.
  24651. * @example
  24652. *
  24653. * function square(n) {
  24654. * return n * n;
  24655. * }
  24656. *
  24657. * _.map([4, 8], square);
  24658. * // => [16, 64]
  24659. *
  24660. * _.map({ 'a': 4, 'b': 8 }, square);
  24661. * // => [16, 64] (iteration order is not guaranteed)
  24662. *
  24663. * var users = [
  24664. * { 'user': 'barney' },
  24665. * { 'user': 'fred' }
  24666. * ];
  24667. *
  24668. * // The `_.property` iteratee shorthand.
  24669. * _.map(users, 'user');
  24670. * // => ['barney', 'fred']
  24671. */
  24672. function map(collection, iteratee) {
  24673. var func = isArray(collection) ? arrayMap : baseMap;
  24674. return func(collection, getIteratee(iteratee, 3));
  24675. }
  24676. /**
  24677. * This method is like `_.sortBy` except that it allows specifying the sort
  24678. * orders of the iteratees to sort by. If `orders` is unspecified, all values
  24679. * are sorted in ascending order. Otherwise, specify an order of "desc" for
  24680. * descending or "asc" for ascending sort order of corresponding values.
  24681. *
  24682. * @static
  24683. * @memberOf _
  24684. * @since 4.0.0
  24685. * @category Collection
  24686. * @param {Array|Object} collection The collection to iterate over.
  24687. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
  24688. * The iteratees to sort by.
  24689. * @param {string[]} [orders] The sort orders of `iteratees`.
  24690. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
  24691. * @returns {Array} Returns the new sorted array.
  24692. * @example
  24693. *
  24694. * var users = [
  24695. * { 'user': 'fred', 'age': 48 },
  24696. * { 'user': 'barney', 'age': 34 },
  24697. * { 'user': 'fred', 'age': 40 },
  24698. * { 'user': 'barney', 'age': 36 }
  24699. * ];
  24700. *
  24701. * // Sort by `user` in ascending order and by `age` in descending order.
  24702. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
  24703. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  24704. */
  24705. function orderBy(collection, iteratees, orders, guard) {
  24706. if (collection == null) {
  24707. return [];
  24708. }
  24709. if (!isArray(iteratees)) {
  24710. iteratees = iteratees == null ? [] : [iteratees];
  24711. }
  24712. orders = guard ? undefined : orders;
  24713. if (!isArray(orders)) {
  24714. orders = orders == null ? [] : [orders];
  24715. }
  24716. return baseOrderBy(collection, iteratees, orders);
  24717. }
  24718. /**
  24719. * Creates an array of elements split into two groups, the first of which
  24720. * contains elements `predicate` returns truthy for, the second of which
  24721. * contains elements `predicate` returns falsey for. The predicate is
  24722. * invoked with one argument: (value).
  24723. *
  24724. * @static
  24725. * @memberOf _
  24726. * @since 3.0.0
  24727. * @category Collection
  24728. * @param {Array|Object} collection The collection to iterate over.
  24729. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24730. * @returns {Array} Returns the array of grouped elements.
  24731. * @example
  24732. *
  24733. * var users = [
  24734. * { 'user': 'barney', 'age': 36, 'active': false },
  24735. * { 'user': 'fred', 'age': 40, 'active': true },
  24736. * { 'user': 'pebbles', 'age': 1, 'active': false }
  24737. * ];
  24738. *
  24739. * _.partition(users, function(o) { return o.active; });
  24740. * // => objects for [['fred'], ['barney', 'pebbles']]
  24741. *
  24742. * // The `_.matches` iteratee shorthand.
  24743. * _.partition(users, { 'age': 1, 'active': false });
  24744. * // => objects for [['pebbles'], ['barney', 'fred']]
  24745. *
  24746. * // The `_.matchesProperty` iteratee shorthand.
  24747. * _.partition(users, ['active', false]);
  24748. * // => objects for [['barney', 'pebbles'], ['fred']]
  24749. *
  24750. * // The `_.property` iteratee shorthand.
  24751. * _.partition(users, 'active');
  24752. * // => objects for [['fred'], ['barney', 'pebbles']]
  24753. */
  24754. var partition = createAggregator(function(result, value, key) {
  24755. result[key ? 0 : 1].push(value);
  24756. }, function() { return [[], []]; });
  24757. /**
  24758. * Reduces `collection` to a value which is the accumulated result of running
  24759. * each element in `collection` thru `iteratee`, where each successive
  24760. * invocation is supplied the return value of the previous. If `accumulator`
  24761. * is not given, the first element of `collection` is used as the initial
  24762. * value. The iteratee is invoked with four arguments:
  24763. * (accumulator, value, index|key, collection).
  24764. *
  24765. * Many lodash methods are guarded to work as iteratees for methods like
  24766. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  24767. *
  24768. * The guarded methods are:
  24769. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  24770. * and `sortBy`
  24771. *
  24772. * @static
  24773. * @memberOf _
  24774. * @since 0.1.0
  24775. * @category Collection
  24776. * @param {Array|Object} collection The collection to iterate over.
  24777. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24778. * @param {*} [accumulator] The initial value.
  24779. * @returns {*} Returns the accumulated value.
  24780. * @see _.reduceRight
  24781. * @example
  24782. *
  24783. * _.reduce([1, 2], function(sum, n) {
  24784. * return sum + n;
  24785. * }, 0);
  24786. * // => 3
  24787. *
  24788. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  24789. * (result[value] || (result[value] = [])).push(key);
  24790. * return result;
  24791. * }, {});
  24792. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  24793. */
  24794. function reduce(collection, iteratee, accumulator) {
  24795. var func = isArray(collection) ? arrayReduce : baseReduce,
  24796. initAccum = arguments.length < 3;
  24797. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  24798. }
  24799. /**
  24800. * This method is like `_.reduce` except that it iterates over elements of
  24801. * `collection` from right to left.
  24802. *
  24803. * @static
  24804. * @memberOf _
  24805. * @since 0.1.0
  24806. * @category Collection
  24807. * @param {Array|Object} collection The collection to iterate over.
  24808. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  24809. * @param {*} [accumulator] The initial value.
  24810. * @returns {*} Returns the accumulated value.
  24811. * @see _.reduce
  24812. * @example
  24813. *
  24814. * var array = [[0, 1], [2, 3], [4, 5]];
  24815. *
  24816. * _.reduceRight(array, function(flattened, other) {
  24817. * return flattened.concat(other);
  24818. * }, []);
  24819. * // => [4, 5, 2, 3, 0, 1]
  24820. */
  24821. function reduceRight(collection, iteratee, accumulator) {
  24822. var func = isArray(collection) ? arrayReduceRight : baseReduce,
  24823. initAccum = arguments.length < 3;
  24824. return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
  24825. }
  24826. /**
  24827. * The opposite of `_.filter`; this method returns the elements of `collection`
  24828. * that `predicate` does **not** return truthy for.
  24829. *
  24830. * @static
  24831. * @memberOf _
  24832. * @since 0.1.0
  24833. * @category Collection
  24834. * @param {Array|Object} collection The collection to iterate over.
  24835. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24836. * @returns {Array} Returns the new filtered array.
  24837. * @see _.filter
  24838. * @example
  24839. *
  24840. * var users = [
  24841. * { 'user': 'barney', 'age': 36, 'active': false },
  24842. * { 'user': 'fred', 'age': 40, 'active': true }
  24843. * ];
  24844. *
  24845. * _.reject(users, function(o) { return !o.active; });
  24846. * // => objects for ['fred']
  24847. *
  24848. * // The `_.matches` iteratee shorthand.
  24849. * _.reject(users, { 'age': 40, 'active': true });
  24850. * // => objects for ['barney']
  24851. *
  24852. * // The `_.matchesProperty` iteratee shorthand.
  24853. * _.reject(users, ['active', false]);
  24854. * // => objects for ['fred']
  24855. *
  24856. * // The `_.property` iteratee shorthand.
  24857. * _.reject(users, 'active');
  24858. * // => objects for ['barney']
  24859. */
  24860. function reject(collection, predicate) {
  24861. var func = isArray(collection) ? arrayFilter : baseFilter;
  24862. return func(collection, negate(getIteratee(predicate, 3)));
  24863. }
  24864. /**
  24865. * Gets a random element from `collection`.
  24866. *
  24867. * @static
  24868. * @memberOf _
  24869. * @since 2.0.0
  24870. * @category Collection
  24871. * @param {Array|Object} collection The collection to sample.
  24872. * @returns {*} Returns the random element.
  24873. * @example
  24874. *
  24875. * _.sample([1, 2, 3, 4]);
  24876. * // => 2
  24877. */
  24878. function sample(collection) {
  24879. var func = isArray(collection) ? arraySample : baseSample;
  24880. return func(collection);
  24881. }
  24882. /**
  24883. * Gets `n` random elements at unique keys from `collection` up to the
  24884. * size of `collection`.
  24885. *
  24886. * @static
  24887. * @memberOf _
  24888. * @since 4.0.0
  24889. * @category Collection
  24890. * @param {Array|Object} collection The collection to sample.
  24891. * @param {number} [n=1] The number of elements to sample.
  24892. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24893. * @returns {Array} Returns the random elements.
  24894. * @example
  24895. *
  24896. * _.sampleSize([1, 2, 3], 2);
  24897. * // => [3, 1]
  24898. *
  24899. * _.sampleSize([1, 2, 3], 4);
  24900. * // => [2, 3, 1]
  24901. */
  24902. function sampleSize(collection, n, guard) {
  24903. if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
  24904. n = 1;
  24905. } else {
  24906. n = toInteger(n);
  24907. }
  24908. var func = isArray(collection) ? arraySampleSize : baseSampleSize;
  24909. return func(collection, n);
  24910. }
  24911. /**
  24912. * Creates an array of shuffled values, using a version of the
  24913. * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
  24914. *
  24915. * @static
  24916. * @memberOf _
  24917. * @since 0.1.0
  24918. * @category Collection
  24919. * @param {Array|Object} collection The collection to shuffle.
  24920. * @returns {Array} Returns the new shuffled array.
  24921. * @example
  24922. *
  24923. * _.shuffle([1, 2, 3, 4]);
  24924. * // => [4, 1, 3, 2]
  24925. */
  24926. function shuffle(collection) {
  24927. var func = isArray(collection) ? arrayShuffle : baseShuffle;
  24928. return func(collection);
  24929. }
  24930. /**
  24931. * Gets the size of `collection` by returning its length for array-like
  24932. * values or the number of own enumerable string keyed properties for objects.
  24933. *
  24934. * @static
  24935. * @memberOf _
  24936. * @since 0.1.0
  24937. * @category Collection
  24938. * @param {Array|Object|string} collection The collection to inspect.
  24939. * @returns {number} Returns the collection size.
  24940. * @example
  24941. *
  24942. * _.size([1, 2, 3]);
  24943. * // => 3
  24944. *
  24945. * _.size({ 'a': 1, 'b': 2 });
  24946. * // => 2
  24947. *
  24948. * _.size('pebbles');
  24949. * // => 7
  24950. */
  24951. function size(collection) {
  24952. if (collection == null) {
  24953. return 0;
  24954. }
  24955. if (isArrayLike(collection)) {
  24956. return isString(collection) ? stringSize(collection) : collection.length;
  24957. }
  24958. var tag = getTag(collection);
  24959. if (tag == mapTag || tag == setTag) {
  24960. return collection.size;
  24961. }
  24962. return baseKeys(collection).length;
  24963. }
  24964. /**
  24965. * Checks if `predicate` returns truthy for **any** element of `collection`.
  24966. * Iteration is stopped once `predicate` returns truthy. The predicate is
  24967. * invoked with three arguments: (value, index|key, collection).
  24968. *
  24969. * @static
  24970. * @memberOf _
  24971. * @since 0.1.0
  24972. * @category Collection
  24973. * @param {Array|Object} collection The collection to iterate over.
  24974. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  24975. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  24976. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24977. * else `false`.
  24978. * @example
  24979. *
  24980. * _.some([null, 0, 'yes', false], Boolean);
  24981. * // => true
  24982. *
  24983. * var users = [
  24984. * { 'user': 'barney', 'active': true },
  24985. * { 'user': 'fred', 'active': false }
  24986. * ];
  24987. *
  24988. * // The `_.matches` iteratee shorthand.
  24989. * _.some(users, { 'user': 'barney', 'active': false });
  24990. * // => false
  24991. *
  24992. * // The `_.matchesProperty` iteratee shorthand.
  24993. * _.some(users, ['active', false]);
  24994. * // => true
  24995. *
  24996. * // The `_.property` iteratee shorthand.
  24997. * _.some(users, 'active');
  24998. * // => true
  24999. */
  25000. function some(collection, predicate, guard) {
  25001. var func = isArray(collection) ? arraySome : baseSome;
  25002. if (guard && isIterateeCall(collection, predicate, guard)) {
  25003. predicate = undefined;
  25004. }
  25005. return func(collection, getIteratee(predicate, 3));
  25006. }
  25007. /**
  25008. * Creates an array of elements, sorted in ascending order by the results of
  25009. * running each element in a collection thru each iteratee. This method
  25010. * performs a stable sort, that is, it preserves the original sort order of
  25011. * equal elements. The iteratees are invoked with one argument: (value).
  25012. *
  25013. * @static
  25014. * @memberOf _
  25015. * @since 0.1.0
  25016. * @category Collection
  25017. * @param {Array|Object} collection The collection to iterate over.
  25018. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  25019. * The iteratees to sort by.
  25020. * @returns {Array} Returns the new sorted array.
  25021. * @example
  25022. *
  25023. * var users = [
  25024. * { 'user': 'fred', 'age': 48 },
  25025. * { 'user': 'barney', 'age': 36 },
  25026. * { 'user': 'fred', 'age': 40 },
  25027. * { 'user': 'barney', 'age': 34 }
  25028. * ];
  25029. *
  25030. * _.sortBy(users, [function(o) { return o.user; }]);
  25031. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  25032. *
  25033. * _.sortBy(users, ['user', 'age']);
  25034. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  25035. */
  25036. var sortBy = baseRest(function(collection, iteratees) {
  25037. if (collection == null) {
  25038. return [];
  25039. }
  25040. var length = iteratees.length;
  25041. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  25042. iteratees = [];
  25043. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  25044. iteratees = [iteratees[0]];
  25045. }
  25046. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  25047. });
  25048. /*------------------------------------------------------------------------*/
  25049. /**
  25050. * Gets the timestamp of the number of milliseconds that have elapsed since
  25051. * the Unix epoch (1 January 1970 00:00:00 UTC).
  25052. *
  25053. * @static
  25054. * @memberOf _
  25055. * @since 2.4.0
  25056. * @category Date
  25057. * @returns {number} Returns the timestamp.
  25058. * @example
  25059. *
  25060. * _.defer(function(stamp) {
  25061. * console.log(_.now() - stamp);
  25062. * }, _.now());
  25063. * // => Logs the number of milliseconds it took for the deferred invocation.
  25064. */
  25065. var now = ctxNow || function() {
  25066. return root.Date.now();
  25067. };
  25068. /*------------------------------------------------------------------------*/
  25069. /**
  25070. * The opposite of `_.before`; this method creates a function that invokes
  25071. * `func` once it's called `n` or more times.
  25072. *
  25073. * @static
  25074. * @memberOf _
  25075. * @since 0.1.0
  25076. * @category Function
  25077. * @param {number} n The number of calls before `func` is invoked.
  25078. * @param {Function} func The function to restrict.
  25079. * @returns {Function} Returns the new restricted function.
  25080. * @example
  25081. *
  25082. * var saves = ['profile', 'settings'];
  25083. *
  25084. * var done = _.after(saves.length, function() {
  25085. * console.log('done saving!');
  25086. * });
  25087. *
  25088. * _.forEach(saves, function(type) {
  25089. * asyncSave({ 'type': type, 'complete': done });
  25090. * });
  25091. * // => Logs 'done saving!' after the two async saves have completed.
  25092. */
  25093. function after(n, func) {
  25094. if (typeof func != 'function') {
  25095. throw new TypeError(FUNC_ERROR_TEXT);
  25096. }
  25097. n = toInteger(n);
  25098. return function() {
  25099. if (--n < 1) {
  25100. return func.apply(this, arguments);
  25101. }
  25102. };
  25103. }
  25104. /**
  25105. * Creates a function that invokes `func`, with up to `n` arguments,
  25106. * ignoring any additional arguments.
  25107. *
  25108. * @static
  25109. * @memberOf _
  25110. * @since 3.0.0
  25111. * @category Function
  25112. * @param {Function} func The function to cap arguments for.
  25113. * @param {number} [n=func.length] The arity cap.
  25114. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25115. * @returns {Function} Returns the new capped function.
  25116. * @example
  25117. *
  25118. * _.map(['6', '8', '10'], _.ary(parseInt, 1));
  25119. * // => [6, 8, 10]
  25120. */
  25121. function ary(func, n, guard) {
  25122. n = guard ? undefined : n;
  25123. n = (func && n == null) ? func.length : n;
  25124. return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
  25125. }
  25126. /**
  25127. * Creates a function that invokes `func`, with the `this` binding and arguments
  25128. * of the created function, while it's called less than `n` times. Subsequent
  25129. * calls to the created function return the result of the last `func` invocation.
  25130. *
  25131. * @static
  25132. * @memberOf _
  25133. * @since 3.0.0
  25134. * @category Function
  25135. * @param {number} n The number of calls at which `func` is no longer invoked.
  25136. * @param {Function} func The function to restrict.
  25137. * @returns {Function} Returns the new restricted function.
  25138. * @example
  25139. *
  25140. * jQuery(element).on('click', _.before(5, addContactToList));
  25141. * // => Allows adding up to 4 contacts to the list.
  25142. */
  25143. function before(n, func) {
  25144. var result;
  25145. if (typeof func != 'function') {
  25146. throw new TypeError(FUNC_ERROR_TEXT);
  25147. }
  25148. n = toInteger(n);
  25149. return function() {
  25150. if (--n > 0) {
  25151. result = func.apply(this, arguments);
  25152. }
  25153. if (n <= 1) {
  25154. func = undefined;
  25155. }
  25156. return result;
  25157. };
  25158. }
  25159. /**
  25160. * Creates a function that invokes `func` with the `this` binding of `thisArg`
  25161. * and `partials` prepended to the arguments it receives.
  25162. *
  25163. * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
  25164. * may be used as a placeholder for partially applied arguments.
  25165. *
  25166. * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
  25167. * property of bound functions.
  25168. *
  25169. * @static
  25170. * @memberOf _
  25171. * @since 0.1.0
  25172. * @category Function
  25173. * @param {Function} func The function to bind.
  25174. * @param {*} thisArg The `this` binding of `func`.
  25175. * @param {...*} [partials] The arguments to be partially applied.
  25176. * @returns {Function} Returns the new bound function.
  25177. * @example
  25178. *
  25179. * function greet(greeting, punctuation) {
  25180. * return greeting + ' ' + this.user + punctuation;
  25181. * }
  25182. *
  25183. * var object = { 'user': 'fred' };
  25184. *
  25185. * var bound = _.bind(greet, object, 'hi');
  25186. * bound('!');
  25187. * // => 'hi fred!'
  25188. *
  25189. * // Bound with placeholders.
  25190. * var bound = _.bind(greet, object, _, '!');
  25191. * bound('hi');
  25192. * // => 'hi fred!'
  25193. */
  25194. var bind = baseRest(function(func, thisArg, partials) {
  25195. var bitmask = WRAP_BIND_FLAG;
  25196. if (partials.length) {
  25197. var holders = replaceHolders(partials, getHolder(bind));
  25198. bitmask |= WRAP_PARTIAL_FLAG;
  25199. }
  25200. return createWrap(func, bitmask, thisArg, partials, holders);
  25201. });
  25202. /**
  25203. * Creates a function that invokes the method at `object[key]` with `partials`
  25204. * prepended to the arguments it receives.
  25205. *
  25206. * This method differs from `_.bind` by allowing bound functions to reference
  25207. * methods that may be redefined or don't yet exist. See
  25208. * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
  25209. * for more details.
  25210. *
  25211. * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
  25212. * builds, may be used as a placeholder for partially applied arguments.
  25213. *
  25214. * @static
  25215. * @memberOf _
  25216. * @since 0.10.0
  25217. * @category Function
  25218. * @param {Object} object The object to invoke the method on.
  25219. * @param {string} key The key of the method.
  25220. * @param {...*} [partials] The arguments to be partially applied.
  25221. * @returns {Function} Returns the new bound function.
  25222. * @example
  25223. *
  25224. * var object = {
  25225. * 'user': 'fred',
  25226. * 'greet': function(greeting, punctuation) {
  25227. * return greeting + ' ' + this.user + punctuation;
  25228. * }
  25229. * };
  25230. *
  25231. * var bound = _.bindKey(object, 'greet', 'hi');
  25232. * bound('!');
  25233. * // => 'hi fred!'
  25234. *
  25235. * object.greet = function(greeting, punctuation) {
  25236. * return greeting + 'ya ' + this.user + punctuation;
  25237. * };
  25238. *
  25239. * bound('!');
  25240. * // => 'hiya fred!'
  25241. *
  25242. * // Bound with placeholders.
  25243. * var bound = _.bindKey(object, 'greet', _, '!');
  25244. * bound('hi');
  25245. * // => 'hiya fred!'
  25246. */
  25247. var bindKey = baseRest(function(object, key, partials) {
  25248. var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
  25249. if (partials.length) {
  25250. var holders = replaceHolders(partials, getHolder(bindKey));
  25251. bitmask |= WRAP_PARTIAL_FLAG;
  25252. }
  25253. return createWrap(key, bitmask, object, partials, holders);
  25254. });
  25255. /**
  25256. * Creates a function that accepts arguments of `func` and either invokes
  25257. * `func` returning its result, if at least `arity` number of arguments have
  25258. * been provided, or returns a function that accepts the remaining `func`
  25259. * arguments, and so on. The arity of `func` may be specified if `func.length`
  25260. * is not sufficient.
  25261. *
  25262. * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
  25263. * may be used as a placeholder for provided arguments.
  25264. *
  25265. * **Note:** This method doesn't set the "length" property of curried functions.
  25266. *
  25267. * @static
  25268. * @memberOf _
  25269. * @since 2.0.0
  25270. * @category Function
  25271. * @param {Function} func The function to curry.
  25272. * @param {number} [arity=func.length] The arity of `func`.
  25273. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25274. * @returns {Function} Returns the new curried function.
  25275. * @example
  25276. *
  25277. * var abc = function(a, b, c) {
  25278. * return [a, b, c];
  25279. * };
  25280. *
  25281. * var curried = _.curry(abc);
  25282. *
  25283. * curried(1)(2)(3);
  25284. * // => [1, 2, 3]
  25285. *
  25286. * curried(1, 2)(3);
  25287. * // => [1, 2, 3]
  25288. *
  25289. * curried(1, 2, 3);
  25290. * // => [1, 2, 3]
  25291. *
  25292. * // Curried with placeholders.
  25293. * curried(1)(_, 3)(2);
  25294. * // => [1, 2, 3]
  25295. */
  25296. function curry(func, arity, guard) {
  25297. arity = guard ? undefined : arity;
  25298. var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25299. result.placeholder = curry.placeholder;
  25300. return result;
  25301. }
  25302. /**
  25303. * This method is like `_.curry` except that arguments are applied to `func`
  25304. * in the manner of `_.partialRight` instead of `_.partial`.
  25305. *
  25306. * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
  25307. * builds, may be used as a placeholder for provided arguments.
  25308. *
  25309. * **Note:** This method doesn't set the "length" property of curried functions.
  25310. *
  25311. * @static
  25312. * @memberOf _
  25313. * @since 3.0.0
  25314. * @category Function
  25315. * @param {Function} func The function to curry.
  25316. * @param {number} [arity=func.length] The arity of `func`.
  25317. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  25318. * @returns {Function} Returns the new curried function.
  25319. * @example
  25320. *
  25321. * var abc = function(a, b, c) {
  25322. * return [a, b, c];
  25323. * };
  25324. *
  25325. * var curried = _.curryRight(abc);
  25326. *
  25327. * curried(3)(2)(1);
  25328. * // => [1, 2, 3]
  25329. *
  25330. * curried(2, 3)(1);
  25331. * // => [1, 2, 3]
  25332. *
  25333. * curried(1, 2, 3);
  25334. * // => [1, 2, 3]
  25335. *
  25336. * // Curried with placeholders.
  25337. * curried(3)(1, _)(2);
  25338. * // => [1, 2, 3]
  25339. */
  25340. function curryRight(func, arity, guard) {
  25341. arity = guard ? undefined : arity;
  25342. var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
  25343. result.placeholder = curryRight.placeholder;
  25344. return result;
  25345. }
  25346. /**
  25347. * Creates a debounced function that delays invoking `func` until after `wait`
  25348. * milliseconds have elapsed since the last time the debounced function was
  25349. * invoked. The debounced function comes with a `cancel` method to cancel
  25350. * delayed `func` invocations and a `flush` method to immediately invoke them.
  25351. * Provide `options` to indicate whether `func` should be invoked on the
  25352. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  25353. * with the last arguments provided to the debounced function. Subsequent
  25354. * calls to the debounced function return the result of the last `func`
  25355. * invocation.
  25356. *
  25357. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25358. * invoked on the trailing edge of the timeout only if the debounced function
  25359. * is invoked more than once during the `wait` timeout.
  25360. *
  25361. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25362. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25363. *
  25364. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25365. * for details over the differences between `_.debounce` and `_.throttle`.
  25366. *
  25367. * @static
  25368. * @memberOf _
  25369. * @since 0.1.0
  25370. * @category Function
  25371. * @param {Function} func The function to debounce.
  25372. * @param {number} [wait=0] The number of milliseconds to delay.
  25373. * @param {Object} [options={}] The options object.
  25374. * @param {boolean} [options.leading=false]
  25375. * Specify invoking on the leading edge of the timeout.
  25376. * @param {number} [options.maxWait]
  25377. * The maximum time `func` is allowed to be delayed before it's invoked.
  25378. * @param {boolean} [options.trailing=true]
  25379. * Specify invoking on the trailing edge of the timeout.
  25380. * @returns {Function} Returns the new debounced function.
  25381. * @example
  25382. *
  25383. * // Avoid costly calculations while the window size is in flux.
  25384. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  25385. *
  25386. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  25387. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  25388. * 'leading': true,
  25389. * 'trailing': false
  25390. * }));
  25391. *
  25392. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  25393. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  25394. * var source = new EventSource('/stream');
  25395. * jQuery(source).on('message', debounced);
  25396. *
  25397. * // Cancel the trailing debounced invocation.
  25398. * jQuery(window).on('popstate', debounced.cancel);
  25399. */
  25400. function debounce(func, wait, options) {
  25401. var lastArgs,
  25402. lastThis,
  25403. maxWait,
  25404. result,
  25405. timerId,
  25406. lastCallTime,
  25407. lastInvokeTime = 0,
  25408. leading = false,
  25409. maxing = false,
  25410. trailing = true;
  25411. if (typeof func != 'function') {
  25412. throw new TypeError(FUNC_ERROR_TEXT);
  25413. }
  25414. wait = toNumber(wait) || 0;
  25415. if (isObject(options)) {
  25416. leading = !!options.leading;
  25417. maxing = 'maxWait' in options;
  25418. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  25419. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25420. }
  25421. function invokeFunc(time) {
  25422. var args = lastArgs,
  25423. thisArg = lastThis;
  25424. lastArgs = lastThis = undefined;
  25425. lastInvokeTime = time;
  25426. result = func.apply(thisArg, args);
  25427. return result;
  25428. }
  25429. function leadingEdge(time) {
  25430. // Reset any `maxWait` timer.
  25431. lastInvokeTime = time;
  25432. // Start the timer for the trailing edge.
  25433. timerId = setTimeout(timerExpired, wait);
  25434. // Invoke the leading edge.
  25435. return leading ? invokeFunc(time) : result;
  25436. }
  25437. function remainingWait(time) {
  25438. var timeSinceLastCall = time - lastCallTime,
  25439. timeSinceLastInvoke = time - lastInvokeTime,
  25440. timeWaiting = wait - timeSinceLastCall;
  25441. return maxing
  25442. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  25443. : timeWaiting;
  25444. }
  25445. function shouldInvoke(time) {
  25446. var timeSinceLastCall = time - lastCallTime,
  25447. timeSinceLastInvoke = time - lastInvokeTime;
  25448. // Either this is the first call, activity has stopped and we're at the
  25449. // trailing edge, the system time has gone backwards and we're treating
  25450. // it as the trailing edge, or we've hit the `maxWait` limit.
  25451. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  25452. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  25453. }
  25454. function timerExpired() {
  25455. var time = now();
  25456. if (shouldInvoke(time)) {
  25457. return trailingEdge(time);
  25458. }
  25459. // Restart the timer.
  25460. timerId = setTimeout(timerExpired, remainingWait(time));
  25461. }
  25462. function trailingEdge(time) {
  25463. timerId = undefined;
  25464. // Only invoke if we have `lastArgs` which means `func` has been
  25465. // debounced at least once.
  25466. if (trailing && lastArgs) {
  25467. return invokeFunc(time);
  25468. }
  25469. lastArgs = lastThis = undefined;
  25470. return result;
  25471. }
  25472. function cancel() {
  25473. if (timerId !== undefined) {
  25474. clearTimeout(timerId);
  25475. }
  25476. lastInvokeTime = 0;
  25477. lastArgs = lastCallTime = lastThis = timerId = undefined;
  25478. }
  25479. function flush() {
  25480. return timerId === undefined ? result : trailingEdge(now());
  25481. }
  25482. function debounced() {
  25483. var time = now(),
  25484. isInvoking = shouldInvoke(time);
  25485. lastArgs = arguments;
  25486. lastThis = this;
  25487. lastCallTime = time;
  25488. if (isInvoking) {
  25489. if (timerId === undefined) {
  25490. return leadingEdge(lastCallTime);
  25491. }
  25492. if (maxing) {
  25493. // Handle invocations in a tight loop.
  25494. timerId = setTimeout(timerExpired, wait);
  25495. return invokeFunc(lastCallTime);
  25496. }
  25497. }
  25498. if (timerId === undefined) {
  25499. timerId = setTimeout(timerExpired, wait);
  25500. }
  25501. return result;
  25502. }
  25503. debounced.cancel = cancel;
  25504. debounced.flush = flush;
  25505. return debounced;
  25506. }
  25507. /**
  25508. * Defers invoking the `func` until the current call stack has cleared. Any
  25509. * additional arguments are provided to `func` when it's invoked.
  25510. *
  25511. * @static
  25512. * @memberOf _
  25513. * @since 0.1.0
  25514. * @category Function
  25515. * @param {Function} func The function to defer.
  25516. * @param {...*} [args] The arguments to invoke `func` with.
  25517. * @returns {number} Returns the timer id.
  25518. * @example
  25519. *
  25520. * _.defer(function(text) {
  25521. * console.log(text);
  25522. * }, 'deferred');
  25523. * // => Logs 'deferred' after one millisecond.
  25524. */
  25525. var defer = baseRest(function(func, args) {
  25526. return baseDelay(func, 1, args);
  25527. });
  25528. /**
  25529. * Invokes `func` after `wait` milliseconds. Any additional arguments are
  25530. * provided to `func` when it's invoked.
  25531. *
  25532. * @static
  25533. * @memberOf _
  25534. * @since 0.1.0
  25535. * @category Function
  25536. * @param {Function} func The function to delay.
  25537. * @param {number} wait The number of milliseconds to delay invocation.
  25538. * @param {...*} [args] The arguments to invoke `func` with.
  25539. * @returns {number} Returns the timer id.
  25540. * @example
  25541. *
  25542. * _.delay(function(text) {
  25543. * console.log(text);
  25544. * }, 1000, 'later');
  25545. * // => Logs 'later' after one second.
  25546. */
  25547. var delay = baseRest(function(func, wait, args) {
  25548. return baseDelay(func, toNumber(wait) || 0, args);
  25549. });
  25550. /**
  25551. * Creates a function that invokes `func` with arguments reversed.
  25552. *
  25553. * @static
  25554. * @memberOf _
  25555. * @since 4.0.0
  25556. * @category Function
  25557. * @param {Function} func The function to flip arguments for.
  25558. * @returns {Function} Returns the new flipped function.
  25559. * @example
  25560. *
  25561. * var flipped = _.flip(function() {
  25562. * return _.toArray(arguments);
  25563. * });
  25564. *
  25565. * flipped('a', 'b', 'c', 'd');
  25566. * // => ['d', 'c', 'b', 'a']
  25567. */
  25568. function flip(func) {
  25569. return createWrap(func, WRAP_FLIP_FLAG);
  25570. }
  25571. /**
  25572. * Creates a function that memoizes the result of `func`. If `resolver` is
  25573. * provided, it determines the cache key for storing the result based on the
  25574. * arguments provided to the memoized function. By default, the first argument
  25575. * provided to the memoized function is used as the map cache key. The `func`
  25576. * is invoked with the `this` binding of the memoized function.
  25577. *
  25578. * **Note:** The cache is exposed as the `cache` property on the memoized
  25579. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  25580. * constructor with one whose instances implement the
  25581. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  25582. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  25583. *
  25584. * @static
  25585. * @memberOf _
  25586. * @since 0.1.0
  25587. * @category Function
  25588. * @param {Function} func The function to have its output memoized.
  25589. * @param {Function} [resolver] The function to resolve the cache key.
  25590. * @returns {Function} Returns the new memoized function.
  25591. * @example
  25592. *
  25593. * var object = { 'a': 1, 'b': 2 };
  25594. * var other = { 'c': 3, 'd': 4 };
  25595. *
  25596. * var values = _.memoize(_.values);
  25597. * values(object);
  25598. * // => [1, 2]
  25599. *
  25600. * values(other);
  25601. * // => [3, 4]
  25602. *
  25603. * object.a = 2;
  25604. * values(object);
  25605. * // => [1, 2]
  25606. *
  25607. * // Modify the result cache.
  25608. * values.cache.set(object, ['a', 'b']);
  25609. * values(object);
  25610. * // => ['a', 'b']
  25611. *
  25612. * // Replace `_.memoize.Cache`.
  25613. * _.memoize.Cache = WeakMap;
  25614. */
  25615. function memoize(func, resolver) {
  25616. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  25617. throw new TypeError(FUNC_ERROR_TEXT);
  25618. }
  25619. var memoized = function() {
  25620. var args = arguments,
  25621. key = resolver ? resolver.apply(this, args) : args[0],
  25622. cache = memoized.cache;
  25623. if (cache.has(key)) {
  25624. return cache.get(key);
  25625. }
  25626. var result = func.apply(this, args);
  25627. memoized.cache = cache.set(key, result) || cache;
  25628. return result;
  25629. };
  25630. memoized.cache = new (memoize.Cache || MapCache);
  25631. return memoized;
  25632. }
  25633. // Expose `MapCache`.
  25634. memoize.Cache = MapCache;
  25635. /**
  25636. * Creates a function that negates the result of the predicate `func`. The
  25637. * `func` predicate is invoked with the `this` binding and arguments of the
  25638. * created function.
  25639. *
  25640. * @static
  25641. * @memberOf _
  25642. * @since 3.0.0
  25643. * @category Function
  25644. * @param {Function} predicate The predicate to negate.
  25645. * @returns {Function} Returns the new negated function.
  25646. * @example
  25647. *
  25648. * function isEven(n) {
  25649. * return n % 2 == 0;
  25650. * }
  25651. *
  25652. * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
  25653. * // => [1, 3, 5]
  25654. */
  25655. function negate(predicate) {
  25656. if (typeof predicate != 'function') {
  25657. throw new TypeError(FUNC_ERROR_TEXT);
  25658. }
  25659. return function() {
  25660. var args = arguments;
  25661. switch (args.length) {
  25662. case 0: return !predicate.call(this);
  25663. case 1: return !predicate.call(this, args[0]);
  25664. case 2: return !predicate.call(this, args[0], args[1]);
  25665. case 3: return !predicate.call(this, args[0], args[1], args[2]);
  25666. }
  25667. return !predicate.apply(this, args);
  25668. };
  25669. }
  25670. /**
  25671. * Creates a function that is restricted to invoking `func` once. Repeat calls
  25672. * to the function return the value of the first invocation. The `func` is
  25673. * invoked with the `this` binding and arguments of the created function.
  25674. *
  25675. * @static
  25676. * @memberOf _
  25677. * @since 0.1.0
  25678. * @category Function
  25679. * @param {Function} func The function to restrict.
  25680. * @returns {Function} Returns the new restricted function.
  25681. * @example
  25682. *
  25683. * var initialize = _.once(createApplication);
  25684. * initialize();
  25685. * initialize();
  25686. * // => `createApplication` is invoked once
  25687. */
  25688. function once(func) {
  25689. return before(2, func);
  25690. }
  25691. /**
  25692. * Creates a function that invokes `func` with its arguments transformed.
  25693. *
  25694. * @static
  25695. * @since 4.0.0
  25696. * @memberOf _
  25697. * @category Function
  25698. * @param {Function} func The function to wrap.
  25699. * @param {...(Function|Function[])} [transforms=[_.identity]]
  25700. * The argument transforms.
  25701. * @returns {Function} Returns the new function.
  25702. * @example
  25703. *
  25704. * function doubled(n) {
  25705. * return n * 2;
  25706. * }
  25707. *
  25708. * function square(n) {
  25709. * return n * n;
  25710. * }
  25711. *
  25712. * var func = _.overArgs(function(x, y) {
  25713. * return [x, y];
  25714. * }, [square, doubled]);
  25715. *
  25716. * func(9, 3);
  25717. * // => [81, 6]
  25718. *
  25719. * func(10, 5);
  25720. * // => [100, 10]
  25721. */
  25722. var overArgs = castRest(function(func, transforms) {
  25723. transforms = (transforms.length == 1 && isArray(transforms[0]))
  25724. ? arrayMap(transforms[0], baseUnary(getIteratee()))
  25725. : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
  25726. var funcsLength = transforms.length;
  25727. return baseRest(function(args) {
  25728. var index = -1,
  25729. length = nativeMin(args.length, funcsLength);
  25730. while (++index < length) {
  25731. args[index] = transforms[index].call(this, args[index]);
  25732. }
  25733. return apply(func, this, args);
  25734. });
  25735. });
  25736. /**
  25737. * Creates a function that invokes `func` with `partials` prepended to the
  25738. * arguments it receives. This method is like `_.bind` except it does **not**
  25739. * alter the `this` binding.
  25740. *
  25741. * The `_.partial.placeholder` value, which defaults to `_` in monolithic
  25742. * builds, may be used as a placeholder for partially applied arguments.
  25743. *
  25744. * **Note:** This method doesn't set the "length" property of partially
  25745. * applied functions.
  25746. *
  25747. * @static
  25748. * @memberOf _
  25749. * @since 0.2.0
  25750. * @category Function
  25751. * @param {Function} func The function to partially apply arguments to.
  25752. * @param {...*} [partials] The arguments to be partially applied.
  25753. * @returns {Function} Returns the new partially applied function.
  25754. * @example
  25755. *
  25756. * function greet(greeting, name) {
  25757. * return greeting + ' ' + name;
  25758. * }
  25759. *
  25760. * var sayHelloTo = _.partial(greet, 'hello');
  25761. * sayHelloTo('fred');
  25762. * // => 'hello fred'
  25763. *
  25764. * // Partially applied with placeholders.
  25765. * var greetFred = _.partial(greet, _, 'fred');
  25766. * greetFred('hi');
  25767. * // => 'hi fred'
  25768. */
  25769. var partial = baseRest(function(func, partials) {
  25770. var holders = replaceHolders(partials, getHolder(partial));
  25771. return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
  25772. });
  25773. /**
  25774. * This method is like `_.partial` except that partially applied arguments
  25775. * are appended to the arguments it receives.
  25776. *
  25777. * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
  25778. * builds, may be used as a placeholder for partially applied arguments.
  25779. *
  25780. * **Note:** This method doesn't set the "length" property of partially
  25781. * applied functions.
  25782. *
  25783. * @static
  25784. * @memberOf _
  25785. * @since 1.0.0
  25786. * @category Function
  25787. * @param {Function} func The function to partially apply arguments to.
  25788. * @param {...*} [partials] The arguments to be partially applied.
  25789. * @returns {Function} Returns the new partially applied function.
  25790. * @example
  25791. *
  25792. * function greet(greeting, name) {
  25793. * return greeting + ' ' + name;
  25794. * }
  25795. *
  25796. * var greetFred = _.partialRight(greet, 'fred');
  25797. * greetFred('hi');
  25798. * // => 'hi fred'
  25799. *
  25800. * // Partially applied with placeholders.
  25801. * var sayHelloTo = _.partialRight(greet, 'hello', _);
  25802. * sayHelloTo('fred');
  25803. * // => 'hello fred'
  25804. */
  25805. var partialRight = baseRest(function(func, partials) {
  25806. var holders = replaceHolders(partials, getHolder(partialRight));
  25807. return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
  25808. });
  25809. /**
  25810. * Creates a function that invokes `func` with arguments arranged according
  25811. * to the specified `indexes` where the argument value at the first index is
  25812. * provided as the first argument, the argument value at the second index is
  25813. * provided as the second argument, and so on.
  25814. *
  25815. * @static
  25816. * @memberOf _
  25817. * @since 3.0.0
  25818. * @category Function
  25819. * @param {Function} func The function to rearrange arguments for.
  25820. * @param {...(number|number[])} indexes The arranged argument indexes.
  25821. * @returns {Function} Returns the new function.
  25822. * @example
  25823. *
  25824. * var rearged = _.rearg(function(a, b, c) {
  25825. * return [a, b, c];
  25826. * }, [2, 0, 1]);
  25827. *
  25828. * rearged('b', 'c', 'a')
  25829. * // => ['a', 'b', 'c']
  25830. */
  25831. var rearg = flatRest(function(func, indexes) {
  25832. return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
  25833. });
  25834. /**
  25835. * Creates a function that invokes `func` with the `this` binding of the
  25836. * created function and arguments from `start` and beyond provided as
  25837. * an array.
  25838. *
  25839. * **Note:** This method is based on the
  25840. * [rest parameter](https://mdn.io/rest_parameters).
  25841. *
  25842. * @static
  25843. * @memberOf _
  25844. * @since 4.0.0
  25845. * @category Function
  25846. * @param {Function} func The function to apply a rest parameter to.
  25847. * @param {number} [start=func.length-1] The start position of the rest parameter.
  25848. * @returns {Function} Returns the new function.
  25849. * @example
  25850. *
  25851. * var say = _.rest(function(what, names) {
  25852. * return what + ' ' + _.initial(names).join(', ') +
  25853. * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
  25854. * });
  25855. *
  25856. * say('hello', 'fred', 'barney', 'pebbles');
  25857. * // => 'hello fred, barney, & pebbles'
  25858. */
  25859. function rest(func, start) {
  25860. if (typeof func != 'function') {
  25861. throw new TypeError(FUNC_ERROR_TEXT);
  25862. }
  25863. start = start === undefined ? start : toInteger(start);
  25864. return baseRest(func, start);
  25865. }
  25866. /**
  25867. * Creates a function that invokes `func` with the `this` binding of the
  25868. * create function and an array of arguments much like
  25869. * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
  25870. *
  25871. * **Note:** This method is based on the
  25872. * [spread operator](https://mdn.io/spread_operator).
  25873. *
  25874. * @static
  25875. * @memberOf _
  25876. * @since 3.2.0
  25877. * @category Function
  25878. * @param {Function} func The function to spread arguments over.
  25879. * @param {number} [start=0] The start position of the spread.
  25880. * @returns {Function} Returns the new function.
  25881. * @example
  25882. *
  25883. * var say = _.spread(function(who, what) {
  25884. * return who + ' says ' + what;
  25885. * });
  25886. *
  25887. * say(['fred', 'hello']);
  25888. * // => 'fred says hello'
  25889. *
  25890. * var numbers = Promise.all([
  25891. * Promise.resolve(40),
  25892. * Promise.resolve(36)
  25893. * ]);
  25894. *
  25895. * numbers.then(_.spread(function(x, y) {
  25896. * return x + y;
  25897. * }));
  25898. * // => a Promise of 76
  25899. */
  25900. function spread(func, start) {
  25901. if (typeof func != 'function') {
  25902. throw new TypeError(FUNC_ERROR_TEXT);
  25903. }
  25904. start = start == null ? 0 : nativeMax(toInteger(start), 0);
  25905. return baseRest(function(args) {
  25906. var array = args[start],
  25907. otherArgs = castSlice(args, 0, start);
  25908. if (array) {
  25909. arrayPush(otherArgs, array);
  25910. }
  25911. return apply(func, this, otherArgs);
  25912. });
  25913. }
  25914. /**
  25915. * Creates a throttled function that only invokes `func` at most once per
  25916. * every `wait` milliseconds. The throttled function comes with a `cancel`
  25917. * method to cancel delayed `func` invocations and a `flush` method to
  25918. * immediately invoke them. Provide `options` to indicate whether `func`
  25919. * should be invoked on the leading and/or trailing edge of the `wait`
  25920. * timeout. The `func` is invoked with the last arguments provided to the
  25921. * throttled function. Subsequent calls to the throttled function return the
  25922. * result of the last `func` invocation.
  25923. *
  25924. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  25925. * invoked on the trailing edge of the timeout only if the throttled function
  25926. * is invoked more than once during the `wait` timeout.
  25927. *
  25928. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  25929. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  25930. *
  25931. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  25932. * for details over the differences between `_.throttle` and `_.debounce`.
  25933. *
  25934. * @static
  25935. * @memberOf _
  25936. * @since 0.1.0
  25937. * @category Function
  25938. * @param {Function} func The function to throttle.
  25939. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  25940. * @param {Object} [options={}] The options object.
  25941. * @param {boolean} [options.leading=true]
  25942. * Specify invoking on the leading edge of the timeout.
  25943. * @param {boolean} [options.trailing=true]
  25944. * Specify invoking on the trailing edge of the timeout.
  25945. * @returns {Function} Returns the new throttled function.
  25946. * @example
  25947. *
  25948. * // Avoid excessively updating the position while scrolling.
  25949. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  25950. *
  25951. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  25952. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  25953. * jQuery(element).on('click', throttled);
  25954. *
  25955. * // Cancel the trailing throttled invocation.
  25956. * jQuery(window).on('popstate', throttled.cancel);
  25957. */
  25958. function throttle(func, wait, options) {
  25959. var leading = true,
  25960. trailing = true;
  25961. if (typeof func != 'function') {
  25962. throw new TypeError(FUNC_ERROR_TEXT);
  25963. }
  25964. if (isObject(options)) {
  25965. leading = 'leading' in options ? !!options.leading : leading;
  25966. trailing = 'trailing' in options ? !!options.trailing : trailing;
  25967. }
  25968. return debounce(func, wait, {
  25969. 'leading': leading,
  25970. 'maxWait': wait,
  25971. 'trailing': trailing
  25972. });
  25973. }
  25974. /**
  25975. * Creates a function that accepts up to one argument, ignoring any
  25976. * additional arguments.
  25977. *
  25978. * @static
  25979. * @memberOf _
  25980. * @since 4.0.0
  25981. * @category Function
  25982. * @param {Function} func The function to cap arguments for.
  25983. * @returns {Function} Returns the new capped function.
  25984. * @example
  25985. *
  25986. * _.map(['6', '8', '10'], _.unary(parseInt));
  25987. * // => [6, 8, 10]
  25988. */
  25989. function unary(func) {
  25990. return ary(func, 1);
  25991. }
  25992. /**
  25993. * Creates a function that provides `value` to `wrapper` as its first
  25994. * argument. Any additional arguments provided to the function are appended
  25995. * to those provided to the `wrapper`. The wrapper is invoked with the `this`
  25996. * binding of the created function.
  25997. *
  25998. * @static
  25999. * @memberOf _
  26000. * @since 0.1.0
  26001. * @category Function
  26002. * @param {*} value The value to wrap.
  26003. * @param {Function} [wrapper=identity] The wrapper function.
  26004. * @returns {Function} Returns the new function.
  26005. * @example
  26006. *
  26007. * var p = _.wrap(_.escape, function(func, text) {
  26008. * return '<p>' + func(text) + '</p>';
  26009. * });
  26010. *
  26011. * p('fred, barney, & pebbles');
  26012. * // => '<p>fred, barney, &amp; pebbles</p>'
  26013. */
  26014. function wrap(value, wrapper) {
  26015. return partial(castFunction(wrapper), value);
  26016. }
  26017. /*------------------------------------------------------------------------*/
  26018. /**
  26019. * Casts `value` as an array if it's not one.
  26020. *
  26021. * @static
  26022. * @memberOf _
  26023. * @since 4.4.0
  26024. * @category Lang
  26025. * @param {*} value The value to inspect.
  26026. * @returns {Array} Returns the cast array.
  26027. * @example
  26028. *
  26029. * _.castArray(1);
  26030. * // => [1]
  26031. *
  26032. * _.castArray({ 'a': 1 });
  26033. * // => [{ 'a': 1 }]
  26034. *
  26035. * _.castArray('abc');
  26036. * // => ['abc']
  26037. *
  26038. * _.castArray(null);
  26039. * // => [null]
  26040. *
  26041. * _.castArray(undefined);
  26042. * // => [undefined]
  26043. *
  26044. * _.castArray();
  26045. * // => []
  26046. *
  26047. * var array = [1, 2, 3];
  26048. * console.log(_.castArray(array) === array);
  26049. * // => true
  26050. */
  26051. function castArray() {
  26052. if (!arguments.length) {
  26053. return [];
  26054. }
  26055. var value = arguments[0];
  26056. return isArray(value) ? value : [value];
  26057. }
  26058. /**
  26059. * Creates a shallow clone of `value`.
  26060. *
  26061. * **Note:** This method is loosely based on the
  26062. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  26063. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  26064. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  26065. * arrays. The own enumerable properties of `arguments` objects are cloned
  26066. * as plain objects. An empty object is returned for uncloneable values such
  26067. * as error objects, functions, DOM nodes, and WeakMaps.
  26068. *
  26069. * @static
  26070. * @memberOf _
  26071. * @since 0.1.0
  26072. * @category Lang
  26073. * @param {*} value The value to clone.
  26074. * @returns {*} Returns the cloned value.
  26075. * @see _.cloneDeep
  26076. * @example
  26077. *
  26078. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26079. *
  26080. * var shallow = _.clone(objects);
  26081. * console.log(shallow[0] === objects[0]);
  26082. * // => true
  26083. */
  26084. function clone(value) {
  26085. return baseClone(value, CLONE_SYMBOLS_FLAG);
  26086. }
  26087. /**
  26088. * This method is like `_.clone` except that it accepts `customizer` which
  26089. * is invoked to produce the cloned value. If `customizer` returns `undefined`,
  26090. * cloning is handled by the method instead. The `customizer` is invoked with
  26091. * up to four arguments; (value [, index|key, object, stack]).
  26092. *
  26093. * @static
  26094. * @memberOf _
  26095. * @since 4.0.0
  26096. * @category Lang
  26097. * @param {*} value The value to clone.
  26098. * @param {Function} [customizer] The function to customize cloning.
  26099. * @returns {*} Returns the cloned value.
  26100. * @see _.cloneDeepWith
  26101. * @example
  26102. *
  26103. * function customizer(value) {
  26104. * if (_.isElement(value)) {
  26105. * return value.cloneNode(false);
  26106. * }
  26107. * }
  26108. *
  26109. * var el = _.cloneWith(document.body, customizer);
  26110. *
  26111. * console.log(el === document.body);
  26112. * // => false
  26113. * console.log(el.nodeName);
  26114. * // => 'BODY'
  26115. * console.log(el.childNodes.length);
  26116. * // => 0
  26117. */
  26118. function cloneWith(value, customizer) {
  26119. customizer = typeof customizer == 'function' ? customizer : undefined;
  26120. return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
  26121. }
  26122. /**
  26123. * This method is like `_.clone` except that it recursively clones `value`.
  26124. *
  26125. * @static
  26126. * @memberOf _
  26127. * @since 1.0.0
  26128. * @category Lang
  26129. * @param {*} value The value to recursively clone.
  26130. * @returns {*} Returns the deep cloned value.
  26131. * @see _.clone
  26132. * @example
  26133. *
  26134. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  26135. *
  26136. * var deep = _.cloneDeep(objects);
  26137. * console.log(deep[0] === objects[0]);
  26138. * // => false
  26139. */
  26140. function cloneDeep(value) {
  26141. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  26142. }
  26143. /**
  26144. * This method is like `_.cloneWith` except that it recursively clones `value`.
  26145. *
  26146. * @static
  26147. * @memberOf _
  26148. * @since 4.0.0
  26149. * @category Lang
  26150. * @param {*} value The value to recursively clone.
  26151. * @param {Function} [customizer] The function to customize cloning.
  26152. * @returns {*} Returns the deep cloned value.
  26153. * @see _.cloneWith
  26154. * @example
  26155. *
  26156. * function customizer(value) {
  26157. * if (_.isElement(value)) {
  26158. * return value.cloneNode(true);
  26159. * }
  26160. * }
  26161. *
  26162. * var el = _.cloneDeepWith(document.body, customizer);
  26163. *
  26164. * console.log(el === document.body);
  26165. * // => false
  26166. * console.log(el.nodeName);
  26167. * // => 'BODY'
  26168. * console.log(el.childNodes.length);
  26169. * // => 20
  26170. */
  26171. function cloneDeepWith(value, customizer) {
  26172. customizer = typeof customizer == 'function' ? customizer : undefined;
  26173. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
  26174. }
  26175. /**
  26176. * Checks if `object` conforms to `source` by invoking the predicate
  26177. * properties of `source` with the corresponding property values of `object`.
  26178. *
  26179. * **Note:** This method is equivalent to `_.conforms` when `source` is
  26180. * partially applied.
  26181. *
  26182. * @static
  26183. * @memberOf _
  26184. * @since 4.14.0
  26185. * @category Lang
  26186. * @param {Object} object The object to inspect.
  26187. * @param {Object} source The object of property predicates to conform to.
  26188. * @returns {boolean} Returns `true` if `object` conforms, else `false`.
  26189. * @example
  26190. *
  26191. * var object = { 'a': 1, 'b': 2 };
  26192. *
  26193. * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
  26194. * // => true
  26195. *
  26196. * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
  26197. * // => false
  26198. */
  26199. function conformsTo(object, source) {
  26200. return source == null || baseConformsTo(object, source, keys(source));
  26201. }
  26202. /**
  26203. * Performs a
  26204. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  26205. * comparison between two values to determine if they are equivalent.
  26206. *
  26207. * @static
  26208. * @memberOf _
  26209. * @since 4.0.0
  26210. * @category Lang
  26211. * @param {*} value The value to compare.
  26212. * @param {*} other The other value to compare.
  26213. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26214. * @example
  26215. *
  26216. * var object = { 'a': 1 };
  26217. * var other = { 'a': 1 };
  26218. *
  26219. * _.eq(object, object);
  26220. * // => true
  26221. *
  26222. * _.eq(object, other);
  26223. * // => false
  26224. *
  26225. * _.eq('a', 'a');
  26226. * // => true
  26227. *
  26228. * _.eq('a', Object('a'));
  26229. * // => false
  26230. *
  26231. * _.eq(NaN, NaN);
  26232. * // => true
  26233. */
  26234. function eq(value, other) {
  26235. return value === other || (value !== value && other !== other);
  26236. }
  26237. /**
  26238. * Checks if `value` is greater than `other`.
  26239. *
  26240. * @static
  26241. * @memberOf _
  26242. * @since 3.9.0
  26243. * @category Lang
  26244. * @param {*} value The value to compare.
  26245. * @param {*} other The other value to compare.
  26246. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  26247. * else `false`.
  26248. * @see _.lt
  26249. * @example
  26250. *
  26251. * _.gt(3, 1);
  26252. * // => true
  26253. *
  26254. * _.gt(3, 3);
  26255. * // => false
  26256. *
  26257. * _.gt(1, 3);
  26258. * // => false
  26259. */
  26260. var gt = createRelationalOperation(baseGt);
  26261. /**
  26262. * Checks if `value` is greater than or equal to `other`.
  26263. *
  26264. * @static
  26265. * @memberOf _
  26266. * @since 3.9.0
  26267. * @category Lang
  26268. * @param {*} value The value to compare.
  26269. * @param {*} other The other value to compare.
  26270. * @returns {boolean} Returns `true` if `value` is greater than or equal to
  26271. * `other`, else `false`.
  26272. * @see _.lte
  26273. * @example
  26274. *
  26275. * _.gte(3, 1);
  26276. * // => true
  26277. *
  26278. * _.gte(3, 3);
  26279. * // => true
  26280. *
  26281. * _.gte(1, 3);
  26282. * // => false
  26283. */
  26284. var gte = createRelationalOperation(function(value, other) {
  26285. return value >= other;
  26286. });
  26287. /**
  26288. * Checks if `value` is likely an `arguments` object.
  26289. *
  26290. * @static
  26291. * @memberOf _
  26292. * @since 0.1.0
  26293. * @category Lang
  26294. * @param {*} value The value to check.
  26295. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  26296. * else `false`.
  26297. * @example
  26298. *
  26299. * _.isArguments(function() { return arguments; }());
  26300. * // => true
  26301. *
  26302. * _.isArguments([1, 2, 3]);
  26303. * // => false
  26304. */
  26305. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  26306. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  26307. !propertyIsEnumerable.call(value, 'callee');
  26308. };
  26309. /**
  26310. * Checks if `value` is classified as an `Array` object.
  26311. *
  26312. * @static
  26313. * @memberOf _
  26314. * @since 0.1.0
  26315. * @category Lang
  26316. * @param {*} value The value to check.
  26317. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  26318. * @example
  26319. *
  26320. * _.isArray([1, 2, 3]);
  26321. * // => true
  26322. *
  26323. * _.isArray(document.body.children);
  26324. * // => false
  26325. *
  26326. * _.isArray('abc');
  26327. * // => false
  26328. *
  26329. * _.isArray(_.noop);
  26330. * // => false
  26331. */
  26332. var isArray = Array.isArray;
  26333. /**
  26334. * Checks if `value` is classified as an `ArrayBuffer` object.
  26335. *
  26336. * @static
  26337. * @memberOf _
  26338. * @since 4.3.0
  26339. * @category Lang
  26340. * @param {*} value The value to check.
  26341. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  26342. * @example
  26343. *
  26344. * _.isArrayBuffer(new ArrayBuffer(2));
  26345. * // => true
  26346. *
  26347. * _.isArrayBuffer(new Array(2));
  26348. * // => false
  26349. */
  26350. var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
  26351. /**
  26352. * Checks if `value` is array-like. A value is considered array-like if it's
  26353. * not a function and has a `value.length` that's an integer greater than or
  26354. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  26355. *
  26356. * @static
  26357. * @memberOf _
  26358. * @since 4.0.0
  26359. * @category Lang
  26360. * @param {*} value The value to check.
  26361. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  26362. * @example
  26363. *
  26364. * _.isArrayLike([1, 2, 3]);
  26365. * // => true
  26366. *
  26367. * _.isArrayLike(document.body.children);
  26368. * // => true
  26369. *
  26370. * _.isArrayLike('abc');
  26371. * // => true
  26372. *
  26373. * _.isArrayLike(_.noop);
  26374. * // => false
  26375. */
  26376. function isArrayLike(value) {
  26377. return value != null && isLength(value.length) && !isFunction(value);
  26378. }
  26379. /**
  26380. * This method is like `_.isArrayLike` except that it also checks if `value`
  26381. * is an object.
  26382. *
  26383. * @static
  26384. * @memberOf _
  26385. * @since 4.0.0
  26386. * @category Lang
  26387. * @param {*} value The value to check.
  26388. * @returns {boolean} Returns `true` if `value` is an array-like object,
  26389. * else `false`.
  26390. * @example
  26391. *
  26392. * _.isArrayLikeObject([1, 2, 3]);
  26393. * // => true
  26394. *
  26395. * _.isArrayLikeObject(document.body.children);
  26396. * // => true
  26397. *
  26398. * _.isArrayLikeObject('abc');
  26399. * // => false
  26400. *
  26401. * _.isArrayLikeObject(_.noop);
  26402. * // => false
  26403. */
  26404. function isArrayLikeObject(value) {
  26405. return isObjectLike(value) && isArrayLike(value);
  26406. }
  26407. /**
  26408. * Checks if `value` is classified as a boolean primitive or object.
  26409. *
  26410. * @static
  26411. * @memberOf _
  26412. * @since 0.1.0
  26413. * @category Lang
  26414. * @param {*} value The value to check.
  26415. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
  26416. * @example
  26417. *
  26418. * _.isBoolean(false);
  26419. * // => true
  26420. *
  26421. * _.isBoolean(null);
  26422. * // => false
  26423. */
  26424. function isBoolean(value) {
  26425. return value === true || value === false ||
  26426. (isObjectLike(value) && baseGetTag(value) == boolTag);
  26427. }
  26428. /**
  26429. * Checks if `value` is a buffer.
  26430. *
  26431. * @static
  26432. * @memberOf _
  26433. * @since 4.3.0
  26434. * @category Lang
  26435. * @param {*} value The value to check.
  26436. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  26437. * @example
  26438. *
  26439. * _.isBuffer(new Buffer(2));
  26440. * // => true
  26441. *
  26442. * _.isBuffer(new Uint8Array(2));
  26443. * // => false
  26444. */
  26445. var isBuffer = nativeIsBuffer || stubFalse;
  26446. /**
  26447. * Checks if `value` is classified as a `Date` object.
  26448. *
  26449. * @static
  26450. * @memberOf _
  26451. * @since 0.1.0
  26452. * @category Lang
  26453. * @param {*} value The value to check.
  26454. * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
  26455. * @example
  26456. *
  26457. * _.isDate(new Date);
  26458. * // => true
  26459. *
  26460. * _.isDate('Mon April 23 2012');
  26461. * // => false
  26462. */
  26463. var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
  26464. /**
  26465. * Checks if `value` is likely a DOM element.
  26466. *
  26467. * @static
  26468. * @memberOf _
  26469. * @since 0.1.0
  26470. * @category Lang
  26471. * @param {*} value The value to check.
  26472. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
  26473. * @example
  26474. *
  26475. * _.isElement(document.body);
  26476. * // => true
  26477. *
  26478. * _.isElement('<body>');
  26479. * // => false
  26480. */
  26481. function isElement(value) {
  26482. return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
  26483. }
  26484. /**
  26485. * Checks if `value` is an empty object, collection, map, or set.
  26486. *
  26487. * Objects are considered empty if they have no own enumerable string keyed
  26488. * properties.
  26489. *
  26490. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  26491. * jQuery-like collections are considered empty if they have a `length` of `0`.
  26492. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  26493. *
  26494. * @static
  26495. * @memberOf _
  26496. * @since 0.1.0
  26497. * @category Lang
  26498. * @param {*} value The value to check.
  26499. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  26500. * @example
  26501. *
  26502. * _.isEmpty(null);
  26503. * // => true
  26504. *
  26505. * _.isEmpty(true);
  26506. * // => true
  26507. *
  26508. * _.isEmpty(1);
  26509. * // => true
  26510. *
  26511. * _.isEmpty([1, 2, 3]);
  26512. * // => false
  26513. *
  26514. * _.isEmpty({ 'a': 1 });
  26515. * // => false
  26516. */
  26517. function isEmpty(value) {
  26518. if (value == null) {
  26519. return true;
  26520. }
  26521. if (isArrayLike(value) &&
  26522. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  26523. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  26524. return !value.length;
  26525. }
  26526. var tag = getTag(value);
  26527. if (tag == mapTag || tag == setTag) {
  26528. return !value.size;
  26529. }
  26530. if (isPrototype(value)) {
  26531. return !baseKeys(value).length;
  26532. }
  26533. for (var key in value) {
  26534. if (hasOwnProperty.call(value, key)) {
  26535. return false;
  26536. }
  26537. }
  26538. return true;
  26539. }
  26540. /**
  26541. * Performs a deep comparison between two values to determine if they are
  26542. * equivalent.
  26543. *
  26544. * **Note:** This method supports comparing arrays, array buffers, booleans,
  26545. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  26546. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  26547. * by their own, not inherited, enumerable properties. Functions and DOM
  26548. * nodes are compared by strict equality, i.e. `===`.
  26549. *
  26550. * @static
  26551. * @memberOf _
  26552. * @since 0.1.0
  26553. * @category Lang
  26554. * @param {*} value The value to compare.
  26555. * @param {*} other The other value to compare.
  26556. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26557. * @example
  26558. *
  26559. * var object = { 'a': 1 };
  26560. * var other = { 'a': 1 };
  26561. *
  26562. * _.isEqual(object, other);
  26563. * // => true
  26564. *
  26565. * object === other;
  26566. * // => false
  26567. */
  26568. function isEqual(value, other) {
  26569. return baseIsEqual(value, other);
  26570. }
  26571. /**
  26572. * This method is like `_.isEqual` except that it accepts `customizer` which
  26573. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26574. * are handled by the method instead. The `customizer` is invoked with up to
  26575. * six arguments: (objValue, othValue [, index|key, object, other, stack]).
  26576. *
  26577. * @static
  26578. * @memberOf _
  26579. * @since 4.0.0
  26580. * @category Lang
  26581. * @param {*} value The value to compare.
  26582. * @param {*} other The other value to compare.
  26583. * @param {Function} [customizer] The function to customize comparisons.
  26584. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  26585. * @example
  26586. *
  26587. * function isGreeting(value) {
  26588. * return /^h(?:i|ello)$/.test(value);
  26589. * }
  26590. *
  26591. * function customizer(objValue, othValue) {
  26592. * if (isGreeting(objValue) && isGreeting(othValue)) {
  26593. * return true;
  26594. * }
  26595. * }
  26596. *
  26597. * var array = ['hello', 'goodbye'];
  26598. * var other = ['hi', 'goodbye'];
  26599. *
  26600. * _.isEqualWith(array, other, customizer);
  26601. * // => true
  26602. */
  26603. function isEqualWith(value, other, customizer) {
  26604. customizer = typeof customizer == 'function' ? customizer : undefined;
  26605. var result = customizer ? customizer(value, other) : undefined;
  26606. return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
  26607. }
  26608. /**
  26609. * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
  26610. * `SyntaxError`, `TypeError`, or `URIError` object.
  26611. *
  26612. * @static
  26613. * @memberOf _
  26614. * @since 3.0.0
  26615. * @category Lang
  26616. * @param {*} value The value to check.
  26617. * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
  26618. * @example
  26619. *
  26620. * _.isError(new Error);
  26621. * // => true
  26622. *
  26623. * _.isError(Error);
  26624. * // => false
  26625. */
  26626. function isError(value) {
  26627. if (!isObjectLike(value)) {
  26628. return false;
  26629. }
  26630. var tag = baseGetTag(value);
  26631. return tag == errorTag || tag == domExcTag ||
  26632. (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
  26633. }
  26634. /**
  26635. * Checks if `value` is a finite primitive number.
  26636. *
  26637. * **Note:** This method is based on
  26638. * [`Number.isFinite`](https://mdn.io/Number/isFinite).
  26639. *
  26640. * @static
  26641. * @memberOf _
  26642. * @since 0.1.0
  26643. * @category Lang
  26644. * @param {*} value The value to check.
  26645. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
  26646. * @example
  26647. *
  26648. * _.isFinite(3);
  26649. * // => true
  26650. *
  26651. * _.isFinite(Number.MIN_VALUE);
  26652. * // => true
  26653. *
  26654. * _.isFinite(Infinity);
  26655. * // => false
  26656. *
  26657. * _.isFinite('3');
  26658. * // => false
  26659. */
  26660. function isFinite(value) {
  26661. return typeof value == 'number' && nativeIsFinite(value);
  26662. }
  26663. /**
  26664. * Checks if `value` is classified as a `Function` object.
  26665. *
  26666. * @static
  26667. * @memberOf _
  26668. * @since 0.1.0
  26669. * @category Lang
  26670. * @param {*} value The value to check.
  26671. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  26672. * @example
  26673. *
  26674. * _.isFunction(_);
  26675. * // => true
  26676. *
  26677. * _.isFunction(/abc/);
  26678. * // => false
  26679. */
  26680. function isFunction(value) {
  26681. if (!isObject(value)) {
  26682. return false;
  26683. }
  26684. // The use of `Object#toString` avoids issues with the `typeof` operator
  26685. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  26686. var tag = baseGetTag(value);
  26687. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  26688. }
  26689. /**
  26690. * Checks if `value` is an integer.
  26691. *
  26692. * **Note:** This method is based on
  26693. * [`Number.isInteger`](https://mdn.io/Number/isInteger).
  26694. *
  26695. * @static
  26696. * @memberOf _
  26697. * @since 4.0.0
  26698. * @category Lang
  26699. * @param {*} value The value to check.
  26700. * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
  26701. * @example
  26702. *
  26703. * _.isInteger(3);
  26704. * // => true
  26705. *
  26706. * _.isInteger(Number.MIN_VALUE);
  26707. * // => false
  26708. *
  26709. * _.isInteger(Infinity);
  26710. * // => false
  26711. *
  26712. * _.isInteger('3');
  26713. * // => false
  26714. */
  26715. function isInteger(value) {
  26716. return typeof value == 'number' && value == toInteger(value);
  26717. }
  26718. /**
  26719. * Checks if `value` is a valid array-like length.
  26720. *
  26721. * **Note:** This method is loosely based on
  26722. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  26723. *
  26724. * @static
  26725. * @memberOf _
  26726. * @since 4.0.0
  26727. * @category Lang
  26728. * @param {*} value The value to check.
  26729. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  26730. * @example
  26731. *
  26732. * _.isLength(3);
  26733. * // => true
  26734. *
  26735. * _.isLength(Number.MIN_VALUE);
  26736. * // => false
  26737. *
  26738. * _.isLength(Infinity);
  26739. * // => false
  26740. *
  26741. * _.isLength('3');
  26742. * // => false
  26743. */
  26744. function isLength(value) {
  26745. return typeof value == 'number' &&
  26746. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  26747. }
  26748. /**
  26749. * Checks if `value` is the
  26750. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  26751. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  26752. *
  26753. * @static
  26754. * @memberOf _
  26755. * @since 0.1.0
  26756. * @category Lang
  26757. * @param {*} value The value to check.
  26758. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  26759. * @example
  26760. *
  26761. * _.isObject({});
  26762. * // => true
  26763. *
  26764. * _.isObject([1, 2, 3]);
  26765. * // => true
  26766. *
  26767. * _.isObject(_.noop);
  26768. * // => true
  26769. *
  26770. * _.isObject(null);
  26771. * // => false
  26772. */
  26773. function isObject(value) {
  26774. var type = typeof value;
  26775. return value != null && (type == 'object' || type == 'function');
  26776. }
  26777. /**
  26778. * Checks if `value` is object-like. A value is object-like if it's not `null`
  26779. * and has a `typeof` result of "object".
  26780. *
  26781. * @static
  26782. * @memberOf _
  26783. * @since 4.0.0
  26784. * @category Lang
  26785. * @param {*} value The value to check.
  26786. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  26787. * @example
  26788. *
  26789. * _.isObjectLike({});
  26790. * // => true
  26791. *
  26792. * _.isObjectLike([1, 2, 3]);
  26793. * // => true
  26794. *
  26795. * _.isObjectLike(_.noop);
  26796. * // => false
  26797. *
  26798. * _.isObjectLike(null);
  26799. * // => false
  26800. */
  26801. function isObjectLike(value) {
  26802. return value != null && typeof value == 'object';
  26803. }
  26804. /**
  26805. * Checks if `value` is classified as a `Map` object.
  26806. *
  26807. * @static
  26808. * @memberOf _
  26809. * @since 4.3.0
  26810. * @category Lang
  26811. * @param {*} value The value to check.
  26812. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  26813. * @example
  26814. *
  26815. * _.isMap(new Map);
  26816. * // => true
  26817. *
  26818. * _.isMap(new WeakMap);
  26819. * // => false
  26820. */
  26821. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  26822. /**
  26823. * Performs a partial deep comparison between `object` and `source` to
  26824. * determine if `object` contains equivalent property values.
  26825. *
  26826. * **Note:** This method is equivalent to `_.matches` when `source` is
  26827. * partially applied.
  26828. *
  26829. * Partial comparisons will match empty array and empty object `source`
  26830. * values against any array or object value, respectively. See `_.isEqual`
  26831. * for a list of supported value comparisons.
  26832. *
  26833. * @static
  26834. * @memberOf _
  26835. * @since 3.0.0
  26836. * @category Lang
  26837. * @param {Object} object The object to inspect.
  26838. * @param {Object} source The object of property values to match.
  26839. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26840. * @example
  26841. *
  26842. * var object = { 'a': 1, 'b': 2 };
  26843. *
  26844. * _.isMatch(object, { 'b': 2 });
  26845. * // => true
  26846. *
  26847. * _.isMatch(object, { 'b': 1 });
  26848. * // => false
  26849. */
  26850. function isMatch(object, source) {
  26851. return object === source || baseIsMatch(object, source, getMatchData(source));
  26852. }
  26853. /**
  26854. * This method is like `_.isMatch` except that it accepts `customizer` which
  26855. * is invoked to compare values. If `customizer` returns `undefined`, comparisons
  26856. * are handled by the method instead. The `customizer` is invoked with five
  26857. * arguments: (objValue, srcValue, index|key, object, source).
  26858. *
  26859. * @static
  26860. * @memberOf _
  26861. * @since 4.0.0
  26862. * @category Lang
  26863. * @param {Object} object The object to inspect.
  26864. * @param {Object} source The object of property values to match.
  26865. * @param {Function} [customizer] The function to customize comparisons.
  26866. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  26867. * @example
  26868. *
  26869. * function isGreeting(value) {
  26870. * return /^h(?:i|ello)$/.test(value);
  26871. * }
  26872. *
  26873. * function customizer(objValue, srcValue) {
  26874. * if (isGreeting(objValue) && isGreeting(srcValue)) {
  26875. * return true;
  26876. * }
  26877. * }
  26878. *
  26879. * var object = { 'greeting': 'hello' };
  26880. * var source = { 'greeting': 'hi' };
  26881. *
  26882. * _.isMatchWith(object, source, customizer);
  26883. * // => true
  26884. */
  26885. function isMatchWith(object, source, customizer) {
  26886. customizer = typeof customizer == 'function' ? customizer : undefined;
  26887. return baseIsMatch(object, source, getMatchData(source), customizer);
  26888. }
  26889. /**
  26890. * Checks if `value` is `NaN`.
  26891. *
  26892. * **Note:** This method is based on
  26893. * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
  26894. * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
  26895. * `undefined` and other non-number values.
  26896. *
  26897. * @static
  26898. * @memberOf _
  26899. * @since 0.1.0
  26900. * @category Lang
  26901. * @param {*} value The value to check.
  26902. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  26903. * @example
  26904. *
  26905. * _.isNaN(NaN);
  26906. * // => true
  26907. *
  26908. * _.isNaN(new Number(NaN));
  26909. * // => true
  26910. *
  26911. * isNaN(undefined);
  26912. * // => true
  26913. *
  26914. * _.isNaN(undefined);
  26915. * // => false
  26916. */
  26917. function isNaN(value) {
  26918. // An `NaN` primitive is the only value that is not equal to itself.
  26919. // Perform the `toStringTag` check first to avoid errors with some
  26920. // ActiveX objects in IE.
  26921. return isNumber(value) && value != +value;
  26922. }
  26923. /**
  26924. * Checks if `value` is a pristine native function.
  26925. *
  26926. * **Note:** This method can't reliably detect native functions in the presence
  26927. * of the core-js package because core-js circumvents this kind of detection.
  26928. * Despite multiple requests, the core-js maintainer has made it clear: any
  26929. * attempt to fix the detection will be obstructed. As a result, we're left
  26930. * with little choice but to throw an error. Unfortunately, this also affects
  26931. * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
  26932. * which rely on core-js.
  26933. *
  26934. * @static
  26935. * @memberOf _
  26936. * @since 3.0.0
  26937. * @category Lang
  26938. * @param {*} value The value to check.
  26939. * @returns {boolean} Returns `true` if `value` is a native function,
  26940. * else `false`.
  26941. * @example
  26942. *
  26943. * _.isNative(Array.prototype.push);
  26944. * // => true
  26945. *
  26946. * _.isNative(_);
  26947. * // => false
  26948. */
  26949. function isNative(value) {
  26950. if (isMaskable(value)) {
  26951. throw new Error(CORE_ERROR_TEXT);
  26952. }
  26953. return baseIsNative(value);
  26954. }
  26955. /**
  26956. * Checks if `value` is `null`.
  26957. *
  26958. * @static
  26959. * @memberOf _
  26960. * @since 0.1.0
  26961. * @category Lang
  26962. * @param {*} value The value to check.
  26963. * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
  26964. * @example
  26965. *
  26966. * _.isNull(null);
  26967. * // => true
  26968. *
  26969. * _.isNull(void 0);
  26970. * // => false
  26971. */
  26972. function isNull(value) {
  26973. return value === null;
  26974. }
  26975. /**
  26976. * Checks if `value` is `null` or `undefined`.
  26977. *
  26978. * @static
  26979. * @memberOf _
  26980. * @since 4.0.0
  26981. * @category Lang
  26982. * @param {*} value The value to check.
  26983. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  26984. * @example
  26985. *
  26986. * _.isNil(null);
  26987. * // => true
  26988. *
  26989. * _.isNil(void 0);
  26990. * // => true
  26991. *
  26992. * _.isNil(NaN);
  26993. * // => false
  26994. */
  26995. function isNil(value) {
  26996. return value == null;
  26997. }
  26998. /**
  26999. * Checks if `value` is classified as a `Number` primitive or object.
  27000. *
  27001. * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
  27002. * classified as numbers, use the `_.isFinite` method.
  27003. *
  27004. * @static
  27005. * @memberOf _
  27006. * @since 0.1.0
  27007. * @category Lang
  27008. * @param {*} value The value to check.
  27009. * @returns {boolean} Returns `true` if `value` is a number, else `false`.
  27010. * @example
  27011. *
  27012. * _.isNumber(3);
  27013. * // => true
  27014. *
  27015. * _.isNumber(Number.MIN_VALUE);
  27016. * // => true
  27017. *
  27018. * _.isNumber(Infinity);
  27019. * // => true
  27020. *
  27021. * _.isNumber('3');
  27022. * // => false
  27023. */
  27024. function isNumber(value) {
  27025. return typeof value == 'number' ||
  27026. (isObjectLike(value) && baseGetTag(value) == numberTag);
  27027. }
  27028. /**
  27029. * Checks if `value` is a plain object, that is, an object created by the
  27030. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  27031. *
  27032. * @static
  27033. * @memberOf _
  27034. * @since 0.8.0
  27035. * @category Lang
  27036. * @param {*} value The value to check.
  27037. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  27038. * @example
  27039. *
  27040. * function Foo() {
  27041. * this.a = 1;
  27042. * }
  27043. *
  27044. * _.isPlainObject(new Foo);
  27045. * // => false
  27046. *
  27047. * _.isPlainObject([1, 2, 3]);
  27048. * // => false
  27049. *
  27050. * _.isPlainObject({ 'x': 0, 'y': 0 });
  27051. * // => true
  27052. *
  27053. * _.isPlainObject(Object.create(null));
  27054. * // => true
  27055. */
  27056. function isPlainObject(value) {
  27057. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  27058. return false;
  27059. }
  27060. var proto = getPrototype(value);
  27061. if (proto === null) {
  27062. return true;
  27063. }
  27064. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  27065. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  27066. funcToString.call(Ctor) == objectCtorString;
  27067. }
  27068. /**
  27069. * Checks if `value` is classified as a `RegExp` object.
  27070. *
  27071. * @static
  27072. * @memberOf _
  27073. * @since 0.1.0
  27074. * @category Lang
  27075. * @param {*} value The value to check.
  27076. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  27077. * @example
  27078. *
  27079. * _.isRegExp(/abc/);
  27080. * // => true
  27081. *
  27082. * _.isRegExp('/abc/');
  27083. * // => false
  27084. */
  27085. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  27086. /**
  27087. * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
  27088. * double precision number which isn't the result of a rounded unsafe integer.
  27089. *
  27090. * **Note:** This method is based on
  27091. * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
  27092. *
  27093. * @static
  27094. * @memberOf _
  27095. * @since 4.0.0
  27096. * @category Lang
  27097. * @param {*} value The value to check.
  27098. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
  27099. * @example
  27100. *
  27101. * _.isSafeInteger(3);
  27102. * // => true
  27103. *
  27104. * _.isSafeInteger(Number.MIN_VALUE);
  27105. * // => false
  27106. *
  27107. * _.isSafeInteger(Infinity);
  27108. * // => false
  27109. *
  27110. * _.isSafeInteger('3');
  27111. * // => false
  27112. */
  27113. function isSafeInteger(value) {
  27114. return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
  27115. }
  27116. /**
  27117. * Checks if `value` is classified as a `Set` object.
  27118. *
  27119. * @static
  27120. * @memberOf _
  27121. * @since 4.3.0
  27122. * @category Lang
  27123. * @param {*} value The value to check.
  27124. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  27125. * @example
  27126. *
  27127. * _.isSet(new Set);
  27128. * // => true
  27129. *
  27130. * _.isSet(new WeakSet);
  27131. * // => false
  27132. */
  27133. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  27134. /**
  27135. * Checks if `value` is classified as a `String` primitive or object.
  27136. *
  27137. * @static
  27138. * @since 0.1.0
  27139. * @memberOf _
  27140. * @category Lang
  27141. * @param {*} value The value to check.
  27142. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  27143. * @example
  27144. *
  27145. * _.isString('abc');
  27146. * // => true
  27147. *
  27148. * _.isString(1);
  27149. * // => false
  27150. */
  27151. function isString(value) {
  27152. return typeof value == 'string' ||
  27153. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  27154. }
  27155. /**
  27156. * Checks if `value` is classified as a `Symbol` primitive or object.
  27157. *
  27158. * @static
  27159. * @memberOf _
  27160. * @since 4.0.0
  27161. * @category Lang
  27162. * @param {*} value The value to check.
  27163. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  27164. * @example
  27165. *
  27166. * _.isSymbol(Symbol.iterator);
  27167. * // => true
  27168. *
  27169. * _.isSymbol('abc');
  27170. * // => false
  27171. */
  27172. function isSymbol(value) {
  27173. return typeof value == 'symbol' ||
  27174. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  27175. }
  27176. /**
  27177. * Checks if `value` is classified as a typed array.
  27178. *
  27179. * @static
  27180. * @memberOf _
  27181. * @since 3.0.0
  27182. * @category Lang
  27183. * @param {*} value The value to check.
  27184. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  27185. * @example
  27186. *
  27187. * _.isTypedArray(new Uint8Array);
  27188. * // => true
  27189. *
  27190. * _.isTypedArray([]);
  27191. * // => false
  27192. */
  27193. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  27194. /**
  27195. * Checks if `value` is `undefined`.
  27196. *
  27197. * @static
  27198. * @since 0.1.0
  27199. * @memberOf _
  27200. * @category Lang
  27201. * @param {*} value The value to check.
  27202. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  27203. * @example
  27204. *
  27205. * _.isUndefined(void 0);
  27206. * // => true
  27207. *
  27208. * _.isUndefined(null);
  27209. * // => false
  27210. */
  27211. function isUndefined(value) {
  27212. return value === undefined;
  27213. }
  27214. /**
  27215. * Checks if `value` is classified as a `WeakMap` object.
  27216. *
  27217. * @static
  27218. * @memberOf _
  27219. * @since 4.3.0
  27220. * @category Lang
  27221. * @param {*} value The value to check.
  27222. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
  27223. * @example
  27224. *
  27225. * _.isWeakMap(new WeakMap);
  27226. * // => true
  27227. *
  27228. * _.isWeakMap(new Map);
  27229. * // => false
  27230. */
  27231. function isWeakMap(value) {
  27232. return isObjectLike(value) && getTag(value) == weakMapTag;
  27233. }
  27234. /**
  27235. * Checks if `value` is classified as a `WeakSet` object.
  27236. *
  27237. * @static
  27238. * @memberOf _
  27239. * @since 4.3.0
  27240. * @category Lang
  27241. * @param {*} value The value to check.
  27242. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
  27243. * @example
  27244. *
  27245. * _.isWeakSet(new WeakSet);
  27246. * // => true
  27247. *
  27248. * _.isWeakSet(new Set);
  27249. * // => false
  27250. */
  27251. function isWeakSet(value) {
  27252. return isObjectLike(value) && baseGetTag(value) == weakSetTag;
  27253. }
  27254. /**
  27255. * Checks if `value` is less than `other`.
  27256. *
  27257. * @static
  27258. * @memberOf _
  27259. * @since 3.9.0
  27260. * @category Lang
  27261. * @param {*} value The value to compare.
  27262. * @param {*} other The other value to compare.
  27263. * @returns {boolean} Returns `true` if `value` is less than `other`,
  27264. * else `false`.
  27265. * @see _.gt
  27266. * @example
  27267. *
  27268. * _.lt(1, 3);
  27269. * // => true
  27270. *
  27271. * _.lt(3, 3);
  27272. * // => false
  27273. *
  27274. * _.lt(3, 1);
  27275. * // => false
  27276. */
  27277. var lt = createRelationalOperation(baseLt);
  27278. /**
  27279. * Checks if `value` is less than or equal to `other`.
  27280. *
  27281. * @static
  27282. * @memberOf _
  27283. * @since 3.9.0
  27284. * @category Lang
  27285. * @param {*} value The value to compare.
  27286. * @param {*} other The other value to compare.
  27287. * @returns {boolean} Returns `true` if `value` is less than or equal to
  27288. * `other`, else `false`.
  27289. * @see _.gte
  27290. * @example
  27291. *
  27292. * _.lte(1, 3);
  27293. * // => true
  27294. *
  27295. * _.lte(3, 3);
  27296. * // => true
  27297. *
  27298. * _.lte(3, 1);
  27299. * // => false
  27300. */
  27301. var lte = createRelationalOperation(function(value, other) {
  27302. return value <= other;
  27303. });
  27304. /**
  27305. * Converts `value` to an array.
  27306. *
  27307. * @static
  27308. * @since 0.1.0
  27309. * @memberOf _
  27310. * @category Lang
  27311. * @param {*} value The value to convert.
  27312. * @returns {Array} Returns the converted array.
  27313. * @example
  27314. *
  27315. * _.toArray({ 'a': 1, 'b': 2 });
  27316. * // => [1, 2]
  27317. *
  27318. * _.toArray('abc');
  27319. * // => ['a', 'b', 'c']
  27320. *
  27321. * _.toArray(1);
  27322. * // => []
  27323. *
  27324. * _.toArray(null);
  27325. * // => []
  27326. */
  27327. function toArray(value) {
  27328. if (!value) {
  27329. return [];
  27330. }
  27331. if (isArrayLike(value)) {
  27332. return isString(value) ? stringToArray(value) : copyArray(value);
  27333. }
  27334. if (symIterator && value[symIterator]) {
  27335. return iteratorToArray(value[symIterator]());
  27336. }
  27337. var tag = getTag(value),
  27338. func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
  27339. return func(value);
  27340. }
  27341. /**
  27342. * Converts `value` to a finite number.
  27343. *
  27344. * @static
  27345. * @memberOf _
  27346. * @since 4.12.0
  27347. * @category Lang
  27348. * @param {*} value The value to convert.
  27349. * @returns {number} Returns the converted number.
  27350. * @example
  27351. *
  27352. * _.toFinite(3.2);
  27353. * // => 3.2
  27354. *
  27355. * _.toFinite(Number.MIN_VALUE);
  27356. * // => 5e-324
  27357. *
  27358. * _.toFinite(Infinity);
  27359. * // => 1.7976931348623157e+308
  27360. *
  27361. * _.toFinite('3.2');
  27362. * // => 3.2
  27363. */
  27364. function toFinite(value) {
  27365. if (!value) {
  27366. return value === 0 ? value : 0;
  27367. }
  27368. value = toNumber(value);
  27369. if (value === INFINITY || value === -INFINITY) {
  27370. var sign = (value < 0 ? -1 : 1);
  27371. return sign * MAX_INTEGER;
  27372. }
  27373. return value === value ? value : 0;
  27374. }
  27375. /**
  27376. * Converts `value` to an integer.
  27377. *
  27378. * **Note:** This method is loosely based on
  27379. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  27380. *
  27381. * @static
  27382. * @memberOf _
  27383. * @since 4.0.0
  27384. * @category Lang
  27385. * @param {*} value The value to convert.
  27386. * @returns {number} Returns the converted integer.
  27387. * @example
  27388. *
  27389. * _.toInteger(3.2);
  27390. * // => 3
  27391. *
  27392. * _.toInteger(Number.MIN_VALUE);
  27393. * // => 0
  27394. *
  27395. * _.toInteger(Infinity);
  27396. * // => 1.7976931348623157e+308
  27397. *
  27398. * _.toInteger('3.2');
  27399. * // => 3
  27400. */
  27401. function toInteger(value) {
  27402. var result = toFinite(value),
  27403. remainder = result % 1;
  27404. return result === result ? (remainder ? result - remainder : result) : 0;
  27405. }
  27406. /**
  27407. * Converts `value` to an integer suitable for use as the length of an
  27408. * array-like object.
  27409. *
  27410. * **Note:** This method is based on
  27411. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  27412. *
  27413. * @static
  27414. * @memberOf _
  27415. * @since 4.0.0
  27416. * @category Lang
  27417. * @param {*} value The value to convert.
  27418. * @returns {number} Returns the converted integer.
  27419. * @example
  27420. *
  27421. * _.toLength(3.2);
  27422. * // => 3
  27423. *
  27424. * _.toLength(Number.MIN_VALUE);
  27425. * // => 0
  27426. *
  27427. * _.toLength(Infinity);
  27428. * // => 4294967295
  27429. *
  27430. * _.toLength('3.2');
  27431. * // => 3
  27432. */
  27433. function toLength(value) {
  27434. return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
  27435. }
  27436. /**
  27437. * Converts `value` to a number.
  27438. *
  27439. * @static
  27440. * @memberOf _
  27441. * @since 4.0.0
  27442. * @category Lang
  27443. * @param {*} value The value to process.
  27444. * @returns {number} Returns the number.
  27445. * @example
  27446. *
  27447. * _.toNumber(3.2);
  27448. * // => 3.2
  27449. *
  27450. * _.toNumber(Number.MIN_VALUE);
  27451. * // => 5e-324
  27452. *
  27453. * _.toNumber(Infinity);
  27454. * // => Infinity
  27455. *
  27456. * _.toNumber('3.2');
  27457. * // => 3.2
  27458. */
  27459. function toNumber(value) {
  27460. if (typeof value == 'number') {
  27461. return value;
  27462. }
  27463. if (isSymbol(value)) {
  27464. return NAN;
  27465. }
  27466. if (isObject(value)) {
  27467. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  27468. value = isObject(other) ? (other + '') : other;
  27469. }
  27470. if (typeof value != 'string') {
  27471. return value === 0 ? value : +value;
  27472. }
  27473. value = value.replace(reTrim, '');
  27474. var isBinary = reIsBinary.test(value);
  27475. return (isBinary || reIsOctal.test(value))
  27476. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  27477. : (reIsBadHex.test(value) ? NAN : +value);
  27478. }
  27479. /**
  27480. * Converts `value` to a plain object flattening inherited enumerable string
  27481. * keyed properties of `value` to own properties of the plain object.
  27482. *
  27483. * @static
  27484. * @memberOf _
  27485. * @since 3.0.0
  27486. * @category Lang
  27487. * @param {*} value The value to convert.
  27488. * @returns {Object} Returns the converted plain object.
  27489. * @example
  27490. *
  27491. * function Foo() {
  27492. * this.b = 2;
  27493. * }
  27494. *
  27495. * Foo.prototype.c = 3;
  27496. *
  27497. * _.assign({ 'a': 1 }, new Foo);
  27498. * // => { 'a': 1, 'b': 2 }
  27499. *
  27500. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  27501. * // => { 'a': 1, 'b': 2, 'c': 3 }
  27502. */
  27503. function toPlainObject(value) {
  27504. return copyObject(value, keysIn(value));
  27505. }
  27506. /**
  27507. * Converts `value` to a safe integer. A safe integer can be compared and
  27508. * represented correctly.
  27509. *
  27510. * @static
  27511. * @memberOf _
  27512. * @since 4.0.0
  27513. * @category Lang
  27514. * @param {*} value The value to convert.
  27515. * @returns {number} Returns the converted integer.
  27516. * @example
  27517. *
  27518. * _.toSafeInteger(3.2);
  27519. * // => 3
  27520. *
  27521. * _.toSafeInteger(Number.MIN_VALUE);
  27522. * // => 0
  27523. *
  27524. * _.toSafeInteger(Infinity);
  27525. * // => 9007199254740991
  27526. *
  27527. * _.toSafeInteger('3.2');
  27528. * // => 3
  27529. */
  27530. function toSafeInteger(value) {
  27531. return value
  27532. ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
  27533. : (value === 0 ? value : 0);
  27534. }
  27535. /**
  27536. * Converts `value` to a string. An empty string is returned for `null`
  27537. * and `undefined` values. The sign of `-0` is preserved.
  27538. *
  27539. * @static
  27540. * @memberOf _
  27541. * @since 4.0.0
  27542. * @category Lang
  27543. * @param {*} value The value to convert.
  27544. * @returns {string} Returns the converted string.
  27545. * @example
  27546. *
  27547. * _.toString(null);
  27548. * // => ''
  27549. *
  27550. * _.toString(-0);
  27551. * // => '-0'
  27552. *
  27553. * _.toString([1, 2, 3]);
  27554. * // => '1,2,3'
  27555. */
  27556. function toString(value) {
  27557. return value == null ? '' : baseToString(value);
  27558. }
  27559. /*------------------------------------------------------------------------*/
  27560. /**
  27561. * Assigns own enumerable string keyed properties of source objects to the
  27562. * destination object. Source objects are applied from left to right.
  27563. * Subsequent sources overwrite property assignments of previous sources.
  27564. *
  27565. * **Note:** This method mutates `object` and is loosely based on
  27566. * [`Object.assign`](https://mdn.io/Object/assign).
  27567. *
  27568. * @static
  27569. * @memberOf _
  27570. * @since 0.10.0
  27571. * @category Object
  27572. * @param {Object} object The destination object.
  27573. * @param {...Object} [sources] The source objects.
  27574. * @returns {Object} Returns `object`.
  27575. * @see _.assignIn
  27576. * @example
  27577. *
  27578. * function Foo() {
  27579. * this.a = 1;
  27580. * }
  27581. *
  27582. * function Bar() {
  27583. * this.c = 3;
  27584. * }
  27585. *
  27586. * Foo.prototype.b = 2;
  27587. * Bar.prototype.d = 4;
  27588. *
  27589. * _.assign({ 'a': 0 }, new Foo, new Bar);
  27590. * // => { 'a': 1, 'c': 3 }
  27591. */
  27592. var assign = createAssigner(function(object, source) {
  27593. if (isPrototype(source) || isArrayLike(source)) {
  27594. copyObject(source, keys(source), object);
  27595. return;
  27596. }
  27597. for (var key in source) {
  27598. if (hasOwnProperty.call(source, key)) {
  27599. assignValue(object, key, source[key]);
  27600. }
  27601. }
  27602. });
  27603. /**
  27604. * This method is like `_.assign` except that it iterates over own and
  27605. * inherited source properties.
  27606. *
  27607. * **Note:** This method mutates `object`.
  27608. *
  27609. * @static
  27610. * @memberOf _
  27611. * @since 4.0.0
  27612. * @alias extend
  27613. * @category Object
  27614. * @param {Object} object The destination object.
  27615. * @param {...Object} [sources] The source objects.
  27616. * @returns {Object} Returns `object`.
  27617. * @see _.assign
  27618. * @example
  27619. *
  27620. * function Foo() {
  27621. * this.a = 1;
  27622. * }
  27623. *
  27624. * function Bar() {
  27625. * this.c = 3;
  27626. * }
  27627. *
  27628. * Foo.prototype.b = 2;
  27629. * Bar.prototype.d = 4;
  27630. *
  27631. * _.assignIn({ 'a': 0 }, new Foo, new Bar);
  27632. * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
  27633. */
  27634. var assignIn = createAssigner(function(object, source) {
  27635. copyObject(source, keysIn(source), object);
  27636. });
  27637. /**
  27638. * This method is like `_.assignIn` except that it accepts `customizer`
  27639. * which is invoked to produce the assigned values. If `customizer` returns
  27640. * `undefined`, assignment is handled by the method instead. The `customizer`
  27641. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27642. *
  27643. * **Note:** This method mutates `object`.
  27644. *
  27645. * @static
  27646. * @memberOf _
  27647. * @since 4.0.0
  27648. * @alias extendWith
  27649. * @category Object
  27650. * @param {Object} object The destination object.
  27651. * @param {...Object} sources The source objects.
  27652. * @param {Function} [customizer] The function to customize assigned values.
  27653. * @returns {Object} Returns `object`.
  27654. * @see _.assignWith
  27655. * @example
  27656. *
  27657. * function customizer(objValue, srcValue) {
  27658. * return _.isUndefined(objValue) ? srcValue : objValue;
  27659. * }
  27660. *
  27661. * var defaults = _.partialRight(_.assignInWith, customizer);
  27662. *
  27663. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27664. * // => { 'a': 1, 'b': 2 }
  27665. */
  27666. var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
  27667. copyObject(source, keysIn(source), object, customizer);
  27668. });
  27669. /**
  27670. * This method is like `_.assign` except that it accepts `customizer`
  27671. * which is invoked to produce the assigned values. If `customizer` returns
  27672. * `undefined`, assignment is handled by the method instead. The `customizer`
  27673. * is invoked with five arguments: (objValue, srcValue, key, object, source).
  27674. *
  27675. * **Note:** This method mutates `object`.
  27676. *
  27677. * @static
  27678. * @memberOf _
  27679. * @since 4.0.0
  27680. * @category Object
  27681. * @param {Object} object The destination object.
  27682. * @param {...Object} sources The source objects.
  27683. * @param {Function} [customizer] The function to customize assigned values.
  27684. * @returns {Object} Returns `object`.
  27685. * @see _.assignInWith
  27686. * @example
  27687. *
  27688. * function customizer(objValue, srcValue) {
  27689. * return _.isUndefined(objValue) ? srcValue : objValue;
  27690. * }
  27691. *
  27692. * var defaults = _.partialRight(_.assignWith, customizer);
  27693. *
  27694. * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27695. * // => { 'a': 1, 'b': 2 }
  27696. */
  27697. var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
  27698. copyObject(source, keys(source), object, customizer);
  27699. });
  27700. /**
  27701. * Creates an array of values corresponding to `paths` of `object`.
  27702. *
  27703. * @static
  27704. * @memberOf _
  27705. * @since 1.0.0
  27706. * @category Object
  27707. * @param {Object} object The object to iterate over.
  27708. * @param {...(string|string[])} [paths] The property paths to pick.
  27709. * @returns {Array} Returns the picked values.
  27710. * @example
  27711. *
  27712. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  27713. *
  27714. * _.at(object, ['a[0].b.c', 'a[1]']);
  27715. * // => [3, 4]
  27716. */
  27717. var at = flatRest(baseAt);
  27718. /**
  27719. * Creates an object that inherits from the `prototype` object. If a
  27720. * `properties` object is given, its own enumerable string keyed properties
  27721. * are assigned to the created object.
  27722. *
  27723. * @static
  27724. * @memberOf _
  27725. * @since 2.3.0
  27726. * @category Object
  27727. * @param {Object} prototype The object to inherit from.
  27728. * @param {Object} [properties] The properties to assign to the object.
  27729. * @returns {Object} Returns the new object.
  27730. * @example
  27731. *
  27732. * function Shape() {
  27733. * this.x = 0;
  27734. * this.y = 0;
  27735. * }
  27736. *
  27737. * function Circle() {
  27738. * Shape.call(this);
  27739. * }
  27740. *
  27741. * Circle.prototype = _.create(Shape.prototype, {
  27742. * 'constructor': Circle
  27743. * });
  27744. *
  27745. * var circle = new Circle;
  27746. * circle instanceof Circle;
  27747. * // => true
  27748. *
  27749. * circle instanceof Shape;
  27750. * // => true
  27751. */
  27752. function create(prototype, properties) {
  27753. var result = baseCreate(prototype);
  27754. return properties == null ? result : baseAssign(result, properties);
  27755. }
  27756. /**
  27757. * Assigns own and inherited enumerable string keyed properties of source
  27758. * objects to the destination object for all destination properties that
  27759. * resolve to `undefined`. Source objects are applied from left to right.
  27760. * Once a property is set, additional values of the same property are ignored.
  27761. *
  27762. * **Note:** This method mutates `object`.
  27763. *
  27764. * @static
  27765. * @since 0.1.0
  27766. * @memberOf _
  27767. * @category Object
  27768. * @param {Object} object The destination object.
  27769. * @param {...Object} [sources] The source objects.
  27770. * @returns {Object} Returns `object`.
  27771. * @see _.defaultsDeep
  27772. * @example
  27773. *
  27774. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  27775. * // => { 'a': 1, 'b': 2 }
  27776. */
  27777. var defaults = baseRest(function(object, sources) {
  27778. object = Object(object);
  27779. var index = -1;
  27780. var length = sources.length;
  27781. var guard = length > 2 ? sources[2] : undefined;
  27782. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  27783. length = 1;
  27784. }
  27785. while (++index < length) {
  27786. var source = sources[index];
  27787. var props = keysIn(source);
  27788. var propsIndex = -1;
  27789. var propsLength = props.length;
  27790. while (++propsIndex < propsLength) {
  27791. var key = props[propsIndex];
  27792. var value = object[key];
  27793. if (value === undefined ||
  27794. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  27795. object[key] = source[key];
  27796. }
  27797. }
  27798. }
  27799. return object;
  27800. });
  27801. /**
  27802. * This method is like `_.defaults` except that it recursively assigns
  27803. * default properties.
  27804. *
  27805. * **Note:** This method mutates `object`.
  27806. *
  27807. * @static
  27808. * @memberOf _
  27809. * @since 3.10.0
  27810. * @category Object
  27811. * @param {Object} object The destination object.
  27812. * @param {...Object} [sources] The source objects.
  27813. * @returns {Object} Returns `object`.
  27814. * @see _.defaults
  27815. * @example
  27816. *
  27817. * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
  27818. * // => { 'a': { 'b': 2, 'c': 3 } }
  27819. */
  27820. var defaultsDeep = baseRest(function(args) {
  27821. args.push(undefined, customDefaultsMerge);
  27822. return apply(mergeWith, undefined, args);
  27823. });
  27824. /**
  27825. * This method is like `_.find` except that it returns the key of the first
  27826. * element `predicate` returns truthy for instead of the element itself.
  27827. *
  27828. * @static
  27829. * @memberOf _
  27830. * @since 1.1.0
  27831. * @category Object
  27832. * @param {Object} object The object to inspect.
  27833. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27834. * @returns {string|undefined} Returns the key of the matched element,
  27835. * else `undefined`.
  27836. * @example
  27837. *
  27838. * var users = {
  27839. * 'barney': { 'age': 36, 'active': true },
  27840. * 'fred': { 'age': 40, 'active': false },
  27841. * 'pebbles': { 'age': 1, 'active': true }
  27842. * };
  27843. *
  27844. * _.findKey(users, function(o) { return o.age < 40; });
  27845. * // => 'barney' (iteration order is not guaranteed)
  27846. *
  27847. * // The `_.matches` iteratee shorthand.
  27848. * _.findKey(users, { 'age': 1, 'active': true });
  27849. * // => 'pebbles'
  27850. *
  27851. * // The `_.matchesProperty` iteratee shorthand.
  27852. * _.findKey(users, ['active', false]);
  27853. * // => 'fred'
  27854. *
  27855. * // The `_.property` iteratee shorthand.
  27856. * _.findKey(users, 'active');
  27857. * // => 'barney'
  27858. */
  27859. function findKey(object, predicate) {
  27860. return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
  27861. }
  27862. /**
  27863. * This method is like `_.findKey` except that it iterates over elements of
  27864. * a collection in the opposite order.
  27865. *
  27866. * @static
  27867. * @memberOf _
  27868. * @since 2.0.0
  27869. * @category Object
  27870. * @param {Object} object The object to inspect.
  27871. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  27872. * @returns {string|undefined} Returns the key of the matched element,
  27873. * else `undefined`.
  27874. * @example
  27875. *
  27876. * var users = {
  27877. * 'barney': { 'age': 36, 'active': true },
  27878. * 'fred': { 'age': 40, 'active': false },
  27879. * 'pebbles': { 'age': 1, 'active': true }
  27880. * };
  27881. *
  27882. * _.findLastKey(users, function(o) { return o.age < 40; });
  27883. * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
  27884. *
  27885. * // The `_.matches` iteratee shorthand.
  27886. * _.findLastKey(users, { 'age': 36, 'active': true });
  27887. * // => 'barney'
  27888. *
  27889. * // The `_.matchesProperty` iteratee shorthand.
  27890. * _.findLastKey(users, ['active', false]);
  27891. * // => 'fred'
  27892. *
  27893. * // The `_.property` iteratee shorthand.
  27894. * _.findLastKey(users, 'active');
  27895. * // => 'pebbles'
  27896. */
  27897. function findLastKey(object, predicate) {
  27898. return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
  27899. }
  27900. /**
  27901. * Iterates over own and inherited enumerable string keyed properties of an
  27902. * object and invokes `iteratee` for each property. The iteratee is invoked
  27903. * with three arguments: (value, key, object). Iteratee functions may exit
  27904. * iteration early by explicitly returning `false`.
  27905. *
  27906. * @static
  27907. * @memberOf _
  27908. * @since 0.3.0
  27909. * @category Object
  27910. * @param {Object} object The object to iterate over.
  27911. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27912. * @returns {Object} Returns `object`.
  27913. * @see _.forInRight
  27914. * @example
  27915. *
  27916. * function Foo() {
  27917. * this.a = 1;
  27918. * this.b = 2;
  27919. * }
  27920. *
  27921. * Foo.prototype.c = 3;
  27922. *
  27923. * _.forIn(new Foo, function(value, key) {
  27924. * console.log(key);
  27925. * });
  27926. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  27927. */
  27928. function forIn(object, iteratee) {
  27929. return object == null
  27930. ? object
  27931. : baseFor(object, getIteratee(iteratee, 3), keysIn);
  27932. }
  27933. /**
  27934. * This method is like `_.forIn` except that it iterates over properties of
  27935. * `object` in the opposite order.
  27936. *
  27937. * @static
  27938. * @memberOf _
  27939. * @since 2.0.0
  27940. * @category Object
  27941. * @param {Object} object The object to iterate over.
  27942. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27943. * @returns {Object} Returns `object`.
  27944. * @see _.forIn
  27945. * @example
  27946. *
  27947. * function Foo() {
  27948. * this.a = 1;
  27949. * this.b = 2;
  27950. * }
  27951. *
  27952. * Foo.prototype.c = 3;
  27953. *
  27954. * _.forInRight(new Foo, function(value, key) {
  27955. * console.log(key);
  27956. * });
  27957. * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
  27958. */
  27959. function forInRight(object, iteratee) {
  27960. return object == null
  27961. ? object
  27962. : baseForRight(object, getIteratee(iteratee, 3), keysIn);
  27963. }
  27964. /**
  27965. * Iterates over own enumerable string keyed properties of an object and
  27966. * invokes `iteratee` for each property. The iteratee is invoked with three
  27967. * arguments: (value, key, object). Iteratee functions may exit iteration
  27968. * early by explicitly returning `false`.
  27969. *
  27970. * @static
  27971. * @memberOf _
  27972. * @since 0.3.0
  27973. * @category Object
  27974. * @param {Object} object The object to iterate over.
  27975. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  27976. * @returns {Object} Returns `object`.
  27977. * @see _.forOwnRight
  27978. * @example
  27979. *
  27980. * function Foo() {
  27981. * this.a = 1;
  27982. * this.b = 2;
  27983. * }
  27984. *
  27985. * Foo.prototype.c = 3;
  27986. *
  27987. * _.forOwn(new Foo, function(value, key) {
  27988. * console.log(key);
  27989. * });
  27990. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  27991. */
  27992. function forOwn(object, iteratee) {
  27993. return object && baseForOwn(object, getIteratee(iteratee, 3));
  27994. }
  27995. /**
  27996. * This method is like `_.forOwn` except that it iterates over properties of
  27997. * `object` in the opposite order.
  27998. *
  27999. * @static
  28000. * @memberOf _
  28001. * @since 2.0.0
  28002. * @category Object
  28003. * @param {Object} object The object to iterate over.
  28004. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28005. * @returns {Object} Returns `object`.
  28006. * @see _.forOwn
  28007. * @example
  28008. *
  28009. * function Foo() {
  28010. * this.a = 1;
  28011. * this.b = 2;
  28012. * }
  28013. *
  28014. * Foo.prototype.c = 3;
  28015. *
  28016. * _.forOwnRight(new Foo, function(value, key) {
  28017. * console.log(key);
  28018. * });
  28019. * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
  28020. */
  28021. function forOwnRight(object, iteratee) {
  28022. return object && baseForOwnRight(object, getIteratee(iteratee, 3));
  28023. }
  28024. /**
  28025. * Creates an array of function property names from own enumerable properties
  28026. * of `object`.
  28027. *
  28028. * @static
  28029. * @since 0.1.0
  28030. * @memberOf _
  28031. * @category Object
  28032. * @param {Object} object The object to inspect.
  28033. * @returns {Array} Returns the function names.
  28034. * @see _.functionsIn
  28035. * @example
  28036. *
  28037. * function Foo() {
  28038. * this.a = _.constant('a');
  28039. * this.b = _.constant('b');
  28040. * }
  28041. *
  28042. * Foo.prototype.c = _.constant('c');
  28043. *
  28044. * _.functions(new Foo);
  28045. * // => ['a', 'b']
  28046. */
  28047. function functions(object) {
  28048. return object == null ? [] : baseFunctions(object, keys(object));
  28049. }
  28050. /**
  28051. * Creates an array of function property names from own and inherited
  28052. * enumerable properties of `object`.
  28053. *
  28054. * @static
  28055. * @memberOf _
  28056. * @since 4.0.0
  28057. * @category Object
  28058. * @param {Object} object The object to inspect.
  28059. * @returns {Array} Returns the function names.
  28060. * @see _.functions
  28061. * @example
  28062. *
  28063. * function Foo() {
  28064. * this.a = _.constant('a');
  28065. * this.b = _.constant('b');
  28066. * }
  28067. *
  28068. * Foo.prototype.c = _.constant('c');
  28069. *
  28070. * _.functionsIn(new Foo);
  28071. * // => ['a', 'b', 'c']
  28072. */
  28073. function functionsIn(object) {
  28074. return object == null ? [] : baseFunctions(object, keysIn(object));
  28075. }
  28076. /**
  28077. * Gets the value at `path` of `object`. If the resolved value is
  28078. * `undefined`, the `defaultValue` is returned in its place.
  28079. *
  28080. * @static
  28081. * @memberOf _
  28082. * @since 3.7.0
  28083. * @category Object
  28084. * @param {Object} object The object to query.
  28085. * @param {Array|string} path The path of the property to get.
  28086. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28087. * @returns {*} Returns the resolved value.
  28088. * @example
  28089. *
  28090. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28091. *
  28092. * _.get(object, 'a[0].b.c');
  28093. * // => 3
  28094. *
  28095. * _.get(object, ['a', '0', 'b', 'c']);
  28096. * // => 3
  28097. *
  28098. * _.get(object, 'a.b.c', 'default');
  28099. * // => 'default'
  28100. */
  28101. function get(object, path, defaultValue) {
  28102. var result = object == null ? undefined : baseGet(object, path);
  28103. return result === undefined ? defaultValue : result;
  28104. }
  28105. /**
  28106. * Checks if `path` is a direct property of `object`.
  28107. *
  28108. * @static
  28109. * @since 0.1.0
  28110. * @memberOf _
  28111. * @category Object
  28112. * @param {Object} object The object to query.
  28113. * @param {Array|string} path The path to check.
  28114. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28115. * @example
  28116. *
  28117. * var object = { 'a': { 'b': 2 } };
  28118. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  28119. *
  28120. * _.has(object, 'a');
  28121. * // => true
  28122. *
  28123. * _.has(object, 'a.b');
  28124. * // => true
  28125. *
  28126. * _.has(object, ['a', 'b']);
  28127. * // => true
  28128. *
  28129. * _.has(other, 'a');
  28130. * // => false
  28131. */
  28132. function has(object, path) {
  28133. return object != null && hasPath(object, path, baseHas);
  28134. }
  28135. /**
  28136. * Checks if `path` is a direct or inherited property of `object`.
  28137. *
  28138. * @static
  28139. * @memberOf _
  28140. * @since 4.0.0
  28141. * @category Object
  28142. * @param {Object} object The object to query.
  28143. * @param {Array|string} path The path to check.
  28144. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  28145. * @example
  28146. *
  28147. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  28148. *
  28149. * _.hasIn(object, 'a');
  28150. * // => true
  28151. *
  28152. * _.hasIn(object, 'a.b');
  28153. * // => true
  28154. *
  28155. * _.hasIn(object, ['a', 'b']);
  28156. * // => true
  28157. *
  28158. * _.hasIn(object, 'b');
  28159. * // => false
  28160. */
  28161. function hasIn(object, path) {
  28162. return object != null && hasPath(object, path, baseHasIn);
  28163. }
  28164. /**
  28165. * Creates an object composed of the inverted keys and values of `object`.
  28166. * If `object` contains duplicate values, subsequent values overwrite
  28167. * property assignments of previous values.
  28168. *
  28169. * @static
  28170. * @memberOf _
  28171. * @since 0.7.0
  28172. * @category Object
  28173. * @param {Object} object The object to invert.
  28174. * @returns {Object} Returns the new inverted object.
  28175. * @example
  28176. *
  28177. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28178. *
  28179. * _.invert(object);
  28180. * // => { '1': 'c', '2': 'b' }
  28181. */
  28182. var invert = createInverter(function(result, value, key) {
  28183. if (value != null &&
  28184. typeof value.toString != 'function') {
  28185. value = nativeObjectToString.call(value);
  28186. }
  28187. result[value] = key;
  28188. }, constant(identity));
  28189. /**
  28190. * This method is like `_.invert` except that the inverted object is generated
  28191. * from the results of running each element of `object` thru `iteratee`. The
  28192. * corresponding inverted value of each inverted key is an array of keys
  28193. * responsible for generating the inverted value. The iteratee is invoked
  28194. * with one argument: (value).
  28195. *
  28196. * @static
  28197. * @memberOf _
  28198. * @since 4.1.0
  28199. * @category Object
  28200. * @param {Object} object The object to invert.
  28201. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  28202. * @returns {Object} Returns the new inverted object.
  28203. * @example
  28204. *
  28205. * var object = { 'a': 1, 'b': 2, 'c': 1 };
  28206. *
  28207. * _.invertBy(object);
  28208. * // => { '1': ['a', 'c'], '2': ['b'] }
  28209. *
  28210. * _.invertBy(object, function(value) {
  28211. * return 'group' + value;
  28212. * });
  28213. * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
  28214. */
  28215. var invertBy = createInverter(function(result, value, key) {
  28216. if (value != null &&
  28217. typeof value.toString != 'function') {
  28218. value = nativeObjectToString.call(value);
  28219. }
  28220. if (hasOwnProperty.call(result, value)) {
  28221. result[value].push(key);
  28222. } else {
  28223. result[value] = [key];
  28224. }
  28225. }, getIteratee);
  28226. /**
  28227. * Invokes the method at `path` of `object`.
  28228. *
  28229. * @static
  28230. * @memberOf _
  28231. * @since 4.0.0
  28232. * @category Object
  28233. * @param {Object} object The object to query.
  28234. * @param {Array|string} path The path of the method to invoke.
  28235. * @param {...*} [args] The arguments to invoke the method with.
  28236. * @returns {*} Returns the result of the invoked method.
  28237. * @example
  28238. *
  28239. * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
  28240. *
  28241. * _.invoke(object, 'a[0].b.c.slice', 1, 3);
  28242. * // => [2, 3]
  28243. */
  28244. var invoke = baseRest(baseInvoke);
  28245. /**
  28246. * Creates an array of the own enumerable property names of `object`.
  28247. *
  28248. * **Note:** Non-object values are coerced to objects. See the
  28249. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  28250. * for more details.
  28251. *
  28252. * @static
  28253. * @since 0.1.0
  28254. * @memberOf _
  28255. * @category Object
  28256. * @param {Object} object The object to query.
  28257. * @returns {Array} Returns the array of property names.
  28258. * @example
  28259. *
  28260. * function Foo() {
  28261. * this.a = 1;
  28262. * this.b = 2;
  28263. * }
  28264. *
  28265. * Foo.prototype.c = 3;
  28266. *
  28267. * _.keys(new Foo);
  28268. * // => ['a', 'b'] (iteration order is not guaranteed)
  28269. *
  28270. * _.keys('hi');
  28271. * // => ['0', '1']
  28272. */
  28273. function keys(object) {
  28274. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  28275. }
  28276. /**
  28277. * Creates an array of the own and inherited enumerable property names of `object`.
  28278. *
  28279. * **Note:** Non-object values are coerced to objects.
  28280. *
  28281. * @static
  28282. * @memberOf _
  28283. * @since 3.0.0
  28284. * @category Object
  28285. * @param {Object} object The object to query.
  28286. * @returns {Array} Returns the array of property names.
  28287. * @example
  28288. *
  28289. * function Foo() {
  28290. * this.a = 1;
  28291. * this.b = 2;
  28292. * }
  28293. *
  28294. * Foo.prototype.c = 3;
  28295. *
  28296. * _.keysIn(new Foo);
  28297. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  28298. */
  28299. function keysIn(object) {
  28300. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  28301. }
  28302. /**
  28303. * The opposite of `_.mapValues`; this method creates an object with the
  28304. * same values as `object` and keys generated by running each own enumerable
  28305. * string keyed property of `object` thru `iteratee`. The iteratee is invoked
  28306. * with three arguments: (value, key, object).
  28307. *
  28308. * @static
  28309. * @memberOf _
  28310. * @since 3.8.0
  28311. * @category Object
  28312. * @param {Object} object The object to iterate over.
  28313. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28314. * @returns {Object} Returns the new mapped object.
  28315. * @see _.mapValues
  28316. * @example
  28317. *
  28318. * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
  28319. * return key + value;
  28320. * });
  28321. * // => { 'a1': 1, 'b2': 2 }
  28322. */
  28323. function mapKeys(object, iteratee) {
  28324. var result = {};
  28325. iteratee = getIteratee(iteratee, 3);
  28326. baseForOwn(object, function(value, key, object) {
  28327. baseAssignValue(result, iteratee(value, key, object), value);
  28328. });
  28329. return result;
  28330. }
  28331. /**
  28332. * Creates an object with the same keys as `object` and values generated
  28333. * by running each own enumerable string keyed property of `object` thru
  28334. * `iteratee`. The iteratee is invoked with three arguments:
  28335. * (value, key, object).
  28336. *
  28337. * @static
  28338. * @memberOf _
  28339. * @since 2.4.0
  28340. * @category Object
  28341. * @param {Object} object The object to iterate over.
  28342. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28343. * @returns {Object} Returns the new mapped object.
  28344. * @see _.mapKeys
  28345. * @example
  28346. *
  28347. * var users = {
  28348. * 'fred': { 'user': 'fred', 'age': 40 },
  28349. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  28350. * };
  28351. *
  28352. * _.mapValues(users, function(o) { return o.age; });
  28353. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28354. *
  28355. * // The `_.property` iteratee shorthand.
  28356. * _.mapValues(users, 'age');
  28357. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  28358. */
  28359. function mapValues(object, iteratee) {
  28360. var result = {};
  28361. iteratee = getIteratee(iteratee, 3);
  28362. baseForOwn(object, function(value, key, object) {
  28363. baseAssignValue(result, key, iteratee(value, key, object));
  28364. });
  28365. return result;
  28366. }
  28367. /**
  28368. * This method is like `_.assign` except that it recursively merges own and
  28369. * inherited enumerable string keyed properties of source objects into the
  28370. * destination object. Source properties that resolve to `undefined` are
  28371. * skipped if a destination value exists. Array and plain object properties
  28372. * are merged recursively. Other objects and value types are overridden by
  28373. * assignment. Source objects are applied from left to right. Subsequent
  28374. * sources overwrite property assignments of previous sources.
  28375. *
  28376. * **Note:** This method mutates `object`.
  28377. *
  28378. * @static
  28379. * @memberOf _
  28380. * @since 0.5.0
  28381. * @category Object
  28382. * @param {Object} object The destination object.
  28383. * @param {...Object} [sources] The source objects.
  28384. * @returns {Object} Returns `object`.
  28385. * @example
  28386. *
  28387. * var object = {
  28388. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  28389. * };
  28390. *
  28391. * var other = {
  28392. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  28393. * };
  28394. *
  28395. * _.merge(object, other);
  28396. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  28397. */
  28398. var merge = createAssigner(function(object, source, srcIndex) {
  28399. baseMerge(object, source, srcIndex);
  28400. });
  28401. /**
  28402. * This method is like `_.merge` except that it accepts `customizer` which
  28403. * is invoked to produce the merged values of the destination and source
  28404. * properties. If `customizer` returns `undefined`, merging is handled by the
  28405. * method instead. The `customizer` is invoked with six arguments:
  28406. * (objValue, srcValue, key, object, source, stack).
  28407. *
  28408. * **Note:** This method mutates `object`.
  28409. *
  28410. * @static
  28411. * @memberOf _
  28412. * @since 4.0.0
  28413. * @category Object
  28414. * @param {Object} object The destination object.
  28415. * @param {...Object} sources The source objects.
  28416. * @param {Function} customizer The function to customize assigned values.
  28417. * @returns {Object} Returns `object`.
  28418. * @example
  28419. *
  28420. * function customizer(objValue, srcValue) {
  28421. * if (_.isArray(objValue)) {
  28422. * return objValue.concat(srcValue);
  28423. * }
  28424. * }
  28425. *
  28426. * var object = { 'a': [1], 'b': [2] };
  28427. * var other = { 'a': [3], 'b': [4] };
  28428. *
  28429. * _.mergeWith(object, other, customizer);
  28430. * // => { 'a': [1, 3], 'b': [2, 4] }
  28431. */
  28432. var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  28433. baseMerge(object, source, srcIndex, customizer);
  28434. });
  28435. /**
  28436. * The opposite of `_.pick`; this method creates an object composed of the
  28437. * own and inherited enumerable property paths of `object` that are not omitted.
  28438. *
  28439. * **Note:** This method is considerably slower than `_.pick`.
  28440. *
  28441. * @static
  28442. * @since 0.1.0
  28443. * @memberOf _
  28444. * @category Object
  28445. * @param {Object} object The source object.
  28446. * @param {...(string|string[])} [paths] The property paths to omit.
  28447. * @returns {Object} Returns the new object.
  28448. * @example
  28449. *
  28450. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28451. *
  28452. * _.omit(object, ['a', 'c']);
  28453. * // => { 'b': '2' }
  28454. */
  28455. var omit = flatRest(function(object, paths) {
  28456. var result = {};
  28457. if (object == null) {
  28458. return result;
  28459. }
  28460. var isDeep = false;
  28461. paths = arrayMap(paths, function(path) {
  28462. path = castPath(path, object);
  28463. isDeep || (isDeep = path.length > 1);
  28464. return path;
  28465. });
  28466. copyObject(object, getAllKeysIn(object), result);
  28467. if (isDeep) {
  28468. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  28469. }
  28470. var length = paths.length;
  28471. while (length--) {
  28472. baseUnset(result, paths[length]);
  28473. }
  28474. return result;
  28475. });
  28476. /**
  28477. * The opposite of `_.pickBy`; this method creates an object composed of
  28478. * the own and inherited enumerable string keyed properties of `object` that
  28479. * `predicate` doesn't return truthy for. The predicate is invoked with two
  28480. * arguments: (value, key).
  28481. *
  28482. * @static
  28483. * @memberOf _
  28484. * @since 4.0.0
  28485. * @category Object
  28486. * @param {Object} object The source object.
  28487. * @param {Function} [predicate=_.identity] The function invoked per property.
  28488. * @returns {Object} Returns the new object.
  28489. * @example
  28490. *
  28491. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28492. *
  28493. * _.omitBy(object, _.isNumber);
  28494. * // => { 'b': '2' }
  28495. */
  28496. function omitBy(object, predicate) {
  28497. return pickBy(object, negate(getIteratee(predicate)));
  28498. }
  28499. /**
  28500. * Creates an object composed of the picked `object` properties.
  28501. *
  28502. * @static
  28503. * @since 0.1.0
  28504. * @memberOf _
  28505. * @category Object
  28506. * @param {Object} object The source object.
  28507. * @param {...(string|string[])} [paths] The property paths to pick.
  28508. * @returns {Object} Returns the new object.
  28509. * @example
  28510. *
  28511. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28512. *
  28513. * _.pick(object, ['a', 'c']);
  28514. * // => { 'a': 1, 'c': 3 }
  28515. */
  28516. var pick = flatRest(function(object, paths) {
  28517. return object == null ? {} : basePick(object, paths);
  28518. });
  28519. /**
  28520. * Creates an object composed of the `object` properties `predicate` returns
  28521. * truthy for. The predicate is invoked with two arguments: (value, key).
  28522. *
  28523. * @static
  28524. * @memberOf _
  28525. * @since 4.0.0
  28526. * @category Object
  28527. * @param {Object} object The source object.
  28528. * @param {Function} [predicate=_.identity] The function invoked per property.
  28529. * @returns {Object} Returns the new object.
  28530. * @example
  28531. *
  28532. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  28533. *
  28534. * _.pickBy(object, _.isNumber);
  28535. * // => { 'a': 1, 'c': 3 }
  28536. */
  28537. function pickBy(object, predicate) {
  28538. if (object == null) {
  28539. return {};
  28540. }
  28541. var props = arrayMap(getAllKeysIn(object), function(prop) {
  28542. return [prop];
  28543. });
  28544. predicate = getIteratee(predicate);
  28545. return basePickBy(object, props, function(value, path) {
  28546. return predicate(value, path[0]);
  28547. });
  28548. }
  28549. /**
  28550. * This method is like `_.get` except that if the resolved value is a
  28551. * function it's invoked with the `this` binding of its parent object and
  28552. * its result is returned.
  28553. *
  28554. * @static
  28555. * @since 0.1.0
  28556. * @memberOf _
  28557. * @category Object
  28558. * @param {Object} object The object to query.
  28559. * @param {Array|string} path The path of the property to resolve.
  28560. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  28561. * @returns {*} Returns the resolved value.
  28562. * @example
  28563. *
  28564. * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
  28565. *
  28566. * _.result(object, 'a[0].b.c1');
  28567. * // => 3
  28568. *
  28569. * _.result(object, 'a[0].b.c2');
  28570. * // => 4
  28571. *
  28572. * _.result(object, 'a[0].b.c3', 'default');
  28573. * // => 'default'
  28574. *
  28575. * _.result(object, 'a[0].b.c3', _.constant('default'));
  28576. * // => 'default'
  28577. */
  28578. function result(object, path, defaultValue) {
  28579. path = castPath(path, object);
  28580. var index = -1,
  28581. length = path.length;
  28582. // Ensure the loop is entered when path is empty.
  28583. if (!length) {
  28584. length = 1;
  28585. object = undefined;
  28586. }
  28587. while (++index < length) {
  28588. var value = object == null ? undefined : object[toKey(path[index])];
  28589. if (value === undefined) {
  28590. index = length;
  28591. value = defaultValue;
  28592. }
  28593. object = isFunction(value) ? value.call(object) : value;
  28594. }
  28595. return object;
  28596. }
  28597. /**
  28598. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  28599. * it's created. Arrays are created for missing index properties while objects
  28600. * are created for all other missing properties. Use `_.setWith` to customize
  28601. * `path` creation.
  28602. *
  28603. * **Note:** This method mutates `object`.
  28604. *
  28605. * @static
  28606. * @memberOf _
  28607. * @since 3.7.0
  28608. * @category Object
  28609. * @param {Object} object The object to modify.
  28610. * @param {Array|string} path The path of the property to set.
  28611. * @param {*} value The value to set.
  28612. * @returns {Object} Returns `object`.
  28613. * @example
  28614. *
  28615. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28616. *
  28617. * _.set(object, 'a[0].b.c', 4);
  28618. * console.log(object.a[0].b.c);
  28619. * // => 4
  28620. *
  28621. * _.set(object, ['x', '0', 'y', 'z'], 5);
  28622. * console.log(object.x[0].y.z);
  28623. * // => 5
  28624. */
  28625. function set(object, path, value) {
  28626. return object == null ? object : baseSet(object, path, value);
  28627. }
  28628. /**
  28629. * This method is like `_.set` except that it accepts `customizer` which is
  28630. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28631. * path creation is handled by the method instead. The `customizer` is invoked
  28632. * with three arguments: (nsValue, key, nsObject).
  28633. *
  28634. * **Note:** This method mutates `object`.
  28635. *
  28636. * @static
  28637. * @memberOf _
  28638. * @since 4.0.0
  28639. * @category Object
  28640. * @param {Object} object The object to modify.
  28641. * @param {Array|string} path The path of the property to set.
  28642. * @param {*} value The value to set.
  28643. * @param {Function} [customizer] The function to customize assigned values.
  28644. * @returns {Object} Returns `object`.
  28645. * @example
  28646. *
  28647. * var object = {};
  28648. *
  28649. * _.setWith(object, '[0][1]', 'a', Object);
  28650. * // => { '0': { '1': 'a' } }
  28651. */
  28652. function setWith(object, path, value, customizer) {
  28653. customizer = typeof customizer == 'function' ? customizer : undefined;
  28654. return object == null ? object : baseSet(object, path, value, customizer);
  28655. }
  28656. /**
  28657. * Creates an array of own enumerable string keyed-value pairs for `object`
  28658. * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
  28659. * entries are returned.
  28660. *
  28661. * @static
  28662. * @memberOf _
  28663. * @since 4.0.0
  28664. * @alias entries
  28665. * @category Object
  28666. * @param {Object} object The object to query.
  28667. * @returns {Array} Returns the key-value pairs.
  28668. * @example
  28669. *
  28670. * function Foo() {
  28671. * this.a = 1;
  28672. * this.b = 2;
  28673. * }
  28674. *
  28675. * Foo.prototype.c = 3;
  28676. *
  28677. * _.toPairs(new Foo);
  28678. * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
  28679. */
  28680. var toPairs = createToPairs(keys);
  28681. /**
  28682. * Creates an array of own and inherited enumerable string keyed-value pairs
  28683. * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
  28684. * or set, its entries are returned.
  28685. *
  28686. * @static
  28687. * @memberOf _
  28688. * @since 4.0.0
  28689. * @alias entriesIn
  28690. * @category Object
  28691. * @param {Object} object The object to query.
  28692. * @returns {Array} Returns the key-value pairs.
  28693. * @example
  28694. *
  28695. * function Foo() {
  28696. * this.a = 1;
  28697. * this.b = 2;
  28698. * }
  28699. *
  28700. * Foo.prototype.c = 3;
  28701. *
  28702. * _.toPairsIn(new Foo);
  28703. * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
  28704. */
  28705. var toPairsIn = createToPairs(keysIn);
  28706. /**
  28707. * An alternative to `_.reduce`; this method transforms `object` to a new
  28708. * `accumulator` object which is the result of running each of its own
  28709. * enumerable string keyed properties thru `iteratee`, with each invocation
  28710. * potentially mutating the `accumulator` object. If `accumulator` is not
  28711. * provided, a new object with the same `[[Prototype]]` will be used. The
  28712. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  28713. * Iteratee functions may exit iteration early by explicitly returning `false`.
  28714. *
  28715. * @static
  28716. * @memberOf _
  28717. * @since 1.3.0
  28718. * @category Object
  28719. * @param {Object} object The object to iterate over.
  28720. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  28721. * @param {*} [accumulator] The custom accumulator value.
  28722. * @returns {*} Returns the accumulated value.
  28723. * @example
  28724. *
  28725. * _.transform([2, 3, 4], function(result, n) {
  28726. * result.push(n *= n);
  28727. * return n % 2 == 0;
  28728. * }, []);
  28729. * // => [4, 9]
  28730. *
  28731. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  28732. * (result[value] || (result[value] = [])).push(key);
  28733. * }, {});
  28734. * // => { '1': ['a', 'c'], '2': ['b'] }
  28735. */
  28736. function transform(object, iteratee, accumulator) {
  28737. var isArr = isArray(object),
  28738. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  28739. iteratee = getIteratee(iteratee, 4);
  28740. if (accumulator == null) {
  28741. var Ctor = object && object.constructor;
  28742. if (isArrLike) {
  28743. accumulator = isArr ? new Ctor : [];
  28744. }
  28745. else if (isObject(object)) {
  28746. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  28747. }
  28748. else {
  28749. accumulator = {};
  28750. }
  28751. }
  28752. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  28753. return iteratee(accumulator, value, index, object);
  28754. });
  28755. return accumulator;
  28756. }
  28757. /**
  28758. * Removes the property at `path` of `object`.
  28759. *
  28760. * **Note:** This method mutates `object`.
  28761. *
  28762. * @static
  28763. * @memberOf _
  28764. * @since 4.0.0
  28765. * @category Object
  28766. * @param {Object} object The object to modify.
  28767. * @param {Array|string} path The path of the property to unset.
  28768. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  28769. * @example
  28770. *
  28771. * var object = { 'a': [{ 'b': { 'c': 7 } }] };
  28772. * _.unset(object, 'a[0].b.c');
  28773. * // => true
  28774. *
  28775. * console.log(object);
  28776. * // => { 'a': [{ 'b': {} }] };
  28777. *
  28778. * _.unset(object, ['a', '0', 'b', 'c']);
  28779. * // => true
  28780. *
  28781. * console.log(object);
  28782. * // => { 'a': [{ 'b': {} }] };
  28783. */
  28784. function unset(object, path) {
  28785. return object == null ? true : baseUnset(object, path);
  28786. }
  28787. /**
  28788. * This method is like `_.set` except that accepts `updater` to produce the
  28789. * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
  28790. * is invoked with one argument: (value).
  28791. *
  28792. * **Note:** This method mutates `object`.
  28793. *
  28794. * @static
  28795. * @memberOf _
  28796. * @since 4.6.0
  28797. * @category Object
  28798. * @param {Object} object The object to modify.
  28799. * @param {Array|string} path The path of the property to set.
  28800. * @param {Function} updater The function to produce the updated value.
  28801. * @returns {Object} Returns `object`.
  28802. * @example
  28803. *
  28804. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  28805. *
  28806. * _.update(object, 'a[0].b.c', function(n) { return n * n; });
  28807. * console.log(object.a[0].b.c);
  28808. * // => 9
  28809. *
  28810. * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
  28811. * console.log(object.x[0].y.z);
  28812. * // => 0
  28813. */
  28814. function update(object, path, updater) {
  28815. return object == null ? object : baseUpdate(object, path, castFunction(updater));
  28816. }
  28817. /**
  28818. * This method is like `_.update` except that it accepts `customizer` which is
  28819. * invoked to produce the objects of `path`. If `customizer` returns `undefined`
  28820. * path creation is handled by the method instead. The `customizer` is invoked
  28821. * with three arguments: (nsValue, key, nsObject).
  28822. *
  28823. * **Note:** This method mutates `object`.
  28824. *
  28825. * @static
  28826. * @memberOf _
  28827. * @since 4.6.0
  28828. * @category Object
  28829. * @param {Object} object The object to modify.
  28830. * @param {Array|string} path The path of the property to set.
  28831. * @param {Function} updater The function to produce the updated value.
  28832. * @param {Function} [customizer] The function to customize assigned values.
  28833. * @returns {Object} Returns `object`.
  28834. * @example
  28835. *
  28836. * var object = {};
  28837. *
  28838. * _.updateWith(object, '[0][1]', _.constant('a'), Object);
  28839. * // => { '0': { '1': 'a' } }
  28840. */
  28841. function updateWith(object, path, updater, customizer) {
  28842. customizer = typeof customizer == 'function' ? customizer : undefined;
  28843. return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
  28844. }
  28845. /**
  28846. * Creates an array of the own enumerable string keyed property values of `object`.
  28847. *
  28848. * **Note:** Non-object values are coerced to objects.
  28849. *
  28850. * @static
  28851. * @since 0.1.0
  28852. * @memberOf _
  28853. * @category Object
  28854. * @param {Object} object The object to query.
  28855. * @returns {Array} Returns the array of property values.
  28856. * @example
  28857. *
  28858. * function Foo() {
  28859. * this.a = 1;
  28860. * this.b = 2;
  28861. * }
  28862. *
  28863. * Foo.prototype.c = 3;
  28864. *
  28865. * _.values(new Foo);
  28866. * // => [1, 2] (iteration order is not guaranteed)
  28867. *
  28868. * _.values('hi');
  28869. * // => ['h', 'i']
  28870. */
  28871. function values(object) {
  28872. return object == null ? [] : baseValues(object, keys(object));
  28873. }
  28874. /**
  28875. * Creates an array of the own and inherited enumerable string keyed property
  28876. * values of `object`.
  28877. *
  28878. * **Note:** Non-object values are coerced to objects.
  28879. *
  28880. * @static
  28881. * @memberOf _
  28882. * @since 3.0.0
  28883. * @category Object
  28884. * @param {Object} object The object to query.
  28885. * @returns {Array} Returns the array of property values.
  28886. * @example
  28887. *
  28888. * function Foo() {
  28889. * this.a = 1;
  28890. * this.b = 2;
  28891. * }
  28892. *
  28893. * Foo.prototype.c = 3;
  28894. *
  28895. * _.valuesIn(new Foo);
  28896. * // => [1, 2, 3] (iteration order is not guaranteed)
  28897. */
  28898. function valuesIn(object) {
  28899. return object == null ? [] : baseValues(object, keysIn(object));
  28900. }
  28901. /*------------------------------------------------------------------------*/
  28902. /**
  28903. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  28904. *
  28905. * @static
  28906. * @memberOf _
  28907. * @since 4.0.0
  28908. * @category Number
  28909. * @param {number} number The number to clamp.
  28910. * @param {number} [lower] The lower bound.
  28911. * @param {number} upper The upper bound.
  28912. * @returns {number} Returns the clamped number.
  28913. * @example
  28914. *
  28915. * _.clamp(-10, -5, 5);
  28916. * // => -5
  28917. *
  28918. * _.clamp(10, -5, 5);
  28919. * // => 5
  28920. */
  28921. function clamp(number, lower, upper) {
  28922. if (upper === undefined) {
  28923. upper = lower;
  28924. lower = undefined;
  28925. }
  28926. if (upper !== undefined) {
  28927. upper = toNumber(upper);
  28928. upper = upper === upper ? upper : 0;
  28929. }
  28930. if (lower !== undefined) {
  28931. lower = toNumber(lower);
  28932. lower = lower === lower ? lower : 0;
  28933. }
  28934. return baseClamp(toNumber(number), lower, upper);
  28935. }
  28936. /**
  28937. * Checks if `n` is between `start` and up to, but not including, `end`. If
  28938. * `end` is not specified, it's set to `start` with `start` then set to `0`.
  28939. * If `start` is greater than `end` the params are swapped to support
  28940. * negative ranges.
  28941. *
  28942. * @static
  28943. * @memberOf _
  28944. * @since 3.3.0
  28945. * @category Number
  28946. * @param {number} number The number to check.
  28947. * @param {number} [start=0] The start of the range.
  28948. * @param {number} end The end of the range.
  28949. * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
  28950. * @see _.range, _.rangeRight
  28951. * @example
  28952. *
  28953. * _.inRange(3, 2, 4);
  28954. * // => true
  28955. *
  28956. * _.inRange(4, 8);
  28957. * // => true
  28958. *
  28959. * _.inRange(4, 2);
  28960. * // => false
  28961. *
  28962. * _.inRange(2, 2);
  28963. * // => false
  28964. *
  28965. * _.inRange(1.2, 2);
  28966. * // => true
  28967. *
  28968. * _.inRange(5.2, 4);
  28969. * // => false
  28970. *
  28971. * _.inRange(-3, -2, -6);
  28972. * // => true
  28973. */
  28974. function inRange(number, start, end) {
  28975. start = toFinite(start);
  28976. if (end === undefined) {
  28977. end = start;
  28978. start = 0;
  28979. } else {
  28980. end = toFinite(end);
  28981. }
  28982. number = toNumber(number);
  28983. return baseInRange(number, start, end);
  28984. }
  28985. /**
  28986. * Produces a random number between the inclusive `lower` and `upper` bounds.
  28987. * If only one argument is provided a number between `0` and the given number
  28988. * is returned. If `floating` is `true`, or either `lower` or `upper` are
  28989. * floats, a floating-point number is returned instead of an integer.
  28990. *
  28991. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  28992. * floating-point values which can produce unexpected results.
  28993. *
  28994. * @static
  28995. * @memberOf _
  28996. * @since 0.7.0
  28997. * @category Number
  28998. * @param {number} [lower=0] The lower bound.
  28999. * @param {number} [upper=1] The upper bound.
  29000. * @param {boolean} [floating] Specify returning a floating-point number.
  29001. * @returns {number} Returns the random number.
  29002. * @example
  29003. *
  29004. * _.random(0, 5);
  29005. * // => an integer between 0 and 5
  29006. *
  29007. * _.random(5);
  29008. * // => also an integer between 0 and 5
  29009. *
  29010. * _.random(5, true);
  29011. * // => a floating-point number between 0 and 5
  29012. *
  29013. * _.random(1.2, 5.2);
  29014. * // => a floating-point number between 1.2 and 5.2
  29015. */
  29016. function random(lower, upper, floating) {
  29017. if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
  29018. upper = floating = undefined;
  29019. }
  29020. if (floating === undefined) {
  29021. if (typeof upper == 'boolean') {
  29022. floating = upper;
  29023. upper = undefined;
  29024. }
  29025. else if (typeof lower == 'boolean') {
  29026. floating = lower;
  29027. lower = undefined;
  29028. }
  29029. }
  29030. if (lower === undefined && upper === undefined) {
  29031. lower = 0;
  29032. upper = 1;
  29033. }
  29034. else {
  29035. lower = toFinite(lower);
  29036. if (upper === undefined) {
  29037. upper = lower;
  29038. lower = 0;
  29039. } else {
  29040. upper = toFinite(upper);
  29041. }
  29042. }
  29043. if (lower > upper) {
  29044. var temp = lower;
  29045. lower = upper;
  29046. upper = temp;
  29047. }
  29048. if (floating || lower % 1 || upper % 1) {
  29049. var rand = nativeRandom();
  29050. return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
  29051. }
  29052. return baseRandom(lower, upper);
  29053. }
  29054. /*------------------------------------------------------------------------*/
  29055. /**
  29056. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  29057. *
  29058. * @static
  29059. * @memberOf _
  29060. * @since 3.0.0
  29061. * @category String
  29062. * @param {string} [string=''] The string to convert.
  29063. * @returns {string} Returns the camel cased string.
  29064. * @example
  29065. *
  29066. * _.camelCase('Foo Bar');
  29067. * // => 'fooBar'
  29068. *
  29069. * _.camelCase('--foo-bar--');
  29070. * // => 'fooBar'
  29071. *
  29072. * _.camelCase('__FOO_BAR__');
  29073. * // => 'fooBar'
  29074. */
  29075. var camelCase = createCompounder(function(result, word, index) {
  29076. word = word.toLowerCase();
  29077. return result + (index ? capitalize(word) : word);
  29078. });
  29079. /**
  29080. * Converts the first character of `string` to upper case and the remaining
  29081. * to lower case.
  29082. *
  29083. * @static
  29084. * @memberOf _
  29085. * @since 3.0.0
  29086. * @category String
  29087. * @param {string} [string=''] The string to capitalize.
  29088. * @returns {string} Returns the capitalized string.
  29089. * @example
  29090. *
  29091. * _.capitalize('FRED');
  29092. * // => 'Fred'
  29093. */
  29094. function capitalize(string) {
  29095. return upperFirst(toString(string).toLowerCase());
  29096. }
  29097. /**
  29098. * Deburrs `string` by converting
  29099. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  29100. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  29101. * letters to basic Latin letters and removing
  29102. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  29103. *
  29104. * @static
  29105. * @memberOf _
  29106. * @since 3.0.0
  29107. * @category String
  29108. * @param {string} [string=''] The string to deburr.
  29109. * @returns {string} Returns the deburred string.
  29110. * @example
  29111. *
  29112. * _.deburr('déjà vu');
  29113. * // => 'deja vu'
  29114. */
  29115. function deburr(string) {
  29116. string = toString(string);
  29117. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  29118. }
  29119. /**
  29120. * Checks if `string` ends with the given target string.
  29121. *
  29122. * @static
  29123. * @memberOf _
  29124. * @since 3.0.0
  29125. * @category String
  29126. * @param {string} [string=''] The string to inspect.
  29127. * @param {string} [target] The string to search for.
  29128. * @param {number} [position=string.length] The position to search up to.
  29129. * @returns {boolean} Returns `true` if `string` ends with `target`,
  29130. * else `false`.
  29131. * @example
  29132. *
  29133. * _.endsWith('abc', 'c');
  29134. * // => true
  29135. *
  29136. * _.endsWith('abc', 'b');
  29137. * // => false
  29138. *
  29139. * _.endsWith('abc', 'b', 2);
  29140. * // => true
  29141. */
  29142. function endsWith(string, target, position) {
  29143. string = toString(string);
  29144. target = baseToString(target);
  29145. var length = string.length;
  29146. position = position === undefined
  29147. ? length
  29148. : baseClamp(toInteger(position), 0, length);
  29149. var end = position;
  29150. position -= target.length;
  29151. return position >= 0 && string.slice(position, end) == target;
  29152. }
  29153. /**
  29154. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  29155. * corresponding HTML entities.
  29156. *
  29157. * **Note:** No other characters are escaped. To escape additional
  29158. * characters use a third-party library like [_he_](https://mths.be/he).
  29159. *
  29160. * Though the ">" character is escaped for symmetry, characters like
  29161. * ">" and "/" don't need escaping in HTML and have no special meaning
  29162. * unless they're part of a tag or unquoted attribute value. See
  29163. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  29164. * (under "semi-related fun fact") for more details.
  29165. *
  29166. * When working with HTML you should always
  29167. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  29168. * XSS vectors.
  29169. *
  29170. * @static
  29171. * @since 0.1.0
  29172. * @memberOf _
  29173. * @category String
  29174. * @param {string} [string=''] The string to escape.
  29175. * @returns {string} Returns the escaped string.
  29176. * @example
  29177. *
  29178. * _.escape('fred, barney, & pebbles');
  29179. * // => 'fred, barney, &amp; pebbles'
  29180. */
  29181. function escape(string) {
  29182. string = toString(string);
  29183. return (string && reHasUnescapedHtml.test(string))
  29184. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  29185. : string;
  29186. }
  29187. /**
  29188. * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
  29189. * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
  29190. *
  29191. * @static
  29192. * @memberOf _
  29193. * @since 3.0.0
  29194. * @category String
  29195. * @param {string} [string=''] The string to escape.
  29196. * @returns {string} Returns the escaped string.
  29197. * @example
  29198. *
  29199. * _.escapeRegExp('[lodash](https://lodash.com/)');
  29200. * // => '\[lodash\]\(https://lodash\.com/\)'
  29201. */
  29202. function escapeRegExp(string) {
  29203. string = toString(string);
  29204. return (string && reHasRegExpChar.test(string))
  29205. ? string.replace(reRegExpChar, '\\$&')
  29206. : string;
  29207. }
  29208. /**
  29209. * Converts `string` to
  29210. * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
  29211. *
  29212. * @static
  29213. * @memberOf _
  29214. * @since 3.0.0
  29215. * @category String
  29216. * @param {string} [string=''] The string to convert.
  29217. * @returns {string} Returns the kebab cased string.
  29218. * @example
  29219. *
  29220. * _.kebabCase('Foo Bar');
  29221. * // => 'foo-bar'
  29222. *
  29223. * _.kebabCase('fooBar');
  29224. * // => 'foo-bar'
  29225. *
  29226. * _.kebabCase('__FOO_BAR__');
  29227. * // => 'foo-bar'
  29228. */
  29229. var kebabCase = createCompounder(function(result, word, index) {
  29230. return result + (index ? '-' : '') + word.toLowerCase();
  29231. });
  29232. /**
  29233. * Converts `string`, as space separated words, to lower case.
  29234. *
  29235. * @static
  29236. * @memberOf _
  29237. * @since 4.0.0
  29238. * @category String
  29239. * @param {string} [string=''] The string to convert.
  29240. * @returns {string} Returns the lower cased string.
  29241. * @example
  29242. *
  29243. * _.lowerCase('--Foo-Bar--');
  29244. * // => 'foo bar'
  29245. *
  29246. * _.lowerCase('fooBar');
  29247. * // => 'foo bar'
  29248. *
  29249. * _.lowerCase('__FOO_BAR__');
  29250. * // => 'foo bar'
  29251. */
  29252. var lowerCase = createCompounder(function(result, word, index) {
  29253. return result + (index ? ' ' : '') + word.toLowerCase();
  29254. });
  29255. /**
  29256. * Converts the first character of `string` to lower case.
  29257. *
  29258. * @static
  29259. * @memberOf _
  29260. * @since 4.0.0
  29261. * @category String
  29262. * @param {string} [string=''] The string to convert.
  29263. * @returns {string} Returns the converted string.
  29264. * @example
  29265. *
  29266. * _.lowerFirst('Fred');
  29267. * // => 'fred'
  29268. *
  29269. * _.lowerFirst('FRED');
  29270. * // => 'fRED'
  29271. */
  29272. var lowerFirst = createCaseFirst('toLowerCase');
  29273. /**
  29274. * Pads `string` on the left and right sides if it's shorter than `length`.
  29275. * Padding characters are truncated if they can't be evenly divided by `length`.
  29276. *
  29277. * @static
  29278. * @memberOf _
  29279. * @since 3.0.0
  29280. * @category String
  29281. * @param {string} [string=''] The string to pad.
  29282. * @param {number} [length=0] The padding length.
  29283. * @param {string} [chars=' '] The string used as padding.
  29284. * @returns {string} Returns the padded string.
  29285. * @example
  29286. *
  29287. * _.pad('abc', 8);
  29288. * // => ' abc '
  29289. *
  29290. * _.pad('abc', 8, '_-');
  29291. * // => '_-abc_-_'
  29292. *
  29293. * _.pad('abc', 3);
  29294. * // => 'abc'
  29295. */
  29296. function pad(string, length, chars) {
  29297. string = toString(string);
  29298. length = toInteger(length);
  29299. var strLength = length ? stringSize(string) : 0;
  29300. if (!length || strLength >= length) {
  29301. return string;
  29302. }
  29303. var mid = (length - strLength) / 2;
  29304. return (
  29305. createPadding(nativeFloor(mid), chars) +
  29306. string +
  29307. createPadding(nativeCeil(mid), chars)
  29308. );
  29309. }
  29310. /**
  29311. * Pads `string` on the right side if it's shorter than `length`. Padding
  29312. * characters are truncated if they exceed `length`.
  29313. *
  29314. * @static
  29315. * @memberOf _
  29316. * @since 4.0.0
  29317. * @category String
  29318. * @param {string} [string=''] The string to pad.
  29319. * @param {number} [length=0] The padding length.
  29320. * @param {string} [chars=' '] The string used as padding.
  29321. * @returns {string} Returns the padded string.
  29322. * @example
  29323. *
  29324. * _.padEnd('abc', 6);
  29325. * // => 'abc '
  29326. *
  29327. * _.padEnd('abc', 6, '_-');
  29328. * // => 'abc_-_'
  29329. *
  29330. * _.padEnd('abc', 3);
  29331. * // => 'abc'
  29332. */
  29333. function padEnd(string, length, chars) {
  29334. string = toString(string);
  29335. length = toInteger(length);
  29336. var strLength = length ? stringSize(string) : 0;
  29337. return (length && strLength < length)
  29338. ? (string + createPadding(length - strLength, chars))
  29339. : string;
  29340. }
  29341. /**
  29342. * Pads `string` on the left side if it's shorter than `length`. Padding
  29343. * characters are truncated if they exceed `length`.
  29344. *
  29345. * @static
  29346. * @memberOf _
  29347. * @since 4.0.0
  29348. * @category String
  29349. * @param {string} [string=''] The string to pad.
  29350. * @param {number} [length=0] The padding length.
  29351. * @param {string} [chars=' '] The string used as padding.
  29352. * @returns {string} Returns the padded string.
  29353. * @example
  29354. *
  29355. * _.padStart('abc', 6);
  29356. * // => ' abc'
  29357. *
  29358. * _.padStart('abc', 6, '_-');
  29359. * // => '_-_abc'
  29360. *
  29361. * _.padStart('abc', 3);
  29362. * // => 'abc'
  29363. */
  29364. function padStart(string, length, chars) {
  29365. string = toString(string);
  29366. length = toInteger(length);
  29367. var strLength = length ? stringSize(string) : 0;
  29368. return (length && strLength < length)
  29369. ? (createPadding(length - strLength, chars) + string)
  29370. : string;
  29371. }
  29372. /**
  29373. * Converts `string` to an integer of the specified radix. If `radix` is
  29374. * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
  29375. * hexadecimal, in which case a `radix` of `16` is used.
  29376. *
  29377. * **Note:** This method aligns with the
  29378. * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
  29379. *
  29380. * @static
  29381. * @memberOf _
  29382. * @since 1.1.0
  29383. * @category String
  29384. * @param {string} string The string to convert.
  29385. * @param {number} [radix=10] The radix to interpret `value` by.
  29386. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29387. * @returns {number} Returns the converted integer.
  29388. * @example
  29389. *
  29390. * _.parseInt('08');
  29391. * // => 8
  29392. *
  29393. * _.map(['6', '08', '10'], _.parseInt);
  29394. * // => [6, 8, 10]
  29395. */
  29396. function parseInt(string, radix, guard) {
  29397. if (guard || radix == null) {
  29398. radix = 0;
  29399. } else if (radix) {
  29400. radix = +radix;
  29401. }
  29402. return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
  29403. }
  29404. /**
  29405. * Repeats the given string `n` times.
  29406. *
  29407. * @static
  29408. * @memberOf _
  29409. * @since 3.0.0
  29410. * @category String
  29411. * @param {string} [string=''] The string to repeat.
  29412. * @param {number} [n=1] The number of times to repeat the string.
  29413. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29414. * @returns {string} Returns the repeated string.
  29415. * @example
  29416. *
  29417. * _.repeat('*', 3);
  29418. * // => '***'
  29419. *
  29420. * _.repeat('abc', 2);
  29421. * // => 'abcabc'
  29422. *
  29423. * _.repeat('abc', 0);
  29424. * // => ''
  29425. */
  29426. function repeat(string, n, guard) {
  29427. if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
  29428. n = 1;
  29429. } else {
  29430. n = toInteger(n);
  29431. }
  29432. return baseRepeat(toString(string), n);
  29433. }
  29434. /**
  29435. * Replaces matches for `pattern` in `string` with `replacement`.
  29436. *
  29437. * **Note:** This method is based on
  29438. * [`String#replace`](https://mdn.io/String/replace).
  29439. *
  29440. * @static
  29441. * @memberOf _
  29442. * @since 4.0.0
  29443. * @category String
  29444. * @param {string} [string=''] The string to modify.
  29445. * @param {RegExp|string} pattern The pattern to replace.
  29446. * @param {Function|string} replacement The match replacement.
  29447. * @returns {string} Returns the modified string.
  29448. * @example
  29449. *
  29450. * _.replace('Hi Fred', 'Fred', 'Barney');
  29451. * // => 'Hi Barney'
  29452. */
  29453. function replace() {
  29454. var args = arguments,
  29455. string = toString(args[0]);
  29456. return args.length < 3 ? string : string.replace(args[1], args[2]);
  29457. }
  29458. /**
  29459. * Converts `string` to
  29460. * [snake case](https://en.wikipedia.org/wiki/Snake_case).
  29461. *
  29462. * @static
  29463. * @memberOf _
  29464. * @since 3.0.0
  29465. * @category String
  29466. * @param {string} [string=''] The string to convert.
  29467. * @returns {string} Returns the snake cased string.
  29468. * @example
  29469. *
  29470. * _.snakeCase('Foo Bar');
  29471. * // => 'foo_bar'
  29472. *
  29473. * _.snakeCase('fooBar');
  29474. * // => 'foo_bar'
  29475. *
  29476. * _.snakeCase('--FOO-BAR--');
  29477. * // => 'foo_bar'
  29478. */
  29479. var snakeCase = createCompounder(function(result, word, index) {
  29480. return result + (index ? '_' : '') + word.toLowerCase();
  29481. });
  29482. /**
  29483. * Splits `string` by `separator`.
  29484. *
  29485. * **Note:** This method is based on
  29486. * [`String#split`](https://mdn.io/String/split).
  29487. *
  29488. * @static
  29489. * @memberOf _
  29490. * @since 4.0.0
  29491. * @category String
  29492. * @param {string} [string=''] The string to split.
  29493. * @param {RegExp|string} separator The separator pattern to split by.
  29494. * @param {number} [limit] The length to truncate results to.
  29495. * @returns {Array} Returns the string segments.
  29496. * @example
  29497. *
  29498. * _.split('a-b-c', '-', 2);
  29499. * // => ['a', 'b']
  29500. */
  29501. function split(string, separator, limit) {
  29502. if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
  29503. separator = limit = undefined;
  29504. }
  29505. limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
  29506. if (!limit) {
  29507. return [];
  29508. }
  29509. string = toString(string);
  29510. if (string && (
  29511. typeof separator == 'string' ||
  29512. (separator != null && !isRegExp(separator))
  29513. )) {
  29514. separator = baseToString(separator);
  29515. if (!separator && hasUnicode(string)) {
  29516. return castSlice(stringToArray(string), 0, limit);
  29517. }
  29518. }
  29519. return string.split(separator, limit);
  29520. }
  29521. /**
  29522. * Converts `string` to
  29523. * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
  29524. *
  29525. * @static
  29526. * @memberOf _
  29527. * @since 3.1.0
  29528. * @category String
  29529. * @param {string} [string=''] The string to convert.
  29530. * @returns {string} Returns the start cased string.
  29531. * @example
  29532. *
  29533. * _.startCase('--foo-bar--');
  29534. * // => 'Foo Bar'
  29535. *
  29536. * _.startCase('fooBar');
  29537. * // => 'Foo Bar'
  29538. *
  29539. * _.startCase('__FOO_BAR__');
  29540. * // => 'FOO BAR'
  29541. */
  29542. var startCase = createCompounder(function(result, word, index) {
  29543. return result + (index ? ' ' : '') + upperFirst(word);
  29544. });
  29545. /**
  29546. * Checks if `string` starts with the given target string.
  29547. *
  29548. * @static
  29549. * @memberOf _
  29550. * @since 3.0.0
  29551. * @category String
  29552. * @param {string} [string=''] The string to inspect.
  29553. * @param {string} [target] The string to search for.
  29554. * @param {number} [position=0] The position to search from.
  29555. * @returns {boolean} Returns `true` if `string` starts with `target`,
  29556. * else `false`.
  29557. * @example
  29558. *
  29559. * _.startsWith('abc', 'a');
  29560. * // => true
  29561. *
  29562. * _.startsWith('abc', 'b');
  29563. * // => false
  29564. *
  29565. * _.startsWith('abc', 'b', 1);
  29566. * // => true
  29567. */
  29568. function startsWith(string, target, position) {
  29569. string = toString(string);
  29570. position = position == null
  29571. ? 0
  29572. : baseClamp(toInteger(position), 0, string.length);
  29573. target = baseToString(target);
  29574. return string.slice(position, position + target.length) == target;
  29575. }
  29576. /**
  29577. * Creates a compiled template function that can interpolate data properties
  29578. * in "interpolate" delimiters, HTML-escape interpolated data properties in
  29579. * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
  29580. * properties may be accessed as free variables in the template. If a setting
  29581. * object is given, it takes precedence over `_.templateSettings` values.
  29582. *
  29583. * **Note:** In the development build `_.template` utilizes
  29584. * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
  29585. * for easier debugging.
  29586. *
  29587. * For more information on precompiling templates see
  29588. * [lodash's custom builds documentation](https://lodash.com/custom-builds).
  29589. *
  29590. * For more information on Chrome extension sandboxes see
  29591. * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
  29592. *
  29593. * @static
  29594. * @since 0.1.0
  29595. * @memberOf _
  29596. * @category String
  29597. * @param {string} [string=''] The template string.
  29598. * @param {Object} [options={}] The options object.
  29599. * @param {RegExp} [options.escape=_.templateSettings.escape]
  29600. * The HTML "escape" delimiter.
  29601. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
  29602. * The "evaluate" delimiter.
  29603. * @param {Object} [options.imports=_.templateSettings.imports]
  29604. * An object to import into the template as free variables.
  29605. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
  29606. * The "interpolate" delimiter.
  29607. * @param {string} [options.sourceURL='lodash.templateSources[n]']
  29608. * The sourceURL of the compiled template.
  29609. * @param {string} [options.variable='obj']
  29610. * The data object variable name.
  29611. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29612. * @returns {Function} Returns the compiled template function.
  29613. * @example
  29614. *
  29615. * // Use the "interpolate" delimiter to create a compiled template.
  29616. * var compiled = _.template('hello <%= user %>!');
  29617. * compiled({ 'user': 'fred' });
  29618. * // => 'hello fred!'
  29619. *
  29620. * // Use the HTML "escape" delimiter to escape data property values.
  29621. * var compiled = _.template('<b><%- value %></b>');
  29622. * compiled({ 'value': '<script>' });
  29623. * // => '<b>&lt;script&gt;</b>'
  29624. *
  29625. * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
  29626. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
  29627. * compiled({ 'users': ['fred', 'barney'] });
  29628. * // => '<li>fred</li><li>barney</li>'
  29629. *
  29630. * // Use the internal `print` function in "evaluate" delimiters.
  29631. * var compiled = _.template('<% print("hello " + user); %>!');
  29632. * compiled({ 'user': 'barney' });
  29633. * // => 'hello barney!'
  29634. *
  29635. * // Use the ES template literal delimiter as an "interpolate" delimiter.
  29636. * // Disable support by replacing the "interpolate" delimiter.
  29637. * var compiled = _.template('hello ${ user }!');
  29638. * compiled({ 'user': 'pebbles' });
  29639. * // => 'hello pebbles!'
  29640. *
  29641. * // Use backslashes to treat delimiters as plain text.
  29642. * var compiled = _.template('<%= "\\<%- value %\\>" %>');
  29643. * compiled({ 'value': 'ignored' });
  29644. * // => '<%- value %>'
  29645. *
  29646. * // Use the `imports` option to import `jQuery` as `jq`.
  29647. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
  29648. * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
  29649. * compiled({ 'users': ['fred', 'barney'] });
  29650. * // => '<li>fred</li><li>barney</li>'
  29651. *
  29652. * // Use the `sourceURL` option to specify a custom sourceURL for the template.
  29653. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
  29654. * compiled(data);
  29655. * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
  29656. *
  29657. * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
  29658. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
  29659. * compiled.source;
  29660. * // => function(data) {
  29661. * // var __t, __p = '';
  29662. * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
  29663. * // return __p;
  29664. * // }
  29665. *
  29666. * // Use custom template delimiters.
  29667. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
  29668. * var compiled = _.template('hello {{ user }}!');
  29669. * compiled({ 'user': 'mustache' });
  29670. * // => 'hello mustache!'
  29671. *
  29672. * // Use the `source` property to inline compiled templates for meaningful
  29673. * // line numbers in error messages and stack traces.
  29674. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
  29675. * var JST = {\
  29676. * "main": ' + _.template(mainText).source + '\
  29677. * };\
  29678. * ');
  29679. */
  29680. function template(string, options, guard) {
  29681. // Based on John Resig's `tmpl` implementation
  29682. // (http://ejohn.org/blog/javascript-micro-templating/)
  29683. // and Laura Doktorova's doT.js (https://github.com/olado/doT).
  29684. var settings = lodash.templateSettings;
  29685. if (guard && isIterateeCall(string, options, guard)) {
  29686. options = undefined;
  29687. }
  29688. string = toString(string);
  29689. options = assignInWith({}, options, settings, customDefaultsAssignIn);
  29690. var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
  29691. importsKeys = keys(imports),
  29692. importsValues = baseValues(imports, importsKeys);
  29693. var isEscaping,
  29694. isEvaluating,
  29695. index = 0,
  29696. interpolate = options.interpolate || reNoMatch,
  29697. source = "__p += '";
  29698. // Compile the regexp to match each delimiter.
  29699. var reDelimiters = RegExp(
  29700. (options.escape || reNoMatch).source + '|' +
  29701. interpolate.source + '|' +
  29702. (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
  29703. (options.evaluate || reNoMatch).source + '|$'
  29704. , 'g');
  29705. // Use a sourceURL for easier debugging.
  29706. var sourceURL = '//# sourceURL=' +
  29707. ('sourceURL' in options
  29708. ? options.sourceURL
  29709. : ('lodash.templateSources[' + (++templateCounter) + ']')
  29710. ) + '\n';
  29711. string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
  29712. interpolateValue || (interpolateValue = esTemplateValue);
  29713. // Escape characters that can't be included in string literals.
  29714. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
  29715. // Replace delimiters with snippets.
  29716. if (escapeValue) {
  29717. isEscaping = true;
  29718. source += "' +\n__e(" + escapeValue + ") +\n'";
  29719. }
  29720. if (evaluateValue) {
  29721. isEvaluating = true;
  29722. source += "';\n" + evaluateValue + ";\n__p += '";
  29723. }
  29724. if (interpolateValue) {
  29725. source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
  29726. }
  29727. index = offset + match.length;
  29728. // The JS engine embedded in Adobe products needs `match` returned in
  29729. // order to produce the correct `offset` value.
  29730. return match;
  29731. });
  29732. source += "';\n";
  29733. // If `variable` is not specified wrap a with-statement around the generated
  29734. // code to add the data object to the top of the scope chain.
  29735. var variable = options.variable;
  29736. if (!variable) {
  29737. source = 'with (obj) {\n' + source + '\n}\n';
  29738. }
  29739. // Cleanup code by stripping empty strings.
  29740. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
  29741. .replace(reEmptyStringMiddle, '$1')
  29742. .replace(reEmptyStringTrailing, '$1;');
  29743. // Frame code as the function body.
  29744. source = 'function(' + (variable || 'obj') + ') {\n' +
  29745. (variable
  29746. ? ''
  29747. : 'obj || (obj = {});\n'
  29748. ) +
  29749. "var __t, __p = ''" +
  29750. (isEscaping
  29751. ? ', __e = _.escape'
  29752. : ''
  29753. ) +
  29754. (isEvaluating
  29755. ? ', __j = Array.prototype.join;\n' +
  29756. "function print() { __p += __j.call(arguments, '') }\n"
  29757. : ';\n'
  29758. ) +
  29759. source +
  29760. 'return __p\n}';
  29761. var result = attempt(function() {
  29762. return Function(importsKeys, sourceURL + 'return ' + source)
  29763. .apply(undefined, importsValues);
  29764. });
  29765. // Provide the compiled function's source by its `toString` method or
  29766. // the `source` property as a convenience for inlining compiled templates.
  29767. result.source = source;
  29768. if (isError(result)) {
  29769. throw result;
  29770. }
  29771. return result;
  29772. }
  29773. /**
  29774. * Converts `string`, as a whole, to lower case just like
  29775. * [String#toLowerCase](https://mdn.io/toLowerCase).
  29776. *
  29777. * @static
  29778. * @memberOf _
  29779. * @since 4.0.0
  29780. * @category String
  29781. * @param {string} [string=''] The string to convert.
  29782. * @returns {string} Returns the lower cased string.
  29783. * @example
  29784. *
  29785. * _.toLower('--Foo-Bar--');
  29786. * // => '--foo-bar--'
  29787. *
  29788. * _.toLower('fooBar');
  29789. * // => 'foobar'
  29790. *
  29791. * _.toLower('__FOO_BAR__');
  29792. * // => '__foo_bar__'
  29793. */
  29794. function toLower(value) {
  29795. return toString(value).toLowerCase();
  29796. }
  29797. /**
  29798. * Converts `string`, as a whole, to upper case just like
  29799. * [String#toUpperCase](https://mdn.io/toUpperCase).
  29800. *
  29801. * @static
  29802. * @memberOf _
  29803. * @since 4.0.0
  29804. * @category String
  29805. * @param {string} [string=''] The string to convert.
  29806. * @returns {string} Returns the upper cased string.
  29807. * @example
  29808. *
  29809. * _.toUpper('--foo-bar--');
  29810. * // => '--FOO-BAR--'
  29811. *
  29812. * _.toUpper('fooBar');
  29813. * // => 'FOOBAR'
  29814. *
  29815. * _.toUpper('__foo_bar__');
  29816. * // => '__FOO_BAR__'
  29817. */
  29818. function toUpper(value) {
  29819. return toString(value).toUpperCase();
  29820. }
  29821. /**
  29822. * Removes leading and trailing whitespace or specified characters from `string`.
  29823. *
  29824. * @static
  29825. * @memberOf _
  29826. * @since 3.0.0
  29827. * @category String
  29828. * @param {string} [string=''] The string to trim.
  29829. * @param {string} [chars=whitespace] The characters to trim.
  29830. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29831. * @returns {string} Returns the trimmed string.
  29832. * @example
  29833. *
  29834. * _.trim(' abc ');
  29835. * // => 'abc'
  29836. *
  29837. * _.trim('-_-abc-_-', '_-');
  29838. * // => 'abc'
  29839. *
  29840. * _.map([' foo ', ' bar '], _.trim);
  29841. * // => ['foo', 'bar']
  29842. */
  29843. function trim(string, chars, guard) {
  29844. string = toString(string);
  29845. if (string && (guard || chars === undefined)) {
  29846. return string.replace(reTrim, '');
  29847. }
  29848. if (!string || !(chars = baseToString(chars))) {
  29849. return string;
  29850. }
  29851. var strSymbols = stringToArray(string),
  29852. chrSymbols = stringToArray(chars),
  29853. start = charsStartIndex(strSymbols, chrSymbols),
  29854. end = charsEndIndex(strSymbols, chrSymbols) + 1;
  29855. return castSlice(strSymbols, start, end).join('');
  29856. }
  29857. /**
  29858. * Removes trailing whitespace or specified characters from `string`.
  29859. *
  29860. * @static
  29861. * @memberOf _
  29862. * @since 4.0.0
  29863. * @category String
  29864. * @param {string} [string=''] The string to trim.
  29865. * @param {string} [chars=whitespace] The characters to trim.
  29866. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29867. * @returns {string} Returns the trimmed string.
  29868. * @example
  29869. *
  29870. * _.trimEnd(' abc ');
  29871. * // => ' abc'
  29872. *
  29873. * _.trimEnd('-_-abc-_-', '_-');
  29874. * // => '-_-abc'
  29875. */
  29876. function trimEnd(string, chars, guard) {
  29877. string = toString(string);
  29878. if (string && (guard || chars === undefined)) {
  29879. return string.replace(reTrimEnd, '');
  29880. }
  29881. if (!string || !(chars = baseToString(chars))) {
  29882. return string;
  29883. }
  29884. var strSymbols = stringToArray(string),
  29885. end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
  29886. return castSlice(strSymbols, 0, end).join('');
  29887. }
  29888. /**
  29889. * Removes leading whitespace or specified characters from `string`.
  29890. *
  29891. * @static
  29892. * @memberOf _
  29893. * @since 4.0.0
  29894. * @category String
  29895. * @param {string} [string=''] The string to trim.
  29896. * @param {string} [chars=whitespace] The characters to trim.
  29897. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  29898. * @returns {string} Returns the trimmed string.
  29899. * @example
  29900. *
  29901. * _.trimStart(' abc ');
  29902. * // => 'abc '
  29903. *
  29904. * _.trimStart('-_-abc-_-', '_-');
  29905. * // => 'abc-_-'
  29906. */
  29907. function trimStart(string, chars, guard) {
  29908. string = toString(string);
  29909. if (string && (guard || chars === undefined)) {
  29910. return string.replace(reTrimStart, '');
  29911. }
  29912. if (!string || !(chars = baseToString(chars))) {
  29913. return string;
  29914. }
  29915. var strSymbols = stringToArray(string),
  29916. start = charsStartIndex(strSymbols, stringToArray(chars));
  29917. return castSlice(strSymbols, start).join('');
  29918. }
  29919. /**
  29920. * Truncates `string` if it's longer than the given maximum string length.
  29921. * The last characters of the truncated string are replaced with the omission
  29922. * string which defaults to "...".
  29923. *
  29924. * @static
  29925. * @memberOf _
  29926. * @since 4.0.0
  29927. * @category String
  29928. * @param {string} [string=''] The string to truncate.
  29929. * @param {Object} [options={}] The options object.
  29930. * @param {number} [options.length=30] The maximum string length.
  29931. * @param {string} [options.omission='...'] The string to indicate text is omitted.
  29932. * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
  29933. * @returns {string} Returns the truncated string.
  29934. * @example
  29935. *
  29936. * _.truncate('hi-diddly-ho there, neighborino');
  29937. * // => 'hi-diddly-ho there, neighbo...'
  29938. *
  29939. * _.truncate('hi-diddly-ho there, neighborino', {
  29940. * 'length': 24,
  29941. * 'separator': ' '
  29942. * });
  29943. * // => 'hi-diddly-ho there,...'
  29944. *
  29945. * _.truncate('hi-diddly-ho there, neighborino', {
  29946. * 'length': 24,
  29947. * 'separator': /,? +/
  29948. * });
  29949. * // => 'hi-diddly-ho there...'
  29950. *
  29951. * _.truncate('hi-diddly-ho there, neighborino', {
  29952. * 'omission': ' [...]'
  29953. * });
  29954. * // => 'hi-diddly-ho there, neig [...]'
  29955. */
  29956. function truncate(string, options) {
  29957. var length = DEFAULT_TRUNC_LENGTH,
  29958. omission = DEFAULT_TRUNC_OMISSION;
  29959. if (isObject(options)) {
  29960. var separator = 'separator' in options ? options.separator : separator;
  29961. length = 'length' in options ? toInteger(options.length) : length;
  29962. omission = 'omission' in options ? baseToString(options.omission) : omission;
  29963. }
  29964. string = toString(string);
  29965. var strLength = string.length;
  29966. if (hasUnicode(string)) {
  29967. var strSymbols = stringToArray(string);
  29968. strLength = strSymbols.length;
  29969. }
  29970. if (length >= strLength) {
  29971. return string;
  29972. }
  29973. var end = length - stringSize(omission);
  29974. if (end < 1) {
  29975. return omission;
  29976. }
  29977. var result = strSymbols
  29978. ? castSlice(strSymbols, 0, end).join('')
  29979. : string.slice(0, end);
  29980. if (separator === undefined) {
  29981. return result + omission;
  29982. }
  29983. if (strSymbols) {
  29984. end += (result.length - end);
  29985. }
  29986. if (isRegExp(separator)) {
  29987. if (string.slice(end).search(separator)) {
  29988. var match,
  29989. substring = result;
  29990. if (!separator.global) {
  29991. separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
  29992. }
  29993. separator.lastIndex = 0;
  29994. while ((match = separator.exec(substring))) {
  29995. var newEnd = match.index;
  29996. }
  29997. result = result.slice(0, newEnd === undefined ? end : newEnd);
  29998. }
  29999. } else if (string.indexOf(baseToString(separator), end) != end) {
  30000. var index = result.lastIndexOf(separator);
  30001. if (index > -1) {
  30002. result = result.slice(0, index);
  30003. }
  30004. }
  30005. return result + omission;
  30006. }
  30007. /**
  30008. * The inverse of `_.escape`; this method converts the HTML entities
  30009. * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
  30010. * their corresponding characters.
  30011. *
  30012. * **Note:** No other HTML entities are unescaped. To unescape additional
  30013. * HTML entities use a third-party library like [_he_](https://mths.be/he).
  30014. *
  30015. * @static
  30016. * @memberOf _
  30017. * @since 0.6.0
  30018. * @category String
  30019. * @param {string} [string=''] The string to unescape.
  30020. * @returns {string} Returns the unescaped string.
  30021. * @example
  30022. *
  30023. * _.unescape('fred, barney, &amp; pebbles');
  30024. * // => 'fred, barney, & pebbles'
  30025. */
  30026. function unescape(string) {
  30027. string = toString(string);
  30028. return (string && reHasEscapedHtml.test(string))
  30029. ? string.replace(reEscapedHtml, unescapeHtmlChar)
  30030. : string;
  30031. }
  30032. /**
  30033. * Converts `string`, as space separated words, to upper case.
  30034. *
  30035. * @static
  30036. * @memberOf _
  30037. * @since 4.0.0
  30038. * @category String
  30039. * @param {string} [string=''] The string to convert.
  30040. * @returns {string} Returns the upper cased string.
  30041. * @example
  30042. *
  30043. * _.upperCase('--foo-bar');
  30044. * // => 'FOO BAR'
  30045. *
  30046. * _.upperCase('fooBar');
  30047. * // => 'FOO BAR'
  30048. *
  30049. * _.upperCase('__foo_bar__');
  30050. * // => 'FOO BAR'
  30051. */
  30052. var upperCase = createCompounder(function(result, word, index) {
  30053. return result + (index ? ' ' : '') + word.toUpperCase();
  30054. });
  30055. /**
  30056. * Converts the first character of `string` to upper case.
  30057. *
  30058. * @static
  30059. * @memberOf _
  30060. * @since 4.0.0
  30061. * @category String
  30062. * @param {string} [string=''] The string to convert.
  30063. * @returns {string} Returns the converted string.
  30064. * @example
  30065. *
  30066. * _.upperFirst('fred');
  30067. * // => 'Fred'
  30068. *
  30069. * _.upperFirst('FRED');
  30070. * // => 'FRED'
  30071. */
  30072. var upperFirst = createCaseFirst('toUpperCase');
  30073. /**
  30074. * Splits `string` into an array of its words.
  30075. *
  30076. * @static
  30077. * @memberOf _
  30078. * @since 3.0.0
  30079. * @category String
  30080. * @param {string} [string=''] The string to inspect.
  30081. * @param {RegExp|string} [pattern] The pattern to match words.
  30082. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  30083. * @returns {Array} Returns the words of `string`.
  30084. * @example
  30085. *
  30086. * _.words('fred, barney, & pebbles');
  30087. * // => ['fred', 'barney', 'pebbles']
  30088. *
  30089. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  30090. * // => ['fred', 'barney', '&', 'pebbles']
  30091. */
  30092. function words(string, pattern, guard) {
  30093. string = toString(string);
  30094. pattern = guard ? undefined : pattern;
  30095. if (pattern === undefined) {
  30096. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  30097. }
  30098. return string.match(pattern) || [];
  30099. }
  30100. /*------------------------------------------------------------------------*/
  30101. /**
  30102. * Attempts to invoke `func`, returning either the result or the caught error
  30103. * object. Any additional arguments are provided to `func` when it's invoked.
  30104. *
  30105. * @static
  30106. * @memberOf _
  30107. * @since 3.0.0
  30108. * @category Util
  30109. * @param {Function} func The function to attempt.
  30110. * @param {...*} [args] The arguments to invoke `func` with.
  30111. * @returns {*} Returns the `func` result or error object.
  30112. * @example
  30113. *
  30114. * // Avoid throwing errors for invalid selectors.
  30115. * var elements = _.attempt(function(selector) {
  30116. * return document.querySelectorAll(selector);
  30117. * }, '>_>');
  30118. *
  30119. * if (_.isError(elements)) {
  30120. * elements = [];
  30121. * }
  30122. */
  30123. var attempt = baseRest(function(func, args) {
  30124. try {
  30125. return apply(func, undefined, args);
  30126. } catch (e) {
  30127. return isError(e) ? e : new Error(e);
  30128. }
  30129. });
  30130. /**
  30131. * Binds methods of an object to the object itself, overwriting the existing
  30132. * method.
  30133. *
  30134. * **Note:** This method doesn't set the "length" property of bound functions.
  30135. *
  30136. * @static
  30137. * @since 0.1.0
  30138. * @memberOf _
  30139. * @category Util
  30140. * @param {Object} object The object to bind and assign the bound methods to.
  30141. * @param {...(string|string[])} methodNames The object method names to bind.
  30142. * @returns {Object} Returns `object`.
  30143. * @example
  30144. *
  30145. * var view = {
  30146. * 'label': 'docs',
  30147. * 'click': function() {
  30148. * console.log('clicked ' + this.label);
  30149. * }
  30150. * };
  30151. *
  30152. * _.bindAll(view, ['click']);
  30153. * jQuery(element).on('click', view.click);
  30154. * // => Logs 'clicked docs' when clicked.
  30155. */
  30156. var bindAll = flatRest(function(object, methodNames) {
  30157. arrayEach(methodNames, function(key) {
  30158. key = toKey(key);
  30159. baseAssignValue(object, key, bind(object[key], object));
  30160. });
  30161. return object;
  30162. });
  30163. /**
  30164. * Creates a function that iterates over `pairs` and invokes the corresponding
  30165. * function of the first predicate to return truthy. The predicate-function
  30166. * pairs are invoked with the `this` binding and arguments of the created
  30167. * function.
  30168. *
  30169. * @static
  30170. * @memberOf _
  30171. * @since 4.0.0
  30172. * @category Util
  30173. * @param {Array} pairs The predicate-function pairs.
  30174. * @returns {Function} Returns the new composite function.
  30175. * @example
  30176. *
  30177. * var func = _.cond([
  30178. * [_.matches({ 'a': 1 }), _.constant('matches A')],
  30179. * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
  30180. * [_.stubTrue, _.constant('no match')]
  30181. * ]);
  30182. *
  30183. * func({ 'a': 1, 'b': 2 });
  30184. * // => 'matches A'
  30185. *
  30186. * func({ 'a': 0, 'b': 1 });
  30187. * // => 'matches B'
  30188. *
  30189. * func({ 'a': '1', 'b': '2' });
  30190. * // => 'no match'
  30191. */
  30192. function cond(pairs) {
  30193. var length = pairs == null ? 0 : pairs.length,
  30194. toIteratee = getIteratee();
  30195. pairs = !length ? [] : arrayMap(pairs, function(pair) {
  30196. if (typeof pair[1] != 'function') {
  30197. throw new TypeError(FUNC_ERROR_TEXT);
  30198. }
  30199. return [toIteratee(pair[0]), pair[1]];
  30200. });
  30201. return baseRest(function(args) {
  30202. var index = -1;
  30203. while (++index < length) {
  30204. var pair = pairs[index];
  30205. if (apply(pair[0], this, args)) {
  30206. return apply(pair[1], this, args);
  30207. }
  30208. }
  30209. });
  30210. }
  30211. /**
  30212. * Creates a function that invokes the predicate properties of `source` with
  30213. * the corresponding property values of a given object, returning `true` if
  30214. * all predicates return truthy, else `false`.
  30215. *
  30216. * **Note:** The created function is equivalent to `_.conformsTo` with
  30217. * `source` partially applied.
  30218. *
  30219. * @static
  30220. * @memberOf _
  30221. * @since 4.0.0
  30222. * @category Util
  30223. * @param {Object} source The object of property predicates to conform to.
  30224. * @returns {Function} Returns the new spec function.
  30225. * @example
  30226. *
  30227. * var objects = [
  30228. * { 'a': 2, 'b': 1 },
  30229. * { 'a': 1, 'b': 2 }
  30230. * ];
  30231. *
  30232. * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
  30233. * // => [{ 'a': 1, 'b': 2 }]
  30234. */
  30235. function conforms(source) {
  30236. return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
  30237. }
  30238. /**
  30239. * Creates a function that returns `value`.
  30240. *
  30241. * @static
  30242. * @memberOf _
  30243. * @since 2.4.0
  30244. * @category Util
  30245. * @param {*} value The value to return from the new function.
  30246. * @returns {Function} Returns the new constant function.
  30247. * @example
  30248. *
  30249. * var objects = _.times(2, _.constant({ 'a': 1 }));
  30250. *
  30251. * console.log(objects);
  30252. * // => [{ 'a': 1 }, { 'a': 1 }]
  30253. *
  30254. * console.log(objects[0] === objects[1]);
  30255. * // => true
  30256. */
  30257. function constant(value) {
  30258. return function() {
  30259. return value;
  30260. };
  30261. }
  30262. /**
  30263. * Checks `value` to determine whether a default value should be returned in
  30264. * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
  30265. * or `undefined`.
  30266. *
  30267. * @static
  30268. * @memberOf _
  30269. * @since 4.14.0
  30270. * @category Util
  30271. * @param {*} value The value to check.
  30272. * @param {*} defaultValue The default value.
  30273. * @returns {*} Returns the resolved value.
  30274. * @example
  30275. *
  30276. * _.defaultTo(1, 10);
  30277. * // => 1
  30278. *
  30279. * _.defaultTo(undefined, 10);
  30280. * // => 10
  30281. */
  30282. function defaultTo(value, defaultValue) {
  30283. return (value == null || value !== value) ? defaultValue : value;
  30284. }
  30285. /**
  30286. * Creates a function that returns the result of invoking the given functions
  30287. * with the `this` binding of the created function, where each successive
  30288. * invocation is supplied the return value of the previous.
  30289. *
  30290. * @static
  30291. * @memberOf _
  30292. * @since 3.0.0
  30293. * @category Util
  30294. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30295. * @returns {Function} Returns the new composite function.
  30296. * @see _.flowRight
  30297. * @example
  30298. *
  30299. * function square(n) {
  30300. * return n * n;
  30301. * }
  30302. *
  30303. * var addSquare = _.flow([_.add, square]);
  30304. * addSquare(1, 2);
  30305. * // => 9
  30306. */
  30307. var flow = createFlow();
  30308. /**
  30309. * This method is like `_.flow` except that it creates a function that
  30310. * invokes the given functions from right to left.
  30311. *
  30312. * @static
  30313. * @since 3.0.0
  30314. * @memberOf _
  30315. * @category Util
  30316. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  30317. * @returns {Function} Returns the new composite function.
  30318. * @see _.flow
  30319. * @example
  30320. *
  30321. * function square(n) {
  30322. * return n * n;
  30323. * }
  30324. *
  30325. * var addSquare = _.flowRight([square, _.add]);
  30326. * addSquare(1, 2);
  30327. * // => 9
  30328. */
  30329. var flowRight = createFlow(true);
  30330. /**
  30331. * This method returns the first argument it receives.
  30332. *
  30333. * @static
  30334. * @since 0.1.0
  30335. * @memberOf _
  30336. * @category Util
  30337. * @param {*} value Any value.
  30338. * @returns {*} Returns `value`.
  30339. * @example
  30340. *
  30341. * var object = { 'a': 1 };
  30342. *
  30343. * console.log(_.identity(object) === object);
  30344. * // => true
  30345. */
  30346. function identity(value) {
  30347. return value;
  30348. }
  30349. /**
  30350. * Creates a function that invokes `func` with the arguments of the created
  30351. * function. If `func` is a property name, the created function returns the
  30352. * property value for a given element. If `func` is an array or object, the
  30353. * created function returns `true` for elements that contain the equivalent
  30354. * source properties, otherwise it returns `false`.
  30355. *
  30356. * @static
  30357. * @since 4.0.0
  30358. * @memberOf _
  30359. * @category Util
  30360. * @param {*} [func=_.identity] The value to convert to a callback.
  30361. * @returns {Function} Returns the callback.
  30362. * @example
  30363. *
  30364. * var users = [
  30365. * { 'user': 'barney', 'age': 36, 'active': true },
  30366. * { 'user': 'fred', 'age': 40, 'active': false }
  30367. * ];
  30368. *
  30369. * // The `_.matches` iteratee shorthand.
  30370. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
  30371. * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
  30372. *
  30373. * // The `_.matchesProperty` iteratee shorthand.
  30374. * _.filter(users, _.iteratee(['user', 'fred']));
  30375. * // => [{ 'user': 'fred', 'age': 40 }]
  30376. *
  30377. * // The `_.property` iteratee shorthand.
  30378. * _.map(users, _.iteratee('user'));
  30379. * // => ['barney', 'fred']
  30380. *
  30381. * // Create custom iteratee shorthands.
  30382. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
  30383. * return !_.isRegExp(func) ? iteratee(func) : function(string) {
  30384. * return func.test(string);
  30385. * };
  30386. * });
  30387. *
  30388. * _.filter(['abc', 'def'], /ef/);
  30389. * // => ['def']
  30390. */
  30391. function iteratee(func) {
  30392. return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
  30393. }
  30394. /**
  30395. * Creates a function that performs a partial deep comparison between a given
  30396. * object and `source`, returning `true` if the given object has equivalent
  30397. * property values, else `false`.
  30398. *
  30399. * **Note:** The created function is equivalent to `_.isMatch` with `source`
  30400. * partially applied.
  30401. *
  30402. * Partial comparisons will match empty array and empty object `source`
  30403. * values against any array or object value, respectively. See `_.isEqual`
  30404. * for a list of supported value comparisons.
  30405. *
  30406. * @static
  30407. * @memberOf _
  30408. * @since 3.0.0
  30409. * @category Util
  30410. * @param {Object} source The object of property values to match.
  30411. * @returns {Function} Returns the new spec function.
  30412. * @example
  30413. *
  30414. * var objects = [
  30415. * { 'a': 1, 'b': 2, 'c': 3 },
  30416. * { 'a': 4, 'b': 5, 'c': 6 }
  30417. * ];
  30418. *
  30419. * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
  30420. * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
  30421. */
  30422. function matches(source) {
  30423. return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
  30424. }
  30425. /**
  30426. * Creates a function that performs a partial deep comparison between the
  30427. * value at `path` of a given object to `srcValue`, returning `true` if the
  30428. * object value is equivalent, else `false`.
  30429. *
  30430. * **Note:** Partial comparisons will match empty array and empty object
  30431. * `srcValue` values against any array or object value, respectively. See
  30432. * `_.isEqual` for a list of supported value comparisons.
  30433. *
  30434. * @static
  30435. * @memberOf _
  30436. * @since 3.2.0
  30437. * @category Util
  30438. * @param {Array|string} path The path of the property to get.
  30439. * @param {*} srcValue The value to match.
  30440. * @returns {Function} Returns the new spec function.
  30441. * @example
  30442. *
  30443. * var objects = [
  30444. * { 'a': 1, 'b': 2, 'c': 3 },
  30445. * { 'a': 4, 'b': 5, 'c': 6 }
  30446. * ];
  30447. *
  30448. * _.find(objects, _.matchesProperty('a', 4));
  30449. * // => { 'a': 4, 'b': 5, 'c': 6 }
  30450. */
  30451. function matchesProperty(path, srcValue) {
  30452. return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
  30453. }
  30454. /**
  30455. * Creates a function that invokes the method at `path` of a given object.
  30456. * Any additional arguments are provided to the invoked method.
  30457. *
  30458. * @static
  30459. * @memberOf _
  30460. * @since 3.7.0
  30461. * @category Util
  30462. * @param {Array|string} path The path of the method to invoke.
  30463. * @param {...*} [args] The arguments to invoke the method with.
  30464. * @returns {Function} Returns the new invoker function.
  30465. * @example
  30466. *
  30467. * var objects = [
  30468. * { 'a': { 'b': _.constant(2) } },
  30469. * { 'a': { 'b': _.constant(1) } }
  30470. * ];
  30471. *
  30472. * _.map(objects, _.method('a.b'));
  30473. * // => [2, 1]
  30474. *
  30475. * _.map(objects, _.method(['a', 'b']));
  30476. * // => [2, 1]
  30477. */
  30478. var method = baseRest(function(path, args) {
  30479. return function(object) {
  30480. return baseInvoke(object, path, args);
  30481. };
  30482. });
  30483. /**
  30484. * The opposite of `_.method`; this method creates a function that invokes
  30485. * the method at a given path of `object`. Any additional arguments are
  30486. * provided to the invoked method.
  30487. *
  30488. * @static
  30489. * @memberOf _
  30490. * @since 3.7.0
  30491. * @category Util
  30492. * @param {Object} object The object to query.
  30493. * @param {...*} [args] The arguments to invoke the method with.
  30494. * @returns {Function} Returns the new invoker function.
  30495. * @example
  30496. *
  30497. * var array = _.times(3, _.constant),
  30498. * object = { 'a': array, 'b': array, 'c': array };
  30499. *
  30500. * _.map(['a[2]', 'c[0]'], _.methodOf(object));
  30501. * // => [2, 0]
  30502. *
  30503. * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
  30504. * // => [2, 0]
  30505. */
  30506. var methodOf = baseRest(function(object, args) {
  30507. return function(path) {
  30508. return baseInvoke(object, path, args);
  30509. };
  30510. });
  30511. /**
  30512. * Adds all own enumerable string keyed function properties of a source
  30513. * object to the destination object. If `object` is a function, then methods
  30514. * are added to its prototype as well.
  30515. *
  30516. * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
  30517. * avoid conflicts caused by modifying the original.
  30518. *
  30519. * @static
  30520. * @since 0.1.0
  30521. * @memberOf _
  30522. * @category Util
  30523. * @param {Function|Object} [object=lodash] The destination object.
  30524. * @param {Object} source The object of functions to add.
  30525. * @param {Object} [options={}] The options object.
  30526. * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
  30527. * @returns {Function|Object} Returns `object`.
  30528. * @example
  30529. *
  30530. * function vowels(string) {
  30531. * return _.filter(string, function(v) {
  30532. * return /[aeiou]/i.test(v);
  30533. * });
  30534. * }
  30535. *
  30536. * _.mixin({ 'vowels': vowels });
  30537. * _.vowels('fred');
  30538. * // => ['e']
  30539. *
  30540. * _('fred').vowels().value();
  30541. * // => ['e']
  30542. *
  30543. * _.mixin({ 'vowels': vowels }, { 'chain': false });
  30544. * _('fred').vowels();
  30545. * // => ['e']
  30546. */
  30547. function mixin(object, source, options) {
  30548. var props = keys(source),
  30549. methodNames = baseFunctions(source, props);
  30550. if (options == null &&
  30551. !(isObject(source) && (methodNames.length || !props.length))) {
  30552. options = source;
  30553. source = object;
  30554. object = this;
  30555. methodNames = baseFunctions(source, keys(source));
  30556. }
  30557. var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
  30558. isFunc = isFunction(object);
  30559. arrayEach(methodNames, function(methodName) {
  30560. var func = source[methodName];
  30561. object[methodName] = func;
  30562. if (isFunc) {
  30563. object.prototype[methodName] = function() {
  30564. var chainAll = this.__chain__;
  30565. if (chain || chainAll) {
  30566. var result = object(this.__wrapped__),
  30567. actions = result.__actions__ = copyArray(this.__actions__);
  30568. actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
  30569. result.__chain__ = chainAll;
  30570. return result;
  30571. }
  30572. return func.apply(object, arrayPush([this.value()], arguments));
  30573. };
  30574. }
  30575. });
  30576. return object;
  30577. }
  30578. /**
  30579. * Reverts the `_` variable to its previous value and returns a reference to
  30580. * the `lodash` function.
  30581. *
  30582. * @static
  30583. * @since 0.1.0
  30584. * @memberOf _
  30585. * @category Util
  30586. * @returns {Function} Returns the `lodash` function.
  30587. * @example
  30588. *
  30589. * var lodash = _.noConflict();
  30590. */
  30591. function noConflict() {
  30592. if (root._ === this) {
  30593. root._ = oldDash;
  30594. }
  30595. return this;
  30596. }
  30597. /**
  30598. * This method returns `undefined`.
  30599. *
  30600. * @static
  30601. * @memberOf _
  30602. * @since 2.3.0
  30603. * @category Util
  30604. * @example
  30605. *
  30606. * _.times(2, _.noop);
  30607. * // => [undefined, undefined]
  30608. */
  30609. function noop() {
  30610. // No operation performed.
  30611. }
  30612. /**
  30613. * Creates a function that gets the argument at index `n`. If `n` is negative,
  30614. * the nth argument from the end is returned.
  30615. *
  30616. * @static
  30617. * @memberOf _
  30618. * @since 4.0.0
  30619. * @category Util
  30620. * @param {number} [n=0] The index of the argument to return.
  30621. * @returns {Function} Returns the new pass-thru function.
  30622. * @example
  30623. *
  30624. * var func = _.nthArg(1);
  30625. * func('a', 'b', 'c', 'd');
  30626. * // => 'b'
  30627. *
  30628. * var func = _.nthArg(-2);
  30629. * func('a', 'b', 'c', 'd');
  30630. * // => 'c'
  30631. */
  30632. function nthArg(n) {
  30633. n = toInteger(n);
  30634. return baseRest(function(args) {
  30635. return baseNth(args, n);
  30636. });
  30637. }
  30638. /**
  30639. * Creates a function that invokes `iteratees` with the arguments it receives
  30640. * and returns their results.
  30641. *
  30642. * @static
  30643. * @memberOf _
  30644. * @since 4.0.0
  30645. * @category Util
  30646. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  30647. * The iteratees to invoke.
  30648. * @returns {Function} Returns the new function.
  30649. * @example
  30650. *
  30651. * var func = _.over([Math.max, Math.min]);
  30652. *
  30653. * func(1, 2, 3, 4);
  30654. * // => [4, 1]
  30655. */
  30656. var over = createOver(arrayMap);
  30657. /**
  30658. * Creates a function that checks if **all** of the `predicates` return
  30659. * truthy when invoked with the arguments it receives.
  30660. *
  30661. * @static
  30662. * @memberOf _
  30663. * @since 4.0.0
  30664. * @category Util
  30665. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30666. * The predicates to check.
  30667. * @returns {Function} Returns the new function.
  30668. * @example
  30669. *
  30670. * var func = _.overEvery([Boolean, isFinite]);
  30671. *
  30672. * func('1');
  30673. * // => true
  30674. *
  30675. * func(null);
  30676. * // => false
  30677. *
  30678. * func(NaN);
  30679. * // => false
  30680. */
  30681. var overEvery = createOver(arrayEvery);
  30682. /**
  30683. * Creates a function that checks if **any** of the `predicates` return
  30684. * truthy when invoked with the arguments it receives.
  30685. *
  30686. * @static
  30687. * @memberOf _
  30688. * @since 4.0.0
  30689. * @category Util
  30690. * @param {...(Function|Function[])} [predicates=[_.identity]]
  30691. * The predicates to check.
  30692. * @returns {Function} Returns the new function.
  30693. * @example
  30694. *
  30695. * var func = _.overSome([Boolean, isFinite]);
  30696. *
  30697. * func('1');
  30698. * // => true
  30699. *
  30700. * func(null);
  30701. * // => true
  30702. *
  30703. * func(NaN);
  30704. * // => false
  30705. */
  30706. var overSome = createOver(arraySome);
  30707. /**
  30708. * Creates a function that returns the value at `path` of a given object.
  30709. *
  30710. * @static
  30711. * @memberOf _
  30712. * @since 2.4.0
  30713. * @category Util
  30714. * @param {Array|string} path The path of the property to get.
  30715. * @returns {Function} Returns the new accessor function.
  30716. * @example
  30717. *
  30718. * var objects = [
  30719. * { 'a': { 'b': 2 } },
  30720. * { 'a': { 'b': 1 } }
  30721. * ];
  30722. *
  30723. * _.map(objects, _.property('a.b'));
  30724. * // => [2, 1]
  30725. *
  30726. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  30727. * // => [1, 2]
  30728. */
  30729. function property(path) {
  30730. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  30731. }
  30732. /**
  30733. * The opposite of `_.property`; this method creates a function that returns
  30734. * the value at a given path of `object`.
  30735. *
  30736. * @static
  30737. * @memberOf _
  30738. * @since 3.0.0
  30739. * @category Util
  30740. * @param {Object} object The object to query.
  30741. * @returns {Function} Returns the new accessor function.
  30742. * @example
  30743. *
  30744. * var array = [0, 1, 2],
  30745. * object = { 'a': array, 'b': array, 'c': array };
  30746. *
  30747. * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
  30748. * // => [2, 0]
  30749. *
  30750. * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
  30751. * // => [2, 0]
  30752. */
  30753. function propertyOf(object) {
  30754. return function(path) {
  30755. return object == null ? undefined : baseGet(object, path);
  30756. };
  30757. }
  30758. /**
  30759. * Creates an array of numbers (positive and/or negative) progressing from
  30760. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  30761. * `start` is specified without an `end` or `step`. If `end` is not specified,
  30762. * it's set to `start` with `start` then set to `0`.
  30763. *
  30764. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  30765. * floating-point values which can produce unexpected results.
  30766. *
  30767. * @static
  30768. * @since 0.1.0
  30769. * @memberOf _
  30770. * @category Util
  30771. * @param {number} [start=0] The start of the range.
  30772. * @param {number} end The end of the range.
  30773. * @param {number} [step=1] The value to increment or decrement by.
  30774. * @returns {Array} Returns the range of numbers.
  30775. * @see _.inRange, _.rangeRight
  30776. * @example
  30777. *
  30778. * _.range(4);
  30779. * // => [0, 1, 2, 3]
  30780. *
  30781. * _.range(-4);
  30782. * // => [0, -1, -2, -3]
  30783. *
  30784. * _.range(1, 5);
  30785. * // => [1, 2, 3, 4]
  30786. *
  30787. * _.range(0, 20, 5);
  30788. * // => [0, 5, 10, 15]
  30789. *
  30790. * _.range(0, -4, -1);
  30791. * // => [0, -1, -2, -3]
  30792. *
  30793. * _.range(1, 4, 0);
  30794. * // => [1, 1, 1]
  30795. *
  30796. * _.range(0);
  30797. * // => []
  30798. */
  30799. var range = createRange();
  30800. /**
  30801. * This method is like `_.range` except that it populates values in
  30802. * descending order.
  30803. *
  30804. * @static
  30805. * @memberOf _
  30806. * @since 4.0.0
  30807. * @category Util
  30808. * @param {number} [start=0] The start of the range.
  30809. * @param {number} end The end of the range.
  30810. * @param {number} [step=1] The value to increment or decrement by.
  30811. * @returns {Array} Returns the range of numbers.
  30812. * @see _.inRange, _.range
  30813. * @example
  30814. *
  30815. * _.rangeRight(4);
  30816. * // => [3, 2, 1, 0]
  30817. *
  30818. * _.rangeRight(-4);
  30819. * // => [-3, -2, -1, 0]
  30820. *
  30821. * _.rangeRight(1, 5);
  30822. * // => [4, 3, 2, 1]
  30823. *
  30824. * _.rangeRight(0, 20, 5);
  30825. * // => [15, 10, 5, 0]
  30826. *
  30827. * _.rangeRight(0, -4, -1);
  30828. * // => [-3, -2, -1, 0]
  30829. *
  30830. * _.rangeRight(1, 4, 0);
  30831. * // => [1, 1, 1]
  30832. *
  30833. * _.rangeRight(0);
  30834. * // => []
  30835. */
  30836. var rangeRight = createRange(true);
  30837. /**
  30838. * This method returns a new empty array.
  30839. *
  30840. * @static
  30841. * @memberOf _
  30842. * @since 4.13.0
  30843. * @category Util
  30844. * @returns {Array} Returns the new empty array.
  30845. * @example
  30846. *
  30847. * var arrays = _.times(2, _.stubArray);
  30848. *
  30849. * console.log(arrays);
  30850. * // => [[], []]
  30851. *
  30852. * console.log(arrays[0] === arrays[1]);
  30853. * // => false
  30854. */
  30855. function stubArray() {
  30856. return [];
  30857. }
  30858. /**
  30859. * This method returns `false`.
  30860. *
  30861. * @static
  30862. * @memberOf _
  30863. * @since 4.13.0
  30864. * @category Util
  30865. * @returns {boolean} Returns `false`.
  30866. * @example
  30867. *
  30868. * _.times(2, _.stubFalse);
  30869. * // => [false, false]
  30870. */
  30871. function stubFalse() {
  30872. return false;
  30873. }
  30874. /**
  30875. * This method returns a new empty object.
  30876. *
  30877. * @static
  30878. * @memberOf _
  30879. * @since 4.13.0
  30880. * @category Util
  30881. * @returns {Object} Returns the new empty object.
  30882. * @example
  30883. *
  30884. * var objects = _.times(2, _.stubObject);
  30885. *
  30886. * console.log(objects);
  30887. * // => [{}, {}]
  30888. *
  30889. * console.log(objects[0] === objects[1]);
  30890. * // => false
  30891. */
  30892. function stubObject() {
  30893. return {};
  30894. }
  30895. /**
  30896. * This method returns an empty string.
  30897. *
  30898. * @static
  30899. * @memberOf _
  30900. * @since 4.13.0
  30901. * @category Util
  30902. * @returns {string} Returns the empty string.
  30903. * @example
  30904. *
  30905. * _.times(2, _.stubString);
  30906. * // => ['', '']
  30907. */
  30908. function stubString() {
  30909. return '';
  30910. }
  30911. /**
  30912. * This method returns `true`.
  30913. *
  30914. * @static
  30915. * @memberOf _
  30916. * @since 4.13.0
  30917. * @category Util
  30918. * @returns {boolean} Returns `true`.
  30919. * @example
  30920. *
  30921. * _.times(2, _.stubTrue);
  30922. * // => [true, true]
  30923. */
  30924. function stubTrue() {
  30925. return true;
  30926. }
  30927. /**
  30928. * Invokes the iteratee `n` times, returning an array of the results of
  30929. * each invocation. The iteratee is invoked with one argument; (index).
  30930. *
  30931. * @static
  30932. * @since 0.1.0
  30933. * @memberOf _
  30934. * @category Util
  30935. * @param {number} n The number of times to invoke `iteratee`.
  30936. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  30937. * @returns {Array} Returns the array of results.
  30938. * @example
  30939. *
  30940. * _.times(3, String);
  30941. * // => ['0', '1', '2']
  30942. *
  30943. * _.times(4, _.constant(0));
  30944. * // => [0, 0, 0, 0]
  30945. */
  30946. function times(n, iteratee) {
  30947. n = toInteger(n);
  30948. if (n < 1 || n > MAX_SAFE_INTEGER) {
  30949. return [];
  30950. }
  30951. var index = MAX_ARRAY_LENGTH,
  30952. length = nativeMin(n, MAX_ARRAY_LENGTH);
  30953. iteratee = getIteratee(iteratee);
  30954. n -= MAX_ARRAY_LENGTH;
  30955. var result = baseTimes(length, iteratee);
  30956. while (++index < n) {
  30957. iteratee(index);
  30958. }
  30959. return result;
  30960. }
  30961. /**
  30962. * Converts `value` to a property path array.
  30963. *
  30964. * @static
  30965. * @memberOf _
  30966. * @since 4.0.0
  30967. * @category Util
  30968. * @param {*} value The value to convert.
  30969. * @returns {Array} Returns the new property path array.
  30970. * @example
  30971. *
  30972. * _.toPath('a.b.c');
  30973. * // => ['a', 'b', 'c']
  30974. *
  30975. * _.toPath('a[0].b.c');
  30976. * // => ['a', '0', 'b', 'c']
  30977. */
  30978. function toPath(value) {
  30979. if (isArray(value)) {
  30980. return arrayMap(value, toKey);
  30981. }
  30982. return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
  30983. }
  30984. /**
  30985. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  30986. *
  30987. * @static
  30988. * @since 0.1.0
  30989. * @memberOf _
  30990. * @category Util
  30991. * @param {string} [prefix=''] The value to prefix the ID with.
  30992. * @returns {string} Returns the unique ID.
  30993. * @example
  30994. *
  30995. * _.uniqueId('contact_');
  30996. * // => 'contact_104'
  30997. *
  30998. * _.uniqueId();
  30999. * // => '105'
  31000. */
  31001. function uniqueId(prefix) {
  31002. var id = ++idCounter;
  31003. return toString(prefix) + id;
  31004. }
  31005. /*------------------------------------------------------------------------*/
  31006. /**
  31007. * Adds two numbers.
  31008. *
  31009. * @static
  31010. * @memberOf _
  31011. * @since 3.4.0
  31012. * @category Math
  31013. * @param {number} augend The first number in an addition.
  31014. * @param {number} addend The second number in an addition.
  31015. * @returns {number} Returns the total.
  31016. * @example
  31017. *
  31018. * _.add(6, 4);
  31019. * // => 10
  31020. */
  31021. var add = createMathOperation(function(augend, addend) {
  31022. return augend + addend;
  31023. }, 0);
  31024. /**
  31025. * Computes `number` rounded up to `precision`.
  31026. *
  31027. * @static
  31028. * @memberOf _
  31029. * @since 3.10.0
  31030. * @category Math
  31031. * @param {number} number The number to round up.
  31032. * @param {number} [precision=0] The precision to round up to.
  31033. * @returns {number} Returns the rounded up number.
  31034. * @example
  31035. *
  31036. * _.ceil(4.006);
  31037. * // => 5
  31038. *
  31039. * _.ceil(6.004, 2);
  31040. * // => 6.01
  31041. *
  31042. * _.ceil(6040, -2);
  31043. * // => 6100
  31044. */
  31045. var ceil = createRound('ceil');
  31046. /**
  31047. * Divide two numbers.
  31048. *
  31049. * @static
  31050. * @memberOf _
  31051. * @since 4.7.0
  31052. * @category Math
  31053. * @param {number} dividend The first number in a division.
  31054. * @param {number} divisor The second number in a division.
  31055. * @returns {number} Returns the quotient.
  31056. * @example
  31057. *
  31058. * _.divide(6, 4);
  31059. * // => 1.5
  31060. */
  31061. var divide = createMathOperation(function(dividend, divisor) {
  31062. return dividend / divisor;
  31063. }, 1);
  31064. /**
  31065. * Computes `number` rounded down to `precision`.
  31066. *
  31067. * @static
  31068. * @memberOf _
  31069. * @since 3.10.0
  31070. * @category Math
  31071. * @param {number} number The number to round down.
  31072. * @param {number} [precision=0] The precision to round down to.
  31073. * @returns {number} Returns the rounded down number.
  31074. * @example
  31075. *
  31076. * _.floor(4.006);
  31077. * // => 4
  31078. *
  31079. * _.floor(0.046, 2);
  31080. * // => 0.04
  31081. *
  31082. * _.floor(4060, -2);
  31083. * // => 4000
  31084. */
  31085. var floor = createRound('floor');
  31086. /**
  31087. * Computes the maximum value of `array`. If `array` is empty or falsey,
  31088. * `undefined` is returned.
  31089. *
  31090. * @static
  31091. * @since 0.1.0
  31092. * @memberOf _
  31093. * @category Math
  31094. * @param {Array} array The array to iterate over.
  31095. * @returns {*} Returns the maximum value.
  31096. * @example
  31097. *
  31098. * _.max([4, 2, 8, 6]);
  31099. * // => 8
  31100. *
  31101. * _.max([]);
  31102. * // => undefined
  31103. */
  31104. function max(array) {
  31105. return (array && array.length)
  31106. ? baseExtremum(array, identity, baseGt)
  31107. : undefined;
  31108. }
  31109. /**
  31110. * This method is like `_.max` except that it accepts `iteratee` which is
  31111. * invoked for each element in `array` to generate the criterion by which
  31112. * the value is ranked. The iteratee is invoked with one argument: (value).
  31113. *
  31114. * @static
  31115. * @memberOf _
  31116. * @since 4.0.0
  31117. * @category Math
  31118. * @param {Array} array The array to iterate over.
  31119. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31120. * @returns {*} Returns the maximum value.
  31121. * @example
  31122. *
  31123. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31124. *
  31125. * _.maxBy(objects, function(o) { return o.n; });
  31126. * // => { 'n': 2 }
  31127. *
  31128. * // The `_.property` iteratee shorthand.
  31129. * _.maxBy(objects, 'n');
  31130. * // => { 'n': 2 }
  31131. */
  31132. function maxBy(array, iteratee) {
  31133. return (array && array.length)
  31134. ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
  31135. : undefined;
  31136. }
  31137. /**
  31138. * Computes the mean of the values in `array`.
  31139. *
  31140. * @static
  31141. * @memberOf _
  31142. * @since 4.0.0
  31143. * @category Math
  31144. * @param {Array} array The array to iterate over.
  31145. * @returns {number} Returns the mean.
  31146. * @example
  31147. *
  31148. * _.mean([4, 2, 8, 6]);
  31149. * // => 5
  31150. */
  31151. function mean(array) {
  31152. return baseMean(array, identity);
  31153. }
  31154. /**
  31155. * This method is like `_.mean` except that it accepts `iteratee` which is
  31156. * invoked for each element in `array` to generate the value to be averaged.
  31157. * The iteratee is invoked with one argument: (value).
  31158. *
  31159. * @static
  31160. * @memberOf _
  31161. * @since 4.7.0
  31162. * @category Math
  31163. * @param {Array} array The array to iterate over.
  31164. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31165. * @returns {number} Returns the mean.
  31166. * @example
  31167. *
  31168. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31169. *
  31170. * _.meanBy(objects, function(o) { return o.n; });
  31171. * // => 5
  31172. *
  31173. * // The `_.property` iteratee shorthand.
  31174. * _.meanBy(objects, 'n');
  31175. * // => 5
  31176. */
  31177. function meanBy(array, iteratee) {
  31178. return baseMean(array, getIteratee(iteratee, 2));
  31179. }
  31180. /**
  31181. * Computes the minimum value of `array`. If `array` is empty or falsey,
  31182. * `undefined` is returned.
  31183. *
  31184. * @static
  31185. * @since 0.1.0
  31186. * @memberOf _
  31187. * @category Math
  31188. * @param {Array} array The array to iterate over.
  31189. * @returns {*} Returns the minimum value.
  31190. * @example
  31191. *
  31192. * _.min([4, 2, 8, 6]);
  31193. * // => 2
  31194. *
  31195. * _.min([]);
  31196. * // => undefined
  31197. */
  31198. function min(array) {
  31199. return (array && array.length)
  31200. ? baseExtremum(array, identity, baseLt)
  31201. : undefined;
  31202. }
  31203. /**
  31204. * This method is like `_.min` except that it accepts `iteratee` which is
  31205. * invoked for each element in `array` to generate the criterion by which
  31206. * the value is ranked. The iteratee is invoked with one argument: (value).
  31207. *
  31208. * @static
  31209. * @memberOf _
  31210. * @since 4.0.0
  31211. * @category Math
  31212. * @param {Array} array The array to iterate over.
  31213. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31214. * @returns {*} Returns the minimum value.
  31215. * @example
  31216. *
  31217. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  31218. *
  31219. * _.minBy(objects, function(o) { return o.n; });
  31220. * // => { 'n': 1 }
  31221. *
  31222. * // The `_.property` iteratee shorthand.
  31223. * _.minBy(objects, 'n');
  31224. * // => { 'n': 1 }
  31225. */
  31226. function minBy(array, iteratee) {
  31227. return (array && array.length)
  31228. ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
  31229. : undefined;
  31230. }
  31231. /**
  31232. * Multiply two numbers.
  31233. *
  31234. * @static
  31235. * @memberOf _
  31236. * @since 4.7.0
  31237. * @category Math
  31238. * @param {number} multiplier The first number in a multiplication.
  31239. * @param {number} multiplicand The second number in a multiplication.
  31240. * @returns {number} Returns the product.
  31241. * @example
  31242. *
  31243. * _.multiply(6, 4);
  31244. * // => 24
  31245. */
  31246. var multiply = createMathOperation(function(multiplier, multiplicand) {
  31247. return multiplier * multiplicand;
  31248. }, 1);
  31249. /**
  31250. * Computes `number` rounded to `precision`.
  31251. *
  31252. * @static
  31253. * @memberOf _
  31254. * @since 3.10.0
  31255. * @category Math
  31256. * @param {number} number The number to round.
  31257. * @param {number} [precision=0] The precision to round to.
  31258. * @returns {number} Returns the rounded number.
  31259. * @example
  31260. *
  31261. * _.round(4.006);
  31262. * // => 4
  31263. *
  31264. * _.round(4.006, 2);
  31265. * // => 4.01
  31266. *
  31267. * _.round(4060, -2);
  31268. * // => 4100
  31269. */
  31270. var round = createRound('round');
  31271. /**
  31272. * Subtract two numbers.
  31273. *
  31274. * @static
  31275. * @memberOf _
  31276. * @since 4.0.0
  31277. * @category Math
  31278. * @param {number} minuend The first number in a subtraction.
  31279. * @param {number} subtrahend The second number in a subtraction.
  31280. * @returns {number} Returns the difference.
  31281. * @example
  31282. *
  31283. * _.subtract(6, 4);
  31284. * // => 2
  31285. */
  31286. var subtract = createMathOperation(function(minuend, subtrahend) {
  31287. return minuend - subtrahend;
  31288. }, 0);
  31289. /**
  31290. * Computes the sum of the values in `array`.
  31291. *
  31292. * @static
  31293. * @memberOf _
  31294. * @since 3.4.0
  31295. * @category Math
  31296. * @param {Array} array The array to iterate over.
  31297. * @returns {number} Returns the sum.
  31298. * @example
  31299. *
  31300. * _.sum([4, 2, 8, 6]);
  31301. * // => 20
  31302. */
  31303. function sum(array) {
  31304. return (array && array.length)
  31305. ? baseSum(array, identity)
  31306. : 0;
  31307. }
  31308. /**
  31309. * This method is like `_.sum` except that it accepts `iteratee` which is
  31310. * invoked for each element in `array` to generate the value to be summed.
  31311. * The iteratee is invoked with one argument: (value).
  31312. *
  31313. * @static
  31314. * @memberOf _
  31315. * @since 4.0.0
  31316. * @category Math
  31317. * @param {Array} array The array to iterate over.
  31318. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  31319. * @returns {number} Returns the sum.
  31320. * @example
  31321. *
  31322. * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
  31323. *
  31324. * _.sumBy(objects, function(o) { return o.n; });
  31325. * // => 20
  31326. *
  31327. * // The `_.property` iteratee shorthand.
  31328. * _.sumBy(objects, 'n');
  31329. * // => 20
  31330. */
  31331. function sumBy(array, iteratee) {
  31332. return (array && array.length)
  31333. ? baseSum(array, getIteratee(iteratee, 2))
  31334. : 0;
  31335. }
  31336. /*------------------------------------------------------------------------*/
  31337. // Add methods that return wrapped values in chain sequences.
  31338. lodash.after = after;
  31339. lodash.ary = ary;
  31340. lodash.assign = assign;
  31341. lodash.assignIn = assignIn;
  31342. lodash.assignInWith = assignInWith;
  31343. lodash.assignWith = assignWith;
  31344. lodash.at = at;
  31345. lodash.before = before;
  31346. lodash.bind = bind;
  31347. lodash.bindAll = bindAll;
  31348. lodash.bindKey = bindKey;
  31349. lodash.castArray = castArray;
  31350. lodash.chain = chain;
  31351. lodash.chunk = chunk;
  31352. lodash.compact = compact;
  31353. lodash.concat = concat;
  31354. lodash.cond = cond;
  31355. lodash.conforms = conforms;
  31356. lodash.constant = constant;
  31357. lodash.countBy = countBy;
  31358. lodash.create = create;
  31359. lodash.curry = curry;
  31360. lodash.curryRight = curryRight;
  31361. lodash.debounce = debounce;
  31362. lodash.defaults = defaults;
  31363. lodash.defaultsDeep = defaultsDeep;
  31364. lodash.defer = defer;
  31365. lodash.delay = delay;
  31366. lodash.difference = difference;
  31367. lodash.differenceBy = differenceBy;
  31368. lodash.differenceWith = differenceWith;
  31369. lodash.drop = drop;
  31370. lodash.dropRight = dropRight;
  31371. lodash.dropRightWhile = dropRightWhile;
  31372. lodash.dropWhile = dropWhile;
  31373. lodash.fill = fill;
  31374. lodash.filter = filter;
  31375. lodash.flatMap = flatMap;
  31376. lodash.flatMapDeep = flatMapDeep;
  31377. lodash.flatMapDepth = flatMapDepth;
  31378. lodash.flatten = flatten;
  31379. lodash.flattenDeep = flattenDeep;
  31380. lodash.flattenDepth = flattenDepth;
  31381. lodash.flip = flip;
  31382. lodash.flow = flow;
  31383. lodash.flowRight = flowRight;
  31384. lodash.fromPairs = fromPairs;
  31385. lodash.functions = functions;
  31386. lodash.functionsIn = functionsIn;
  31387. lodash.groupBy = groupBy;
  31388. lodash.initial = initial;
  31389. lodash.intersection = intersection;
  31390. lodash.intersectionBy = intersectionBy;
  31391. lodash.intersectionWith = intersectionWith;
  31392. lodash.invert = invert;
  31393. lodash.invertBy = invertBy;
  31394. lodash.invokeMap = invokeMap;
  31395. lodash.iteratee = iteratee;
  31396. lodash.keyBy = keyBy;
  31397. lodash.keys = keys;
  31398. lodash.keysIn = keysIn;
  31399. lodash.map = map;
  31400. lodash.mapKeys = mapKeys;
  31401. lodash.mapValues = mapValues;
  31402. lodash.matches = matches;
  31403. lodash.matchesProperty = matchesProperty;
  31404. lodash.memoize = memoize;
  31405. lodash.merge = merge;
  31406. lodash.mergeWith = mergeWith;
  31407. lodash.method = method;
  31408. lodash.methodOf = methodOf;
  31409. lodash.mixin = mixin;
  31410. lodash.negate = negate;
  31411. lodash.nthArg = nthArg;
  31412. lodash.omit = omit;
  31413. lodash.omitBy = omitBy;
  31414. lodash.once = once;
  31415. lodash.orderBy = orderBy;
  31416. lodash.over = over;
  31417. lodash.overArgs = overArgs;
  31418. lodash.overEvery = overEvery;
  31419. lodash.overSome = overSome;
  31420. lodash.partial = partial;
  31421. lodash.partialRight = partialRight;
  31422. lodash.partition = partition;
  31423. lodash.pick = pick;
  31424. lodash.pickBy = pickBy;
  31425. lodash.property = property;
  31426. lodash.propertyOf = propertyOf;
  31427. lodash.pull = pull;
  31428. lodash.pullAll = pullAll;
  31429. lodash.pullAllBy = pullAllBy;
  31430. lodash.pullAllWith = pullAllWith;
  31431. lodash.pullAt = pullAt;
  31432. lodash.range = range;
  31433. lodash.rangeRight = rangeRight;
  31434. lodash.rearg = rearg;
  31435. lodash.reject = reject;
  31436. lodash.remove = remove;
  31437. lodash.rest = rest;
  31438. lodash.reverse = reverse;
  31439. lodash.sampleSize = sampleSize;
  31440. lodash.set = set;
  31441. lodash.setWith = setWith;
  31442. lodash.shuffle = shuffle;
  31443. lodash.slice = slice;
  31444. lodash.sortBy = sortBy;
  31445. lodash.sortedUniq = sortedUniq;
  31446. lodash.sortedUniqBy = sortedUniqBy;
  31447. lodash.split = split;
  31448. lodash.spread = spread;
  31449. lodash.tail = tail;
  31450. lodash.take = take;
  31451. lodash.takeRight = takeRight;
  31452. lodash.takeRightWhile = takeRightWhile;
  31453. lodash.takeWhile = takeWhile;
  31454. lodash.tap = tap;
  31455. lodash.throttle = throttle;
  31456. lodash.thru = thru;
  31457. lodash.toArray = toArray;
  31458. lodash.toPairs = toPairs;
  31459. lodash.toPairsIn = toPairsIn;
  31460. lodash.toPath = toPath;
  31461. lodash.toPlainObject = toPlainObject;
  31462. lodash.transform = transform;
  31463. lodash.unary = unary;
  31464. lodash.union = union;
  31465. lodash.unionBy = unionBy;
  31466. lodash.unionWith = unionWith;
  31467. lodash.uniq = uniq;
  31468. lodash.uniqBy = uniqBy;
  31469. lodash.uniqWith = uniqWith;
  31470. lodash.unset = unset;
  31471. lodash.unzip = unzip;
  31472. lodash.unzipWith = unzipWith;
  31473. lodash.update = update;
  31474. lodash.updateWith = updateWith;
  31475. lodash.values = values;
  31476. lodash.valuesIn = valuesIn;
  31477. lodash.without = without;
  31478. lodash.words = words;
  31479. lodash.wrap = wrap;
  31480. lodash.xor = xor;
  31481. lodash.xorBy = xorBy;
  31482. lodash.xorWith = xorWith;
  31483. lodash.zip = zip;
  31484. lodash.zipObject = zipObject;
  31485. lodash.zipObjectDeep = zipObjectDeep;
  31486. lodash.zipWith = zipWith;
  31487. // Add aliases.
  31488. lodash.entries = toPairs;
  31489. lodash.entriesIn = toPairsIn;
  31490. lodash.extend = assignIn;
  31491. lodash.extendWith = assignInWith;
  31492. // Add methods to `lodash.prototype`.
  31493. mixin(lodash, lodash);
  31494. /*------------------------------------------------------------------------*/
  31495. // Add methods that return unwrapped values in chain sequences.
  31496. lodash.add = add;
  31497. lodash.attempt = attempt;
  31498. lodash.camelCase = camelCase;
  31499. lodash.capitalize = capitalize;
  31500. lodash.ceil = ceil;
  31501. lodash.clamp = clamp;
  31502. lodash.clone = clone;
  31503. lodash.cloneDeep = cloneDeep;
  31504. lodash.cloneDeepWith = cloneDeepWith;
  31505. lodash.cloneWith = cloneWith;
  31506. lodash.conformsTo = conformsTo;
  31507. lodash.deburr = deburr;
  31508. lodash.defaultTo = defaultTo;
  31509. lodash.divide = divide;
  31510. lodash.endsWith = endsWith;
  31511. lodash.eq = eq;
  31512. lodash.escape = escape;
  31513. lodash.escapeRegExp = escapeRegExp;
  31514. lodash.every = every;
  31515. lodash.find = find;
  31516. lodash.findIndex = findIndex;
  31517. lodash.findKey = findKey;
  31518. lodash.findLast = findLast;
  31519. lodash.findLastIndex = findLastIndex;
  31520. lodash.findLastKey = findLastKey;
  31521. lodash.floor = floor;
  31522. lodash.forEach = forEach;
  31523. lodash.forEachRight = forEachRight;
  31524. lodash.forIn = forIn;
  31525. lodash.forInRight = forInRight;
  31526. lodash.forOwn = forOwn;
  31527. lodash.forOwnRight = forOwnRight;
  31528. lodash.get = get;
  31529. lodash.gt = gt;
  31530. lodash.gte = gte;
  31531. lodash.has = has;
  31532. lodash.hasIn = hasIn;
  31533. lodash.head = head;
  31534. lodash.identity = identity;
  31535. lodash.includes = includes;
  31536. lodash.indexOf = indexOf;
  31537. lodash.inRange = inRange;
  31538. lodash.invoke = invoke;
  31539. lodash.isArguments = isArguments;
  31540. lodash.isArray = isArray;
  31541. lodash.isArrayBuffer = isArrayBuffer;
  31542. lodash.isArrayLike = isArrayLike;
  31543. lodash.isArrayLikeObject = isArrayLikeObject;
  31544. lodash.isBoolean = isBoolean;
  31545. lodash.isBuffer = isBuffer;
  31546. lodash.isDate = isDate;
  31547. lodash.isElement = isElement;
  31548. lodash.isEmpty = isEmpty;
  31549. lodash.isEqual = isEqual;
  31550. lodash.isEqualWith = isEqualWith;
  31551. lodash.isError = isError;
  31552. lodash.isFinite = isFinite;
  31553. lodash.isFunction = isFunction;
  31554. lodash.isInteger = isInteger;
  31555. lodash.isLength = isLength;
  31556. lodash.isMap = isMap;
  31557. lodash.isMatch = isMatch;
  31558. lodash.isMatchWith = isMatchWith;
  31559. lodash.isNaN = isNaN;
  31560. lodash.isNative = isNative;
  31561. lodash.isNil = isNil;
  31562. lodash.isNull = isNull;
  31563. lodash.isNumber = isNumber;
  31564. lodash.isObject = isObject;
  31565. lodash.isObjectLike = isObjectLike;
  31566. lodash.isPlainObject = isPlainObject;
  31567. lodash.isRegExp = isRegExp;
  31568. lodash.isSafeInteger = isSafeInteger;
  31569. lodash.isSet = isSet;
  31570. lodash.isString = isString;
  31571. lodash.isSymbol = isSymbol;
  31572. lodash.isTypedArray = isTypedArray;
  31573. lodash.isUndefined = isUndefined;
  31574. lodash.isWeakMap = isWeakMap;
  31575. lodash.isWeakSet = isWeakSet;
  31576. lodash.join = join;
  31577. lodash.kebabCase = kebabCase;
  31578. lodash.last = last;
  31579. lodash.lastIndexOf = lastIndexOf;
  31580. lodash.lowerCase = lowerCase;
  31581. lodash.lowerFirst = lowerFirst;
  31582. lodash.lt = lt;
  31583. lodash.lte = lte;
  31584. lodash.max = max;
  31585. lodash.maxBy = maxBy;
  31586. lodash.mean = mean;
  31587. lodash.meanBy = meanBy;
  31588. lodash.min = min;
  31589. lodash.minBy = minBy;
  31590. lodash.stubArray = stubArray;
  31591. lodash.stubFalse = stubFalse;
  31592. lodash.stubObject = stubObject;
  31593. lodash.stubString = stubString;
  31594. lodash.stubTrue = stubTrue;
  31595. lodash.multiply = multiply;
  31596. lodash.nth = nth;
  31597. lodash.noConflict = noConflict;
  31598. lodash.noop = noop;
  31599. lodash.now = now;
  31600. lodash.pad = pad;
  31601. lodash.padEnd = padEnd;
  31602. lodash.padStart = padStart;
  31603. lodash.parseInt = parseInt;
  31604. lodash.random = random;
  31605. lodash.reduce = reduce;
  31606. lodash.reduceRight = reduceRight;
  31607. lodash.repeat = repeat;
  31608. lodash.replace = replace;
  31609. lodash.result = result;
  31610. lodash.round = round;
  31611. lodash.runInContext = runInContext;
  31612. lodash.sample = sample;
  31613. lodash.size = size;
  31614. lodash.snakeCase = snakeCase;
  31615. lodash.some = some;
  31616. lodash.sortedIndex = sortedIndex;
  31617. lodash.sortedIndexBy = sortedIndexBy;
  31618. lodash.sortedIndexOf = sortedIndexOf;
  31619. lodash.sortedLastIndex = sortedLastIndex;
  31620. lodash.sortedLastIndexBy = sortedLastIndexBy;
  31621. lodash.sortedLastIndexOf = sortedLastIndexOf;
  31622. lodash.startCase = startCase;
  31623. lodash.startsWith = startsWith;
  31624. lodash.subtract = subtract;
  31625. lodash.sum = sum;
  31626. lodash.sumBy = sumBy;
  31627. lodash.template = template;
  31628. lodash.times = times;
  31629. lodash.toFinite = toFinite;
  31630. lodash.toInteger = toInteger;
  31631. lodash.toLength = toLength;
  31632. lodash.toLower = toLower;
  31633. lodash.toNumber = toNumber;
  31634. lodash.toSafeInteger = toSafeInteger;
  31635. lodash.toString = toString;
  31636. lodash.toUpper = toUpper;
  31637. lodash.trim = trim;
  31638. lodash.trimEnd = trimEnd;
  31639. lodash.trimStart = trimStart;
  31640. lodash.truncate = truncate;
  31641. lodash.unescape = unescape;
  31642. lodash.uniqueId = uniqueId;
  31643. lodash.upperCase = upperCase;
  31644. lodash.upperFirst = upperFirst;
  31645. // Add aliases.
  31646. lodash.each = forEach;
  31647. lodash.eachRight = forEachRight;
  31648. lodash.first = head;
  31649. mixin(lodash, (function() {
  31650. var source = {};
  31651. baseForOwn(lodash, function(func, methodName) {
  31652. if (!hasOwnProperty.call(lodash.prototype, methodName)) {
  31653. source[methodName] = func;
  31654. }
  31655. });
  31656. return source;
  31657. }()), { 'chain': false });
  31658. /*------------------------------------------------------------------------*/
  31659. /**
  31660. * The semantic version number.
  31661. *
  31662. * @static
  31663. * @memberOf _
  31664. * @type {string}
  31665. */
  31666. lodash.VERSION = VERSION;
  31667. // Assign default placeholders.
  31668. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
  31669. lodash[methodName].placeholder = lodash;
  31670. });
  31671. // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
  31672. arrayEach(['drop', 'take'], function(methodName, index) {
  31673. LazyWrapper.prototype[methodName] = function(n) {
  31674. n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
  31675. var result = (this.__filtered__ && !index)
  31676. ? new LazyWrapper(this)
  31677. : this.clone();
  31678. if (result.__filtered__) {
  31679. result.__takeCount__ = nativeMin(n, result.__takeCount__);
  31680. } else {
  31681. result.__views__.push({
  31682. 'size': nativeMin(n, MAX_ARRAY_LENGTH),
  31683. 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
  31684. });
  31685. }
  31686. return result;
  31687. };
  31688. LazyWrapper.prototype[methodName + 'Right'] = function(n) {
  31689. return this.reverse()[methodName](n).reverse();
  31690. };
  31691. });
  31692. // Add `LazyWrapper` methods that accept an `iteratee` value.
  31693. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
  31694. var type = index + 1,
  31695. isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
  31696. LazyWrapper.prototype[methodName] = function(iteratee) {
  31697. var result = this.clone();
  31698. result.__iteratees__.push({
  31699. 'iteratee': getIteratee(iteratee, 3),
  31700. 'type': type
  31701. });
  31702. result.__filtered__ = result.__filtered__ || isFilter;
  31703. return result;
  31704. };
  31705. });
  31706. // Add `LazyWrapper` methods for `_.head` and `_.last`.
  31707. arrayEach(['head', 'last'], function(methodName, index) {
  31708. var takeName = 'take' + (index ? 'Right' : '');
  31709. LazyWrapper.prototype[methodName] = function() {
  31710. return this[takeName](1).value()[0];
  31711. };
  31712. });
  31713. // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
  31714. arrayEach(['initial', 'tail'], function(methodName, index) {
  31715. var dropName = 'drop' + (index ? '' : 'Right');
  31716. LazyWrapper.prototype[methodName] = function() {
  31717. return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
  31718. };
  31719. });
  31720. LazyWrapper.prototype.compact = function() {
  31721. return this.filter(identity);
  31722. };
  31723. LazyWrapper.prototype.find = function(predicate) {
  31724. return this.filter(predicate).head();
  31725. };
  31726. LazyWrapper.prototype.findLast = function(predicate) {
  31727. return this.reverse().find(predicate);
  31728. };
  31729. LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
  31730. if (typeof path == 'function') {
  31731. return new LazyWrapper(this);
  31732. }
  31733. return this.map(function(value) {
  31734. return baseInvoke(value, path, args);
  31735. });
  31736. });
  31737. LazyWrapper.prototype.reject = function(predicate) {
  31738. return this.filter(negate(getIteratee(predicate)));
  31739. };
  31740. LazyWrapper.prototype.slice = function(start, end) {
  31741. start = toInteger(start);
  31742. var result = this;
  31743. if (result.__filtered__ && (start > 0 || end < 0)) {
  31744. return new LazyWrapper(result);
  31745. }
  31746. if (start < 0) {
  31747. result = result.takeRight(-start);
  31748. } else if (start) {
  31749. result = result.drop(start);
  31750. }
  31751. if (end !== undefined) {
  31752. end = toInteger(end);
  31753. result = end < 0 ? result.dropRight(-end) : result.take(end - start);
  31754. }
  31755. return result;
  31756. };
  31757. LazyWrapper.prototype.takeRightWhile = function(predicate) {
  31758. return this.reverse().takeWhile(predicate).reverse();
  31759. };
  31760. LazyWrapper.prototype.toArray = function() {
  31761. return this.take(MAX_ARRAY_LENGTH);
  31762. };
  31763. // Add `LazyWrapper` methods to `lodash.prototype`.
  31764. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31765. var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
  31766. isTaker = /^(?:head|last)$/.test(methodName),
  31767. lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
  31768. retUnwrapped = isTaker || /^find/.test(methodName);
  31769. if (!lodashFunc) {
  31770. return;
  31771. }
  31772. lodash.prototype[methodName] = function() {
  31773. var value = this.__wrapped__,
  31774. args = isTaker ? [1] : arguments,
  31775. isLazy = value instanceof LazyWrapper,
  31776. iteratee = args[0],
  31777. useLazy = isLazy || isArray(value);
  31778. var interceptor = function(value) {
  31779. var result = lodashFunc.apply(lodash, arrayPush([value], args));
  31780. return (isTaker && chainAll) ? result[0] : result;
  31781. };
  31782. if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
  31783. // Avoid lazy use if the iteratee has a "length" value other than `1`.
  31784. isLazy = useLazy = false;
  31785. }
  31786. var chainAll = this.__chain__,
  31787. isHybrid = !!this.__actions__.length,
  31788. isUnwrapped = retUnwrapped && !chainAll,
  31789. onlyLazy = isLazy && !isHybrid;
  31790. if (!retUnwrapped && useLazy) {
  31791. value = onlyLazy ? value : new LazyWrapper(this);
  31792. var result = func.apply(value, args);
  31793. result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
  31794. return new LodashWrapper(result, chainAll);
  31795. }
  31796. if (isUnwrapped && onlyLazy) {
  31797. return func.apply(this, args);
  31798. }
  31799. result = this.thru(interceptor);
  31800. return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
  31801. };
  31802. });
  31803. // Add `Array` methods to `lodash.prototype`.
  31804. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
  31805. var func = arrayProto[methodName],
  31806. chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
  31807. retUnwrapped = /^(?:pop|shift)$/.test(methodName);
  31808. lodash.prototype[methodName] = function() {
  31809. var args = arguments;
  31810. if (retUnwrapped && !this.__chain__) {
  31811. var value = this.value();
  31812. return func.apply(isArray(value) ? value : [], args);
  31813. }
  31814. return this[chainName](function(value) {
  31815. return func.apply(isArray(value) ? value : [], args);
  31816. });
  31817. };
  31818. });
  31819. // Map minified method names to their real names.
  31820. baseForOwn(LazyWrapper.prototype, function(func, methodName) {
  31821. var lodashFunc = lodash[methodName];
  31822. if (lodashFunc) {
  31823. var key = (lodashFunc.name + ''),
  31824. names = realNames[key] || (realNames[key] = []);
  31825. names.push({ 'name': methodName, 'func': lodashFunc });
  31826. }
  31827. });
  31828. realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
  31829. 'name': 'wrapper',
  31830. 'func': undefined
  31831. }];
  31832. // Add methods to `LazyWrapper`.
  31833. LazyWrapper.prototype.clone = lazyClone;
  31834. LazyWrapper.prototype.reverse = lazyReverse;
  31835. LazyWrapper.prototype.value = lazyValue;
  31836. // Add chain sequence methods to the `lodash` wrapper.
  31837. lodash.prototype.at = wrapperAt;
  31838. lodash.prototype.chain = wrapperChain;
  31839. lodash.prototype.commit = wrapperCommit;
  31840. lodash.prototype.next = wrapperNext;
  31841. lodash.prototype.plant = wrapperPlant;
  31842. lodash.prototype.reverse = wrapperReverse;
  31843. lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
  31844. // Add lazy aliases.
  31845. lodash.prototype.first = lodash.prototype.head;
  31846. if (symIterator) {
  31847. lodash.prototype[symIterator] = wrapperToIterator;
  31848. }
  31849. return lodash;
  31850. });
  31851. /*--------------------------------------------------------------------------*/
  31852. // Export lodash.
  31853. var _ = runInContext();
  31854. // Some AMD build optimizers, like r.js, check for condition patterns like:
  31855. if (true) {
  31856. // Expose Lodash on the global object to prevent errors when Lodash is
  31857. // loaded by a script tag in the presence of an AMD loader.
  31858. // See http://requirejs.org/docs/errors.html#mismatch for more details.
  31859. // Use `_.noConflict` to remove Lodash from the global object.
  31860. root._ = _;
  31861. // Define as an anonymous module so, through path mapping, it can be
  31862. // referenced as the "underscore" module.
  31863. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  31864. return _;
  31865. }).call(exports, __webpack_require__, exports, module),
  31866. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31867. }
  31868. // Check for `exports` after `define` in case a build optimizer adds it.
  31869. else {}
  31870. }.call(this));
  31871. /* 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)))
  31872. /***/ }),
  31873. /***/ "../../node_modules/lodash/map.js":
  31874. /*!******************************************************!*\
  31875. !*** E:/Repos/Babylon.js/node_modules/lodash/map.js ***!
  31876. \******************************************************/
  31877. /*! no static exports found */
  31878. /***/ (function(module, exports, __webpack_require__) {
  31879. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  31880. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  31881. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  31882. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  31883. /**
  31884. * Creates an array of values by running each element in `collection` thru
  31885. * `iteratee`. The iteratee is invoked with three arguments:
  31886. * (value, index|key, collection).
  31887. *
  31888. * Many lodash methods are guarded to work as iteratees for methods like
  31889. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  31890. *
  31891. * The guarded methods are:
  31892. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  31893. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  31894. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  31895. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  31896. *
  31897. * @static
  31898. * @memberOf _
  31899. * @since 0.1.0
  31900. * @category Collection
  31901. * @param {Array|Object} collection The collection to iterate over.
  31902. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31903. * @returns {Array} Returns the new mapped array.
  31904. * @example
  31905. *
  31906. * function square(n) {
  31907. * return n * n;
  31908. * }
  31909. *
  31910. * _.map([4, 8], square);
  31911. * // => [16, 64]
  31912. *
  31913. * _.map({ 'a': 4, 'b': 8 }, square);
  31914. * // => [16, 64] (iteration order is not guaranteed)
  31915. *
  31916. * var users = [
  31917. * { 'user': 'barney' },
  31918. * { 'user': 'fred' }
  31919. * ];
  31920. *
  31921. * // The `_.property` iteratee shorthand.
  31922. * _.map(users, 'user');
  31923. * // => ['barney', 'fred']
  31924. */
  31925. function map(collection, iteratee) {
  31926. var func = isArray(collection) ? arrayMap : baseMap;
  31927. return func(collection, baseIteratee(iteratee, 3));
  31928. }
  31929. module.exports = map;
  31930. /***/ }),
  31931. /***/ "../../node_modules/lodash/mapValues.js":
  31932. /*!************************************************************!*\
  31933. !*** E:/Repos/Babylon.js/node_modules/lodash/mapValues.js ***!
  31934. \************************************************************/
  31935. /*! no static exports found */
  31936. /***/ (function(module, exports, __webpack_require__) {
  31937. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  31938. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  31939. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  31940. /**
  31941. * Creates an object with the same keys as `object` and values generated
  31942. * by running each own enumerable string keyed property of `object` thru
  31943. * `iteratee`. The iteratee is invoked with three arguments:
  31944. * (value, key, object).
  31945. *
  31946. * @static
  31947. * @memberOf _
  31948. * @since 2.4.0
  31949. * @category Object
  31950. * @param {Object} object The object to iterate over.
  31951. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  31952. * @returns {Object} Returns the new mapped object.
  31953. * @see _.mapKeys
  31954. * @example
  31955. *
  31956. * var users = {
  31957. * 'fred': { 'user': 'fred', 'age': 40 },
  31958. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  31959. * };
  31960. *
  31961. * _.mapValues(users, function(o) { return o.age; });
  31962. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31963. *
  31964. * // The `_.property` iteratee shorthand.
  31965. * _.mapValues(users, 'age');
  31966. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  31967. */
  31968. function mapValues(object, iteratee) {
  31969. var result = {};
  31970. iteratee = baseIteratee(iteratee, 3);
  31971. baseForOwn(object, function(value, key, object) {
  31972. baseAssignValue(result, key, iteratee(value, key, object));
  31973. });
  31974. return result;
  31975. }
  31976. module.exports = mapValues;
  31977. /***/ }),
  31978. /***/ "../../node_modules/lodash/max.js":
  31979. /*!******************************************************!*\
  31980. !*** E:/Repos/Babylon.js/node_modules/lodash/max.js ***!
  31981. \******************************************************/
  31982. /*! no static exports found */
  31983. /***/ (function(module, exports, __webpack_require__) {
  31984. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  31985. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  31986. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  31987. /**
  31988. * Computes the maximum value of `array`. If `array` is empty or falsey,
  31989. * `undefined` is returned.
  31990. *
  31991. * @static
  31992. * @since 0.1.0
  31993. * @memberOf _
  31994. * @category Math
  31995. * @param {Array} array The array to iterate over.
  31996. * @returns {*} Returns the maximum value.
  31997. * @example
  31998. *
  31999. * _.max([4, 2, 8, 6]);
  32000. * // => 8
  32001. *
  32002. * _.max([]);
  32003. * // => undefined
  32004. */
  32005. function max(array) {
  32006. return (array && array.length)
  32007. ? baseExtremum(array, identity, baseGt)
  32008. : undefined;
  32009. }
  32010. module.exports = max;
  32011. /***/ }),
  32012. /***/ "../../node_modules/lodash/memoize.js":
  32013. /*!**********************************************************!*\
  32014. !*** E:/Repos/Babylon.js/node_modules/lodash/memoize.js ***!
  32015. \**********************************************************/
  32016. /*! no static exports found */
  32017. /***/ (function(module, exports, __webpack_require__) {
  32018. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  32019. /** Error message constants. */
  32020. var FUNC_ERROR_TEXT = 'Expected a function';
  32021. /**
  32022. * Creates a function that memoizes the result of `func`. If `resolver` is
  32023. * provided, it determines the cache key for storing the result based on the
  32024. * arguments provided to the memoized function. By default, the first argument
  32025. * provided to the memoized function is used as the map cache key. The `func`
  32026. * is invoked with the `this` binding of the memoized function.
  32027. *
  32028. * **Note:** The cache is exposed as the `cache` property on the memoized
  32029. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  32030. * constructor with one whose instances implement the
  32031. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  32032. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  32033. *
  32034. * @static
  32035. * @memberOf _
  32036. * @since 0.1.0
  32037. * @category Function
  32038. * @param {Function} func The function to have its output memoized.
  32039. * @param {Function} [resolver] The function to resolve the cache key.
  32040. * @returns {Function} Returns the new memoized function.
  32041. * @example
  32042. *
  32043. * var object = { 'a': 1, 'b': 2 };
  32044. * var other = { 'c': 3, 'd': 4 };
  32045. *
  32046. * var values = _.memoize(_.values);
  32047. * values(object);
  32048. * // => [1, 2]
  32049. *
  32050. * values(other);
  32051. * // => [3, 4]
  32052. *
  32053. * object.a = 2;
  32054. * values(object);
  32055. * // => [1, 2]
  32056. *
  32057. * // Modify the result cache.
  32058. * values.cache.set(object, ['a', 'b']);
  32059. * values(object);
  32060. * // => ['a', 'b']
  32061. *
  32062. * // Replace `_.memoize.Cache`.
  32063. * _.memoize.Cache = WeakMap;
  32064. */
  32065. function memoize(func, resolver) {
  32066. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  32067. throw new TypeError(FUNC_ERROR_TEXT);
  32068. }
  32069. var memoized = function() {
  32070. var args = arguments,
  32071. key = resolver ? resolver.apply(this, args) : args[0],
  32072. cache = memoized.cache;
  32073. if (cache.has(key)) {
  32074. return cache.get(key);
  32075. }
  32076. var result = func.apply(this, args);
  32077. memoized.cache = cache.set(key, result) || cache;
  32078. return result;
  32079. };
  32080. memoized.cache = new (memoize.Cache || MapCache);
  32081. return memoized;
  32082. }
  32083. // Expose `MapCache`.
  32084. memoize.Cache = MapCache;
  32085. module.exports = memoize;
  32086. /***/ }),
  32087. /***/ "../../node_modules/lodash/merge.js":
  32088. /*!********************************************************!*\
  32089. !*** E:/Repos/Babylon.js/node_modules/lodash/merge.js ***!
  32090. \********************************************************/
  32091. /*! no static exports found */
  32092. /***/ (function(module, exports, __webpack_require__) {
  32093. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  32094. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  32095. /**
  32096. * This method is like `_.assign` except that it recursively merges own and
  32097. * inherited enumerable string keyed properties of source objects into the
  32098. * destination object. Source properties that resolve to `undefined` are
  32099. * skipped if a destination value exists. Array and plain object properties
  32100. * are merged recursively. Other objects and value types are overridden by
  32101. * assignment. Source objects are applied from left to right. Subsequent
  32102. * sources overwrite property assignments of previous sources.
  32103. *
  32104. * **Note:** This method mutates `object`.
  32105. *
  32106. * @static
  32107. * @memberOf _
  32108. * @since 0.5.0
  32109. * @category Object
  32110. * @param {Object} object The destination object.
  32111. * @param {...Object} [sources] The source objects.
  32112. * @returns {Object} Returns `object`.
  32113. * @example
  32114. *
  32115. * var object = {
  32116. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  32117. * };
  32118. *
  32119. * var other = {
  32120. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  32121. * };
  32122. *
  32123. * _.merge(object, other);
  32124. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  32125. */
  32126. var merge = createAssigner(function(object, source, srcIndex) {
  32127. baseMerge(object, source, srcIndex);
  32128. });
  32129. module.exports = merge;
  32130. /***/ }),
  32131. /***/ "../../node_modules/lodash/min.js":
  32132. /*!******************************************************!*\
  32133. !*** E:/Repos/Babylon.js/node_modules/lodash/min.js ***!
  32134. \******************************************************/
  32135. /*! no static exports found */
  32136. /***/ (function(module, exports, __webpack_require__) {
  32137. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32138. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  32139. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  32140. /**
  32141. * Computes the minimum value of `array`. If `array` is empty or falsey,
  32142. * `undefined` is returned.
  32143. *
  32144. * @static
  32145. * @since 0.1.0
  32146. * @memberOf _
  32147. * @category Math
  32148. * @param {Array} array The array to iterate over.
  32149. * @returns {*} Returns the minimum value.
  32150. * @example
  32151. *
  32152. * _.min([4, 2, 8, 6]);
  32153. * // => 2
  32154. *
  32155. * _.min([]);
  32156. * // => undefined
  32157. */
  32158. function min(array) {
  32159. return (array && array.length)
  32160. ? baseExtremum(array, identity, baseLt)
  32161. : undefined;
  32162. }
  32163. module.exports = min;
  32164. /***/ }),
  32165. /***/ "../../node_modules/lodash/minBy.js":
  32166. /*!********************************************************!*\
  32167. !*** E:/Repos/Babylon.js/node_modules/lodash/minBy.js ***!
  32168. \********************************************************/
  32169. /*! no static exports found */
  32170. /***/ (function(module, exports, __webpack_require__) {
  32171. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  32172. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32173. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  32174. /**
  32175. * This method is like `_.min` except that it accepts `iteratee` which is
  32176. * invoked for each element in `array` to generate the criterion by which
  32177. * the value is ranked. The iteratee is invoked with one argument: (value).
  32178. *
  32179. * @static
  32180. * @memberOf _
  32181. * @since 4.0.0
  32182. * @category Math
  32183. * @param {Array} array The array to iterate over.
  32184. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  32185. * @returns {*} Returns the minimum value.
  32186. * @example
  32187. *
  32188. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  32189. *
  32190. * _.minBy(objects, function(o) { return o.n; });
  32191. * // => { 'n': 1 }
  32192. *
  32193. * // The `_.property` iteratee shorthand.
  32194. * _.minBy(objects, 'n');
  32195. * // => { 'n': 1 }
  32196. */
  32197. function minBy(array, iteratee) {
  32198. return (array && array.length)
  32199. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  32200. : undefined;
  32201. }
  32202. module.exports = minBy;
  32203. /***/ }),
  32204. /***/ "../../node_modules/lodash/noop.js":
  32205. /*!*******************************************************!*\
  32206. !*** E:/Repos/Babylon.js/node_modules/lodash/noop.js ***!
  32207. \*******************************************************/
  32208. /*! no static exports found */
  32209. /***/ (function(module, exports) {
  32210. /**
  32211. * This method returns `undefined`.
  32212. *
  32213. * @static
  32214. * @memberOf _
  32215. * @since 2.3.0
  32216. * @category Util
  32217. * @example
  32218. *
  32219. * _.times(2, _.noop);
  32220. * // => [undefined, undefined]
  32221. */
  32222. function noop() {
  32223. // No operation performed.
  32224. }
  32225. module.exports = noop;
  32226. /***/ }),
  32227. /***/ "../../node_modules/lodash/now.js":
  32228. /*!******************************************************!*\
  32229. !*** E:/Repos/Babylon.js/node_modules/lodash/now.js ***!
  32230. \******************************************************/
  32231. /*! no static exports found */
  32232. /***/ (function(module, exports, __webpack_require__) {
  32233. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  32234. /**
  32235. * Gets the timestamp of the number of milliseconds that have elapsed since
  32236. * the Unix epoch (1 January 1970 00:00:00 UTC).
  32237. *
  32238. * @static
  32239. * @memberOf _
  32240. * @since 2.4.0
  32241. * @category Date
  32242. * @returns {number} Returns the timestamp.
  32243. * @example
  32244. *
  32245. * _.defer(function(stamp) {
  32246. * console.log(_.now() - stamp);
  32247. * }, _.now());
  32248. * // => Logs the number of milliseconds it took for the deferred invocation.
  32249. */
  32250. var now = function() {
  32251. return root.Date.now();
  32252. };
  32253. module.exports = now;
  32254. /***/ }),
  32255. /***/ "../../node_modules/lodash/pick.js":
  32256. /*!*******************************************************!*\
  32257. !*** E:/Repos/Babylon.js/node_modules/lodash/pick.js ***!
  32258. \*******************************************************/
  32259. /*! no static exports found */
  32260. /***/ (function(module, exports, __webpack_require__) {
  32261. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  32262. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  32263. /**
  32264. * Creates an object composed of the picked `object` properties.
  32265. *
  32266. * @static
  32267. * @since 0.1.0
  32268. * @memberOf _
  32269. * @category Object
  32270. * @param {Object} object The source object.
  32271. * @param {...(string|string[])} [paths] The property paths to pick.
  32272. * @returns {Object} Returns the new object.
  32273. * @example
  32274. *
  32275. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  32276. *
  32277. * _.pick(object, ['a', 'c']);
  32278. * // => { 'a': 1, 'c': 3 }
  32279. */
  32280. var pick = flatRest(function(object, paths) {
  32281. return object == null ? {} : basePick(object, paths);
  32282. });
  32283. module.exports = pick;
  32284. /***/ }),
  32285. /***/ "../../node_modules/lodash/property.js":
  32286. /*!***********************************************************!*\
  32287. !*** E:/Repos/Babylon.js/node_modules/lodash/property.js ***!
  32288. \***********************************************************/
  32289. /*! no static exports found */
  32290. /***/ (function(module, exports, __webpack_require__) {
  32291. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  32292. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  32293. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  32294. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  32295. /**
  32296. * Creates a function that returns the value at `path` of a given object.
  32297. *
  32298. * @static
  32299. * @memberOf _
  32300. * @since 2.4.0
  32301. * @category Util
  32302. * @param {Array|string} path The path of the property to get.
  32303. * @returns {Function} Returns the new accessor function.
  32304. * @example
  32305. *
  32306. * var objects = [
  32307. * { 'a': { 'b': 2 } },
  32308. * { 'a': { 'b': 1 } }
  32309. * ];
  32310. *
  32311. * _.map(objects, _.property('a.b'));
  32312. * // => [2, 1]
  32313. *
  32314. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  32315. * // => [1, 2]
  32316. */
  32317. function property(path) {
  32318. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  32319. }
  32320. module.exports = property;
  32321. /***/ }),
  32322. /***/ "../../node_modules/lodash/range.js":
  32323. /*!********************************************************!*\
  32324. !*** E:/Repos/Babylon.js/node_modules/lodash/range.js ***!
  32325. \********************************************************/
  32326. /*! no static exports found */
  32327. /***/ (function(module, exports, __webpack_require__) {
  32328. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  32329. /**
  32330. * Creates an array of numbers (positive and/or negative) progressing from
  32331. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  32332. * `start` is specified without an `end` or `step`. If `end` is not specified,
  32333. * it's set to `start` with `start` then set to `0`.
  32334. *
  32335. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  32336. * floating-point values which can produce unexpected results.
  32337. *
  32338. * @static
  32339. * @since 0.1.0
  32340. * @memberOf _
  32341. * @category Util
  32342. * @param {number} [start=0] The start of the range.
  32343. * @param {number} end The end of the range.
  32344. * @param {number} [step=1] The value to increment or decrement by.
  32345. * @returns {Array} Returns the range of numbers.
  32346. * @see _.inRange, _.rangeRight
  32347. * @example
  32348. *
  32349. * _.range(4);
  32350. * // => [0, 1, 2, 3]
  32351. *
  32352. * _.range(-4);
  32353. * // => [0, -1, -2, -3]
  32354. *
  32355. * _.range(1, 5);
  32356. * // => [1, 2, 3, 4]
  32357. *
  32358. * _.range(0, 20, 5);
  32359. * // => [0, 5, 10, 15]
  32360. *
  32361. * _.range(0, -4, -1);
  32362. * // => [0, -1, -2, -3]
  32363. *
  32364. * _.range(1, 4, 0);
  32365. * // => [1, 1, 1]
  32366. *
  32367. * _.range(0);
  32368. * // => []
  32369. */
  32370. var range = createRange();
  32371. module.exports = range;
  32372. /***/ }),
  32373. /***/ "../../node_modules/lodash/reduce.js":
  32374. /*!*********************************************************!*\
  32375. !*** E:/Repos/Babylon.js/node_modules/lodash/reduce.js ***!
  32376. \*********************************************************/
  32377. /*! no static exports found */
  32378. /***/ (function(module, exports, __webpack_require__) {
  32379. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  32380. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  32381. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32382. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  32383. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  32384. /**
  32385. * Reduces `collection` to a value which is the accumulated result of running
  32386. * each element in `collection` thru `iteratee`, where each successive
  32387. * invocation is supplied the return value of the previous. If `accumulator`
  32388. * is not given, the first element of `collection` is used as the initial
  32389. * value. The iteratee is invoked with four arguments:
  32390. * (accumulator, value, index|key, collection).
  32391. *
  32392. * Many lodash methods are guarded to work as iteratees for methods like
  32393. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  32394. *
  32395. * The guarded methods are:
  32396. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  32397. * and `sortBy`
  32398. *
  32399. * @static
  32400. * @memberOf _
  32401. * @since 0.1.0
  32402. * @category Collection
  32403. * @param {Array|Object} collection The collection to iterate over.
  32404. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32405. * @param {*} [accumulator] The initial value.
  32406. * @returns {*} Returns the accumulated value.
  32407. * @see _.reduceRight
  32408. * @example
  32409. *
  32410. * _.reduce([1, 2], function(sum, n) {
  32411. * return sum + n;
  32412. * }, 0);
  32413. * // => 3
  32414. *
  32415. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32416. * (result[value] || (result[value] = [])).push(key);
  32417. * return result;
  32418. * }, {});
  32419. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  32420. */
  32421. function reduce(collection, iteratee, accumulator) {
  32422. var func = isArray(collection) ? arrayReduce : baseReduce,
  32423. initAccum = arguments.length < 3;
  32424. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  32425. }
  32426. module.exports = reduce;
  32427. /***/ }),
  32428. /***/ "../../node_modules/lodash/size.js":
  32429. /*!*******************************************************!*\
  32430. !*** E:/Repos/Babylon.js/node_modules/lodash/size.js ***!
  32431. \*******************************************************/
  32432. /*! no static exports found */
  32433. /***/ (function(module, exports, __webpack_require__) {
  32434. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  32435. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  32436. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  32437. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  32438. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  32439. /** `Object#toString` result references. */
  32440. var mapTag = '[object Map]',
  32441. setTag = '[object Set]';
  32442. /**
  32443. * Gets the size of `collection` by returning its length for array-like
  32444. * values or the number of own enumerable string keyed properties for objects.
  32445. *
  32446. * @static
  32447. * @memberOf _
  32448. * @since 0.1.0
  32449. * @category Collection
  32450. * @param {Array|Object|string} collection The collection to inspect.
  32451. * @returns {number} Returns the collection size.
  32452. * @example
  32453. *
  32454. * _.size([1, 2, 3]);
  32455. * // => 3
  32456. *
  32457. * _.size({ 'a': 1, 'b': 2 });
  32458. * // => 2
  32459. *
  32460. * _.size('pebbles');
  32461. * // => 7
  32462. */
  32463. function size(collection) {
  32464. if (collection == null) {
  32465. return 0;
  32466. }
  32467. if (isArrayLike(collection)) {
  32468. return isString(collection) ? stringSize(collection) : collection.length;
  32469. }
  32470. var tag = getTag(collection);
  32471. if (tag == mapTag || tag == setTag) {
  32472. return collection.size;
  32473. }
  32474. return baseKeys(collection).length;
  32475. }
  32476. module.exports = size;
  32477. /***/ }),
  32478. /***/ "../../node_modules/lodash/sortBy.js":
  32479. /*!*********************************************************!*\
  32480. !*** E:/Repos/Babylon.js/node_modules/lodash/sortBy.js ***!
  32481. \*********************************************************/
  32482. /*! no static exports found */
  32483. /***/ (function(module, exports, __webpack_require__) {
  32484. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32485. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  32486. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32487. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  32488. /**
  32489. * Creates an array of elements, sorted in ascending order by the results of
  32490. * running each element in a collection thru each iteratee. This method
  32491. * performs a stable sort, that is, it preserves the original sort order of
  32492. * equal elements. The iteratees are invoked with one argument: (value).
  32493. *
  32494. * @static
  32495. * @memberOf _
  32496. * @since 0.1.0
  32497. * @category Collection
  32498. * @param {Array|Object} collection The collection to iterate over.
  32499. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  32500. * The iteratees to sort by.
  32501. * @returns {Array} Returns the new sorted array.
  32502. * @example
  32503. *
  32504. * var users = [
  32505. * { 'user': 'fred', 'age': 48 },
  32506. * { 'user': 'barney', 'age': 36 },
  32507. * { 'user': 'fred', 'age': 40 },
  32508. * { 'user': 'barney', 'age': 34 }
  32509. * ];
  32510. *
  32511. * _.sortBy(users, [function(o) { return o.user; }]);
  32512. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  32513. *
  32514. * _.sortBy(users, ['user', 'age']);
  32515. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  32516. */
  32517. var sortBy = baseRest(function(collection, iteratees) {
  32518. if (collection == null) {
  32519. return [];
  32520. }
  32521. var length = iteratees.length;
  32522. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  32523. iteratees = [];
  32524. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  32525. iteratees = [iteratees[0]];
  32526. }
  32527. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  32528. });
  32529. module.exports = sortBy;
  32530. /***/ }),
  32531. /***/ "../../node_modules/lodash/stubArray.js":
  32532. /*!************************************************************!*\
  32533. !*** E:/Repos/Babylon.js/node_modules/lodash/stubArray.js ***!
  32534. \************************************************************/
  32535. /*! no static exports found */
  32536. /***/ (function(module, exports) {
  32537. /**
  32538. * This method returns a new empty array.
  32539. *
  32540. * @static
  32541. * @memberOf _
  32542. * @since 4.13.0
  32543. * @category Util
  32544. * @returns {Array} Returns the new empty array.
  32545. * @example
  32546. *
  32547. * var arrays = _.times(2, _.stubArray);
  32548. *
  32549. * console.log(arrays);
  32550. * // => [[], []]
  32551. *
  32552. * console.log(arrays[0] === arrays[1]);
  32553. * // => false
  32554. */
  32555. function stubArray() {
  32556. return [];
  32557. }
  32558. module.exports = stubArray;
  32559. /***/ }),
  32560. /***/ "../../node_modules/lodash/stubFalse.js":
  32561. /*!************************************************************!*\
  32562. !*** E:/Repos/Babylon.js/node_modules/lodash/stubFalse.js ***!
  32563. \************************************************************/
  32564. /*! no static exports found */
  32565. /***/ (function(module, exports) {
  32566. /**
  32567. * This method returns `false`.
  32568. *
  32569. * @static
  32570. * @memberOf _
  32571. * @since 4.13.0
  32572. * @category Util
  32573. * @returns {boolean} Returns `false`.
  32574. * @example
  32575. *
  32576. * _.times(2, _.stubFalse);
  32577. * // => [false, false]
  32578. */
  32579. function stubFalse() {
  32580. return false;
  32581. }
  32582. module.exports = stubFalse;
  32583. /***/ }),
  32584. /***/ "../../node_modules/lodash/toFinite.js":
  32585. /*!***********************************************************!*\
  32586. !*** E:/Repos/Babylon.js/node_modules/lodash/toFinite.js ***!
  32587. \***********************************************************/
  32588. /*! no static exports found */
  32589. /***/ (function(module, exports, __webpack_require__) {
  32590. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  32591. /** Used as references for various `Number` constants. */
  32592. var INFINITY = 1 / 0,
  32593. MAX_INTEGER = 1.7976931348623157e+308;
  32594. /**
  32595. * Converts `value` to a finite number.
  32596. *
  32597. * @static
  32598. * @memberOf _
  32599. * @since 4.12.0
  32600. * @category Lang
  32601. * @param {*} value The value to convert.
  32602. * @returns {number} Returns the converted number.
  32603. * @example
  32604. *
  32605. * _.toFinite(3.2);
  32606. * // => 3.2
  32607. *
  32608. * _.toFinite(Number.MIN_VALUE);
  32609. * // => 5e-324
  32610. *
  32611. * _.toFinite(Infinity);
  32612. * // => 1.7976931348623157e+308
  32613. *
  32614. * _.toFinite('3.2');
  32615. * // => 3.2
  32616. */
  32617. function toFinite(value) {
  32618. if (!value) {
  32619. return value === 0 ? value : 0;
  32620. }
  32621. value = toNumber(value);
  32622. if (value === INFINITY || value === -INFINITY) {
  32623. var sign = (value < 0 ? -1 : 1);
  32624. return sign * MAX_INTEGER;
  32625. }
  32626. return value === value ? value : 0;
  32627. }
  32628. module.exports = toFinite;
  32629. /***/ }),
  32630. /***/ "../../node_modules/lodash/toInteger.js":
  32631. /*!************************************************************!*\
  32632. !*** E:/Repos/Babylon.js/node_modules/lodash/toInteger.js ***!
  32633. \************************************************************/
  32634. /*! no static exports found */
  32635. /***/ (function(module, exports, __webpack_require__) {
  32636. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  32637. /**
  32638. * Converts `value` to an integer.
  32639. *
  32640. * **Note:** This method is loosely based on
  32641. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  32642. *
  32643. * @static
  32644. * @memberOf _
  32645. * @since 4.0.0
  32646. * @category Lang
  32647. * @param {*} value The value to convert.
  32648. * @returns {number} Returns the converted integer.
  32649. * @example
  32650. *
  32651. * _.toInteger(3.2);
  32652. * // => 3
  32653. *
  32654. * _.toInteger(Number.MIN_VALUE);
  32655. * // => 0
  32656. *
  32657. * _.toInteger(Infinity);
  32658. * // => 1.7976931348623157e+308
  32659. *
  32660. * _.toInteger('3.2');
  32661. * // => 3
  32662. */
  32663. function toInteger(value) {
  32664. var result = toFinite(value),
  32665. remainder = result % 1;
  32666. return result === result ? (remainder ? result - remainder : result) : 0;
  32667. }
  32668. module.exports = toInteger;
  32669. /***/ }),
  32670. /***/ "../../node_modules/lodash/toNumber.js":
  32671. /*!***********************************************************!*\
  32672. !*** E:/Repos/Babylon.js/node_modules/lodash/toNumber.js ***!
  32673. \***********************************************************/
  32674. /*! no static exports found */
  32675. /***/ (function(module, exports, __webpack_require__) {
  32676. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32677. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  32678. /** Used as references for various `Number` constants. */
  32679. var NAN = 0 / 0;
  32680. /** Used to match leading and trailing whitespace. */
  32681. var reTrim = /^\s+|\s+$/g;
  32682. /** Used to detect bad signed hexadecimal string values. */
  32683. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  32684. /** Used to detect binary string values. */
  32685. var reIsBinary = /^0b[01]+$/i;
  32686. /** Used to detect octal string values. */
  32687. var reIsOctal = /^0o[0-7]+$/i;
  32688. /** Built-in method references without a dependency on `root`. */
  32689. var freeParseInt = parseInt;
  32690. /**
  32691. * Converts `value` to a number.
  32692. *
  32693. * @static
  32694. * @memberOf _
  32695. * @since 4.0.0
  32696. * @category Lang
  32697. * @param {*} value The value to process.
  32698. * @returns {number} Returns the number.
  32699. * @example
  32700. *
  32701. * _.toNumber(3.2);
  32702. * // => 3.2
  32703. *
  32704. * _.toNumber(Number.MIN_VALUE);
  32705. * // => 5e-324
  32706. *
  32707. * _.toNumber(Infinity);
  32708. * // => Infinity
  32709. *
  32710. * _.toNumber('3.2');
  32711. * // => 3.2
  32712. */
  32713. function toNumber(value) {
  32714. if (typeof value == 'number') {
  32715. return value;
  32716. }
  32717. if (isSymbol(value)) {
  32718. return NAN;
  32719. }
  32720. if (isObject(value)) {
  32721. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  32722. value = isObject(other) ? (other + '') : other;
  32723. }
  32724. if (typeof value != 'string') {
  32725. return value === 0 ? value : +value;
  32726. }
  32727. value = value.replace(reTrim, '');
  32728. var isBinary = reIsBinary.test(value);
  32729. return (isBinary || reIsOctal.test(value))
  32730. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  32731. : (reIsBadHex.test(value) ? NAN : +value);
  32732. }
  32733. module.exports = toNumber;
  32734. /***/ }),
  32735. /***/ "../../node_modules/lodash/toPlainObject.js":
  32736. /*!****************************************************************!*\
  32737. !*** E:/Repos/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  32738. \****************************************************************/
  32739. /*! no static exports found */
  32740. /***/ (function(module, exports, __webpack_require__) {
  32741. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  32742. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  32743. /**
  32744. * Converts `value` to a plain object flattening inherited enumerable string
  32745. * keyed properties of `value` to own properties of the plain object.
  32746. *
  32747. * @static
  32748. * @memberOf _
  32749. * @since 3.0.0
  32750. * @category Lang
  32751. * @param {*} value The value to convert.
  32752. * @returns {Object} Returns the converted plain object.
  32753. * @example
  32754. *
  32755. * function Foo() {
  32756. * this.b = 2;
  32757. * }
  32758. *
  32759. * Foo.prototype.c = 3;
  32760. *
  32761. * _.assign({ 'a': 1 }, new Foo);
  32762. * // => { 'a': 1, 'b': 2 }
  32763. *
  32764. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  32765. * // => { 'a': 1, 'b': 2, 'c': 3 }
  32766. */
  32767. function toPlainObject(value) {
  32768. return copyObject(value, keysIn(value));
  32769. }
  32770. module.exports = toPlainObject;
  32771. /***/ }),
  32772. /***/ "../../node_modules/lodash/toString.js":
  32773. /*!***********************************************************!*\
  32774. !*** E:/Repos/Babylon.js/node_modules/lodash/toString.js ***!
  32775. \***********************************************************/
  32776. /*! no static exports found */
  32777. /***/ (function(module, exports, __webpack_require__) {
  32778. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  32779. /**
  32780. * Converts `value` to a string. An empty string is returned for `null`
  32781. * and `undefined` values. The sign of `-0` is preserved.
  32782. *
  32783. * @static
  32784. * @memberOf _
  32785. * @since 4.0.0
  32786. * @category Lang
  32787. * @param {*} value The value to convert.
  32788. * @returns {string} Returns the converted string.
  32789. * @example
  32790. *
  32791. * _.toString(null);
  32792. * // => ''
  32793. *
  32794. * _.toString(-0);
  32795. * // => '-0'
  32796. *
  32797. * _.toString([1, 2, 3]);
  32798. * // => '1,2,3'
  32799. */
  32800. function toString(value) {
  32801. return value == null ? '' : baseToString(value);
  32802. }
  32803. module.exports = toString;
  32804. /***/ }),
  32805. /***/ "../../node_modules/lodash/transform.js":
  32806. /*!************************************************************!*\
  32807. !*** E:/Repos/Babylon.js/node_modules/lodash/transform.js ***!
  32808. \************************************************************/
  32809. /*! no static exports found */
  32810. /***/ (function(module, exports, __webpack_require__) {
  32811. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  32812. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  32813. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  32814. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  32815. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  32816. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  32817. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  32818. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  32819. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  32820. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  32821. /**
  32822. * An alternative to `_.reduce`; this method transforms `object` to a new
  32823. * `accumulator` object which is the result of running each of its own
  32824. * enumerable string keyed properties thru `iteratee`, with each invocation
  32825. * potentially mutating the `accumulator` object. If `accumulator` is not
  32826. * provided, a new object with the same `[[Prototype]]` will be used. The
  32827. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  32828. * Iteratee functions may exit iteration early by explicitly returning `false`.
  32829. *
  32830. * @static
  32831. * @memberOf _
  32832. * @since 1.3.0
  32833. * @category Object
  32834. * @param {Object} object The object to iterate over.
  32835. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  32836. * @param {*} [accumulator] The custom accumulator value.
  32837. * @returns {*} Returns the accumulated value.
  32838. * @example
  32839. *
  32840. * _.transform([2, 3, 4], function(result, n) {
  32841. * result.push(n *= n);
  32842. * return n % 2 == 0;
  32843. * }, []);
  32844. * // => [4, 9]
  32845. *
  32846. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  32847. * (result[value] || (result[value] = [])).push(key);
  32848. * }, {});
  32849. * // => { '1': ['a', 'c'], '2': ['b'] }
  32850. */
  32851. function transform(object, iteratee, accumulator) {
  32852. var isArr = isArray(object),
  32853. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  32854. iteratee = baseIteratee(iteratee, 4);
  32855. if (accumulator == null) {
  32856. var Ctor = object && object.constructor;
  32857. if (isArrLike) {
  32858. accumulator = isArr ? new Ctor : [];
  32859. }
  32860. else if (isObject(object)) {
  32861. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  32862. }
  32863. else {
  32864. accumulator = {};
  32865. }
  32866. }
  32867. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  32868. return iteratee(accumulator, value, index, object);
  32869. });
  32870. return accumulator;
  32871. }
  32872. module.exports = transform;
  32873. /***/ }),
  32874. /***/ "../../node_modules/lodash/union.js":
  32875. /*!********************************************************!*\
  32876. !*** E:/Repos/Babylon.js/node_modules/lodash/union.js ***!
  32877. \********************************************************/
  32878. /*! no static exports found */
  32879. /***/ (function(module, exports, __webpack_require__) {
  32880. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  32881. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  32882. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  32883. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  32884. /**
  32885. * Creates an array of unique values, in order, from all given arrays using
  32886. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  32887. * for equality comparisons.
  32888. *
  32889. * @static
  32890. * @memberOf _
  32891. * @since 0.1.0
  32892. * @category Array
  32893. * @param {...Array} [arrays] The arrays to inspect.
  32894. * @returns {Array} Returns the new array of combined values.
  32895. * @example
  32896. *
  32897. * _.union([2], [1, 2]);
  32898. * // => [2, 1]
  32899. */
  32900. var union = baseRest(function(arrays) {
  32901. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  32902. });
  32903. module.exports = union;
  32904. /***/ }),
  32905. /***/ "../../node_modules/lodash/uniqueId.js":
  32906. /*!***********************************************************!*\
  32907. !*** E:/Repos/Babylon.js/node_modules/lodash/uniqueId.js ***!
  32908. \***********************************************************/
  32909. /*! no static exports found */
  32910. /***/ (function(module, exports, __webpack_require__) {
  32911. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  32912. /** Used to generate unique IDs. */
  32913. var idCounter = 0;
  32914. /**
  32915. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  32916. *
  32917. * @static
  32918. * @since 0.1.0
  32919. * @memberOf _
  32920. * @category Util
  32921. * @param {string} [prefix=''] The value to prefix the ID with.
  32922. * @returns {string} Returns the unique ID.
  32923. * @example
  32924. *
  32925. * _.uniqueId('contact_');
  32926. * // => 'contact_104'
  32927. *
  32928. * _.uniqueId();
  32929. * // => '105'
  32930. */
  32931. function uniqueId(prefix) {
  32932. var id = ++idCounter;
  32933. return toString(prefix) + id;
  32934. }
  32935. module.exports = uniqueId;
  32936. /***/ }),
  32937. /***/ "../../node_modules/lodash/values.js":
  32938. /*!*********************************************************!*\
  32939. !*** E:/Repos/Babylon.js/node_modules/lodash/values.js ***!
  32940. \*********************************************************/
  32941. /*! no static exports found */
  32942. /***/ (function(module, exports, __webpack_require__) {
  32943. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  32944. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  32945. /**
  32946. * Creates an array of the own enumerable string keyed property values of `object`.
  32947. *
  32948. * **Note:** Non-object values are coerced to objects.
  32949. *
  32950. * @static
  32951. * @since 0.1.0
  32952. * @memberOf _
  32953. * @category Object
  32954. * @param {Object} object The object to query.
  32955. * @returns {Array} Returns the array of property values.
  32956. * @example
  32957. *
  32958. * function Foo() {
  32959. * this.a = 1;
  32960. * this.b = 2;
  32961. * }
  32962. *
  32963. * Foo.prototype.c = 3;
  32964. *
  32965. * _.values(new Foo);
  32966. * // => [1, 2] (iteration order is not guaranteed)
  32967. *
  32968. * _.values('hi');
  32969. * // => ['h', 'i']
  32970. */
  32971. function values(object) {
  32972. return object == null ? [] : baseValues(object, keys(object));
  32973. }
  32974. module.exports = values;
  32975. /***/ }),
  32976. /***/ "../../node_modules/lodash/zipObject.js":
  32977. /*!************************************************************!*\
  32978. !*** E:/Repos/Babylon.js/node_modules/lodash/zipObject.js ***!
  32979. \************************************************************/
  32980. /*! no static exports found */
  32981. /***/ (function(module, exports, __webpack_require__) {
  32982. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  32983. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  32984. /**
  32985. * This method is like `_.fromPairs` except that it accepts two arrays,
  32986. * one of property identifiers and one of corresponding values.
  32987. *
  32988. * @static
  32989. * @memberOf _
  32990. * @since 0.4.0
  32991. * @category Array
  32992. * @param {Array} [props=[]] The property identifiers.
  32993. * @param {Array} [values=[]] The property values.
  32994. * @returns {Object} Returns the new object.
  32995. * @example
  32996. *
  32997. * _.zipObject(['a', 'b'], [1, 2]);
  32998. * // => { 'a': 1, 'b': 2 }
  32999. */
  33000. function zipObject(props, values) {
  33001. return baseZipObject(props || [], values || [], assignValue);
  33002. }
  33003. module.exports = zipObject;
  33004. /***/ }),
  33005. /***/ "../../node_modules/object-assign/index.js":
  33006. /*!***************************************************************!*\
  33007. !*** E:/Repos/Babylon.js/node_modules/object-assign/index.js ***!
  33008. \***************************************************************/
  33009. /*! no static exports found */
  33010. /***/ (function(module, exports, __webpack_require__) {
  33011. "use strict";
  33012. /*
  33013. object-assign
  33014. (c) Sindre Sorhus
  33015. @license MIT
  33016. */
  33017. /* eslint-disable no-unused-vars */
  33018. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  33019. var hasOwnProperty = Object.prototype.hasOwnProperty;
  33020. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  33021. function toObject(val) {
  33022. if (val === null || val === undefined) {
  33023. throw new TypeError('Object.assign cannot be called with null or undefined');
  33024. }
  33025. return Object(val);
  33026. }
  33027. function shouldUseNative() {
  33028. try {
  33029. if (!Object.assign) {
  33030. return false;
  33031. }
  33032. // Detect buggy property enumeration order in older V8 versions.
  33033. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  33034. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  33035. test1[5] = 'de';
  33036. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  33037. return false;
  33038. }
  33039. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33040. var test2 = {};
  33041. for (var i = 0; i < 10; i++) {
  33042. test2['_' + String.fromCharCode(i)] = i;
  33043. }
  33044. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  33045. return test2[n];
  33046. });
  33047. if (order2.join('') !== '0123456789') {
  33048. return false;
  33049. }
  33050. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  33051. var test3 = {};
  33052. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  33053. test3[letter] = letter;
  33054. });
  33055. if (Object.keys(Object.assign({}, test3)).join('') !==
  33056. 'abcdefghijklmnopqrst') {
  33057. return false;
  33058. }
  33059. return true;
  33060. } catch (err) {
  33061. // We don't expect any of the above to throw, but better to be safe.
  33062. return false;
  33063. }
  33064. }
  33065. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  33066. var from;
  33067. var to = toObject(target);
  33068. var symbols;
  33069. for (var s = 1; s < arguments.length; s++) {
  33070. from = Object(arguments[s]);
  33071. for (var key in from) {
  33072. if (hasOwnProperty.call(from, key)) {
  33073. to[key] = from[key];
  33074. }
  33075. }
  33076. if (getOwnPropertySymbols) {
  33077. symbols = getOwnPropertySymbols(from);
  33078. for (var i = 0; i < symbols.length; i++) {
  33079. if (propIsEnumerable.call(from, symbols[i])) {
  33080. to[symbols[i]] = from[symbols[i]];
  33081. }
  33082. }
  33083. }
  33084. }
  33085. return to;
  33086. };
  33087. /***/ }),
  33088. /***/ "../../node_modules/process/browser.js":
  33089. /*!***********************************************************!*\
  33090. !*** E:/Repos/Babylon.js/node_modules/process/browser.js ***!
  33091. \***********************************************************/
  33092. /*! no static exports found */
  33093. /***/ (function(module, exports) {
  33094. // shim for using process in browser
  33095. var process = module.exports = {};
  33096. // cached from whatever global is present so that test runners that stub it
  33097. // don't break things. But we need to wrap it in a try catch in case it is
  33098. // wrapped in strict mode code which doesn't define any globals. It's inside a
  33099. // function because try/catches deoptimize in certain engines.
  33100. var cachedSetTimeout;
  33101. var cachedClearTimeout;
  33102. function defaultSetTimout() {
  33103. throw new Error('setTimeout has not been defined');
  33104. }
  33105. function defaultClearTimeout () {
  33106. throw new Error('clearTimeout has not been defined');
  33107. }
  33108. (function () {
  33109. try {
  33110. if (typeof setTimeout === 'function') {
  33111. cachedSetTimeout = setTimeout;
  33112. } else {
  33113. cachedSetTimeout = defaultSetTimout;
  33114. }
  33115. } catch (e) {
  33116. cachedSetTimeout = defaultSetTimout;
  33117. }
  33118. try {
  33119. if (typeof clearTimeout === 'function') {
  33120. cachedClearTimeout = clearTimeout;
  33121. } else {
  33122. cachedClearTimeout = defaultClearTimeout;
  33123. }
  33124. } catch (e) {
  33125. cachedClearTimeout = defaultClearTimeout;
  33126. }
  33127. } ())
  33128. function runTimeout(fun) {
  33129. if (cachedSetTimeout === setTimeout) {
  33130. //normal enviroments in sane situations
  33131. return setTimeout(fun, 0);
  33132. }
  33133. // if setTimeout wasn't available but was latter defined
  33134. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  33135. cachedSetTimeout = setTimeout;
  33136. return setTimeout(fun, 0);
  33137. }
  33138. try {
  33139. // when when somebody has screwed with setTimeout but no I.E. maddness
  33140. return cachedSetTimeout(fun, 0);
  33141. } catch(e){
  33142. try {
  33143. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33144. return cachedSetTimeout.call(null, fun, 0);
  33145. } catch(e){
  33146. // 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
  33147. return cachedSetTimeout.call(this, fun, 0);
  33148. }
  33149. }
  33150. }
  33151. function runClearTimeout(marker) {
  33152. if (cachedClearTimeout === clearTimeout) {
  33153. //normal enviroments in sane situations
  33154. return clearTimeout(marker);
  33155. }
  33156. // if clearTimeout wasn't available but was latter defined
  33157. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  33158. cachedClearTimeout = clearTimeout;
  33159. return clearTimeout(marker);
  33160. }
  33161. try {
  33162. // when when somebody has screwed with setTimeout but no I.E. maddness
  33163. return cachedClearTimeout(marker);
  33164. } catch (e){
  33165. try {
  33166. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  33167. return cachedClearTimeout.call(null, marker);
  33168. } catch (e){
  33169. // 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.
  33170. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  33171. return cachedClearTimeout.call(this, marker);
  33172. }
  33173. }
  33174. }
  33175. var queue = [];
  33176. var draining = false;
  33177. var currentQueue;
  33178. var queueIndex = -1;
  33179. function cleanUpNextTick() {
  33180. if (!draining || !currentQueue) {
  33181. return;
  33182. }
  33183. draining = false;
  33184. if (currentQueue.length) {
  33185. queue = currentQueue.concat(queue);
  33186. } else {
  33187. queueIndex = -1;
  33188. }
  33189. if (queue.length) {
  33190. drainQueue();
  33191. }
  33192. }
  33193. function drainQueue() {
  33194. if (draining) {
  33195. return;
  33196. }
  33197. var timeout = runTimeout(cleanUpNextTick);
  33198. draining = true;
  33199. var len = queue.length;
  33200. while(len) {
  33201. currentQueue = queue;
  33202. queue = [];
  33203. while (++queueIndex < len) {
  33204. if (currentQueue) {
  33205. currentQueue[queueIndex].run();
  33206. }
  33207. }
  33208. queueIndex = -1;
  33209. len = queue.length;
  33210. }
  33211. currentQueue = null;
  33212. draining = false;
  33213. runClearTimeout(timeout);
  33214. }
  33215. process.nextTick = function (fun) {
  33216. var args = new Array(arguments.length - 1);
  33217. if (arguments.length > 1) {
  33218. for (var i = 1; i < arguments.length; i++) {
  33219. args[i - 1] = arguments[i];
  33220. }
  33221. }
  33222. queue.push(new Item(fun, args));
  33223. if (queue.length === 1 && !draining) {
  33224. runTimeout(drainQueue);
  33225. }
  33226. };
  33227. // v8 likes predictible objects
  33228. function Item(fun, array) {
  33229. this.fun = fun;
  33230. this.array = array;
  33231. }
  33232. Item.prototype.run = function () {
  33233. this.fun.apply(null, this.array);
  33234. };
  33235. process.title = 'browser';
  33236. process.browser = true;
  33237. process.env = {};
  33238. process.argv = [];
  33239. process.version = ''; // empty string to avoid regexp issues
  33240. process.versions = {};
  33241. function noop() {}
  33242. process.on = noop;
  33243. process.addListener = noop;
  33244. process.once = noop;
  33245. process.off = noop;
  33246. process.removeListener = noop;
  33247. process.removeAllListeners = noop;
  33248. process.emit = noop;
  33249. process.prependListener = noop;
  33250. process.prependOnceListener = noop;
  33251. process.listeners = function (name) { return [] }
  33252. process.binding = function (name) {
  33253. throw new Error('process.binding is not supported');
  33254. };
  33255. process.cwd = function () { return '/' };
  33256. process.chdir = function (dir) {
  33257. throw new Error('process.chdir is not supported');
  33258. };
  33259. process.umask = function() { return 0; };
  33260. /***/ }),
  33261. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  33262. /*!*********************************************************************!*\
  33263. !*** E:/Repos/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  33264. \*********************************************************************/
  33265. /*! no static exports found */
  33266. /***/ (function(module, exports, __webpack_require__) {
  33267. "use strict";
  33268. /**
  33269. * Copyright (c) 2013-present, Facebook, Inc.
  33270. *
  33271. * This source code is licensed under the MIT license found in the
  33272. * LICENSE file in the root directory of this source tree.
  33273. */
  33274. var printWarning = function() {};
  33275. if (true) {
  33276. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33277. var loggedTypeFailures = {};
  33278. printWarning = function(text) {
  33279. var message = 'Warning: ' + text;
  33280. if (typeof console !== 'undefined') {
  33281. console.error(message);
  33282. }
  33283. try {
  33284. // --- Welcome to debugging React ---
  33285. // This error was thrown as a convenience so that you can use this stack
  33286. // to find the callsite that caused this warning to fire.
  33287. throw new Error(message);
  33288. } catch (x) {}
  33289. };
  33290. }
  33291. /**
  33292. * Assert that the values match with the type specs.
  33293. * Error messages are memorized and will only be shown once.
  33294. *
  33295. * @param {object} typeSpecs Map of name to a ReactPropType
  33296. * @param {object} values Runtime values that need to be type-checked
  33297. * @param {string} location e.g. "prop", "context", "child context"
  33298. * @param {string} componentName Name of the component for error messages.
  33299. * @param {?Function} getStack Returns the component stack.
  33300. * @private
  33301. */
  33302. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  33303. if (true) {
  33304. for (var typeSpecName in typeSpecs) {
  33305. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  33306. var error;
  33307. // Prop type validation may throw. In case they do, we don't want to
  33308. // fail the render phase where it didn't fail before. So we log it.
  33309. // After these have been cleaned up, we'll let them throw.
  33310. try {
  33311. // This is intentionally an invariant that gets caught. It's the same
  33312. // behavior as without this statement except with a better message.
  33313. if (typeof typeSpecs[typeSpecName] !== 'function') {
  33314. var err = Error(
  33315. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  33316. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  33317. );
  33318. err.name = 'Invariant Violation';
  33319. throw err;
  33320. }
  33321. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  33322. } catch (ex) {
  33323. error = ex;
  33324. }
  33325. if (error && !(error instanceof Error)) {
  33326. printWarning(
  33327. (componentName || 'React class') + ': type specification of ' +
  33328. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  33329. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  33330. 'You may have forgotten to pass an argument to the type checker ' +
  33331. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  33332. 'shape all require an argument).'
  33333. )
  33334. }
  33335. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  33336. // Only monitor this failure once because there tends to be a lot of the
  33337. // same error.
  33338. loggedTypeFailures[error.message] = true;
  33339. var stack = getStack ? getStack() : '';
  33340. printWarning(
  33341. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  33342. );
  33343. }
  33344. }
  33345. }
  33346. }
  33347. }
  33348. module.exports = checkPropTypes;
  33349. /***/ }),
  33350. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  33351. /*!******************************************************************************!*\
  33352. !*** E:/Repos/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  33353. \******************************************************************************/
  33354. /*! no static exports found */
  33355. /***/ (function(module, exports, __webpack_require__) {
  33356. "use strict";
  33357. /**
  33358. * Copyright (c) 2013-present, Facebook, Inc.
  33359. *
  33360. * This source code is licensed under the MIT license found in the
  33361. * LICENSE file in the root directory of this source tree.
  33362. */
  33363. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33364. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  33365. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33366. var printWarning = function() {};
  33367. if (true) {
  33368. printWarning = function(text) {
  33369. var message = 'Warning: ' + text;
  33370. if (typeof console !== 'undefined') {
  33371. console.error(message);
  33372. }
  33373. try {
  33374. // --- Welcome to debugging React ---
  33375. // This error was thrown as a convenience so that you can use this stack
  33376. // to find the callsite that caused this warning to fire.
  33377. throw new Error(message);
  33378. } catch (x) {}
  33379. };
  33380. }
  33381. function emptyFunctionThatReturnsNull() {
  33382. return null;
  33383. }
  33384. module.exports = function(isValidElement, throwOnDirectAccess) {
  33385. /* global Symbol */
  33386. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  33387. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  33388. /**
  33389. * Returns the iterator method function contained on the iterable object.
  33390. *
  33391. * Be sure to invoke the function with the iterable as context:
  33392. *
  33393. * var iteratorFn = getIteratorFn(myIterable);
  33394. * if (iteratorFn) {
  33395. * var iterator = iteratorFn.call(myIterable);
  33396. * ...
  33397. * }
  33398. *
  33399. * @param {?object} maybeIterable
  33400. * @return {?function}
  33401. */
  33402. function getIteratorFn(maybeIterable) {
  33403. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  33404. if (typeof iteratorFn === 'function') {
  33405. return iteratorFn;
  33406. }
  33407. }
  33408. /**
  33409. * Collection of methods that allow declaration and validation of props that are
  33410. * supplied to React components. Example usage:
  33411. *
  33412. * var Props = require('ReactPropTypes');
  33413. * var MyArticle = React.createClass({
  33414. * propTypes: {
  33415. * // An optional string prop named "description".
  33416. * description: Props.string,
  33417. *
  33418. * // A required enum prop named "category".
  33419. * category: Props.oneOf(['News','Photos']).isRequired,
  33420. *
  33421. * // A prop named "dialog" that requires an instance of Dialog.
  33422. * dialog: Props.instanceOf(Dialog).isRequired
  33423. * },
  33424. * render: function() { ... }
  33425. * });
  33426. *
  33427. * A more formal specification of how these methods are used:
  33428. *
  33429. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  33430. * decl := ReactPropTypes.{type}(.isRequired)?
  33431. *
  33432. * Each and every declaration produces a function with the same signature. This
  33433. * allows the creation of custom validation functions. For example:
  33434. *
  33435. * var MyLink = React.createClass({
  33436. * propTypes: {
  33437. * // An optional string or URI prop named "href".
  33438. * href: function(props, propName, componentName) {
  33439. * var propValue = props[propName];
  33440. * if (propValue != null && typeof propValue !== 'string' &&
  33441. * !(propValue instanceof URI)) {
  33442. * return new Error(
  33443. * 'Expected a string or an URI for ' + propName + ' in ' +
  33444. * componentName
  33445. * );
  33446. * }
  33447. * }
  33448. * },
  33449. * render: function() {...}
  33450. * });
  33451. *
  33452. * @internal
  33453. */
  33454. var ANONYMOUS = '<<anonymous>>';
  33455. // Important!
  33456. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  33457. var ReactPropTypes = {
  33458. array: createPrimitiveTypeChecker('array'),
  33459. bool: createPrimitiveTypeChecker('boolean'),
  33460. func: createPrimitiveTypeChecker('function'),
  33461. number: createPrimitiveTypeChecker('number'),
  33462. object: createPrimitiveTypeChecker('object'),
  33463. string: createPrimitiveTypeChecker('string'),
  33464. symbol: createPrimitiveTypeChecker('symbol'),
  33465. any: createAnyTypeChecker(),
  33466. arrayOf: createArrayOfTypeChecker,
  33467. element: createElementTypeChecker(),
  33468. instanceOf: createInstanceTypeChecker,
  33469. node: createNodeChecker(),
  33470. objectOf: createObjectOfTypeChecker,
  33471. oneOf: createEnumTypeChecker,
  33472. oneOfType: createUnionTypeChecker,
  33473. shape: createShapeTypeChecker,
  33474. exact: createStrictShapeTypeChecker,
  33475. };
  33476. /**
  33477. * inlined Object.is polyfill to avoid requiring consumers ship their own
  33478. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  33479. */
  33480. /*eslint-disable no-self-compare*/
  33481. function is(x, y) {
  33482. // SameValue algorithm
  33483. if (x === y) {
  33484. // Steps 1-5, 7-10
  33485. // Steps 6.b-6.e: +0 != -0
  33486. return x !== 0 || 1 / x === 1 / y;
  33487. } else {
  33488. // Step 6.a: NaN == NaN
  33489. return x !== x && y !== y;
  33490. }
  33491. }
  33492. /*eslint-enable no-self-compare*/
  33493. /**
  33494. * We use an Error-like object for backward compatibility as people may call
  33495. * PropTypes directly and inspect their output. However, we don't use real
  33496. * Errors anymore. We don't inspect their stack anyway, and creating them
  33497. * is prohibitively expensive if they are created too often, such as what
  33498. * happens in oneOfType() for any type before the one that matched.
  33499. */
  33500. function PropTypeError(message) {
  33501. this.message = message;
  33502. this.stack = '';
  33503. }
  33504. // Make `instanceof Error` still work for returned errors.
  33505. PropTypeError.prototype = Error.prototype;
  33506. function createChainableTypeChecker(validate) {
  33507. if (true) {
  33508. var manualPropTypeCallCache = {};
  33509. var manualPropTypeWarningCount = 0;
  33510. }
  33511. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  33512. componentName = componentName || ANONYMOUS;
  33513. propFullName = propFullName || propName;
  33514. if (secret !== ReactPropTypesSecret) {
  33515. if (throwOnDirectAccess) {
  33516. // New behavior only for users of `prop-types` package
  33517. var err = new Error(
  33518. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  33519. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  33520. 'Read more at http://fb.me/use-check-prop-types'
  33521. );
  33522. err.name = 'Invariant Violation';
  33523. throw err;
  33524. } else if ( true && typeof console !== 'undefined') {
  33525. // Old behavior for people using React.PropTypes
  33526. var cacheKey = componentName + ':' + propName;
  33527. if (
  33528. !manualPropTypeCallCache[cacheKey] &&
  33529. // Avoid spamming the console because they are often not actionable except for lib authors
  33530. manualPropTypeWarningCount < 3
  33531. ) {
  33532. printWarning(
  33533. 'You are manually calling a React.PropTypes validation ' +
  33534. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  33535. 'and will throw in the standalone `prop-types` package. ' +
  33536. 'You may be seeing this warning due to a third-party PropTypes ' +
  33537. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  33538. );
  33539. manualPropTypeCallCache[cacheKey] = true;
  33540. manualPropTypeWarningCount++;
  33541. }
  33542. }
  33543. }
  33544. if (props[propName] == null) {
  33545. if (isRequired) {
  33546. if (props[propName] === null) {
  33547. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  33548. }
  33549. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  33550. }
  33551. return null;
  33552. } else {
  33553. return validate(props, propName, componentName, location, propFullName);
  33554. }
  33555. }
  33556. var chainedCheckType = checkType.bind(null, false);
  33557. chainedCheckType.isRequired = checkType.bind(null, true);
  33558. return chainedCheckType;
  33559. }
  33560. function createPrimitiveTypeChecker(expectedType) {
  33561. function validate(props, propName, componentName, location, propFullName, secret) {
  33562. var propValue = props[propName];
  33563. var propType = getPropType(propValue);
  33564. if (propType !== expectedType) {
  33565. // `propValue` being instance of, say, date/regexp, pass the 'object'
  33566. // check, but we can offer a more precise error message here rather than
  33567. // 'of type `object`'.
  33568. var preciseType = getPreciseType(propValue);
  33569. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  33570. }
  33571. return null;
  33572. }
  33573. return createChainableTypeChecker(validate);
  33574. }
  33575. function createAnyTypeChecker() {
  33576. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  33577. }
  33578. function createArrayOfTypeChecker(typeChecker) {
  33579. function validate(props, propName, componentName, location, propFullName) {
  33580. if (typeof typeChecker !== 'function') {
  33581. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  33582. }
  33583. var propValue = props[propName];
  33584. if (!Array.isArray(propValue)) {
  33585. var propType = getPropType(propValue);
  33586. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  33587. }
  33588. for (var i = 0; i < propValue.length; i++) {
  33589. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  33590. if (error instanceof Error) {
  33591. return error;
  33592. }
  33593. }
  33594. return null;
  33595. }
  33596. return createChainableTypeChecker(validate);
  33597. }
  33598. function createElementTypeChecker() {
  33599. function validate(props, propName, componentName, location, propFullName) {
  33600. var propValue = props[propName];
  33601. if (!isValidElement(propValue)) {
  33602. var propType = getPropType(propValue);
  33603. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  33604. }
  33605. return null;
  33606. }
  33607. return createChainableTypeChecker(validate);
  33608. }
  33609. function createInstanceTypeChecker(expectedClass) {
  33610. function validate(props, propName, componentName, location, propFullName) {
  33611. if (!(props[propName] instanceof expectedClass)) {
  33612. var expectedClassName = expectedClass.name || ANONYMOUS;
  33613. var actualClassName = getClassName(props[propName]);
  33614. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  33615. }
  33616. return null;
  33617. }
  33618. return createChainableTypeChecker(validate);
  33619. }
  33620. function createEnumTypeChecker(expectedValues) {
  33621. if (!Array.isArray(expectedValues)) {
  33622. true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
  33623. return emptyFunctionThatReturnsNull;
  33624. }
  33625. function validate(props, propName, componentName, location, propFullName) {
  33626. var propValue = props[propName];
  33627. for (var i = 0; i < expectedValues.length; i++) {
  33628. if (is(propValue, expectedValues[i])) {
  33629. return null;
  33630. }
  33631. }
  33632. var valuesString = JSON.stringify(expectedValues);
  33633. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  33634. }
  33635. return createChainableTypeChecker(validate);
  33636. }
  33637. function createObjectOfTypeChecker(typeChecker) {
  33638. function validate(props, propName, componentName, location, propFullName) {
  33639. if (typeof typeChecker !== 'function') {
  33640. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  33641. }
  33642. var propValue = props[propName];
  33643. var propType = getPropType(propValue);
  33644. if (propType !== 'object') {
  33645. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  33646. }
  33647. for (var key in propValue) {
  33648. if (propValue.hasOwnProperty(key)) {
  33649. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33650. if (error instanceof Error) {
  33651. return error;
  33652. }
  33653. }
  33654. }
  33655. return null;
  33656. }
  33657. return createChainableTypeChecker(validate);
  33658. }
  33659. function createUnionTypeChecker(arrayOfTypeCheckers) {
  33660. if (!Array.isArray(arrayOfTypeCheckers)) {
  33661. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  33662. return emptyFunctionThatReturnsNull;
  33663. }
  33664. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33665. var checker = arrayOfTypeCheckers[i];
  33666. if (typeof checker !== 'function') {
  33667. printWarning(
  33668. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  33669. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  33670. );
  33671. return emptyFunctionThatReturnsNull;
  33672. }
  33673. }
  33674. function validate(props, propName, componentName, location, propFullName) {
  33675. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  33676. var checker = arrayOfTypeCheckers[i];
  33677. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  33678. return null;
  33679. }
  33680. }
  33681. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  33682. }
  33683. return createChainableTypeChecker(validate);
  33684. }
  33685. function createNodeChecker() {
  33686. function validate(props, propName, componentName, location, propFullName) {
  33687. if (!isNode(props[propName])) {
  33688. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  33689. }
  33690. return null;
  33691. }
  33692. return createChainableTypeChecker(validate);
  33693. }
  33694. function createShapeTypeChecker(shapeTypes) {
  33695. function validate(props, propName, componentName, location, propFullName) {
  33696. var propValue = props[propName];
  33697. var propType = getPropType(propValue);
  33698. if (propType !== 'object') {
  33699. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33700. }
  33701. for (var key in shapeTypes) {
  33702. var checker = shapeTypes[key];
  33703. if (!checker) {
  33704. continue;
  33705. }
  33706. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33707. if (error) {
  33708. return error;
  33709. }
  33710. }
  33711. return null;
  33712. }
  33713. return createChainableTypeChecker(validate);
  33714. }
  33715. function createStrictShapeTypeChecker(shapeTypes) {
  33716. function validate(props, propName, componentName, location, propFullName) {
  33717. var propValue = props[propName];
  33718. var propType = getPropType(propValue);
  33719. if (propType !== 'object') {
  33720. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  33721. }
  33722. // We need to check all keys in case some are required but missing from
  33723. // props.
  33724. var allKeys = assign({}, props[propName], shapeTypes);
  33725. for (var key in allKeys) {
  33726. var checker = shapeTypes[key];
  33727. if (!checker) {
  33728. return new PropTypeError(
  33729. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  33730. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  33731. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  33732. );
  33733. }
  33734. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  33735. if (error) {
  33736. return error;
  33737. }
  33738. }
  33739. return null;
  33740. }
  33741. return createChainableTypeChecker(validate);
  33742. }
  33743. function isNode(propValue) {
  33744. switch (typeof propValue) {
  33745. case 'number':
  33746. case 'string':
  33747. case 'undefined':
  33748. return true;
  33749. case 'boolean':
  33750. return !propValue;
  33751. case 'object':
  33752. if (Array.isArray(propValue)) {
  33753. return propValue.every(isNode);
  33754. }
  33755. if (propValue === null || isValidElement(propValue)) {
  33756. return true;
  33757. }
  33758. var iteratorFn = getIteratorFn(propValue);
  33759. if (iteratorFn) {
  33760. var iterator = iteratorFn.call(propValue);
  33761. var step;
  33762. if (iteratorFn !== propValue.entries) {
  33763. while (!(step = iterator.next()).done) {
  33764. if (!isNode(step.value)) {
  33765. return false;
  33766. }
  33767. }
  33768. } else {
  33769. // Iterator will provide entry [k,v] tuples rather than values.
  33770. while (!(step = iterator.next()).done) {
  33771. var entry = step.value;
  33772. if (entry) {
  33773. if (!isNode(entry[1])) {
  33774. return false;
  33775. }
  33776. }
  33777. }
  33778. }
  33779. } else {
  33780. return false;
  33781. }
  33782. return true;
  33783. default:
  33784. return false;
  33785. }
  33786. }
  33787. function isSymbol(propType, propValue) {
  33788. // Native Symbol.
  33789. if (propType === 'symbol') {
  33790. return true;
  33791. }
  33792. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  33793. if (propValue['@@toStringTag'] === 'Symbol') {
  33794. return true;
  33795. }
  33796. // Fallback for non-spec compliant Symbols which are polyfilled.
  33797. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  33798. return true;
  33799. }
  33800. return false;
  33801. }
  33802. // Equivalent of `typeof` but with special handling for array and regexp.
  33803. function getPropType(propValue) {
  33804. var propType = typeof propValue;
  33805. if (Array.isArray(propValue)) {
  33806. return 'array';
  33807. }
  33808. if (propValue instanceof RegExp) {
  33809. // Old webkits (at least until Android 4.0) return 'function' rather than
  33810. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  33811. // passes PropTypes.object.
  33812. return 'object';
  33813. }
  33814. if (isSymbol(propType, propValue)) {
  33815. return 'symbol';
  33816. }
  33817. return propType;
  33818. }
  33819. // This handles more types than `getPropType`. Only used for error messages.
  33820. // See `createPrimitiveTypeChecker`.
  33821. function getPreciseType(propValue) {
  33822. if (typeof propValue === 'undefined' || propValue === null) {
  33823. return '' + propValue;
  33824. }
  33825. var propType = getPropType(propValue);
  33826. if (propType === 'object') {
  33827. if (propValue instanceof Date) {
  33828. return 'date';
  33829. } else if (propValue instanceof RegExp) {
  33830. return 'regexp';
  33831. }
  33832. }
  33833. return propType;
  33834. }
  33835. // Returns a string that is postfixed to a warning about an invalid type.
  33836. // For example, "undefined" or "of type array"
  33837. function getPostfixForTypeWarning(value) {
  33838. var type = getPreciseType(value);
  33839. switch (type) {
  33840. case 'array':
  33841. case 'object':
  33842. return 'an ' + type;
  33843. case 'boolean':
  33844. case 'date':
  33845. case 'regexp':
  33846. return 'a ' + type;
  33847. default:
  33848. return type;
  33849. }
  33850. }
  33851. // Returns class name of the object, if any.
  33852. function getClassName(propValue) {
  33853. if (!propValue.constructor || !propValue.constructor.name) {
  33854. return ANONYMOUS;
  33855. }
  33856. return propValue.constructor.name;
  33857. }
  33858. ReactPropTypes.checkPropTypes = checkPropTypes;
  33859. ReactPropTypes.PropTypes = ReactPropTypes;
  33860. return ReactPropTypes;
  33861. };
  33862. /***/ }),
  33863. /***/ "../../node_modules/prop-types/index.js":
  33864. /*!************************************************************!*\
  33865. !*** E:/Repos/Babylon.js/node_modules/prop-types/index.js ***!
  33866. \************************************************************/
  33867. /*! no static exports found */
  33868. /***/ (function(module, exports, __webpack_require__) {
  33869. /**
  33870. * Copyright (c) 2013-present, Facebook, Inc.
  33871. *
  33872. * This source code is licensed under the MIT license found in the
  33873. * LICENSE file in the root directory of this source tree.
  33874. */
  33875. if (true) {
  33876. var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
  33877. Symbol.for &&
  33878. Symbol.for('react.element')) ||
  33879. 0xeac7;
  33880. var isValidElement = function(object) {
  33881. return typeof object === 'object' &&
  33882. object !== null &&
  33883. object.$$typeof === REACT_ELEMENT_TYPE;
  33884. };
  33885. // By explicitly using `prop-types` you are opting into new development behavior.
  33886. // http://fb.me/prop-types-in-prod
  33887. var throwOnDirectAccess = true;
  33888. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
  33889. } else {}
  33890. /***/ }),
  33891. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  33892. /*!*******************************************************************************!*\
  33893. !*** E:/Repos/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  33894. \*******************************************************************************/
  33895. /*! no static exports found */
  33896. /***/ (function(module, exports, __webpack_require__) {
  33897. "use strict";
  33898. /**
  33899. * Copyright (c) 2013-present, Facebook, Inc.
  33900. *
  33901. * This source code is licensed under the MIT license found in the
  33902. * LICENSE file in the root directory of this source tree.
  33903. */
  33904. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  33905. module.exports = ReactPropTypesSecret;
  33906. /***/ }),
  33907. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  33908. /*!*******************************************************************************!*\
  33909. !*** E:/Repos/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  33910. \*******************************************************************************/
  33911. /*! no static exports found */
  33912. /***/ (function(module, exports, __webpack_require__) {
  33913. "use strict";
  33914. /** @license React v16.6.1
  33915. * react-dom.development.js
  33916. *
  33917. * Copyright (c) Facebook, Inc. and its affiliates.
  33918. *
  33919. * This source code is licensed under the MIT license found in the
  33920. * LICENSE file in the root directory of this source tree.
  33921. */
  33922. if (true) {
  33923. (function() {
  33924. 'use strict';
  33925. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  33926. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  33927. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  33928. var scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  33929. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  33930. /**
  33931. * Use invariant() to assert state which your program assumes to be true.
  33932. *
  33933. * Provide sprintf-style format (only %s is supported) and arguments
  33934. * to provide information about what broke and what you were
  33935. * expecting.
  33936. *
  33937. * The invariant message will be stripped in production, but the invariant
  33938. * will remain to ensure logic does not differ in production.
  33939. */
  33940. var validateFormat = function () {};
  33941. {
  33942. validateFormat = function (format) {
  33943. if (format === undefined) {
  33944. throw new Error('invariant requires an error message argument');
  33945. }
  33946. };
  33947. }
  33948. function invariant(condition, format, a, b, c, d, e, f) {
  33949. validateFormat(format);
  33950. if (!condition) {
  33951. var error = void 0;
  33952. if (format === undefined) {
  33953. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  33954. } else {
  33955. var args = [a, b, c, d, e, f];
  33956. var argIndex = 0;
  33957. error = new Error(format.replace(/%s/g, function () {
  33958. return args[argIndex++];
  33959. }));
  33960. error.name = 'Invariant Violation';
  33961. }
  33962. error.framesToPop = 1; // we don't care about invariant's own frame
  33963. throw error;
  33964. }
  33965. }
  33966. // Relying on the `invariant()` implementation lets us
  33967. // preserve the format and params in the www builds.
  33968. !React ? invariant(false, 'ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.') : void 0;
  33969. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  33970. var funcArgs = Array.prototype.slice.call(arguments, 3);
  33971. try {
  33972. func.apply(context, funcArgs);
  33973. } catch (error) {
  33974. this.onError(error);
  33975. }
  33976. };
  33977. {
  33978. // In DEV mode, we swap out invokeGuardedCallback for a special version
  33979. // that plays more nicely with the browser's DevTools. The idea is to preserve
  33980. // "Pause on exceptions" behavior. Because React wraps all user-provided
  33981. // functions in invokeGuardedCallback, and the production version of
  33982. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  33983. // like caught exceptions, and the DevTools won't pause unless the developer
  33984. // takes the extra step of enabling pause on caught exceptions. This is
  33985. // untintuitive, though, because even though React has caught the error, from
  33986. // the developer's perspective, the error is uncaught.
  33987. //
  33988. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  33989. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  33990. // DOM node, and call the user-provided callback from inside an event handler
  33991. // for that fake event. If the callback throws, the error is "captured" using
  33992. // a global event handler. But because the error happens in a different
  33993. // event loop context, it does not interrupt the normal program flow.
  33994. // Effectively, this gives us try-catch behavior without actually using
  33995. // try-catch. Neat!
  33996. // Check that the browser supports the APIs we need to implement our special
  33997. // DEV version of invokeGuardedCallback
  33998. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  33999. var fakeNode = document.createElement('react');
  34000. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  34001. // If document doesn't exist we know for sure we will crash in this method
  34002. // when we call document.createEvent(). However this can cause confusing
  34003. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  34004. // So we preemptively throw with a better message instead.
  34005. !(typeof document !== 'undefined') ? invariant(false, 'The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.') : void 0;
  34006. var evt = document.createEvent('Event');
  34007. // Keeps track of whether the user-provided callback threw an error. We
  34008. // set this to true at the beginning, then set it to false right after
  34009. // calling the function. If the function errors, `didError` will never be
  34010. // set to false. This strategy works even if the browser is flaky and
  34011. // fails to call our global error handler, because it doesn't rely on
  34012. // the error event at all.
  34013. var didError = true;
  34014. // Keeps track of the value of window.event so that we can reset it
  34015. // during the callback to let user code access window.event in the
  34016. // browsers that support it.
  34017. var windowEvent = window.event;
  34018. // Keeps track of the descriptor of window.event to restore it after event
  34019. // dispatching: https://github.com/facebook/react/issues/13688
  34020. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  34021. // Create an event handler for our fake event. We will synchronously
  34022. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  34023. // call the user-provided callback.
  34024. var funcArgs = Array.prototype.slice.call(arguments, 3);
  34025. function callCallback() {
  34026. // We immediately remove the callback from event listeners so that
  34027. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  34028. // nested call would trigger the fake event handlers of any call higher
  34029. // in the stack.
  34030. fakeNode.removeEventListener(evtType, callCallback, false);
  34031. // We check for window.hasOwnProperty('event') to prevent the
  34032. // window.event assignment in both IE <= 10 as they throw an error
  34033. // "Member not found" in strict mode, and in Firefox which does not
  34034. // support window.event.
  34035. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  34036. window.event = windowEvent;
  34037. }
  34038. func.apply(context, funcArgs);
  34039. didError = false;
  34040. }
  34041. // Create a global error event handler. We use this to capture the value
  34042. // that was thrown. It's possible that this error handler will fire more
  34043. // than once; for example, if non-React code also calls `dispatchEvent`
  34044. // and a handler for that event throws. We should be resilient to most of
  34045. // those cases. Even if our error event handler fires more than once, the
  34046. // last error event is always used. If the callback actually does error,
  34047. // we know that the last error event is the correct one, because it's not
  34048. // possible for anything else to have happened in between our callback
  34049. // erroring and the code that follows the `dispatchEvent` call below. If
  34050. // the callback doesn't error, but the error event was fired, we know to
  34051. // ignore it because `didError` will be false, as described above.
  34052. var error = void 0;
  34053. // Use this to track whether the error event is ever called.
  34054. var didSetError = false;
  34055. var isCrossOriginError = false;
  34056. function handleWindowError(event) {
  34057. error = event.error;
  34058. didSetError = true;
  34059. if (error === null && event.colno === 0 && event.lineno === 0) {
  34060. isCrossOriginError = true;
  34061. }
  34062. if (event.defaultPrevented) {
  34063. // Some other error handler has prevented default.
  34064. // Browsers silence the error report if this happens.
  34065. // We'll remember this to later decide whether to log it or not.
  34066. if (error != null && typeof error === 'object') {
  34067. try {
  34068. error._suppressLogging = true;
  34069. } catch (inner) {
  34070. // Ignore.
  34071. }
  34072. }
  34073. }
  34074. }
  34075. // Create a fake event type.
  34076. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  34077. // Attach our event handlers
  34078. window.addEventListener('error', handleWindowError);
  34079. fakeNode.addEventListener(evtType, callCallback, false);
  34080. // Synchronously dispatch our fake event. If the user-provided function
  34081. // errors, it will trigger our global error handler.
  34082. evt.initEvent(evtType, false, false);
  34083. fakeNode.dispatchEvent(evt);
  34084. if (windowEventDescriptor) {
  34085. Object.defineProperty(window, 'event', windowEventDescriptor);
  34086. }
  34087. if (didError) {
  34088. if (!didSetError) {
  34089. // The callback errored, but the error event never fired.
  34090. 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.');
  34091. } else if (isCrossOriginError) {
  34092. 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.');
  34093. }
  34094. this.onError(error);
  34095. }
  34096. // Remove our event listeners
  34097. window.removeEventListener('error', handleWindowError);
  34098. };
  34099. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  34100. }
  34101. }
  34102. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  34103. // Used by Fiber to simulate a try-catch.
  34104. var hasError = false;
  34105. var caughtError = null;
  34106. // Used by event system to capture/rethrow the first error.
  34107. var hasRethrowError = false;
  34108. var rethrowError = null;
  34109. var reporter = {
  34110. onError: function (error) {
  34111. hasError = true;
  34112. caughtError = error;
  34113. }
  34114. };
  34115. /**
  34116. * Call a function while guarding against errors that happens within it.
  34117. * Returns an error if it throws, otherwise null.
  34118. *
  34119. * In production, this is implemented using a try-catch. The reason we don't
  34120. * use a try-catch directly is so that we can swap out a different
  34121. * implementation in DEV mode.
  34122. *
  34123. * @param {String} name of the guard to use for logging or debugging
  34124. * @param {Function} func The function to invoke
  34125. * @param {*} context The context to use when calling the function
  34126. * @param {...*} args Arguments for function
  34127. */
  34128. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  34129. hasError = false;
  34130. caughtError = null;
  34131. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  34132. }
  34133. /**
  34134. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  34135. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  34136. * TODO: See if caughtError and rethrowError can be unified.
  34137. *
  34138. * @param {String} name of the guard to use for logging or debugging
  34139. * @param {Function} func The function to invoke
  34140. * @param {*} context The context to use when calling the function
  34141. * @param {...*} args Arguments for function
  34142. */
  34143. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  34144. invokeGuardedCallback.apply(this, arguments);
  34145. if (hasError) {
  34146. var error = clearCaughtError();
  34147. if (!hasRethrowError) {
  34148. hasRethrowError = true;
  34149. rethrowError = error;
  34150. }
  34151. }
  34152. }
  34153. /**
  34154. * During execution of guarded functions we will capture the first error which
  34155. * we will rethrow to be handled by the top level error handler.
  34156. */
  34157. function rethrowCaughtError() {
  34158. if (hasRethrowError) {
  34159. var error = rethrowError;
  34160. hasRethrowError = false;
  34161. rethrowError = null;
  34162. throw error;
  34163. }
  34164. }
  34165. function hasCaughtError() {
  34166. return hasError;
  34167. }
  34168. function clearCaughtError() {
  34169. if (hasError) {
  34170. var error = caughtError;
  34171. hasError = false;
  34172. caughtError = null;
  34173. return error;
  34174. } else {
  34175. invariant(false, 'clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.');
  34176. }
  34177. }
  34178. /**
  34179. * Injectable ordering of event plugins.
  34180. */
  34181. var eventPluginOrder = null;
  34182. /**
  34183. * Injectable mapping from names to event plugin modules.
  34184. */
  34185. var namesToPlugins = {};
  34186. /**
  34187. * Recomputes the plugin list using the injected plugins and plugin ordering.
  34188. *
  34189. * @private
  34190. */
  34191. function recomputePluginOrdering() {
  34192. if (!eventPluginOrder) {
  34193. // Wait until an `eventPluginOrder` is injected.
  34194. return;
  34195. }
  34196. for (var pluginName in namesToPlugins) {
  34197. var pluginModule = namesToPlugins[pluginName];
  34198. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  34199. !(pluginIndex > -1) ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : void 0;
  34200. if (plugins[pluginIndex]) {
  34201. continue;
  34202. }
  34203. !pluginModule.extractEvents ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : void 0;
  34204. plugins[pluginIndex] = pluginModule;
  34205. var publishedEvents = pluginModule.eventTypes;
  34206. for (var eventName in publishedEvents) {
  34207. !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : void 0;
  34208. }
  34209. }
  34210. }
  34211. /**
  34212. * Publishes an event so that it can be dispatched by the supplied plugin.
  34213. *
  34214. * @param {object} dispatchConfig Dispatch configuration for the event.
  34215. * @param {object} PluginModule Plugin publishing the event.
  34216. * @return {boolean} True if the event was successfully published.
  34217. * @private
  34218. */
  34219. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  34220. !!eventNameDispatchConfigs.hasOwnProperty(eventName) ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : void 0;
  34221. eventNameDispatchConfigs[eventName] = dispatchConfig;
  34222. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  34223. if (phasedRegistrationNames) {
  34224. for (var phaseName in phasedRegistrationNames) {
  34225. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  34226. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  34227. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  34228. }
  34229. }
  34230. return true;
  34231. } else if (dispatchConfig.registrationName) {
  34232. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  34233. return true;
  34234. }
  34235. return false;
  34236. }
  34237. /**
  34238. * Publishes a registration name that is used to identify dispatched events.
  34239. *
  34240. * @param {string} registrationName Registration name to add.
  34241. * @param {object} PluginModule Plugin publishing the event.
  34242. * @private
  34243. */
  34244. function publishRegistrationName(registrationName, pluginModule, eventName) {
  34245. !!registrationNameModules[registrationName] ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : void 0;
  34246. registrationNameModules[registrationName] = pluginModule;
  34247. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  34248. {
  34249. var lowerCasedName = registrationName.toLowerCase();
  34250. possibleRegistrationNames[lowerCasedName] = registrationName;
  34251. if (registrationName === 'onDoubleClick') {
  34252. possibleRegistrationNames.ondblclick = registrationName;
  34253. }
  34254. }
  34255. }
  34256. /**
  34257. * Registers plugins so that they can extract and dispatch events.
  34258. *
  34259. * @see {EventPluginHub}
  34260. */
  34261. /**
  34262. * Ordered list of injected plugins.
  34263. */
  34264. var plugins = [];
  34265. /**
  34266. * Mapping from event name to dispatch config
  34267. */
  34268. var eventNameDispatchConfigs = {};
  34269. /**
  34270. * Mapping from registration name to plugin module
  34271. */
  34272. var registrationNameModules = {};
  34273. /**
  34274. * Mapping from registration name to event name
  34275. */
  34276. var registrationNameDependencies = {};
  34277. /**
  34278. * Mapping from lowercase registration names to the properly cased version,
  34279. * used to warn in the case of missing event handlers. Available
  34280. * only in true.
  34281. * @type {Object}
  34282. */
  34283. var possibleRegistrationNames = {};
  34284. // Trust the developer to only use possibleRegistrationNames in true
  34285. /**
  34286. * Injects an ordering of plugins (by plugin name). This allows the ordering
  34287. * to be decoupled from injection of the actual plugins so that ordering is
  34288. * always deterministic regardless of packaging, on-the-fly injection, etc.
  34289. *
  34290. * @param {array} InjectedEventPluginOrder
  34291. * @internal
  34292. * @see {EventPluginHub.injection.injectEventPluginOrder}
  34293. */
  34294. function injectEventPluginOrder(injectedEventPluginOrder) {
  34295. !!eventPluginOrder ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : void 0;
  34296. // Clone the ordering so it cannot be dynamically mutated.
  34297. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  34298. recomputePluginOrdering();
  34299. }
  34300. /**
  34301. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  34302. * in the ordering injected by `injectEventPluginOrder`.
  34303. *
  34304. * Plugins can be injected as part of page initialization or on-the-fly.
  34305. *
  34306. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34307. * @internal
  34308. * @see {EventPluginHub.injection.injectEventPluginsByName}
  34309. */
  34310. function injectEventPluginsByName(injectedNamesToPlugins) {
  34311. var isOrderingDirty = false;
  34312. for (var pluginName in injectedNamesToPlugins) {
  34313. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  34314. continue;
  34315. }
  34316. var pluginModule = injectedNamesToPlugins[pluginName];
  34317. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  34318. !!namesToPlugins[pluginName] ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : void 0;
  34319. namesToPlugins[pluginName] = pluginModule;
  34320. isOrderingDirty = true;
  34321. }
  34322. }
  34323. if (isOrderingDirty) {
  34324. recomputePluginOrdering();
  34325. }
  34326. }
  34327. /**
  34328. * Similar to invariant but only logs a warning if the condition is not met.
  34329. * This can be used to log issues in development environments in critical
  34330. * paths. Removing the logging code for production environments will keep the
  34331. * same logic and follow the same code paths.
  34332. */
  34333. var warningWithoutStack = function () {};
  34334. {
  34335. warningWithoutStack = function (condition, format) {
  34336. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  34337. args[_key - 2] = arguments[_key];
  34338. }
  34339. if (format === undefined) {
  34340. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  34341. }
  34342. if (args.length > 8) {
  34343. // Check before the condition to catch violations early.
  34344. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  34345. }
  34346. if (condition) {
  34347. return;
  34348. }
  34349. if (typeof console !== 'undefined') {
  34350. var argsWithFormat = args.map(function (item) {
  34351. return '' + item;
  34352. });
  34353. argsWithFormat.unshift('Warning: ' + format);
  34354. // We intentionally don't use spread (or .apply) directly because it
  34355. // breaks IE9: https://github.com/facebook/react/issues/13610
  34356. Function.prototype.apply.call(console.error, console, argsWithFormat);
  34357. }
  34358. try {
  34359. // --- Welcome to debugging React ---
  34360. // This error was thrown as a convenience so that you can use this stack
  34361. // to find the callsite that caused this warning to fire.
  34362. var argIndex = 0;
  34363. var message = 'Warning: ' + format.replace(/%s/g, function () {
  34364. return args[argIndex++];
  34365. });
  34366. throw new Error(message);
  34367. } catch (x) {}
  34368. };
  34369. }
  34370. var warningWithoutStack$1 = warningWithoutStack;
  34371. var getFiberCurrentPropsFromNode = null;
  34372. var getInstanceFromNode = null;
  34373. var getNodeFromInstance = null;
  34374. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  34375. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  34376. getInstanceFromNode = getInstanceFromNodeImpl;
  34377. getNodeFromInstance = getNodeFromInstanceImpl;
  34378. {
  34379. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  34380. }
  34381. }
  34382. var validateEventDispatches = void 0;
  34383. {
  34384. validateEventDispatches = function (event) {
  34385. var dispatchListeners = event._dispatchListeners;
  34386. var dispatchInstances = event._dispatchInstances;
  34387. var listenersIsArr = Array.isArray(dispatchListeners);
  34388. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  34389. var instancesIsArr = Array.isArray(dispatchInstances);
  34390. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  34391. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  34392. };
  34393. }
  34394. /**
  34395. * Dispatch the event to the listener.
  34396. * @param {SyntheticEvent} event SyntheticEvent to handle
  34397. * @param {function} listener Application-level callback
  34398. * @param {*} inst Internal component instance
  34399. */
  34400. function executeDispatch(event, listener, inst) {
  34401. var type = event.type || 'unknown-event';
  34402. event.currentTarget = getNodeFromInstance(inst);
  34403. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  34404. event.currentTarget = null;
  34405. }
  34406. /**
  34407. * Standard/simple iteration through an event's collected dispatches.
  34408. */
  34409. function executeDispatchesInOrder(event) {
  34410. var dispatchListeners = event._dispatchListeners;
  34411. var dispatchInstances = event._dispatchInstances;
  34412. {
  34413. validateEventDispatches(event);
  34414. }
  34415. if (Array.isArray(dispatchListeners)) {
  34416. for (var i = 0; i < dispatchListeners.length; i++) {
  34417. if (event.isPropagationStopped()) {
  34418. break;
  34419. }
  34420. // Listeners and Instances are two parallel arrays that are always in sync.
  34421. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  34422. }
  34423. } else if (dispatchListeners) {
  34424. executeDispatch(event, dispatchListeners, dispatchInstances);
  34425. }
  34426. event._dispatchListeners = null;
  34427. event._dispatchInstances = null;
  34428. }
  34429. /**
  34430. * @see executeDispatchesInOrderStopAtTrueImpl
  34431. */
  34432. /**
  34433. * Execution of a "direct" dispatch - there must be at most one dispatch
  34434. * accumulated on the event or it is considered an error. It doesn't really make
  34435. * sense for an event with multiple dispatches (bubbled) to keep track of the
  34436. * return values at each dispatch execution, but it does tend to make sense when
  34437. * dealing with "direct" dispatches.
  34438. *
  34439. * @return {*} The return value of executing the single dispatch.
  34440. */
  34441. /**
  34442. * @param {SyntheticEvent} event
  34443. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  34444. */
  34445. /**
  34446. * Accumulates items that must not be null or undefined into the first one. This
  34447. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  34448. * API cleanness. Since `current` can be null before being passed in and not
  34449. * null after this function, make sure to assign it back to `current`:
  34450. *
  34451. * `a = accumulateInto(a, b);`
  34452. *
  34453. * This API should be sparingly used. Try `accumulate` for something cleaner.
  34454. *
  34455. * @return {*|array<*>} An accumulation of items.
  34456. */
  34457. function accumulateInto(current, next) {
  34458. !(next != null) ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : void 0;
  34459. if (current == null) {
  34460. return next;
  34461. }
  34462. // Both are not empty. Warning: Never call x.concat(y) when you are not
  34463. // certain that x is an Array (x could be a string with concat method).
  34464. if (Array.isArray(current)) {
  34465. if (Array.isArray(next)) {
  34466. current.push.apply(current, next);
  34467. return current;
  34468. }
  34469. current.push(next);
  34470. return current;
  34471. }
  34472. if (Array.isArray(next)) {
  34473. // A bit too dangerous to mutate `next`.
  34474. return [current].concat(next);
  34475. }
  34476. return [current, next];
  34477. }
  34478. /**
  34479. * @param {array} arr an "accumulation" of items which is either an Array or
  34480. * a single item. Useful when paired with the `accumulate` module. This is a
  34481. * simple utility that allows us to reason about a collection of items, but
  34482. * handling the case when there is exactly one item (and we do not need to
  34483. * allocate an array).
  34484. * @param {function} cb Callback invoked with each element or a collection.
  34485. * @param {?} [scope] Scope used as `this` in a callback.
  34486. */
  34487. function forEachAccumulated(arr, cb, scope) {
  34488. if (Array.isArray(arr)) {
  34489. arr.forEach(cb, scope);
  34490. } else if (arr) {
  34491. cb.call(scope, arr);
  34492. }
  34493. }
  34494. /**
  34495. * Internal queue of events that have accumulated their dispatches and are
  34496. * waiting to have their dispatches executed.
  34497. */
  34498. var eventQueue = null;
  34499. /**
  34500. * Dispatches an event and releases it back into the pool, unless persistent.
  34501. *
  34502. * @param {?object} event Synthetic event to be dispatched.
  34503. * @private
  34504. */
  34505. var executeDispatchesAndRelease = function (event) {
  34506. if (event) {
  34507. executeDispatchesInOrder(event);
  34508. if (!event.isPersistent()) {
  34509. event.constructor.release(event);
  34510. }
  34511. }
  34512. };
  34513. var executeDispatchesAndReleaseTopLevel = function (e) {
  34514. return executeDispatchesAndRelease(e);
  34515. };
  34516. function isInteractive(tag) {
  34517. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  34518. }
  34519. function shouldPreventMouseEvent(name, type, props) {
  34520. switch (name) {
  34521. case 'onClick':
  34522. case 'onClickCapture':
  34523. case 'onDoubleClick':
  34524. case 'onDoubleClickCapture':
  34525. case 'onMouseDown':
  34526. case 'onMouseDownCapture':
  34527. case 'onMouseMove':
  34528. case 'onMouseMoveCapture':
  34529. case 'onMouseUp':
  34530. case 'onMouseUpCapture':
  34531. return !!(props.disabled && isInteractive(type));
  34532. default:
  34533. return false;
  34534. }
  34535. }
  34536. /**
  34537. * This is a unified interface for event plugins to be installed and configured.
  34538. *
  34539. * Event plugins can implement the following properties:
  34540. *
  34541. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  34542. * Required. When a top-level event is fired, this method is expected to
  34543. * extract synthetic events that will in turn be queued and dispatched.
  34544. *
  34545. * `eventTypes` {object}
  34546. * Optional, plugins that fire events must publish a mapping of registration
  34547. * names that are used to register listeners. Values of this mapping must
  34548. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  34549. *
  34550. * `executeDispatch` {function(object, function, string)}
  34551. * Optional, allows plugins to override how an event gets dispatched. By
  34552. * default, the listener is simply invoked.
  34553. *
  34554. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  34555. *
  34556. * @public
  34557. */
  34558. /**
  34559. * Methods for injecting dependencies.
  34560. */
  34561. var injection = {
  34562. /**
  34563. * @param {array} InjectedEventPluginOrder
  34564. * @public
  34565. */
  34566. injectEventPluginOrder: injectEventPluginOrder,
  34567. /**
  34568. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  34569. */
  34570. injectEventPluginsByName: injectEventPluginsByName
  34571. };
  34572. /**
  34573. * @param {object} inst The instance, which is the source of events.
  34574. * @param {string} registrationName Name of listener (e.g. `onClick`).
  34575. * @return {?function} The stored callback.
  34576. */
  34577. function getListener(inst, registrationName) {
  34578. var listener = void 0;
  34579. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  34580. // live here; needs to be moved to a better place soon
  34581. var stateNode = inst.stateNode;
  34582. if (!stateNode) {
  34583. // Work in progress (ex: onload events in incremental mode).
  34584. return null;
  34585. }
  34586. var props = getFiberCurrentPropsFromNode(stateNode);
  34587. if (!props) {
  34588. // Work in progress.
  34589. return null;
  34590. }
  34591. listener = props[registrationName];
  34592. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  34593. return null;
  34594. }
  34595. !(!listener || typeof listener === 'function') ? invariant(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener) : void 0;
  34596. return listener;
  34597. }
  34598. /**
  34599. * Allows registered plugins an opportunity to extract events from top-level
  34600. * native browser events.
  34601. *
  34602. * @return {*} An accumulation of synthetic events.
  34603. * @internal
  34604. */
  34605. function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34606. var events = null;
  34607. for (var i = 0; i < plugins.length; i++) {
  34608. // Not every plugin in the ordering may be loaded at runtime.
  34609. var possiblePlugin = plugins[i];
  34610. if (possiblePlugin) {
  34611. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34612. if (extractedEvents) {
  34613. events = accumulateInto(events, extractedEvents);
  34614. }
  34615. }
  34616. }
  34617. return events;
  34618. }
  34619. function runEventsInBatch(events) {
  34620. if (events !== null) {
  34621. eventQueue = accumulateInto(eventQueue, events);
  34622. }
  34623. // Set `eventQueue` to null before processing it so that we can tell if more
  34624. // events get enqueued while processing.
  34625. var processingEventQueue = eventQueue;
  34626. eventQueue = null;
  34627. if (!processingEventQueue) {
  34628. return;
  34629. }
  34630. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  34631. !!eventQueue ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : void 0;
  34632. // This would be a good time to rethrow if any of the event handlers threw.
  34633. rethrowCaughtError();
  34634. }
  34635. function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  34636. var events = extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  34637. runEventsInBatch(events);
  34638. }
  34639. var FunctionComponent = 0;
  34640. var ClassComponent = 1;
  34641. var IndeterminateComponent = 2; // Before we know whether it is function or class
  34642. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  34643. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  34644. var HostComponent = 5;
  34645. var HostText = 6;
  34646. var Fragment = 7;
  34647. var Mode = 8;
  34648. var ContextConsumer = 9;
  34649. var ContextProvider = 10;
  34650. var ForwardRef = 11;
  34651. var Profiler = 12;
  34652. var SuspenseComponent = 13;
  34653. var MemoComponent = 14;
  34654. var SimpleMemoComponent = 15;
  34655. var LazyComponent = 16;
  34656. var IncompleteClassComponent = 17;
  34657. var randomKey = Math.random().toString(36).slice(2);
  34658. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  34659. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  34660. function precacheFiberNode(hostInst, node) {
  34661. node[internalInstanceKey] = hostInst;
  34662. }
  34663. /**
  34664. * Given a DOM node, return the closest ReactDOMComponent or
  34665. * ReactDOMTextComponent instance ancestor.
  34666. */
  34667. function getClosestInstanceFromNode(node) {
  34668. if (node[internalInstanceKey]) {
  34669. return node[internalInstanceKey];
  34670. }
  34671. while (!node[internalInstanceKey]) {
  34672. if (node.parentNode) {
  34673. node = node.parentNode;
  34674. } else {
  34675. // Top of the tree. This node must not be part of a React tree (or is
  34676. // unmounted, potentially).
  34677. return null;
  34678. }
  34679. }
  34680. var inst = node[internalInstanceKey];
  34681. if (inst.tag === HostComponent || inst.tag === HostText) {
  34682. // In Fiber, this will always be the deepest root.
  34683. return inst;
  34684. }
  34685. return null;
  34686. }
  34687. /**
  34688. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  34689. * instance, or null if the node was not rendered by this React.
  34690. */
  34691. function getInstanceFromNode$1(node) {
  34692. var inst = node[internalInstanceKey];
  34693. if (inst) {
  34694. if (inst.tag === HostComponent || inst.tag === HostText) {
  34695. return inst;
  34696. } else {
  34697. return null;
  34698. }
  34699. }
  34700. return null;
  34701. }
  34702. /**
  34703. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  34704. * DOM node.
  34705. */
  34706. function getNodeFromInstance$1(inst) {
  34707. if (inst.tag === HostComponent || inst.tag === HostText) {
  34708. // In Fiber this, is just the state node right now. We assume it will be
  34709. // a host component or host text.
  34710. return inst.stateNode;
  34711. }
  34712. // Without this first invariant, passing a non-DOM-component triggers the next
  34713. // invariant for a missing parent, which is super confusing.
  34714. invariant(false, 'getNodeFromInstance: Invalid argument.');
  34715. }
  34716. function getFiberCurrentPropsFromNode$1(node) {
  34717. return node[internalEventHandlersKey] || null;
  34718. }
  34719. function updateFiberProps(node, props) {
  34720. node[internalEventHandlersKey] = props;
  34721. }
  34722. function getParent(inst) {
  34723. do {
  34724. inst = inst.return;
  34725. // TODO: If this is a HostRoot we might want to bail out.
  34726. // That is depending on if we want nested subtrees (layers) to bubble
  34727. // events to their parent. We could also go through parentNode on the
  34728. // host node but that wouldn't work for React Native and doesn't let us
  34729. // do the portal feature.
  34730. } while (inst && inst.tag !== HostComponent);
  34731. if (inst) {
  34732. return inst;
  34733. }
  34734. return null;
  34735. }
  34736. /**
  34737. * Return the lowest common ancestor of A and B, or null if they are in
  34738. * different trees.
  34739. */
  34740. function getLowestCommonAncestor(instA, instB) {
  34741. var depthA = 0;
  34742. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  34743. depthA++;
  34744. }
  34745. var depthB = 0;
  34746. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  34747. depthB++;
  34748. }
  34749. // If A is deeper, crawl up.
  34750. while (depthA - depthB > 0) {
  34751. instA = getParent(instA);
  34752. depthA--;
  34753. }
  34754. // If B is deeper, crawl up.
  34755. while (depthB - depthA > 0) {
  34756. instB = getParent(instB);
  34757. depthB--;
  34758. }
  34759. // Walk in lockstep until we find a match.
  34760. var depth = depthA;
  34761. while (depth--) {
  34762. if (instA === instB || instA === instB.alternate) {
  34763. return instA;
  34764. }
  34765. instA = getParent(instA);
  34766. instB = getParent(instB);
  34767. }
  34768. return null;
  34769. }
  34770. /**
  34771. * Return if A is an ancestor of B.
  34772. */
  34773. /**
  34774. * Return the parent instance of the passed-in instance.
  34775. */
  34776. /**
  34777. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  34778. */
  34779. function traverseTwoPhase(inst, fn, arg) {
  34780. var path = [];
  34781. while (inst) {
  34782. path.push(inst);
  34783. inst = getParent(inst);
  34784. }
  34785. var i = void 0;
  34786. for (i = path.length; i-- > 0;) {
  34787. fn(path[i], 'captured', arg);
  34788. }
  34789. for (i = 0; i < path.length; i++) {
  34790. fn(path[i], 'bubbled', arg);
  34791. }
  34792. }
  34793. /**
  34794. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  34795. * should would receive a `mouseEnter` or `mouseLeave` event.
  34796. *
  34797. * Does not invoke the callback on the nearest common ancestor because nothing
  34798. * "entered" or "left" that element.
  34799. */
  34800. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  34801. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  34802. var pathFrom = [];
  34803. while (true) {
  34804. if (!from) {
  34805. break;
  34806. }
  34807. if (from === common) {
  34808. break;
  34809. }
  34810. var alternate = from.alternate;
  34811. if (alternate !== null && alternate === common) {
  34812. break;
  34813. }
  34814. pathFrom.push(from);
  34815. from = getParent(from);
  34816. }
  34817. var pathTo = [];
  34818. while (true) {
  34819. if (!to) {
  34820. break;
  34821. }
  34822. if (to === common) {
  34823. break;
  34824. }
  34825. var _alternate = to.alternate;
  34826. if (_alternate !== null && _alternate === common) {
  34827. break;
  34828. }
  34829. pathTo.push(to);
  34830. to = getParent(to);
  34831. }
  34832. for (var i = 0; i < pathFrom.length; i++) {
  34833. fn(pathFrom[i], 'bubbled', argFrom);
  34834. }
  34835. for (var _i = pathTo.length; _i-- > 0;) {
  34836. fn(pathTo[_i], 'captured', argTo);
  34837. }
  34838. }
  34839. /**
  34840. * Some event types have a notion of different registration names for different
  34841. * "phases" of propagation. This finds listeners by a given phase.
  34842. */
  34843. function listenerAtPhase(inst, event, propagationPhase) {
  34844. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  34845. return getListener(inst, registrationName);
  34846. }
  34847. /**
  34848. * A small set of propagation patterns, each of which will accept a small amount
  34849. * of information, and generate a set of "dispatch ready event objects" - which
  34850. * are sets of events that have already been annotated with a set of dispatched
  34851. * listener functions/ids. The API is designed this way to discourage these
  34852. * propagation strategies from actually executing the dispatches, since we
  34853. * always want to collect the entire set of dispatches before executing even a
  34854. * single one.
  34855. */
  34856. /**
  34857. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  34858. * here, allows us to not have to bind or create functions for each event.
  34859. * Mutating the event's members allows us to not have to create a wrapping
  34860. * "dispatch" object that pairs the event with the listener.
  34861. */
  34862. function accumulateDirectionalDispatches(inst, phase, event) {
  34863. {
  34864. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  34865. }
  34866. var listener = listenerAtPhase(inst, event, phase);
  34867. if (listener) {
  34868. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34869. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34870. }
  34871. }
  34872. /**
  34873. * Collect dispatches (must be entirely collected before dispatching - see unit
  34874. * tests). Lazily allocate the array to conserve memory. We must loop through
  34875. * each event and perform the traversal for each one. We cannot perform a
  34876. * single traversal for the entire collection of events because each event may
  34877. * have a different target.
  34878. */
  34879. function accumulateTwoPhaseDispatchesSingle(event) {
  34880. if (event && event.dispatchConfig.phasedRegistrationNames) {
  34881. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  34882. }
  34883. }
  34884. /**
  34885. * Accumulates without regard to direction, does not look for phased
  34886. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  34887. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  34888. */
  34889. function accumulateDispatches(inst, ignoredDirection, event) {
  34890. if (inst && event && event.dispatchConfig.registrationName) {
  34891. var registrationName = event.dispatchConfig.registrationName;
  34892. var listener = getListener(inst, registrationName);
  34893. if (listener) {
  34894. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  34895. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  34896. }
  34897. }
  34898. }
  34899. /**
  34900. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  34901. * `dispatchMarker`.
  34902. * @param {SyntheticEvent} event
  34903. */
  34904. function accumulateDirectDispatchesSingle(event) {
  34905. if (event && event.dispatchConfig.registrationName) {
  34906. accumulateDispatches(event._targetInst, null, event);
  34907. }
  34908. }
  34909. function accumulateTwoPhaseDispatches(events) {
  34910. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  34911. }
  34912. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  34913. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  34914. }
  34915. function accumulateDirectDispatches(events) {
  34916. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  34917. }
  34918. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  34919. // Do not uses the below two methods directly!
  34920. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  34921. // (It is the only module that is allowed to access these methods.)
  34922. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  34923. return topLevelType;
  34924. }
  34925. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  34926. return topLevelType;
  34927. }
  34928. /**
  34929. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  34930. *
  34931. * @param {string} styleProp
  34932. * @param {string} eventName
  34933. * @returns {object}
  34934. */
  34935. function makePrefixMap(styleProp, eventName) {
  34936. var prefixes = {};
  34937. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  34938. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  34939. prefixes['Moz' + styleProp] = 'moz' + eventName;
  34940. return prefixes;
  34941. }
  34942. /**
  34943. * A list of event names to a configurable list of vendor prefixes.
  34944. */
  34945. var vendorPrefixes = {
  34946. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  34947. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  34948. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  34949. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  34950. };
  34951. /**
  34952. * Event names that have already been detected and prefixed (if applicable).
  34953. */
  34954. var prefixedEventNames = {};
  34955. /**
  34956. * Element to check for prefixes on.
  34957. */
  34958. var style = {};
  34959. /**
  34960. * Bootstrap if a DOM exists.
  34961. */
  34962. if (canUseDOM) {
  34963. style = document.createElement('div').style;
  34964. // On some platforms, in particular some releases of Android 4.x,
  34965. // the un-prefixed "animation" and "transition" properties are defined on the
  34966. // style object but the events that fire will still be prefixed, so we need
  34967. // to check if the un-prefixed events are usable, and if not remove them from the map.
  34968. if (!('AnimationEvent' in window)) {
  34969. delete vendorPrefixes.animationend.animation;
  34970. delete vendorPrefixes.animationiteration.animation;
  34971. delete vendorPrefixes.animationstart.animation;
  34972. }
  34973. // Same as above
  34974. if (!('TransitionEvent' in window)) {
  34975. delete vendorPrefixes.transitionend.transition;
  34976. }
  34977. }
  34978. /**
  34979. * Attempts to determine the correct vendor prefixed event name.
  34980. *
  34981. * @param {string} eventName
  34982. * @returns {string}
  34983. */
  34984. function getVendorPrefixedEventName(eventName) {
  34985. if (prefixedEventNames[eventName]) {
  34986. return prefixedEventNames[eventName];
  34987. } else if (!vendorPrefixes[eventName]) {
  34988. return eventName;
  34989. }
  34990. var prefixMap = vendorPrefixes[eventName];
  34991. for (var styleProp in prefixMap) {
  34992. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  34993. return prefixedEventNames[eventName] = prefixMap[styleProp];
  34994. }
  34995. }
  34996. return eventName;
  34997. }
  34998. /**
  34999. * To identify top level events in ReactDOM, we use constants defined by this
  35000. * module. This is the only module that uses the unsafe* methods to express
  35001. * that the constants actually correspond to the browser event names. This lets
  35002. * us save some bundle size by avoiding a top level type -> event name map.
  35003. * The rest of ReactDOM code should import top level types from this file.
  35004. */
  35005. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  35006. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  35007. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  35008. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  35009. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  35010. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  35011. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  35012. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  35013. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  35014. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  35015. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  35016. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  35017. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  35018. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  35019. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  35020. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  35021. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  35022. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  35023. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  35024. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  35025. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  35026. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  35027. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  35028. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  35029. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  35030. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  35031. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  35032. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  35033. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  35034. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  35035. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  35036. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  35037. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  35038. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  35039. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  35040. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  35041. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  35042. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  35043. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  35044. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  35045. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  35046. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  35047. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  35048. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  35049. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  35050. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  35051. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  35052. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  35053. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  35054. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  35055. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  35056. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  35057. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  35058. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  35059. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  35060. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  35061. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  35062. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  35063. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  35064. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  35065. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  35066. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  35067. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  35068. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  35069. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  35070. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  35071. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  35072. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  35073. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  35074. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  35075. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  35076. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  35077. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  35078. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  35079. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  35080. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  35081. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  35082. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  35083. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  35084. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  35085. // List of events that need to be individually attached to media elements.
  35086. // Note that events in this list will *not* be listened to at the top level
  35087. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  35088. 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];
  35089. function getRawEventName(topLevelType) {
  35090. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  35091. }
  35092. /**
  35093. * These variables store information about text content of a target node,
  35094. * allowing comparison of content before and after a given event.
  35095. *
  35096. * Identify the node where selection currently begins, then observe
  35097. * both its text content and its current position in the DOM. Since the
  35098. * browser may natively replace the target node during composition, we can
  35099. * use its position to find its replacement.
  35100. *
  35101. *
  35102. */
  35103. var root = null;
  35104. var startText = null;
  35105. var fallbackText = null;
  35106. function initialize(nativeEventTarget) {
  35107. root = nativeEventTarget;
  35108. startText = getText();
  35109. return true;
  35110. }
  35111. function reset() {
  35112. root = null;
  35113. startText = null;
  35114. fallbackText = null;
  35115. }
  35116. function getData() {
  35117. if (fallbackText) {
  35118. return fallbackText;
  35119. }
  35120. var start = void 0;
  35121. var startValue = startText;
  35122. var startLength = startValue.length;
  35123. var end = void 0;
  35124. var endValue = getText();
  35125. var endLength = endValue.length;
  35126. for (start = 0; start < startLength; start++) {
  35127. if (startValue[start] !== endValue[start]) {
  35128. break;
  35129. }
  35130. }
  35131. var minEnd = startLength - start;
  35132. for (end = 1; end <= minEnd; end++) {
  35133. if (startValue[startLength - end] !== endValue[endLength - end]) {
  35134. break;
  35135. }
  35136. }
  35137. var sliceTail = end > 1 ? 1 - end : undefined;
  35138. fallbackText = endValue.slice(start, sliceTail);
  35139. return fallbackText;
  35140. }
  35141. function getText() {
  35142. if ('value' in root) {
  35143. return root.value;
  35144. }
  35145. return root.textContent;
  35146. }
  35147. /* eslint valid-typeof: 0 */
  35148. var EVENT_POOL_SIZE = 10;
  35149. /**
  35150. * @interface Event
  35151. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  35152. */
  35153. var EventInterface = {
  35154. type: null,
  35155. target: null,
  35156. // currentTarget is set when dispatching; no use in copying it here
  35157. currentTarget: function () {
  35158. return null;
  35159. },
  35160. eventPhase: null,
  35161. bubbles: null,
  35162. cancelable: null,
  35163. timeStamp: function (event) {
  35164. return event.timeStamp || Date.now();
  35165. },
  35166. defaultPrevented: null,
  35167. isTrusted: null
  35168. };
  35169. function functionThatReturnsTrue() {
  35170. return true;
  35171. }
  35172. function functionThatReturnsFalse() {
  35173. return false;
  35174. }
  35175. /**
  35176. * Synthetic events are dispatched by event plugins, typically in response to a
  35177. * top-level event delegation handler.
  35178. *
  35179. * These systems should generally use pooling to reduce the frequency of garbage
  35180. * collection. The system should check `isPersistent` to determine whether the
  35181. * event should be released into the pool after being dispatched. Users that
  35182. * need a persisted event should invoke `persist`.
  35183. *
  35184. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  35185. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  35186. * DOM interface; custom application-specific events can also subclass this.
  35187. *
  35188. * @param {object} dispatchConfig Configuration used to dispatch this event.
  35189. * @param {*} targetInst Marker identifying the event target.
  35190. * @param {object} nativeEvent Native browser event.
  35191. * @param {DOMEventTarget} nativeEventTarget Target node.
  35192. */
  35193. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  35194. {
  35195. // these have a getter/setter for warnings
  35196. delete this.nativeEvent;
  35197. delete this.preventDefault;
  35198. delete this.stopPropagation;
  35199. delete this.isDefaultPrevented;
  35200. delete this.isPropagationStopped;
  35201. }
  35202. this.dispatchConfig = dispatchConfig;
  35203. this._targetInst = targetInst;
  35204. this.nativeEvent = nativeEvent;
  35205. var Interface = this.constructor.Interface;
  35206. for (var propName in Interface) {
  35207. if (!Interface.hasOwnProperty(propName)) {
  35208. continue;
  35209. }
  35210. {
  35211. delete this[propName]; // this has a getter/setter for warnings
  35212. }
  35213. var normalize = Interface[propName];
  35214. if (normalize) {
  35215. this[propName] = normalize(nativeEvent);
  35216. } else {
  35217. if (propName === 'target') {
  35218. this.target = nativeEventTarget;
  35219. } else {
  35220. this[propName] = nativeEvent[propName];
  35221. }
  35222. }
  35223. }
  35224. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  35225. if (defaultPrevented) {
  35226. this.isDefaultPrevented = functionThatReturnsTrue;
  35227. } else {
  35228. this.isDefaultPrevented = functionThatReturnsFalse;
  35229. }
  35230. this.isPropagationStopped = functionThatReturnsFalse;
  35231. return this;
  35232. }
  35233. _assign(SyntheticEvent.prototype, {
  35234. preventDefault: function () {
  35235. this.defaultPrevented = true;
  35236. var event = this.nativeEvent;
  35237. if (!event) {
  35238. return;
  35239. }
  35240. if (event.preventDefault) {
  35241. event.preventDefault();
  35242. } else if (typeof event.returnValue !== 'unknown') {
  35243. event.returnValue = false;
  35244. }
  35245. this.isDefaultPrevented = functionThatReturnsTrue;
  35246. },
  35247. stopPropagation: function () {
  35248. var event = this.nativeEvent;
  35249. if (!event) {
  35250. return;
  35251. }
  35252. if (event.stopPropagation) {
  35253. event.stopPropagation();
  35254. } else if (typeof event.cancelBubble !== 'unknown') {
  35255. // The ChangeEventPlugin registers a "propertychange" event for
  35256. // IE. This event does not support bubbling or cancelling, and
  35257. // any references to cancelBubble throw "Member not found". A
  35258. // typeof check of "unknown" circumvents this issue (and is also
  35259. // IE specific).
  35260. event.cancelBubble = true;
  35261. }
  35262. this.isPropagationStopped = functionThatReturnsTrue;
  35263. },
  35264. /**
  35265. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  35266. * them back into the pool. This allows a way to hold onto a reference that
  35267. * won't be added back into the pool.
  35268. */
  35269. persist: function () {
  35270. this.isPersistent = functionThatReturnsTrue;
  35271. },
  35272. /**
  35273. * Checks if this event should be released back into the pool.
  35274. *
  35275. * @return {boolean} True if this should not be released, false otherwise.
  35276. */
  35277. isPersistent: functionThatReturnsFalse,
  35278. /**
  35279. * `PooledClass` looks for `destructor` on each instance it releases.
  35280. */
  35281. destructor: function () {
  35282. var Interface = this.constructor.Interface;
  35283. for (var propName in Interface) {
  35284. {
  35285. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  35286. }
  35287. }
  35288. this.dispatchConfig = null;
  35289. this._targetInst = null;
  35290. this.nativeEvent = null;
  35291. this.isDefaultPrevented = functionThatReturnsFalse;
  35292. this.isPropagationStopped = functionThatReturnsFalse;
  35293. this._dispatchListeners = null;
  35294. this._dispatchInstances = null;
  35295. {
  35296. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  35297. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  35298. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  35299. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  35300. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  35301. }
  35302. }
  35303. });
  35304. SyntheticEvent.Interface = EventInterface;
  35305. /**
  35306. * Helper to reduce boilerplate when creating subclasses.
  35307. */
  35308. SyntheticEvent.extend = function (Interface) {
  35309. var Super = this;
  35310. var E = function () {};
  35311. E.prototype = Super.prototype;
  35312. var prototype = new E();
  35313. function Class() {
  35314. return Super.apply(this, arguments);
  35315. }
  35316. _assign(prototype, Class.prototype);
  35317. Class.prototype = prototype;
  35318. Class.prototype.constructor = Class;
  35319. Class.Interface = _assign({}, Super.Interface, Interface);
  35320. Class.extend = Super.extend;
  35321. addEventPoolingTo(Class);
  35322. return Class;
  35323. };
  35324. addEventPoolingTo(SyntheticEvent);
  35325. /**
  35326. * Helper to nullify syntheticEvent instance properties when destructing
  35327. *
  35328. * @param {String} propName
  35329. * @param {?object} getVal
  35330. * @return {object} defineProperty object
  35331. */
  35332. function getPooledWarningPropertyDefinition(propName, getVal) {
  35333. var isFunction = typeof getVal === 'function';
  35334. return {
  35335. configurable: true,
  35336. set: set,
  35337. get: get
  35338. };
  35339. function set(val) {
  35340. var action = isFunction ? 'setting the method' : 'setting the property';
  35341. warn(action, 'This is effectively a no-op');
  35342. return val;
  35343. }
  35344. function get() {
  35345. var action = isFunction ? 'accessing the method' : 'accessing the property';
  35346. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  35347. warn(action, result);
  35348. return getVal;
  35349. }
  35350. function warn(action, result) {
  35351. var warningCondition = false;
  35352. !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;
  35353. }
  35354. }
  35355. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  35356. var EventConstructor = this;
  35357. if (EventConstructor.eventPool.length) {
  35358. var instance = EventConstructor.eventPool.pop();
  35359. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  35360. return instance;
  35361. }
  35362. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  35363. }
  35364. function releasePooledEvent(event) {
  35365. var EventConstructor = this;
  35366. !(event instanceof EventConstructor) ? invariant(false, 'Trying to release an event instance into a pool of a different type.') : void 0;
  35367. event.destructor();
  35368. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  35369. EventConstructor.eventPool.push(event);
  35370. }
  35371. }
  35372. function addEventPoolingTo(EventConstructor) {
  35373. EventConstructor.eventPool = [];
  35374. EventConstructor.getPooled = getPooledEvent;
  35375. EventConstructor.release = releasePooledEvent;
  35376. }
  35377. /**
  35378. * @interface Event
  35379. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  35380. */
  35381. var SyntheticCompositionEvent = SyntheticEvent.extend({
  35382. data: null
  35383. });
  35384. /**
  35385. * @interface Event
  35386. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  35387. * /#events-inputevents
  35388. */
  35389. var SyntheticInputEvent = SyntheticEvent.extend({
  35390. data: null
  35391. });
  35392. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  35393. var START_KEYCODE = 229;
  35394. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  35395. var documentMode = null;
  35396. if (canUseDOM && 'documentMode' in document) {
  35397. documentMode = document.documentMode;
  35398. }
  35399. // Webkit offers a very useful `textInput` event that can be used to
  35400. // directly represent `beforeInput`. The IE `textinput` event is not as
  35401. // useful, so we don't use it.
  35402. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  35403. // In IE9+, we have access to composition events, but the data supplied
  35404. // by the native compositionend event may be incorrect. Japanese ideographic
  35405. // spaces, for instance (\u3000) are not recorded correctly.
  35406. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  35407. var SPACEBAR_CODE = 32;
  35408. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  35409. // Events and their corresponding property names.
  35410. var eventTypes = {
  35411. beforeInput: {
  35412. phasedRegistrationNames: {
  35413. bubbled: 'onBeforeInput',
  35414. captured: 'onBeforeInputCapture'
  35415. },
  35416. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  35417. },
  35418. compositionEnd: {
  35419. phasedRegistrationNames: {
  35420. bubbled: 'onCompositionEnd',
  35421. captured: 'onCompositionEndCapture'
  35422. },
  35423. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35424. },
  35425. compositionStart: {
  35426. phasedRegistrationNames: {
  35427. bubbled: 'onCompositionStart',
  35428. captured: 'onCompositionStartCapture'
  35429. },
  35430. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35431. },
  35432. compositionUpdate: {
  35433. phasedRegistrationNames: {
  35434. bubbled: 'onCompositionUpdate',
  35435. captured: 'onCompositionUpdateCapture'
  35436. },
  35437. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  35438. }
  35439. };
  35440. // Track whether we've ever handled a keypress on the space key.
  35441. var hasSpaceKeypress = false;
  35442. /**
  35443. * Return whether a native keypress event is assumed to be a command.
  35444. * This is required because Firefox fires `keypress` events for key commands
  35445. * (cut, copy, select-all, etc.) even though no character is inserted.
  35446. */
  35447. function isKeypressCommand(nativeEvent) {
  35448. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  35449. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  35450. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  35451. }
  35452. /**
  35453. * Translate native top level events into event types.
  35454. *
  35455. * @param {string} topLevelType
  35456. * @return {object}
  35457. */
  35458. function getCompositionEventType(topLevelType) {
  35459. switch (topLevelType) {
  35460. case TOP_COMPOSITION_START:
  35461. return eventTypes.compositionStart;
  35462. case TOP_COMPOSITION_END:
  35463. return eventTypes.compositionEnd;
  35464. case TOP_COMPOSITION_UPDATE:
  35465. return eventTypes.compositionUpdate;
  35466. }
  35467. }
  35468. /**
  35469. * Does our fallback best-guess model think this event signifies that
  35470. * composition has begun?
  35471. *
  35472. * @param {string} topLevelType
  35473. * @param {object} nativeEvent
  35474. * @return {boolean}
  35475. */
  35476. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  35477. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  35478. }
  35479. /**
  35480. * Does our fallback mode think that this event is the end of composition?
  35481. *
  35482. * @param {string} topLevelType
  35483. * @param {object} nativeEvent
  35484. * @return {boolean}
  35485. */
  35486. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  35487. switch (topLevelType) {
  35488. case TOP_KEY_UP:
  35489. // Command keys insert or clear IME input.
  35490. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  35491. case TOP_KEY_DOWN:
  35492. // Expect IME keyCode on each keydown. If we get any other
  35493. // code we must have exited earlier.
  35494. return nativeEvent.keyCode !== START_KEYCODE;
  35495. case TOP_KEY_PRESS:
  35496. case TOP_MOUSE_DOWN:
  35497. case TOP_BLUR:
  35498. // Events are not possible without cancelling IME.
  35499. return true;
  35500. default:
  35501. return false;
  35502. }
  35503. }
  35504. /**
  35505. * Google Input Tools provides composition data via a CustomEvent,
  35506. * with the `data` property populated in the `detail` object. If this
  35507. * is available on the event object, use it. If not, this is a plain
  35508. * composition event and we have nothing special to extract.
  35509. *
  35510. * @param {object} nativeEvent
  35511. * @return {?string}
  35512. */
  35513. function getDataFromCustomEvent(nativeEvent) {
  35514. var detail = nativeEvent.detail;
  35515. if (typeof detail === 'object' && 'data' in detail) {
  35516. return detail.data;
  35517. }
  35518. return null;
  35519. }
  35520. /**
  35521. * Check if a composition event was triggered by Korean IME.
  35522. * Our fallback mode does not work well with IE's Korean IME,
  35523. * so just use native composition events when Korean IME is used.
  35524. * Although CompositionEvent.locale property is deprecated,
  35525. * it is available in IE, where our fallback mode is enabled.
  35526. *
  35527. * @param {object} nativeEvent
  35528. * @return {boolean}
  35529. */
  35530. function isUsingKoreanIME(nativeEvent) {
  35531. return nativeEvent.locale === 'ko';
  35532. }
  35533. // Track the current IME composition status, if any.
  35534. var isComposing = false;
  35535. /**
  35536. * @return {?object} A SyntheticCompositionEvent.
  35537. */
  35538. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35539. var eventType = void 0;
  35540. var fallbackData = void 0;
  35541. if (canUseCompositionEvent) {
  35542. eventType = getCompositionEventType(topLevelType);
  35543. } else if (!isComposing) {
  35544. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  35545. eventType = eventTypes.compositionStart;
  35546. }
  35547. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35548. eventType = eventTypes.compositionEnd;
  35549. }
  35550. if (!eventType) {
  35551. return null;
  35552. }
  35553. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  35554. // The current composition is stored statically and must not be
  35555. // overwritten while composition continues.
  35556. if (!isComposing && eventType === eventTypes.compositionStart) {
  35557. isComposing = initialize(nativeEventTarget);
  35558. } else if (eventType === eventTypes.compositionEnd) {
  35559. if (isComposing) {
  35560. fallbackData = getData();
  35561. }
  35562. }
  35563. }
  35564. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  35565. if (fallbackData) {
  35566. // Inject data generated from fallback path into the synthetic event.
  35567. // This matches the property of native CompositionEventInterface.
  35568. event.data = fallbackData;
  35569. } else {
  35570. var customData = getDataFromCustomEvent(nativeEvent);
  35571. if (customData !== null) {
  35572. event.data = customData;
  35573. }
  35574. }
  35575. accumulateTwoPhaseDispatches(event);
  35576. return event;
  35577. }
  35578. /**
  35579. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  35580. * @param {object} nativeEvent Native browser event.
  35581. * @return {?string} The string corresponding to this `beforeInput` event.
  35582. */
  35583. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  35584. switch (topLevelType) {
  35585. case TOP_COMPOSITION_END:
  35586. return getDataFromCustomEvent(nativeEvent);
  35587. case TOP_KEY_PRESS:
  35588. /**
  35589. * If native `textInput` events are available, our goal is to make
  35590. * use of them. However, there is a special case: the spacebar key.
  35591. * In Webkit, preventing default on a spacebar `textInput` event
  35592. * cancels character insertion, but it *also* causes the browser
  35593. * to fall back to its default spacebar behavior of scrolling the
  35594. * page.
  35595. *
  35596. * Tracking at:
  35597. * https://code.google.com/p/chromium/issues/detail?id=355103
  35598. *
  35599. * To avoid this issue, use the keypress event as if no `textInput`
  35600. * event is available.
  35601. */
  35602. var which = nativeEvent.which;
  35603. if (which !== SPACEBAR_CODE) {
  35604. return null;
  35605. }
  35606. hasSpaceKeypress = true;
  35607. return SPACEBAR_CHAR;
  35608. case TOP_TEXT_INPUT:
  35609. // Record the characters to be added to the DOM.
  35610. var chars = nativeEvent.data;
  35611. // If it's a spacebar character, assume that we have already handled
  35612. // it at the keypress level and bail immediately. Android Chrome
  35613. // doesn't give us keycodes, so we need to ignore it.
  35614. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  35615. return null;
  35616. }
  35617. return chars;
  35618. default:
  35619. // For other native event types, do nothing.
  35620. return null;
  35621. }
  35622. }
  35623. /**
  35624. * For browsers that do not provide the `textInput` event, extract the
  35625. * appropriate string to use for SyntheticInputEvent.
  35626. *
  35627. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  35628. * @param {object} nativeEvent Native browser event.
  35629. * @return {?string} The fallback string for this `beforeInput` event.
  35630. */
  35631. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  35632. // If we are currently composing (IME) and using a fallback to do so,
  35633. // try to extract the composed characters from the fallback object.
  35634. // If composition event is available, we extract a string only at
  35635. // compositionevent, otherwise extract it at fallback events.
  35636. if (isComposing) {
  35637. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  35638. var chars = getData();
  35639. reset();
  35640. isComposing = false;
  35641. return chars;
  35642. }
  35643. return null;
  35644. }
  35645. switch (topLevelType) {
  35646. case TOP_PASTE:
  35647. // If a paste event occurs after a keypress, throw out the input
  35648. // chars. Paste events should not lead to BeforeInput events.
  35649. return null;
  35650. case TOP_KEY_PRESS:
  35651. /**
  35652. * As of v27, Firefox may fire keypress events even when no character
  35653. * will be inserted. A few possibilities:
  35654. *
  35655. * - `which` is `0`. Arrow keys, Esc key, etc.
  35656. *
  35657. * - `which` is the pressed key code, but no char is available.
  35658. * Ex: 'AltGr + d` in Polish. There is no modified character for
  35659. * this key combination and no character is inserted into the
  35660. * document, but FF fires the keypress for char code `100` anyway.
  35661. * No `input` event will occur.
  35662. *
  35663. * - `which` is the pressed key code, but a command combination is
  35664. * being used. Ex: `Cmd+C`. No character is inserted, and no
  35665. * `input` event will occur.
  35666. */
  35667. if (!isKeypressCommand(nativeEvent)) {
  35668. // IE fires the `keypress` event when a user types an emoji via
  35669. // Touch keyboard of Windows. In such a case, the `char` property
  35670. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  35671. // is 2, the property `which` does not represent an emoji correctly.
  35672. // In such a case, we directly return the `char` property instead of
  35673. // using `which`.
  35674. if (nativeEvent.char && nativeEvent.char.length > 1) {
  35675. return nativeEvent.char;
  35676. } else if (nativeEvent.which) {
  35677. return String.fromCharCode(nativeEvent.which);
  35678. }
  35679. }
  35680. return null;
  35681. case TOP_COMPOSITION_END:
  35682. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  35683. default:
  35684. return null;
  35685. }
  35686. }
  35687. /**
  35688. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  35689. * `textInput` or fallback behavior.
  35690. *
  35691. * @return {?object} A SyntheticInputEvent.
  35692. */
  35693. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35694. var chars = void 0;
  35695. if (canUseTextInputEvent) {
  35696. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  35697. } else {
  35698. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  35699. }
  35700. // If no characters are being inserted, no BeforeInput event should
  35701. // be fired.
  35702. if (!chars) {
  35703. return null;
  35704. }
  35705. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  35706. event.data = chars;
  35707. accumulateTwoPhaseDispatches(event);
  35708. return event;
  35709. }
  35710. /**
  35711. * Create an `onBeforeInput` event to match
  35712. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  35713. *
  35714. * This event plugin is based on the native `textInput` event
  35715. * available in Chrome, Safari, Opera, and IE. This event fires after
  35716. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  35717. *
  35718. * `beforeInput` is spec'd but not implemented in any browsers, and
  35719. * the `input` event does not provide any useful information about what has
  35720. * actually been added, contrary to the spec. Thus, `textInput` is the best
  35721. * available event to identify the characters that have actually been inserted
  35722. * into the target node.
  35723. *
  35724. * This plugin is also responsible for emitting `composition` events, thus
  35725. * allowing us to share composition fallback code for both `beforeInput` and
  35726. * `composition` event types.
  35727. */
  35728. var BeforeInputEventPlugin = {
  35729. eventTypes: eventTypes,
  35730. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  35731. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35732. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  35733. if (composition === null) {
  35734. return beforeInput;
  35735. }
  35736. if (beforeInput === null) {
  35737. return composition;
  35738. }
  35739. return [composition, beforeInput];
  35740. }
  35741. };
  35742. // Use to restore controlled state after a change event has fired.
  35743. var restoreImpl = null;
  35744. var restoreTarget = null;
  35745. var restoreQueue = null;
  35746. function restoreStateOfTarget(target) {
  35747. // We perform this translation at the end of the event loop so that we
  35748. // always receive the correct fiber here
  35749. var internalInstance = getInstanceFromNode(target);
  35750. if (!internalInstance) {
  35751. // Unmounted
  35752. return;
  35753. }
  35754. !(typeof restoreImpl === 'function') ? invariant(false, 'setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  35755. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  35756. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  35757. }
  35758. function setRestoreImplementation(impl) {
  35759. restoreImpl = impl;
  35760. }
  35761. function enqueueStateRestore(target) {
  35762. if (restoreTarget) {
  35763. if (restoreQueue) {
  35764. restoreQueue.push(target);
  35765. } else {
  35766. restoreQueue = [target];
  35767. }
  35768. } else {
  35769. restoreTarget = target;
  35770. }
  35771. }
  35772. function needsStateRestore() {
  35773. return restoreTarget !== null || restoreQueue !== null;
  35774. }
  35775. function restoreStateIfNeeded() {
  35776. if (!restoreTarget) {
  35777. return;
  35778. }
  35779. var target = restoreTarget;
  35780. var queuedTargets = restoreQueue;
  35781. restoreTarget = null;
  35782. restoreQueue = null;
  35783. restoreStateOfTarget(target);
  35784. if (queuedTargets) {
  35785. for (var i = 0; i < queuedTargets.length; i++) {
  35786. restoreStateOfTarget(queuedTargets[i]);
  35787. }
  35788. }
  35789. }
  35790. // Used as a way to call batchedUpdates when we don't have a reference to
  35791. // the renderer. Such as when we're dispatching events or if third party
  35792. // libraries need to call batchedUpdates. Eventually, this API will go away when
  35793. // everything is batched by default. We'll then have a similar API to opt-out of
  35794. // scheduled work and instead do synchronous work.
  35795. // Defaults
  35796. var _batchedUpdatesImpl = function (fn, bookkeeping) {
  35797. return fn(bookkeeping);
  35798. };
  35799. var _interactiveUpdatesImpl = function (fn, a, b) {
  35800. return fn(a, b);
  35801. };
  35802. var _flushInteractiveUpdatesImpl = function () {};
  35803. var isBatching = false;
  35804. function batchedUpdates(fn, bookkeeping) {
  35805. if (isBatching) {
  35806. // If we are currently inside another batch, we need to wait until it
  35807. // fully completes before restoring state.
  35808. return fn(bookkeeping);
  35809. }
  35810. isBatching = true;
  35811. try {
  35812. return _batchedUpdatesImpl(fn, bookkeeping);
  35813. } finally {
  35814. // Here we wait until all updates have propagated, which is important
  35815. // when using controlled components within layers:
  35816. // https://github.com/facebook/react/issues/1698
  35817. // Then we restore state of any controlled component.
  35818. isBatching = false;
  35819. var controlledComponentsHavePendingUpdates = needsStateRestore();
  35820. if (controlledComponentsHavePendingUpdates) {
  35821. // If a controlled event was fired, we may need to restore the state of
  35822. // the DOM node back to the controlled value. This is necessary when React
  35823. // bails out of the update without touching the DOM.
  35824. _flushInteractiveUpdatesImpl();
  35825. restoreStateIfNeeded();
  35826. }
  35827. }
  35828. }
  35829. function interactiveUpdates(fn, a, b) {
  35830. return _interactiveUpdatesImpl(fn, a, b);
  35831. }
  35832. function setBatchingImplementation(batchedUpdatesImpl, interactiveUpdatesImpl, flushInteractiveUpdatesImpl) {
  35833. _batchedUpdatesImpl = batchedUpdatesImpl;
  35834. _interactiveUpdatesImpl = interactiveUpdatesImpl;
  35835. _flushInteractiveUpdatesImpl = flushInteractiveUpdatesImpl;
  35836. }
  35837. /**
  35838. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  35839. */
  35840. var supportedInputTypes = {
  35841. color: true,
  35842. date: true,
  35843. datetime: true,
  35844. 'datetime-local': true,
  35845. email: true,
  35846. month: true,
  35847. number: true,
  35848. password: true,
  35849. range: true,
  35850. search: true,
  35851. tel: true,
  35852. text: true,
  35853. time: true,
  35854. url: true,
  35855. week: true
  35856. };
  35857. function isTextInputElement(elem) {
  35858. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  35859. if (nodeName === 'input') {
  35860. return !!supportedInputTypes[elem.type];
  35861. }
  35862. if (nodeName === 'textarea') {
  35863. return true;
  35864. }
  35865. return false;
  35866. }
  35867. /**
  35868. * HTML nodeType values that represent the type of the node
  35869. */
  35870. var ELEMENT_NODE = 1;
  35871. var TEXT_NODE = 3;
  35872. var COMMENT_NODE = 8;
  35873. var DOCUMENT_NODE = 9;
  35874. var DOCUMENT_FRAGMENT_NODE = 11;
  35875. /**
  35876. * Gets the target node from a native browser event by accounting for
  35877. * inconsistencies in browser DOM APIs.
  35878. *
  35879. * @param {object} nativeEvent Native browser event.
  35880. * @return {DOMEventTarget} Target node.
  35881. */
  35882. function getEventTarget(nativeEvent) {
  35883. // Fallback to nativeEvent.srcElement for IE9
  35884. // https://github.com/facebook/react/issues/12506
  35885. var target = nativeEvent.target || nativeEvent.srcElement || window;
  35886. // Normalize SVG <use> element events #4963
  35887. if (target.correspondingUseElement) {
  35888. target = target.correspondingUseElement;
  35889. }
  35890. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  35891. // @see http://www.quirksmode.org/js/events_properties.html
  35892. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  35893. }
  35894. /**
  35895. * Checks if an event is supported in the current execution environment.
  35896. *
  35897. * NOTE: This will not work correctly for non-generic events such as `change`,
  35898. * `reset`, `load`, `error`, and `select`.
  35899. *
  35900. * Borrows from Modernizr.
  35901. *
  35902. * @param {string} eventNameSuffix Event name, e.g. "click".
  35903. * @return {boolean} True if the event is supported.
  35904. * @internal
  35905. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  35906. */
  35907. function isEventSupported(eventNameSuffix) {
  35908. if (!canUseDOM) {
  35909. return false;
  35910. }
  35911. var eventName = 'on' + eventNameSuffix;
  35912. var isSupported = eventName in document;
  35913. if (!isSupported) {
  35914. var element = document.createElement('div');
  35915. element.setAttribute(eventName, 'return;');
  35916. isSupported = typeof element[eventName] === 'function';
  35917. }
  35918. return isSupported;
  35919. }
  35920. function isCheckable(elem) {
  35921. var type = elem.type;
  35922. var nodeName = elem.nodeName;
  35923. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  35924. }
  35925. function getTracker(node) {
  35926. return node._valueTracker;
  35927. }
  35928. function detachTracker(node) {
  35929. node._valueTracker = null;
  35930. }
  35931. function getValueFromNode(node) {
  35932. var value = '';
  35933. if (!node) {
  35934. return value;
  35935. }
  35936. if (isCheckable(node)) {
  35937. value = node.checked ? 'true' : 'false';
  35938. } else {
  35939. value = node.value;
  35940. }
  35941. return value;
  35942. }
  35943. function trackValueOnNode(node) {
  35944. var valueField = isCheckable(node) ? 'checked' : 'value';
  35945. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  35946. var currentValue = '' + node[valueField];
  35947. // if someone has already defined a value or Safari, then bail
  35948. // and don't track value will cause over reporting of changes,
  35949. // but it's better then a hard failure
  35950. // (needed for certain tests that spyOn input values and Safari)
  35951. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  35952. return;
  35953. }
  35954. var get = descriptor.get,
  35955. set = descriptor.set;
  35956. Object.defineProperty(node, valueField, {
  35957. configurable: true,
  35958. get: function () {
  35959. return get.call(this);
  35960. },
  35961. set: function (value) {
  35962. currentValue = '' + value;
  35963. set.call(this, value);
  35964. }
  35965. });
  35966. // We could've passed this the first time
  35967. // but it triggers a bug in IE11 and Edge 14/15.
  35968. // Calling defineProperty() again should be equivalent.
  35969. // https://github.com/facebook/react/issues/11768
  35970. Object.defineProperty(node, valueField, {
  35971. enumerable: descriptor.enumerable
  35972. });
  35973. var tracker = {
  35974. getValue: function () {
  35975. return currentValue;
  35976. },
  35977. setValue: function (value) {
  35978. currentValue = '' + value;
  35979. },
  35980. stopTracking: function () {
  35981. detachTracker(node);
  35982. delete node[valueField];
  35983. }
  35984. };
  35985. return tracker;
  35986. }
  35987. function track(node) {
  35988. if (getTracker(node)) {
  35989. return;
  35990. }
  35991. // TODO: Once it's just Fiber we can move this to node._wrapperState
  35992. node._valueTracker = trackValueOnNode(node);
  35993. }
  35994. function updateValueIfChanged(node) {
  35995. if (!node) {
  35996. return false;
  35997. }
  35998. var tracker = getTracker(node);
  35999. // if there is no tracker at this point it's unlikely
  36000. // that trying again will succeed
  36001. if (!tracker) {
  36002. return true;
  36003. }
  36004. var lastValue = tracker.getValue();
  36005. var nextValue = getValueFromNode(node);
  36006. if (nextValue !== lastValue) {
  36007. tracker.setValue(nextValue);
  36008. return true;
  36009. }
  36010. return false;
  36011. }
  36012. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  36013. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  36014. var describeComponentFrame = function (name, source, ownerName) {
  36015. var sourceInfo = '';
  36016. if (source) {
  36017. var path = source.fileName;
  36018. var fileName = path.replace(BEFORE_SLASH_RE, '');
  36019. {
  36020. // In DEV, include code for a common special case:
  36021. // prefer "folder/index.js" instead of just "index.js".
  36022. if (/^index\./.test(fileName)) {
  36023. var match = path.match(BEFORE_SLASH_RE);
  36024. if (match) {
  36025. var pathBeforeSlash = match[1];
  36026. if (pathBeforeSlash) {
  36027. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  36028. fileName = folderName + '/' + fileName;
  36029. }
  36030. }
  36031. }
  36032. }
  36033. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  36034. } else if (ownerName) {
  36035. sourceInfo = ' (created by ' + ownerName + ')';
  36036. }
  36037. return '\n in ' + (name || 'Unknown') + sourceInfo;
  36038. };
  36039. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  36040. // nor polyfill, then a plain number is used for performance.
  36041. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  36042. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  36043. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  36044. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  36045. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  36046. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  36047. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  36048. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  36049. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  36050. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  36051. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  36052. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  36053. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  36054. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  36055. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  36056. function getIteratorFn(maybeIterable) {
  36057. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  36058. return null;
  36059. }
  36060. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  36061. if (typeof maybeIterator === 'function') {
  36062. return maybeIterator;
  36063. }
  36064. return null;
  36065. }
  36066. var Pending = 0;
  36067. var Resolved = 1;
  36068. var Rejected = 2;
  36069. function refineResolvedLazyComponent(lazyComponent) {
  36070. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  36071. }
  36072. function getWrappedName(outerType, innerType, wrapperName) {
  36073. var functionName = innerType.displayName || innerType.name || '';
  36074. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  36075. }
  36076. function getComponentName(type) {
  36077. if (type == null) {
  36078. // Host root, text node or just invalid type.
  36079. return null;
  36080. }
  36081. {
  36082. if (typeof type.tag === 'number') {
  36083. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  36084. }
  36085. }
  36086. if (typeof type === 'function') {
  36087. return type.displayName || type.name || null;
  36088. }
  36089. if (typeof type === 'string') {
  36090. return type;
  36091. }
  36092. switch (type) {
  36093. case REACT_CONCURRENT_MODE_TYPE:
  36094. return 'ConcurrentMode';
  36095. case REACT_FRAGMENT_TYPE:
  36096. return 'Fragment';
  36097. case REACT_PORTAL_TYPE:
  36098. return 'Portal';
  36099. case REACT_PROFILER_TYPE:
  36100. return 'Profiler';
  36101. case REACT_STRICT_MODE_TYPE:
  36102. return 'StrictMode';
  36103. case REACT_SUSPENSE_TYPE:
  36104. return 'Suspense';
  36105. }
  36106. if (typeof type === 'object') {
  36107. switch (type.$$typeof) {
  36108. case REACT_CONTEXT_TYPE:
  36109. return 'Context.Consumer';
  36110. case REACT_PROVIDER_TYPE:
  36111. return 'Context.Provider';
  36112. case REACT_FORWARD_REF_TYPE:
  36113. return getWrappedName(type, type.render, 'ForwardRef');
  36114. case REACT_MEMO_TYPE:
  36115. return getComponentName(type.type);
  36116. case REACT_LAZY_TYPE:
  36117. {
  36118. var thenable = type;
  36119. var resolvedThenable = refineResolvedLazyComponent(thenable);
  36120. if (resolvedThenable) {
  36121. return getComponentName(resolvedThenable);
  36122. }
  36123. }
  36124. }
  36125. }
  36126. return null;
  36127. }
  36128. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36129. function describeFiber(fiber) {
  36130. switch (fiber.tag) {
  36131. case IndeterminateComponent:
  36132. case LazyComponent:
  36133. case FunctionComponent:
  36134. case ClassComponent:
  36135. case HostComponent:
  36136. case Mode:
  36137. case SuspenseComponent:
  36138. var owner = fiber._debugOwner;
  36139. var source = fiber._debugSource;
  36140. var name = getComponentName(fiber.type);
  36141. var ownerName = null;
  36142. if (owner) {
  36143. ownerName = getComponentName(owner.type);
  36144. }
  36145. return describeComponentFrame(name, source, ownerName);
  36146. default:
  36147. return '';
  36148. }
  36149. }
  36150. function getStackByFiberInDevAndProd(workInProgress) {
  36151. var info = '';
  36152. var node = workInProgress;
  36153. do {
  36154. info += describeFiber(node);
  36155. node = node.return;
  36156. } while (node);
  36157. return info;
  36158. }
  36159. var current = null;
  36160. var phase = null;
  36161. function getCurrentFiberOwnerNameInDevOrNull() {
  36162. {
  36163. if (current === null) {
  36164. return null;
  36165. }
  36166. var owner = current._debugOwner;
  36167. if (owner !== null && typeof owner !== 'undefined') {
  36168. return getComponentName(owner.type);
  36169. }
  36170. }
  36171. return null;
  36172. }
  36173. function getCurrentFiberStackInDev() {
  36174. {
  36175. if (current === null) {
  36176. return '';
  36177. }
  36178. // Safe because if current fiber exists, we are reconciling,
  36179. // and it is guaranteed to be the work-in-progress version.
  36180. return getStackByFiberInDevAndProd(current);
  36181. }
  36182. return '';
  36183. }
  36184. function resetCurrentFiber() {
  36185. {
  36186. ReactDebugCurrentFrame.getCurrentStack = null;
  36187. current = null;
  36188. phase = null;
  36189. }
  36190. }
  36191. function setCurrentFiber(fiber) {
  36192. {
  36193. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  36194. current = fiber;
  36195. phase = null;
  36196. }
  36197. }
  36198. function setCurrentPhase(lifeCyclePhase) {
  36199. {
  36200. phase = lifeCyclePhase;
  36201. }
  36202. }
  36203. /**
  36204. * Similar to invariant but only logs a warning if the condition is not met.
  36205. * This can be used to log issues in development environments in critical
  36206. * paths. Removing the logging code for production environments will keep the
  36207. * same logic and follow the same code paths.
  36208. */
  36209. var warning = warningWithoutStack$1;
  36210. {
  36211. warning = function (condition, format) {
  36212. if (condition) {
  36213. return;
  36214. }
  36215. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  36216. var stack = ReactDebugCurrentFrame.getStackAddendum();
  36217. // eslint-disable-next-line react-internal/warning-and-invariant-args
  36218. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  36219. args[_key - 2] = arguments[_key];
  36220. }
  36221. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  36222. };
  36223. }
  36224. var warning$1 = warning;
  36225. // A reserved attribute.
  36226. // It is handled by React separately and shouldn't be written to the DOM.
  36227. var RESERVED = 0;
  36228. // A simple string attribute.
  36229. // Attributes that aren't in the whitelist are presumed to have this type.
  36230. var STRING = 1;
  36231. // A string attribute that accepts booleans in React. In HTML, these are called
  36232. // "enumerated" attributes with "true" and "false" as possible values.
  36233. // When true, it should be set to a "true" string.
  36234. // When false, it should be set to a "false" string.
  36235. var BOOLEANISH_STRING = 2;
  36236. // A real boolean attribute.
  36237. // When true, it should be present (set either to an empty string or its name).
  36238. // When false, it should be omitted.
  36239. var BOOLEAN = 3;
  36240. // An attribute that can be used as a flag as well as with a value.
  36241. // When true, it should be present (set either to an empty string or its name).
  36242. // When false, it should be omitted.
  36243. // For any other value, should be present with that value.
  36244. var OVERLOADED_BOOLEAN = 4;
  36245. // An attribute that must be numeric or parse as a numeric.
  36246. // When falsy, it should be removed.
  36247. var NUMERIC = 5;
  36248. // An attribute that must be positive numeric or parse as a positive numeric.
  36249. // When falsy, it should be removed.
  36250. var POSITIVE_NUMERIC = 6;
  36251. /* eslint-disable max-len */
  36252. 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';
  36253. /* eslint-enable max-len */
  36254. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  36255. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  36256. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  36257. var hasOwnProperty = Object.prototype.hasOwnProperty;
  36258. var illegalAttributeNameCache = {};
  36259. var validatedAttributeNameCache = {};
  36260. function isAttributeNameSafe(attributeName) {
  36261. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  36262. return true;
  36263. }
  36264. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  36265. return false;
  36266. }
  36267. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  36268. validatedAttributeNameCache[attributeName] = true;
  36269. return true;
  36270. }
  36271. illegalAttributeNameCache[attributeName] = true;
  36272. {
  36273. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  36274. }
  36275. return false;
  36276. }
  36277. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  36278. if (propertyInfo !== null) {
  36279. return propertyInfo.type === RESERVED;
  36280. }
  36281. if (isCustomComponentTag) {
  36282. return false;
  36283. }
  36284. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  36285. return true;
  36286. }
  36287. return false;
  36288. }
  36289. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  36290. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  36291. return false;
  36292. }
  36293. switch (typeof value) {
  36294. case 'function':
  36295. // $FlowIssue symbol is perfectly valid here
  36296. case 'symbol':
  36297. // eslint-disable-line
  36298. return true;
  36299. case 'boolean':
  36300. {
  36301. if (isCustomComponentTag) {
  36302. return false;
  36303. }
  36304. if (propertyInfo !== null) {
  36305. return !propertyInfo.acceptsBooleans;
  36306. } else {
  36307. var prefix = name.toLowerCase().slice(0, 5);
  36308. return prefix !== 'data-' && prefix !== 'aria-';
  36309. }
  36310. }
  36311. default:
  36312. return false;
  36313. }
  36314. }
  36315. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  36316. if (value === null || typeof value === 'undefined') {
  36317. return true;
  36318. }
  36319. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  36320. return true;
  36321. }
  36322. if (isCustomComponentTag) {
  36323. return false;
  36324. }
  36325. if (propertyInfo !== null) {
  36326. switch (propertyInfo.type) {
  36327. case BOOLEAN:
  36328. return !value;
  36329. case OVERLOADED_BOOLEAN:
  36330. return value === false;
  36331. case NUMERIC:
  36332. return isNaN(value);
  36333. case POSITIVE_NUMERIC:
  36334. return isNaN(value) || value < 1;
  36335. }
  36336. }
  36337. return false;
  36338. }
  36339. function getPropertyInfo(name) {
  36340. return properties.hasOwnProperty(name) ? properties[name] : null;
  36341. }
  36342. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) {
  36343. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  36344. this.attributeName = attributeName;
  36345. this.attributeNamespace = attributeNamespace;
  36346. this.mustUseProperty = mustUseProperty;
  36347. this.propertyName = name;
  36348. this.type = type;
  36349. }
  36350. // When adding attributes to this list, be sure to also add them to
  36351. // the `possibleStandardNames` module to ensure casing and incorrect
  36352. // name warnings.
  36353. var properties = {};
  36354. // These props are reserved by React. They shouldn't be written to the DOM.
  36355. ['children', 'dangerouslySetInnerHTML',
  36356. // TODO: This prevents the assignment of defaultValue to regular
  36357. // elements (not just inputs). Now that ReactDOMInput assigns to the
  36358. // defaultValue property -- do we need this?
  36359. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  36360. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  36361. name, // attributeName
  36362. null);
  36363. } // attributeNamespace
  36364. );
  36365. // A few React string attributes have a different name.
  36366. // This is a mapping from React prop names to the attribute names.
  36367. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  36368. var name = _ref[0],
  36369. attributeName = _ref[1];
  36370. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36371. attributeName, // attributeName
  36372. null);
  36373. } // attributeNamespace
  36374. );
  36375. // These are "enumerated" HTML attributes that accept "true" and "false".
  36376. // In React, we let users pass `true` and `false` even though technically
  36377. // these aren't boolean attributes (they are coerced to strings).
  36378. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  36379. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36380. name.toLowerCase(), // attributeName
  36381. null);
  36382. } // attributeNamespace
  36383. );
  36384. // These are "enumerated" SVG attributes that accept "true" and "false".
  36385. // In React, we let users pass `true` and `false` even though technically
  36386. // these aren't boolean attributes (they are coerced to strings).
  36387. // Since these are SVG attributes, their attribute names are case-sensitive.
  36388. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  36389. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  36390. name, // attributeName
  36391. null);
  36392. } // attributeNamespace
  36393. );
  36394. // These are HTML boolean attributes.
  36395. ['allowFullScreen', 'async',
  36396. // Note: there is a special case that prevents it from being written to the DOM
  36397. // on the client side because the browsers are inconsistent. Instead we call focus().
  36398. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  36399. // Microdata
  36400. 'itemScope'].forEach(function (name) {
  36401. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  36402. name.toLowerCase(), // attributeName
  36403. null);
  36404. } // attributeNamespace
  36405. );
  36406. // These are the few React props that we set as DOM properties
  36407. // rather than attributes. These are all booleans.
  36408. ['checked',
  36409. // Note: `option.selected` is not updated if `select.multiple` is
  36410. // disabled with `removeAttribute`. We have special logic for handling this.
  36411. 'multiple', 'muted', 'selected'].forEach(function (name) {
  36412. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  36413. name, // attributeName
  36414. null);
  36415. } // attributeNamespace
  36416. );
  36417. // These are HTML attributes that are "overloaded booleans": they behave like
  36418. // booleans, but can also accept a string value.
  36419. ['capture', 'download'].forEach(function (name) {
  36420. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  36421. name, // attributeName
  36422. null);
  36423. } // attributeNamespace
  36424. );
  36425. // These are HTML attributes that must be positive numbers.
  36426. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  36427. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  36428. name, // attributeName
  36429. null);
  36430. } // attributeNamespace
  36431. );
  36432. // These are HTML attributes that must be numbers.
  36433. ['rowSpan', 'start'].forEach(function (name) {
  36434. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  36435. name.toLowerCase(), // attributeName
  36436. null);
  36437. } // attributeNamespace
  36438. );
  36439. var CAMELIZE = /[\-\:]([a-z])/g;
  36440. var capitalize = function (token) {
  36441. return token[1].toUpperCase();
  36442. };
  36443. // This is a list of all SVG attributes that need special casing, namespacing,
  36444. // or boolean value assignment. Regular attributes that just accept strings
  36445. // and have the same names are omitted, just like in the HTML whitelist.
  36446. // Some of these attributes can be hard to find. This list was created by
  36447. // scrapping the MDN documentation.
  36448. ['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) {
  36449. var name = attributeName.replace(CAMELIZE, capitalize);
  36450. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36451. attributeName, null);
  36452. } // attributeNamespace
  36453. );
  36454. // String SVG attributes with the xlink namespace.
  36455. ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  36456. var name = attributeName.replace(CAMELIZE, capitalize);
  36457. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36458. attributeName, 'http://www.w3.org/1999/xlink');
  36459. });
  36460. // String SVG attributes with the xml namespace.
  36461. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  36462. var name = attributeName.replace(CAMELIZE, capitalize);
  36463. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  36464. attributeName, 'http://www.w3.org/XML/1998/namespace');
  36465. });
  36466. // Special case: this attribute exists both in HTML and SVG.
  36467. // Its "tabindex" attribute name is case-sensitive in SVG so we can't just use
  36468. // its React `tabIndex` name, like we do for attributes that exist only in HTML.
  36469. properties.tabIndex = new PropertyInfoRecord('tabIndex', STRING, false, // mustUseProperty
  36470. 'tabindex', // attributeName
  36471. null);
  36472. /**
  36473. * Get the value for a property on a node. Only used in DEV for SSR validation.
  36474. * The "expected" argument is used as a hint of what the expected value is.
  36475. * Some properties have multiple equivalent values.
  36476. */
  36477. function getValueForProperty(node, name, expected, propertyInfo) {
  36478. {
  36479. if (propertyInfo.mustUseProperty) {
  36480. var propertyName = propertyInfo.propertyName;
  36481. return node[propertyName];
  36482. } else {
  36483. var attributeName = propertyInfo.attributeName;
  36484. var stringValue = null;
  36485. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  36486. if (node.hasAttribute(attributeName)) {
  36487. var value = node.getAttribute(attributeName);
  36488. if (value === '') {
  36489. return true;
  36490. }
  36491. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36492. return value;
  36493. }
  36494. if (value === '' + expected) {
  36495. return expected;
  36496. }
  36497. return value;
  36498. }
  36499. } else if (node.hasAttribute(attributeName)) {
  36500. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36501. // We had an attribute but shouldn't have had one, so read it
  36502. // for the error message.
  36503. return node.getAttribute(attributeName);
  36504. }
  36505. if (propertyInfo.type === BOOLEAN) {
  36506. // If this was a boolean, it doesn't matter what the value is
  36507. // the fact that we have it is the same as the expected.
  36508. return expected;
  36509. }
  36510. // Even if this property uses a namespace we use getAttribute
  36511. // because we assume its namespaced name is the same as our config.
  36512. // To use getAttributeNS we need the local name which we don't have
  36513. // in our config atm.
  36514. stringValue = node.getAttribute(attributeName);
  36515. }
  36516. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  36517. return stringValue === null ? expected : stringValue;
  36518. } else if (stringValue === '' + expected) {
  36519. return expected;
  36520. } else {
  36521. return stringValue;
  36522. }
  36523. }
  36524. }
  36525. }
  36526. /**
  36527. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  36528. * The third argument is used as a hint of what the expected value is. Some
  36529. * attributes have multiple equivalent values.
  36530. */
  36531. function getValueForAttribute(node, name, expected) {
  36532. {
  36533. if (!isAttributeNameSafe(name)) {
  36534. return;
  36535. }
  36536. if (!node.hasAttribute(name)) {
  36537. return expected === undefined ? undefined : null;
  36538. }
  36539. var value = node.getAttribute(name);
  36540. if (value === '' + expected) {
  36541. return expected;
  36542. }
  36543. return value;
  36544. }
  36545. }
  36546. /**
  36547. * Sets the value for a property on a node.
  36548. *
  36549. * @param {DOMElement} node
  36550. * @param {string} name
  36551. * @param {*} value
  36552. */
  36553. function setValueForProperty(node, name, value, isCustomComponentTag) {
  36554. var propertyInfo = getPropertyInfo(name);
  36555. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  36556. return;
  36557. }
  36558. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  36559. value = null;
  36560. }
  36561. // If the prop isn't in the special list, treat it as a simple attribute.
  36562. if (isCustomComponentTag || propertyInfo === null) {
  36563. if (isAttributeNameSafe(name)) {
  36564. var _attributeName = name;
  36565. if (value === null) {
  36566. node.removeAttribute(_attributeName);
  36567. } else {
  36568. node.setAttribute(_attributeName, '' + value);
  36569. }
  36570. }
  36571. return;
  36572. }
  36573. var mustUseProperty = propertyInfo.mustUseProperty;
  36574. if (mustUseProperty) {
  36575. var propertyName = propertyInfo.propertyName;
  36576. if (value === null) {
  36577. var type = propertyInfo.type;
  36578. node[propertyName] = type === BOOLEAN ? false : '';
  36579. } else {
  36580. // Contrary to `setAttribute`, object properties are properly
  36581. // `toString`ed by IE8/9.
  36582. node[propertyName] = value;
  36583. }
  36584. return;
  36585. }
  36586. // The rest are treated as attributes with special cases.
  36587. var attributeName = propertyInfo.attributeName,
  36588. attributeNamespace = propertyInfo.attributeNamespace;
  36589. if (value === null) {
  36590. node.removeAttribute(attributeName);
  36591. } else {
  36592. var _type = propertyInfo.type;
  36593. var attributeValue = void 0;
  36594. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  36595. attributeValue = '';
  36596. } else {
  36597. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  36598. // ('' + value) makes it output the correct toString()-value.
  36599. attributeValue = '' + value;
  36600. }
  36601. if (attributeNamespace) {
  36602. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  36603. } else {
  36604. node.setAttribute(attributeName, attributeValue);
  36605. }
  36606. }
  36607. }
  36608. // Flow does not allow string concatenation of most non-string types. To work
  36609. // around this limitation, we use an opaque type that can only be obtained by
  36610. // passing the value through getToStringValue first.
  36611. function toString(value) {
  36612. return '' + value;
  36613. }
  36614. function getToStringValue(value) {
  36615. switch (typeof value) {
  36616. case 'boolean':
  36617. case 'number':
  36618. case 'object':
  36619. case 'string':
  36620. case 'undefined':
  36621. return value;
  36622. default:
  36623. // function, symbol are assigned as empty strings
  36624. return '';
  36625. }
  36626. }
  36627. var ReactDebugCurrentFrame$1 = null;
  36628. var ReactControlledValuePropTypes = {
  36629. checkPropTypes: null
  36630. };
  36631. {
  36632. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  36633. var hasReadOnlyValue = {
  36634. button: true,
  36635. checkbox: true,
  36636. image: true,
  36637. hidden: true,
  36638. radio: true,
  36639. reset: true,
  36640. submit: true
  36641. };
  36642. var propTypes = {
  36643. value: function (props, propName, componentName) {
  36644. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  36645. return null;
  36646. }
  36647. 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`.');
  36648. },
  36649. checked: function (props, propName, componentName) {
  36650. if (props.onChange || props.readOnly || props.disabled || props[propName] == null) {
  36651. return null;
  36652. }
  36653. 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`.');
  36654. }
  36655. };
  36656. /**
  36657. * Provide a linked `value` attribute for controlled forms. You should not use
  36658. * this outside of the ReactDOM controlled form components.
  36659. */
  36660. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  36661. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$1.getStackAddendum);
  36662. };
  36663. }
  36664. var enableUserTimingAPI = true;
  36665. var enableHooks = false;
  36666. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  36667. var debugRenderPhaseSideEffects = false;
  36668. // In some cases, StrictMode should also double-render lifecycles.
  36669. // This can be confusing for tests though,
  36670. // And it can be bad for performance in production.
  36671. // This feature flag can be used to control the behavior:
  36672. var debugRenderPhaseSideEffectsForStrictMode = true;
  36673. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  36674. // replay the begin phase of a failed component inside invokeGuardedCallback.
  36675. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  36676. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  36677. var warnAboutDeprecatedLifecycles = false;
  36678. // Gather advanced timing metrics for Profiler subtrees.
  36679. var enableProfilerTimer = true;
  36680. // Trace which interactions trigger each commit.
  36681. var enableSchedulerTracing = true;
  36682. // Only used in www builds.
  36683. // Only used in www builds.
  36684. // React Fire: prevent the value and checked attributes from syncing
  36685. // with their related DOM properties
  36686. var disableInputAttributeSyncing = false;
  36687. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  36688. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  36689. var enableStableConcurrentModeAPIs = false;
  36690. // TODO: direct imports like some-package/src/* are bad. Fix me.
  36691. var didWarnValueDefaultValue = false;
  36692. var didWarnCheckedDefaultChecked = false;
  36693. var didWarnControlledToUncontrolled = false;
  36694. var didWarnUncontrolledToControlled = false;
  36695. function isControlled(props) {
  36696. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  36697. return usesChecked ? props.checked != null : props.value != null;
  36698. }
  36699. /**
  36700. * Implements an <input> host component that allows setting these optional
  36701. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  36702. *
  36703. * If `checked` or `value` are not supplied (or null/undefined), user actions
  36704. * that affect the checked state or value will trigger updates to the element.
  36705. *
  36706. * If they are supplied (and not null/undefined), the rendered element will not
  36707. * trigger updates to the element. Instead, the props must change in order for
  36708. * the rendered element to be updated.
  36709. *
  36710. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  36711. * with an empty value (or `defaultValue`).
  36712. *
  36713. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  36714. */
  36715. function getHostProps(element, props) {
  36716. var node = element;
  36717. var checked = props.checked;
  36718. var hostProps = _assign({}, props, {
  36719. defaultChecked: undefined,
  36720. defaultValue: undefined,
  36721. value: undefined,
  36722. checked: checked != null ? checked : node._wrapperState.initialChecked
  36723. });
  36724. return hostProps;
  36725. }
  36726. function initWrapperState(element, props) {
  36727. {
  36728. ReactControlledValuePropTypes.checkPropTypes('input', props);
  36729. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  36730. 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);
  36731. didWarnCheckedDefaultChecked = true;
  36732. }
  36733. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  36734. 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);
  36735. didWarnValueDefaultValue = true;
  36736. }
  36737. }
  36738. var node = element;
  36739. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  36740. node._wrapperState = {
  36741. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  36742. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  36743. controlled: isControlled(props)
  36744. };
  36745. }
  36746. function updateChecked(element, props) {
  36747. var node = element;
  36748. var checked = props.checked;
  36749. if (checked != null) {
  36750. setValueForProperty(node, 'checked', checked, false);
  36751. }
  36752. }
  36753. function updateWrapper(element, props) {
  36754. var node = element;
  36755. {
  36756. var _controlled = isControlled(props);
  36757. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  36758. 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);
  36759. didWarnUncontrolledToControlled = true;
  36760. }
  36761. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  36762. 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);
  36763. didWarnControlledToUncontrolled = true;
  36764. }
  36765. }
  36766. updateChecked(element, props);
  36767. var value = getToStringValue(props.value);
  36768. var type = props.type;
  36769. if (value != null) {
  36770. if (type === 'number') {
  36771. if (value === 0 && node.value === '' ||
  36772. // We explicitly want to coerce to number here if possible.
  36773. // eslint-disable-next-line
  36774. node.value != value) {
  36775. node.value = toString(value);
  36776. }
  36777. } else if (node.value !== toString(value)) {
  36778. node.value = toString(value);
  36779. }
  36780. } else if (type === 'submit' || type === 'reset') {
  36781. // Submit/reset inputs need the attribute removed completely to avoid
  36782. // blank-text buttons.
  36783. node.removeAttribute('value');
  36784. return;
  36785. }
  36786. if (disableInputAttributeSyncing) {
  36787. // When not syncing the value attribute, React only assigns a new value
  36788. // whenever the defaultValue React prop has changed. When not present,
  36789. // React does nothing
  36790. if (props.hasOwnProperty('defaultValue')) {
  36791. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  36792. }
  36793. } else {
  36794. // When syncing the value attribute, the value comes from a cascade of
  36795. // properties:
  36796. // 1. The value React property
  36797. // 2. The defaultValue React property
  36798. // 3. Otherwise there should be no change
  36799. if (props.hasOwnProperty('value')) {
  36800. setDefaultValue(node, props.type, value);
  36801. } else if (props.hasOwnProperty('defaultValue')) {
  36802. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  36803. }
  36804. }
  36805. if (disableInputAttributeSyncing) {
  36806. // When not syncing the checked attribute, the attribute is directly
  36807. // controllable from the defaultValue React property. It needs to be
  36808. // updated as new props come in.
  36809. if (props.defaultChecked == null) {
  36810. node.removeAttribute('checked');
  36811. } else {
  36812. node.defaultChecked = !!props.defaultChecked;
  36813. }
  36814. } else {
  36815. // When syncing the checked attribute, it only changes when it needs
  36816. // to be removed, such as transitioning from a checkbox into a text input
  36817. if (props.checked == null && props.defaultChecked != null) {
  36818. node.defaultChecked = !!props.defaultChecked;
  36819. }
  36820. }
  36821. }
  36822. function postMountWrapper(element, props, isHydrating) {
  36823. var node = element;
  36824. // Do not assign value if it is already set. This prevents user text input
  36825. // from being lost during SSR hydration.
  36826. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  36827. var type = props.type;
  36828. var isButton = type === 'submit' || type === 'reset';
  36829. // Avoid setting value attribute on submit/reset inputs as it overrides the
  36830. // default value provided by the browser. See: #12872
  36831. if (isButton && (props.value === undefined || props.value === null)) {
  36832. return;
  36833. }
  36834. var _initialValue = toString(node._wrapperState.initialValue);
  36835. // Do not assign value if it is already set. This prevents user text input
  36836. // from being lost during SSR hydration.
  36837. if (!isHydrating) {
  36838. if (disableInputAttributeSyncing) {
  36839. var value = getToStringValue(props.value);
  36840. // When not syncing the value attribute, the value property points
  36841. // directly to the React prop. Only assign it if it exists.
  36842. if (value != null) {
  36843. // Always assign on buttons so that it is possible to assign an
  36844. // empty string to clear button text.
  36845. //
  36846. // Otherwise, do not re-assign the value property if is empty. This
  36847. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  36848. // prematurely marking required inputs as invalid. Equality is compared
  36849. // to the current value in case the browser provided value is not an
  36850. // empty string.
  36851. if (isButton || value !== node.value) {
  36852. node.value = toString(value);
  36853. }
  36854. }
  36855. } else {
  36856. // When syncing the value attribute, the value property should use
  36857. // the wrapperState._initialValue property. This uses:
  36858. //
  36859. // 1. The value React property when present
  36860. // 2. The defaultValue React property when present
  36861. // 3. An empty string
  36862. if (_initialValue !== node.value) {
  36863. node.value = _initialValue;
  36864. }
  36865. }
  36866. }
  36867. if (disableInputAttributeSyncing) {
  36868. // When not syncing the value attribute, assign the value attribute
  36869. // directly from the defaultValue React property (when present)
  36870. var defaultValue = getToStringValue(props.defaultValue);
  36871. if (defaultValue != null) {
  36872. node.defaultValue = toString(defaultValue);
  36873. }
  36874. } else {
  36875. // Otherwise, the value attribute is synchronized to the property,
  36876. // so we assign defaultValue to the same thing as the value property
  36877. // assignment step above.
  36878. node.defaultValue = _initialValue;
  36879. }
  36880. }
  36881. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  36882. // this is needed to work around a chrome bug where setting defaultChecked
  36883. // will sometimes influence the value of checked (even after detachment).
  36884. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  36885. // We need to temporarily unset name to avoid disrupting radio button groups.
  36886. var name = node.name;
  36887. if (name !== '') {
  36888. node.name = '';
  36889. }
  36890. if (disableInputAttributeSyncing) {
  36891. // When not syncing the checked attribute, the checked property
  36892. // never gets assigned. It must be manually set. We don't want
  36893. // to do this when hydrating so that existing user input isn't
  36894. // modified
  36895. if (!isHydrating) {
  36896. updateChecked(element, props);
  36897. }
  36898. // Only assign the checked attribute if it is defined. This saves
  36899. // a DOM write when controlling the checked attribute isn't needed
  36900. // (text inputs, submit/reset)
  36901. if (props.hasOwnProperty('defaultChecked')) {
  36902. node.defaultChecked = !node.defaultChecked;
  36903. node.defaultChecked = !!props.defaultChecked;
  36904. }
  36905. } else {
  36906. // When syncing the checked attribute, both the checked property and
  36907. // attribute are assigned at the same time using defaultChecked. This uses:
  36908. //
  36909. // 1. The checked React property when present
  36910. // 2. The defaultChecked React property when present
  36911. // 3. Otherwise, false
  36912. node.defaultChecked = !node.defaultChecked;
  36913. node.defaultChecked = !!node._wrapperState.initialChecked;
  36914. }
  36915. if (name !== '') {
  36916. node.name = name;
  36917. }
  36918. }
  36919. function restoreControlledState(element, props) {
  36920. var node = element;
  36921. updateWrapper(node, props);
  36922. updateNamedCousins(node, props);
  36923. }
  36924. function updateNamedCousins(rootNode, props) {
  36925. var name = props.name;
  36926. if (props.type === 'radio' && name != null) {
  36927. var queryRoot = rootNode;
  36928. while (queryRoot.parentNode) {
  36929. queryRoot = queryRoot.parentNode;
  36930. }
  36931. // If `rootNode.form` was non-null, then we could try `form.elements`,
  36932. // but that sometimes behaves strangely in IE8. We could also try using
  36933. // `form.getElementsByName`, but that will only return direct children
  36934. // and won't include inputs that use the HTML5 `form=` attribute. Since
  36935. // the input might not even be in a form. It might not even be in the
  36936. // document. Let's just use the local `querySelectorAll` to ensure we don't
  36937. // miss anything.
  36938. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  36939. for (var i = 0; i < group.length; i++) {
  36940. var otherNode = group[i];
  36941. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  36942. continue;
  36943. }
  36944. // This will throw if radio buttons rendered by different copies of React
  36945. // and the same name are rendered into the same form (same as #1939).
  36946. // That's probably okay; we don't support it just as we don't support
  36947. // mixing React radio buttons with non-React ones.
  36948. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  36949. !otherProps ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : void 0;
  36950. // We need update the tracked value on the named cousin since the value
  36951. // was changed but the input saw no event or value set
  36952. updateValueIfChanged(otherNode);
  36953. // If this is a controlled radio button group, forcing the input that
  36954. // was previously checked to update will cause it to be come re-checked
  36955. // as appropriate.
  36956. updateWrapper(otherNode, otherProps);
  36957. }
  36958. }
  36959. }
  36960. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  36961. // For number inputs, the display value loses trailing decimal points. For email inputs,
  36962. // Chrome raises "The specified value <x> is not a valid email address".
  36963. //
  36964. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  36965. // when the user is inputting text
  36966. //
  36967. // https://github.com/facebook/react/issues/7253
  36968. function setDefaultValue(node, type, value) {
  36969. if (
  36970. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  36971. type !== 'number' || node.ownerDocument.activeElement !== node) {
  36972. if (value == null) {
  36973. node.defaultValue = toString(node._wrapperState.initialValue);
  36974. } else if (node.defaultValue !== toString(value)) {
  36975. node.defaultValue = toString(value);
  36976. }
  36977. }
  36978. }
  36979. var eventTypes$1 = {
  36980. change: {
  36981. phasedRegistrationNames: {
  36982. bubbled: 'onChange',
  36983. captured: 'onChangeCapture'
  36984. },
  36985. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  36986. }
  36987. };
  36988. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  36989. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  36990. event.type = 'change';
  36991. // Flag this event loop as needing state restore.
  36992. enqueueStateRestore(target);
  36993. accumulateTwoPhaseDispatches(event);
  36994. return event;
  36995. }
  36996. /**
  36997. * For IE shims
  36998. */
  36999. var activeElement = null;
  37000. var activeElementInst = null;
  37001. /**
  37002. * SECTION: handle `change` event
  37003. */
  37004. function shouldUseChangeEvent(elem) {
  37005. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  37006. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  37007. }
  37008. function manualDispatchChangeEvent(nativeEvent) {
  37009. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  37010. // If change and propertychange bubbled, we'd just bind to it like all the
  37011. // other events and have it go through ReactBrowserEventEmitter. Since it
  37012. // doesn't, we manually listen for the events and so we have to enqueue and
  37013. // process the abstract event manually.
  37014. //
  37015. // Batching is necessary here in order to ensure that all event handlers run
  37016. // before the next rerender (including event handlers attached to ancestor
  37017. // elements instead of directly on the input). Without this, controlled
  37018. // components don't work properly in conjunction with event bubbling because
  37019. // the component is rerendered and the value reverted before all the event
  37020. // handlers can run. See https://github.com/facebook/react/issues/708.
  37021. batchedUpdates(runEventInBatch, event);
  37022. }
  37023. function runEventInBatch(event) {
  37024. runEventsInBatch(event);
  37025. }
  37026. function getInstIfValueChanged(targetInst) {
  37027. var targetNode = getNodeFromInstance$1(targetInst);
  37028. if (updateValueIfChanged(targetNode)) {
  37029. return targetInst;
  37030. }
  37031. }
  37032. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  37033. if (topLevelType === TOP_CHANGE) {
  37034. return targetInst;
  37035. }
  37036. }
  37037. /**
  37038. * SECTION: handle `input` event
  37039. */
  37040. var isInputEventSupported = false;
  37041. if (canUseDOM) {
  37042. // IE9 claims to support the input event but fails to trigger it when
  37043. // deleting text, so we ignore its input events.
  37044. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  37045. }
  37046. /**
  37047. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  37048. * and override the value property so that we can distinguish user events from
  37049. * value changes in JS.
  37050. */
  37051. function startWatchingForValueChange(target, targetInst) {
  37052. activeElement = target;
  37053. activeElementInst = targetInst;
  37054. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  37055. }
  37056. /**
  37057. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  37058. * if any exists.
  37059. */
  37060. function stopWatchingForValueChange() {
  37061. if (!activeElement) {
  37062. return;
  37063. }
  37064. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  37065. activeElement = null;
  37066. activeElementInst = null;
  37067. }
  37068. /**
  37069. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  37070. * the value of the active element has changed.
  37071. */
  37072. function handlePropertyChange(nativeEvent) {
  37073. if (nativeEvent.propertyName !== 'value') {
  37074. return;
  37075. }
  37076. if (getInstIfValueChanged(activeElementInst)) {
  37077. manualDispatchChangeEvent(nativeEvent);
  37078. }
  37079. }
  37080. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  37081. if (topLevelType === TOP_FOCUS) {
  37082. // In IE9, propertychange fires for most input events but is buggy and
  37083. // doesn't fire when text is deleted, but conveniently, selectionchange
  37084. // appears to fire in all of the remaining cases so we catch those and
  37085. // forward the event if the value has changed
  37086. // In either case, we don't want to call the event handler if the value
  37087. // is changed from JS so we redefine a setter for `.value` that updates
  37088. // our activeElementValue variable, allowing us to ignore those changes
  37089. //
  37090. // stopWatching() should be a noop here but we call it just in case we
  37091. // missed a blur event somehow.
  37092. stopWatchingForValueChange();
  37093. startWatchingForValueChange(target, targetInst);
  37094. } else if (topLevelType === TOP_BLUR) {
  37095. stopWatchingForValueChange();
  37096. }
  37097. }
  37098. // For IE8 and IE9.
  37099. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  37100. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  37101. // On the selectionchange event, the target is just document which isn't
  37102. // helpful for us so just check activeElement instead.
  37103. //
  37104. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  37105. // propertychange on the first input event after setting `value` from a
  37106. // script and fires only keydown, keypress, keyup. Catching keyup usually
  37107. // gets it and catching keydown lets us fire an event for the first
  37108. // keystroke if user does a key repeat (it'll be a little delayed: right
  37109. // before the second keystroke). Other input methods (e.g., paste) seem to
  37110. // fire selectionchange normally.
  37111. return getInstIfValueChanged(activeElementInst);
  37112. }
  37113. }
  37114. /**
  37115. * SECTION: handle `click` event
  37116. */
  37117. function shouldUseClickEvent(elem) {
  37118. // Use the `click` event to detect changes to checkbox and radio inputs.
  37119. // This approach works across all browsers, whereas `change` does not fire
  37120. // until `blur` in IE8.
  37121. var nodeName = elem.nodeName;
  37122. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  37123. }
  37124. function getTargetInstForClickEvent(topLevelType, targetInst) {
  37125. if (topLevelType === TOP_CLICK) {
  37126. return getInstIfValueChanged(targetInst);
  37127. }
  37128. }
  37129. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  37130. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  37131. return getInstIfValueChanged(targetInst);
  37132. }
  37133. }
  37134. function handleControlledInputBlur(node) {
  37135. var state = node._wrapperState;
  37136. if (!state || !state.controlled || node.type !== 'number') {
  37137. return;
  37138. }
  37139. if (!disableInputAttributeSyncing) {
  37140. // If controlled, assign the value attribute to the current value on blur
  37141. setDefaultValue(node, 'number', node.value);
  37142. }
  37143. }
  37144. /**
  37145. * This plugin creates an `onChange` event that normalizes change events
  37146. * across form elements. This event fires at a time when it's possible to
  37147. * change the element's value without seeing a flicker.
  37148. *
  37149. * Supported elements are:
  37150. * - input (see `isTextInputElement`)
  37151. * - textarea
  37152. * - select
  37153. */
  37154. var ChangeEventPlugin = {
  37155. eventTypes: eventTypes$1,
  37156. _isInputEventSupported: isInputEventSupported,
  37157. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37158. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  37159. var getTargetInstFunc = void 0,
  37160. handleEventFunc = void 0;
  37161. if (shouldUseChangeEvent(targetNode)) {
  37162. getTargetInstFunc = getTargetInstForChangeEvent;
  37163. } else if (isTextInputElement(targetNode)) {
  37164. if (isInputEventSupported) {
  37165. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  37166. } else {
  37167. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  37168. handleEventFunc = handleEventsForInputEventPolyfill;
  37169. }
  37170. } else if (shouldUseClickEvent(targetNode)) {
  37171. getTargetInstFunc = getTargetInstForClickEvent;
  37172. }
  37173. if (getTargetInstFunc) {
  37174. var inst = getTargetInstFunc(topLevelType, targetInst);
  37175. if (inst) {
  37176. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  37177. return event;
  37178. }
  37179. }
  37180. if (handleEventFunc) {
  37181. handleEventFunc(topLevelType, targetNode, targetInst);
  37182. }
  37183. // When blurring, set the value attribute for number inputs
  37184. if (topLevelType === TOP_BLUR) {
  37185. handleControlledInputBlur(targetNode);
  37186. }
  37187. }
  37188. };
  37189. /**
  37190. * Module that is injectable into `EventPluginHub`, that specifies a
  37191. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  37192. * plugins, without having to package every one of them. This is better than
  37193. * having plugins be ordered in the same order that they are injected because
  37194. * that ordering would be influenced by the packaging order.
  37195. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  37196. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  37197. */
  37198. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  37199. var SyntheticUIEvent = SyntheticEvent.extend({
  37200. view: null,
  37201. detail: null
  37202. });
  37203. var modifierKeyToProp = {
  37204. Alt: 'altKey',
  37205. Control: 'ctrlKey',
  37206. Meta: 'metaKey',
  37207. Shift: 'shiftKey'
  37208. };
  37209. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  37210. // getModifierState. If getModifierState is not supported, we map it to a set of
  37211. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  37212. /**
  37213. * Translation from modifier key to the associated property in the event.
  37214. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  37215. */
  37216. function modifierStateGetter(keyArg) {
  37217. var syntheticEvent = this;
  37218. var nativeEvent = syntheticEvent.nativeEvent;
  37219. if (nativeEvent.getModifierState) {
  37220. return nativeEvent.getModifierState(keyArg);
  37221. }
  37222. var keyProp = modifierKeyToProp[keyArg];
  37223. return keyProp ? !!nativeEvent[keyProp] : false;
  37224. }
  37225. function getEventModifierState(nativeEvent) {
  37226. return modifierStateGetter;
  37227. }
  37228. var previousScreenX = 0;
  37229. var previousScreenY = 0;
  37230. // Use flags to signal movementX/Y has already been set
  37231. var isMovementXSet = false;
  37232. var isMovementYSet = false;
  37233. /**
  37234. * @interface MouseEvent
  37235. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37236. */
  37237. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  37238. screenX: null,
  37239. screenY: null,
  37240. clientX: null,
  37241. clientY: null,
  37242. pageX: null,
  37243. pageY: null,
  37244. ctrlKey: null,
  37245. shiftKey: null,
  37246. altKey: null,
  37247. metaKey: null,
  37248. getModifierState: getEventModifierState,
  37249. button: null,
  37250. buttons: null,
  37251. relatedTarget: function (event) {
  37252. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  37253. },
  37254. movementX: function (event) {
  37255. if ('movementX' in event) {
  37256. return event.movementX;
  37257. }
  37258. var screenX = previousScreenX;
  37259. previousScreenX = event.screenX;
  37260. if (!isMovementXSet) {
  37261. isMovementXSet = true;
  37262. return 0;
  37263. }
  37264. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  37265. },
  37266. movementY: function (event) {
  37267. if ('movementY' in event) {
  37268. return event.movementY;
  37269. }
  37270. var screenY = previousScreenY;
  37271. previousScreenY = event.screenY;
  37272. if (!isMovementYSet) {
  37273. isMovementYSet = true;
  37274. return 0;
  37275. }
  37276. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  37277. }
  37278. });
  37279. /**
  37280. * @interface PointerEvent
  37281. * @see http://www.w3.org/TR/pointerevents/
  37282. */
  37283. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  37284. pointerId: null,
  37285. width: null,
  37286. height: null,
  37287. pressure: null,
  37288. tangentialPressure: null,
  37289. tiltX: null,
  37290. tiltY: null,
  37291. twist: null,
  37292. pointerType: null,
  37293. isPrimary: null
  37294. });
  37295. var eventTypes$2 = {
  37296. mouseEnter: {
  37297. registrationName: 'onMouseEnter',
  37298. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37299. },
  37300. mouseLeave: {
  37301. registrationName: 'onMouseLeave',
  37302. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  37303. },
  37304. pointerEnter: {
  37305. registrationName: 'onPointerEnter',
  37306. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37307. },
  37308. pointerLeave: {
  37309. registrationName: 'onPointerLeave',
  37310. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  37311. }
  37312. };
  37313. var EnterLeaveEventPlugin = {
  37314. eventTypes: eventTypes$2,
  37315. /**
  37316. * For almost every interaction we care about, there will be both a top-level
  37317. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  37318. * we do not extract duplicate events. However, moving the mouse into the
  37319. * browser from outside will not fire a `mouseout` event. In this case, we use
  37320. * the `mouseover` top-level event.
  37321. */
  37322. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  37323. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  37324. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  37325. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  37326. return null;
  37327. }
  37328. if (!isOutEvent && !isOverEvent) {
  37329. // Must not be a mouse or pointer in or out - ignoring.
  37330. return null;
  37331. }
  37332. var win = void 0;
  37333. if (nativeEventTarget.window === nativeEventTarget) {
  37334. // `nativeEventTarget` is probably a window object.
  37335. win = nativeEventTarget;
  37336. } else {
  37337. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  37338. var doc = nativeEventTarget.ownerDocument;
  37339. if (doc) {
  37340. win = doc.defaultView || doc.parentWindow;
  37341. } else {
  37342. win = window;
  37343. }
  37344. }
  37345. var from = void 0;
  37346. var to = void 0;
  37347. if (isOutEvent) {
  37348. from = targetInst;
  37349. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  37350. to = related ? getClosestInstanceFromNode(related) : null;
  37351. } else {
  37352. // Moving to a node from outside the window.
  37353. from = null;
  37354. to = targetInst;
  37355. }
  37356. if (from === to) {
  37357. // Nothing pertains to our managed components.
  37358. return null;
  37359. }
  37360. var eventInterface = void 0,
  37361. leaveEventType = void 0,
  37362. enterEventType = void 0,
  37363. eventTypePrefix = void 0;
  37364. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  37365. eventInterface = SyntheticMouseEvent;
  37366. leaveEventType = eventTypes$2.mouseLeave;
  37367. enterEventType = eventTypes$2.mouseEnter;
  37368. eventTypePrefix = 'mouse';
  37369. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  37370. eventInterface = SyntheticPointerEvent;
  37371. leaveEventType = eventTypes$2.pointerLeave;
  37372. enterEventType = eventTypes$2.pointerEnter;
  37373. eventTypePrefix = 'pointer';
  37374. }
  37375. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  37376. var toNode = to == null ? win : getNodeFromInstance$1(to);
  37377. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  37378. leave.type = eventTypePrefix + 'leave';
  37379. leave.target = fromNode;
  37380. leave.relatedTarget = toNode;
  37381. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  37382. enter.type = eventTypePrefix + 'enter';
  37383. enter.target = toNode;
  37384. enter.relatedTarget = fromNode;
  37385. accumulateEnterLeaveDispatches(leave, enter, from, to);
  37386. return [leave, enter];
  37387. }
  37388. };
  37389. /*eslint-disable no-self-compare */
  37390. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  37391. /**
  37392. * inlined Object.is polyfill to avoid requiring consumers ship their own
  37393. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  37394. */
  37395. function is(x, y) {
  37396. // SameValue algorithm
  37397. if (x === y) {
  37398. // Steps 1-5, 7-10
  37399. // Steps 6.b-6.e: +0 != -0
  37400. // Added the nonzero y check to make Flow happy, but it is redundant
  37401. return x !== 0 || y !== 0 || 1 / x === 1 / y;
  37402. } else {
  37403. // Step 6.a: NaN == NaN
  37404. return x !== x && y !== y;
  37405. }
  37406. }
  37407. /**
  37408. * Performs equality by iterating through keys on an object and returning false
  37409. * when any key has values which are not strictly equal between the arguments.
  37410. * Returns true when the values of all keys are strictly equal.
  37411. */
  37412. function shallowEqual(objA, objB) {
  37413. if (is(objA, objB)) {
  37414. return true;
  37415. }
  37416. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  37417. return false;
  37418. }
  37419. var keysA = Object.keys(objA);
  37420. var keysB = Object.keys(objB);
  37421. if (keysA.length !== keysB.length) {
  37422. return false;
  37423. }
  37424. // Test for A's keys different from B.
  37425. for (var i = 0; i < keysA.length; i++) {
  37426. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  37427. return false;
  37428. }
  37429. }
  37430. return true;
  37431. }
  37432. /**
  37433. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  37434. * instance (key) and the internal representation (value). This allows public
  37435. * methods to accept the user facing instance as an argument and map them back
  37436. * to internal methods.
  37437. *
  37438. * Note that this module is currently shared and assumed to be stateless.
  37439. * If this becomes an actual Map, that will break.
  37440. */
  37441. /**
  37442. * This API should be called `delete` but we'd have to make sure to always
  37443. * transform these to strings for IE support. When this transform is fully
  37444. * supported we can rename it.
  37445. */
  37446. function get(key) {
  37447. return key._reactInternalFiber;
  37448. }
  37449. function has(key) {
  37450. return key._reactInternalFiber !== undefined;
  37451. }
  37452. function set(key, value) {
  37453. key._reactInternalFiber = value;
  37454. }
  37455. // Don't change these two values. They're used by React Dev Tools.
  37456. var NoEffect = /* */0;
  37457. var PerformedWork = /* */1;
  37458. // You can change the rest (and add more).
  37459. var Placement = /* */2;
  37460. var Update = /* */4;
  37461. var PlacementAndUpdate = /* */6;
  37462. var Deletion = /* */8;
  37463. var ContentReset = /* */16;
  37464. var Callback = /* */32;
  37465. var DidCapture = /* */64;
  37466. var Ref = /* */128;
  37467. var Snapshot = /* */256;
  37468. var Passive = /* */512;
  37469. // Passive & Update & Callback & Ref & Snapshot
  37470. var LifecycleEffectMask = /* */932;
  37471. // Union of all host effects
  37472. var HostEffectMask = /* */1023;
  37473. var Incomplete = /* */1024;
  37474. var ShouldCapture = /* */2048;
  37475. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  37476. var MOUNTING = 1;
  37477. var MOUNTED = 2;
  37478. var UNMOUNTED = 3;
  37479. function isFiberMountedImpl(fiber) {
  37480. var node = fiber;
  37481. if (!fiber.alternate) {
  37482. // If there is no alternate, this might be a new tree that isn't inserted
  37483. // yet. If it is, then it will have a pending insertion effect on it.
  37484. if ((node.effectTag & Placement) !== NoEffect) {
  37485. return MOUNTING;
  37486. }
  37487. while (node.return) {
  37488. node = node.return;
  37489. if ((node.effectTag & Placement) !== NoEffect) {
  37490. return MOUNTING;
  37491. }
  37492. }
  37493. } else {
  37494. while (node.return) {
  37495. node = node.return;
  37496. }
  37497. }
  37498. if (node.tag === HostRoot) {
  37499. // TODO: Check if this was a nested HostRoot when used with
  37500. // renderContainerIntoSubtree.
  37501. return MOUNTED;
  37502. }
  37503. // If we didn't hit the root, that means that we're in an disconnected tree
  37504. // that has been unmounted.
  37505. return UNMOUNTED;
  37506. }
  37507. function isFiberMounted(fiber) {
  37508. return isFiberMountedImpl(fiber) === MOUNTED;
  37509. }
  37510. function isMounted(component) {
  37511. {
  37512. var owner = ReactCurrentOwner$1.current;
  37513. if (owner !== null && owner.tag === ClassComponent) {
  37514. var ownerFiber = owner;
  37515. var instance = ownerFiber.stateNode;
  37516. !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;
  37517. instance._warnedAboutRefsInRender = true;
  37518. }
  37519. }
  37520. var fiber = get(component);
  37521. if (!fiber) {
  37522. return false;
  37523. }
  37524. return isFiberMountedImpl(fiber) === MOUNTED;
  37525. }
  37526. function assertIsMounted(fiber) {
  37527. !(isFiberMountedImpl(fiber) === MOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37528. }
  37529. function findCurrentFiberUsingSlowPath(fiber) {
  37530. var alternate = fiber.alternate;
  37531. if (!alternate) {
  37532. // If there is no alternate, then we only need to check if it is mounted.
  37533. var state = isFiberMountedImpl(fiber);
  37534. !(state !== UNMOUNTED) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37535. if (state === MOUNTING) {
  37536. return null;
  37537. }
  37538. return fiber;
  37539. }
  37540. // If we have two possible branches, we'll walk backwards up to the root
  37541. // to see what path the root points to. On the way we may hit one of the
  37542. // special cases and we'll deal with them.
  37543. var a = fiber;
  37544. var b = alternate;
  37545. while (true) {
  37546. var parentA = a.return;
  37547. var parentB = parentA ? parentA.alternate : null;
  37548. if (!parentA || !parentB) {
  37549. // We're at the root.
  37550. break;
  37551. }
  37552. // If both copies of the parent fiber point to the same child, we can
  37553. // assume that the child is current. This happens when we bailout on low
  37554. // priority: the bailed out fiber's child reuses the current child.
  37555. if (parentA.child === parentB.child) {
  37556. var child = parentA.child;
  37557. while (child) {
  37558. if (child === a) {
  37559. // We've determined that A is the current branch.
  37560. assertIsMounted(parentA);
  37561. return fiber;
  37562. }
  37563. if (child === b) {
  37564. // We've determined that B is the current branch.
  37565. assertIsMounted(parentA);
  37566. return alternate;
  37567. }
  37568. child = child.sibling;
  37569. }
  37570. // We should never have an alternate for any mounting node. So the only
  37571. // way this could possibly happen is if this was unmounted, if at all.
  37572. invariant(false, 'Unable to find node on an unmounted component.');
  37573. }
  37574. if (a.return !== b.return) {
  37575. // The return pointer of A and the return pointer of B point to different
  37576. // fibers. We assume that return pointers never criss-cross, so A must
  37577. // belong to the child set of A.return, and B must belong to the child
  37578. // set of B.return.
  37579. a = parentA;
  37580. b = parentB;
  37581. } else {
  37582. // The return pointers point to the same fiber. We'll have to use the
  37583. // default, slow path: scan the child sets of each parent alternate to see
  37584. // which child belongs to which set.
  37585. //
  37586. // Search parent A's child set
  37587. var didFindChild = false;
  37588. var _child = parentA.child;
  37589. while (_child) {
  37590. if (_child === a) {
  37591. didFindChild = true;
  37592. a = parentA;
  37593. b = parentB;
  37594. break;
  37595. }
  37596. if (_child === b) {
  37597. didFindChild = true;
  37598. b = parentA;
  37599. a = parentB;
  37600. break;
  37601. }
  37602. _child = _child.sibling;
  37603. }
  37604. if (!didFindChild) {
  37605. // Search parent B's child set
  37606. _child = parentB.child;
  37607. while (_child) {
  37608. if (_child === a) {
  37609. didFindChild = true;
  37610. a = parentB;
  37611. b = parentA;
  37612. break;
  37613. }
  37614. if (_child === b) {
  37615. didFindChild = true;
  37616. b = parentB;
  37617. a = parentA;
  37618. break;
  37619. }
  37620. _child = _child.sibling;
  37621. }
  37622. !didFindChild ? invariant(false, 'Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.') : void 0;
  37623. }
  37624. }
  37625. !(a.alternate === b) ? invariant(false, 'Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  37626. }
  37627. // If the root is not a host container, we're in a disconnected tree. I.e.
  37628. // unmounted.
  37629. !(a.tag === HostRoot) ? invariant(false, 'Unable to find node on an unmounted component.') : void 0;
  37630. if (a.stateNode.current === a) {
  37631. // We've determined that A is the current branch.
  37632. return fiber;
  37633. }
  37634. // Otherwise B has to be current branch.
  37635. return alternate;
  37636. }
  37637. function findCurrentHostFiber(parent) {
  37638. var currentParent = findCurrentFiberUsingSlowPath(parent);
  37639. if (!currentParent) {
  37640. return null;
  37641. }
  37642. // Next we'll drill down this component to find the first HostComponent/Text.
  37643. var node = currentParent;
  37644. while (true) {
  37645. if (node.tag === HostComponent || node.tag === HostText) {
  37646. return node;
  37647. } else if (node.child) {
  37648. node.child.return = node;
  37649. node = node.child;
  37650. continue;
  37651. }
  37652. if (node === currentParent) {
  37653. return null;
  37654. }
  37655. while (!node.sibling) {
  37656. if (!node.return || node.return === currentParent) {
  37657. return null;
  37658. }
  37659. node = node.return;
  37660. }
  37661. node.sibling.return = node.return;
  37662. node = node.sibling;
  37663. }
  37664. // Flow needs the return null here, but ESLint complains about it.
  37665. // eslint-disable-next-line no-unreachable
  37666. return null;
  37667. }
  37668. function findCurrentHostFiberWithNoPortals(parent) {
  37669. var currentParent = findCurrentFiberUsingSlowPath(parent);
  37670. if (!currentParent) {
  37671. return null;
  37672. }
  37673. // Next we'll drill down this component to find the first HostComponent/Text.
  37674. var node = currentParent;
  37675. while (true) {
  37676. if (node.tag === HostComponent || node.tag === HostText) {
  37677. return node;
  37678. } else if (node.child && node.tag !== HostPortal) {
  37679. node.child.return = node;
  37680. node = node.child;
  37681. continue;
  37682. }
  37683. if (node === currentParent) {
  37684. return null;
  37685. }
  37686. while (!node.sibling) {
  37687. if (!node.return || node.return === currentParent) {
  37688. return null;
  37689. }
  37690. node = node.return;
  37691. }
  37692. node.sibling.return = node.return;
  37693. node = node.sibling;
  37694. }
  37695. // Flow needs the return null here, but ESLint complains about it.
  37696. // eslint-disable-next-line no-unreachable
  37697. return null;
  37698. }
  37699. function addEventBubbleListener(element, eventType, listener) {
  37700. element.addEventListener(eventType, listener, false);
  37701. }
  37702. function addEventCaptureListener(element, eventType, listener) {
  37703. element.addEventListener(eventType, listener, true);
  37704. }
  37705. /**
  37706. * @interface Event
  37707. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  37708. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  37709. */
  37710. var SyntheticAnimationEvent = SyntheticEvent.extend({
  37711. animationName: null,
  37712. elapsedTime: null,
  37713. pseudoElement: null
  37714. });
  37715. /**
  37716. * @interface Event
  37717. * @see http://www.w3.org/TR/clipboard-apis/
  37718. */
  37719. var SyntheticClipboardEvent = SyntheticEvent.extend({
  37720. clipboardData: function (event) {
  37721. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  37722. }
  37723. });
  37724. /**
  37725. * @interface FocusEvent
  37726. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37727. */
  37728. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  37729. relatedTarget: null
  37730. });
  37731. /**
  37732. * `charCode` represents the actual "character code" and is safe to use with
  37733. * `String.fromCharCode`. As such, only keys that correspond to printable
  37734. * characters produce a valid `charCode`, the only exception to this is Enter.
  37735. * The Tab-key is considered non-printable and does not have a `charCode`,
  37736. * presumably because it does not produce a tab-character in browsers.
  37737. *
  37738. * @param {object} nativeEvent Native browser event.
  37739. * @return {number} Normalized `charCode` property.
  37740. */
  37741. function getEventCharCode(nativeEvent) {
  37742. var charCode = void 0;
  37743. var keyCode = nativeEvent.keyCode;
  37744. if ('charCode' in nativeEvent) {
  37745. charCode = nativeEvent.charCode;
  37746. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  37747. if (charCode === 0 && keyCode === 13) {
  37748. charCode = 13;
  37749. }
  37750. } else {
  37751. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  37752. charCode = keyCode;
  37753. }
  37754. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  37755. // report Enter as charCode 10 when ctrl is pressed.
  37756. if (charCode === 10) {
  37757. charCode = 13;
  37758. }
  37759. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  37760. // Must not discard the (non-)printable Enter-key.
  37761. if (charCode >= 32 || charCode === 13) {
  37762. return charCode;
  37763. }
  37764. return 0;
  37765. }
  37766. /**
  37767. * Normalization of deprecated HTML5 `key` values
  37768. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  37769. */
  37770. var normalizeKey = {
  37771. Esc: 'Escape',
  37772. Spacebar: ' ',
  37773. Left: 'ArrowLeft',
  37774. Up: 'ArrowUp',
  37775. Right: 'ArrowRight',
  37776. Down: 'ArrowDown',
  37777. Del: 'Delete',
  37778. Win: 'OS',
  37779. Menu: 'ContextMenu',
  37780. Apps: 'ContextMenu',
  37781. Scroll: 'ScrollLock',
  37782. MozPrintableKey: 'Unidentified'
  37783. };
  37784. /**
  37785. * Translation from legacy `keyCode` to HTML5 `key`
  37786. * Only special keys supported, all others depend on keyboard layout or browser
  37787. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  37788. */
  37789. var translateToKey = {
  37790. '8': 'Backspace',
  37791. '9': 'Tab',
  37792. '12': 'Clear',
  37793. '13': 'Enter',
  37794. '16': 'Shift',
  37795. '17': 'Control',
  37796. '18': 'Alt',
  37797. '19': 'Pause',
  37798. '20': 'CapsLock',
  37799. '27': 'Escape',
  37800. '32': ' ',
  37801. '33': 'PageUp',
  37802. '34': 'PageDown',
  37803. '35': 'End',
  37804. '36': 'Home',
  37805. '37': 'ArrowLeft',
  37806. '38': 'ArrowUp',
  37807. '39': 'ArrowRight',
  37808. '40': 'ArrowDown',
  37809. '45': 'Insert',
  37810. '46': 'Delete',
  37811. '112': 'F1',
  37812. '113': 'F2',
  37813. '114': 'F3',
  37814. '115': 'F4',
  37815. '116': 'F5',
  37816. '117': 'F6',
  37817. '118': 'F7',
  37818. '119': 'F8',
  37819. '120': 'F9',
  37820. '121': 'F10',
  37821. '122': 'F11',
  37822. '123': 'F12',
  37823. '144': 'NumLock',
  37824. '145': 'ScrollLock',
  37825. '224': 'Meta'
  37826. };
  37827. /**
  37828. * @param {object} nativeEvent Native browser event.
  37829. * @return {string} Normalized `key` property.
  37830. */
  37831. function getEventKey(nativeEvent) {
  37832. if (nativeEvent.key) {
  37833. // Normalize inconsistent values reported by browsers due to
  37834. // implementations of a working draft specification.
  37835. // FireFox implements `key` but returns `MozPrintableKey` for all
  37836. // printable characters (normalized to `Unidentified`), ignore it.
  37837. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  37838. if (key !== 'Unidentified') {
  37839. return key;
  37840. }
  37841. }
  37842. // Browser does not implement `key`, polyfill as much of it as we can.
  37843. if (nativeEvent.type === 'keypress') {
  37844. var charCode = getEventCharCode(nativeEvent);
  37845. // The enter-key is technically both printable and non-printable and can
  37846. // thus be captured by `keypress`, no other non-printable key should.
  37847. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  37848. }
  37849. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  37850. // While user keyboard layout determines the actual meaning of each
  37851. // `keyCode` value, almost all function keys have a universal value.
  37852. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  37853. }
  37854. return '';
  37855. }
  37856. /**
  37857. * @interface KeyboardEvent
  37858. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37859. */
  37860. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  37861. key: getEventKey,
  37862. location: null,
  37863. ctrlKey: null,
  37864. shiftKey: null,
  37865. altKey: null,
  37866. metaKey: null,
  37867. repeat: null,
  37868. locale: null,
  37869. getModifierState: getEventModifierState,
  37870. // Legacy Interface
  37871. charCode: function (event) {
  37872. // `charCode` is the result of a KeyPress event and represents the value of
  37873. // the actual printable character.
  37874. // KeyPress is deprecated, but its replacement is not yet final and not
  37875. // implemented in any major browser. Only KeyPress has charCode.
  37876. if (event.type === 'keypress') {
  37877. return getEventCharCode(event);
  37878. }
  37879. return 0;
  37880. },
  37881. keyCode: function (event) {
  37882. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  37883. // physical keyboard key.
  37884. // The actual meaning of the value depends on the users' keyboard layout
  37885. // which cannot be detected. Assuming that it is a US keyboard layout
  37886. // provides a surprisingly accurate mapping for US and European users.
  37887. // Due to this, it is left to the user to implement at this time.
  37888. if (event.type === 'keydown' || event.type === 'keyup') {
  37889. return event.keyCode;
  37890. }
  37891. return 0;
  37892. },
  37893. which: function (event) {
  37894. // `which` is an alias for either `keyCode` or `charCode` depending on the
  37895. // type of the event.
  37896. if (event.type === 'keypress') {
  37897. return getEventCharCode(event);
  37898. }
  37899. if (event.type === 'keydown' || event.type === 'keyup') {
  37900. return event.keyCode;
  37901. }
  37902. return 0;
  37903. }
  37904. });
  37905. /**
  37906. * @interface DragEvent
  37907. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37908. */
  37909. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  37910. dataTransfer: null
  37911. });
  37912. /**
  37913. * @interface TouchEvent
  37914. * @see http://www.w3.org/TR/touch-events/
  37915. */
  37916. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  37917. touches: null,
  37918. targetTouches: null,
  37919. changedTouches: null,
  37920. altKey: null,
  37921. metaKey: null,
  37922. ctrlKey: null,
  37923. shiftKey: null,
  37924. getModifierState: getEventModifierState
  37925. });
  37926. /**
  37927. * @interface Event
  37928. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  37929. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  37930. */
  37931. var SyntheticTransitionEvent = SyntheticEvent.extend({
  37932. propertyName: null,
  37933. elapsedTime: null,
  37934. pseudoElement: null
  37935. });
  37936. /**
  37937. * @interface WheelEvent
  37938. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  37939. */
  37940. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  37941. deltaX: function (event) {
  37942. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  37943. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  37944. },
  37945. deltaY: function (event) {
  37946. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  37947. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  37948. 'wheelDelta' in event ? -event.wheelDelta : 0;
  37949. },
  37950. deltaZ: null,
  37951. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  37952. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  37953. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  37954. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  37955. deltaMode: null
  37956. });
  37957. /**
  37958. * Turns
  37959. * ['abort', ...]
  37960. * into
  37961. * eventTypes = {
  37962. * 'abort': {
  37963. * phasedRegistrationNames: {
  37964. * bubbled: 'onAbort',
  37965. * captured: 'onAbortCapture',
  37966. * },
  37967. * dependencies: [TOP_ABORT],
  37968. * },
  37969. * ...
  37970. * };
  37971. * topLevelEventsToDispatchConfig = new Map([
  37972. * [TOP_ABORT, { sameConfig }],
  37973. * ]);
  37974. */
  37975. var interactiveEventTypeNames = [[TOP_BLUR, 'blur'], [TOP_CANCEL, 'cancel'], [TOP_CLICK, 'click'], [TOP_CLOSE, 'close'], [TOP_CONTEXT_MENU, 'contextMenu'], [TOP_COPY, 'copy'], [TOP_CUT, 'cut'], [TOP_AUX_CLICK, 'auxClick'], [TOP_DOUBLE_CLICK, 'doubleClick'], [TOP_DRAG_END, 'dragEnd'], [TOP_DRAG_START, 'dragStart'], [TOP_DROP, 'drop'], [TOP_FOCUS, 'focus'], [TOP_INPUT, 'input'], [TOP_INVALID, 'invalid'], [TOP_KEY_DOWN, 'keyDown'], [TOP_KEY_PRESS, 'keyPress'], [TOP_KEY_UP, 'keyUp'], [TOP_MOUSE_DOWN, 'mouseDown'], [TOP_MOUSE_UP, 'mouseUp'], [TOP_PASTE, 'paste'], [TOP_PAUSE, 'pause'], [TOP_PLAY, 'play'], [TOP_POINTER_CANCEL, 'pointerCancel'], [TOP_POINTER_DOWN, 'pointerDown'], [TOP_POINTER_UP, 'pointerUp'], [TOP_RATE_CHANGE, 'rateChange'], [TOP_RESET, 'reset'], [TOP_SEEKED, 'seeked'], [TOP_SUBMIT, 'submit'], [TOP_TOUCH_CANCEL, 'touchCancel'], [TOP_TOUCH_END, 'touchEnd'], [TOP_TOUCH_START, 'touchStart'], [TOP_VOLUME_CHANGE, 'volumeChange']];
  37976. var nonInteractiveEventTypeNames = [[TOP_ABORT, 'abort'], [TOP_ANIMATION_END, 'animationEnd'], [TOP_ANIMATION_ITERATION, 'animationIteration'], [TOP_ANIMATION_START, 'animationStart'], [TOP_CAN_PLAY, 'canPlay'], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough'], [TOP_DRAG, 'drag'], [TOP_DRAG_ENTER, 'dragEnter'], [TOP_DRAG_EXIT, 'dragExit'], [TOP_DRAG_LEAVE, 'dragLeave'], [TOP_DRAG_OVER, 'dragOver'], [TOP_DURATION_CHANGE, 'durationChange'], [TOP_EMPTIED, 'emptied'], [TOP_ENCRYPTED, 'encrypted'], [TOP_ENDED, 'ended'], [TOP_ERROR, 'error'], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture'], [TOP_LOAD, 'load'], [TOP_LOADED_DATA, 'loadedData'], [TOP_LOADED_METADATA, 'loadedMetadata'], [TOP_LOAD_START, 'loadStart'], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture'], [TOP_MOUSE_MOVE, 'mouseMove'], [TOP_MOUSE_OUT, 'mouseOut'], [TOP_MOUSE_OVER, 'mouseOver'], [TOP_PLAYING, 'playing'], [TOP_POINTER_MOVE, 'pointerMove'], [TOP_POINTER_OUT, 'pointerOut'], [TOP_POINTER_OVER, 'pointerOver'], [TOP_PROGRESS, 'progress'], [TOP_SCROLL, 'scroll'], [TOP_SEEKING, 'seeking'], [TOP_STALLED, 'stalled'], [TOP_SUSPEND, 'suspend'], [TOP_TIME_UPDATE, 'timeUpdate'], [TOP_TOGGLE, 'toggle'], [TOP_TOUCH_MOVE, 'touchMove'], [TOP_TRANSITION_END, 'transitionEnd'], [TOP_WAITING, 'waiting'], [TOP_WHEEL, 'wheel']];
  37977. var eventTypes$4 = {};
  37978. var topLevelEventsToDispatchConfig = {};
  37979. function addEventTypeNameToConfig(_ref, isInteractive) {
  37980. var topEvent = _ref[0],
  37981. event = _ref[1];
  37982. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  37983. var onEvent = 'on' + capitalizedEvent;
  37984. var type = {
  37985. phasedRegistrationNames: {
  37986. bubbled: onEvent,
  37987. captured: onEvent + 'Capture'
  37988. },
  37989. dependencies: [topEvent],
  37990. isInteractive: isInteractive
  37991. };
  37992. eventTypes$4[event] = type;
  37993. topLevelEventsToDispatchConfig[topEvent] = type;
  37994. }
  37995. interactiveEventTypeNames.forEach(function (eventTuple) {
  37996. addEventTypeNameToConfig(eventTuple, true);
  37997. });
  37998. nonInteractiveEventTypeNames.forEach(function (eventTuple) {
  37999. addEventTypeNameToConfig(eventTuple, false);
  38000. });
  38001. // Only used in DEV for exhaustiveness validation.
  38002. 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];
  38003. var SimpleEventPlugin = {
  38004. eventTypes: eventTypes$4,
  38005. isInteractiveTopLevelEventType: function (topLevelType) {
  38006. var config = topLevelEventsToDispatchConfig[topLevelType];
  38007. return config !== undefined && config.isInteractive === true;
  38008. },
  38009. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  38010. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  38011. if (!dispatchConfig) {
  38012. return null;
  38013. }
  38014. var EventConstructor = void 0;
  38015. switch (topLevelType) {
  38016. case TOP_KEY_PRESS:
  38017. // Firefox creates a keypress event for function keys too. This removes
  38018. // the unwanted keypress events. Enter is however both printable and
  38019. // non-printable. One would expect Tab to be as well (but it isn't).
  38020. if (getEventCharCode(nativeEvent) === 0) {
  38021. return null;
  38022. }
  38023. /* falls through */
  38024. case TOP_KEY_DOWN:
  38025. case TOP_KEY_UP:
  38026. EventConstructor = SyntheticKeyboardEvent;
  38027. break;
  38028. case TOP_BLUR:
  38029. case TOP_FOCUS:
  38030. EventConstructor = SyntheticFocusEvent;
  38031. break;
  38032. case TOP_CLICK:
  38033. // Firefox creates a click event on right mouse clicks. This removes the
  38034. // unwanted click events.
  38035. if (nativeEvent.button === 2) {
  38036. return null;
  38037. }
  38038. /* falls through */
  38039. case TOP_AUX_CLICK:
  38040. case TOP_DOUBLE_CLICK:
  38041. case TOP_MOUSE_DOWN:
  38042. case TOP_MOUSE_MOVE:
  38043. case TOP_MOUSE_UP:
  38044. // TODO: Disabled elements should not respond to mouse events
  38045. /* falls through */
  38046. case TOP_MOUSE_OUT:
  38047. case TOP_MOUSE_OVER:
  38048. case TOP_CONTEXT_MENU:
  38049. EventConstructor = SyntheticMouseEvent;
  38050. break;
  38051. case TOP_DRAG:
  38052. case TOP_DRAG_END:
  38053. case TOP_DRAG_ENTER:
  38054. case TOP_DRAG_EXIT:
  38055. case TOP_DRAG_LEAVE:
  38056. case TOP_DRAG_OVER:
  38057. case TOP_DRAG_START:
  38058. case TOP_DROP:
  38059. EventConstructor = SyntheticDragEvent;
  38060. break;
  38061. case TOP_TOUCH_CANCEL:
  38062. case TOP_TOUCH_END:
  38063. case TOP_TOUCH_MOVE:
  38064. case TOP_TOUCH_START:
  38065. EventConstructor = SyntheticTouchEvent;
  38066. break;
  38067. case TOP_ANIMATION_END:
  38068. case TOP_ANIMATION_ITERATION:
  38069. case TOP_ANIMATION_START:
  38070. EventConstructor = SyntheticAnimationEvent;
  38071. break;
  38072. case TOP_TRANSITION_END:
  38073. EventConstructor = SyntheticTransitionEvent;
  38074. break;
  38075. case TOP_SCROLL:
  38076. EventConstructor = SyntheticUIEvent;
  38077. break;
  38078. case TOP_WHEEL:
  38079. EventConstructor = SyntheticWheelEvent;
  38080. break;
  38081. case TOP_COPY:
  38082. case TOP_CUT:
  38083. case TOP_PASTE:
  38084. EventConstructor = SyntheticClipboardEvent;
  38085. break;
  38086. case TOP_GOT_POINTER_CAPTURE:
  38087. case TOP_LOST_POINTER_CAPTURE:
  38088. case TOP_POINTER_CANCEL:
  38089. case TOP_POINTER_DOWN:
  38090. case TOP_POINTER_MOVE:
  38091. case TOP_POINTER_OUT:
  38092. case TOP_POINTER_OVER:
  38093. case TOP_POINTER_UP:
  38094. EventConstructor = SyntheticPointerEvent;
  38095. break;
  38096. default:
  38097. {
  38098. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  38099. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  38100. }
  38101. }
  38102. // HTML Events
  38103. // @see http://www.w3.org/TR/html5/index.html#events-0
  38104. EventConstructor = SyntheticEvent;
  38105. break;
  38106. }
  38107. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  38108. accumulateTwoPhaseDispatches(event);
  38109. return event;
  38110. }
  38111. };
  38112. var isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType;
  38113. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  38114. var callbackBookkeepingPool = [];
  38115. /**
  38116. * Find the deepest React component completely containing the root of the
  38117. * passed-in instance (for use when entire React trees are nested within each
  38118. * other). If React trees are not nested, returns null.
  38119. */
  38120. function findRootContainerNode(inst) {
  38121. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  38122. // traversal, but caching is difficult to do correctly without using a
  38123. // mutation observer to listen for all DOM changes.
  38124. while (inst.return) {
  38125. inst = inst.return;
  38126. }
  38127. if (inst.tag !== HostRoot) {
  38128. // This can happen if we're in a detached tree.
  38129. return null;
  38130. }
  38131. return inst.stateNode.containerInfo;
  38132. }
  38133. // Used to store ancestor hierarchy in top level callback
  38134. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  38135. if (callbackBookkeepingPool.length) {
  38136. var instance = callbackBookkeepingPool.pop();
  38137. instance.topLevelType = topLevelType;
  38138. instance.nativeEvent = nativeEvent;
  38139. instance.targetInst = targetInst;
  38140. return instance;
  38141. }
  38142. return {
  38143. topLevelType: topLevelType,
  38144. nativeEvent: nativeEvent,
  38145. targetInst: targetInst,
  38146. ancestors: []
  38147. };
  38148. }
  38149. function releaseTopLevelCallbackBookKeeping(instance) {
  38150. instance.topLevelType = null;
  38151. instance.nativeEvent = null;
  38152. instance.targetInst = null;
  38153. instance.ancestors.length = 0;
  38154. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  38155. callbackBookkeepingPool.push(instance);
  38156. }
  38157. }
  38158. function handleTopLevel(bookKeeping) {
  38159. var targetInst = bookKeeping.targetInst;
  38160. // Loop through the hierarchy, in case there's any nested components.
  38161. // It's important that we build the array of ancestors before calling any
  38162. // event handlers, because event handlers can modify the DOM, leading to
  38163. // inconsistencies with ReactMount's node cache. See #1105.
  38164. var ancestor = targetInst;
  38165. do {
  38166. if (!ancestor) {
  38167. bookKeeping.ancestors.push(ancestor);
  38168. break;
  38169. }
  38170. var root = findRootContainerNode(ancestor);
  38171. if (!root) {
  38172. break;
  38173. }
  38174. bookKeeping.ancestors.push(ancestor);
  38175. ancestor = getClosestInstanceFromNode(root);
  38176. } while (ancestor);
  38177. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  38178. targetInst = bookKeeping.ancestors[i];
  38179. runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
  38180. }
  38181. }
  38182. // TODO: can we stop exporting these?
  38183. var _enabled = true;
  38184. function setEnabled(enabled) {
  38185. _enabled = !!enabled;
  38186. }
  38187. function isEnabled() {
  38188. return _enabled;
  38189. }
  38190. /**
  38191. * Traps top-level events by using event bubbling.
  38192. *
  38193. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  38194. * @param {object} element Element on which to attach listener.
  38195. * @return {?object} An object with a remove function which will forcefully
  38196. * remove the listener.
  38197. * @internal
  38198. */
  38199. function trapBubbledEvent(topLevelType, element) {
  38200. if (!element) {
  38201. return null;
  38202. }
  38203. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  38204. addEventBubbleListener(element, getRawEventName(topLevelType),
  38205. // Check if interactive and wrap in interactiveUpdates
  38206. dispatch.bind(null, topLevelType));
  38207. }
  38208. /**
  38209. * Traps a top-level event by using event capturing.
  38210. *
  38211. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  38212. * @param {object} element Element on which to attach listener.
  38213. * @return {?object} An object with a remove function which will forcefully
  38214. * remove the listener.
  38215. * @internal
  38216. */
  38217. function trapCapturedEvent(topLevelType, element) {
  38218. if (!element) {
  38219. return null;
  38220. }
  38221. var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent;
  38222. addEventCaptureListener(element, getRawEventName(topLevelType),
  38223. // Check if interactive and wrap in interactiveUpdates
  38224. dispatch.bind(null, topLevelType));
  38225. }
  38226. function dispatchInteractiveEvent(topLevelType, nativeEvent) {
  38227. interactiveUpdates(dispatchEvent, topLevelType, nativeEvent);
  38228. }
  38229. function dispatchEvent(topLevelType, nativeEvent) {
  38230. if (!_enabled) {
  38231. return;
  38232. }
  38233. var nativeEventTarget = getEventTarget(nativeEvent);
  38234. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  38235. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  38236. // If we get an event (ex: img onload) before committing that
  38237. // component's mount, ignore it for now (that is, treat it as if it was an
  38238. // event on a non-React tree). We might also consider queueing events and
  38239. // dispatching them after the mount.
  38240. targetInst = null;
  38241. }
  38242. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  38243. try {
  38244. // Event queue being processed in the same cycle allows
  38245. // `preventDefault`.
  38246. batchedUpdates(handleTopLevel, bookKeeping);
  38247. } finally {
  38248. releaseTopLevelCallbackBookKeeping(bookKeeping);
  38249. }
  38250. }
  38251. /**
  38252. * Summary of `ReactBrowserEventEmitter` event handling:
  38253. *
  38254. * - Top-level delegation is used to trap most native browser events. This
  38255. * may only occur in the main thread and is the responsibility of
  38256. * ReactDOMEventListener, which is injected and can therefore support
  38257. * pluggable event sources. This is the only work that occurs in the main
  38258. * thread.
  38259. *
  38260. * - We normalize and de-duplicate events to account for browser quirks. This
  38261. * may be done in the worker thread.
  38262. *
  38263. * - Forward these native events (with the associated top-level type used to
  38264. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  38265. * to extract any synthetic events.
  38266. *
  38267. * - The `EventPluginHub` will then process each event by annotating them with
  38268. * "dispatches", a sequence of listeners and IDs that care about that event.
  38269. *
  38270. * - The `EventPluginHub` then dispatches the events.
  38271. *
  38272. * Overview of React and the event system:
  38273. *
  38274. * +------------+ .
  38275. * | DOM | .
  38276. * +------------+ .
  38277. * | .
  38278. * v .
  38279. * +------------+ .
  38280. * | ReactEvent | .
  38281. * | Listener | .
  38282. * +------------+ . +-----------+
  38283. * | . +--------+|SimpleEvent|
  38284. * | . | |Plugin |
  38285. * +-----|------+ . v +-----------+
  38286. * | | | . +--------------+ +------------+
  38287. * | +-----------.--->|EventPluginHub| | Event |
  38288. * | | . | | +-----------+ | Propagators|
  38289. * | ReactEvent | . | | |TapEvent | |------------|
  38290. * | Emitter | . | |<---+|Plugin | |other plugin|
  38291. * | | . | | +-----------+ | utilities |
  38292. * | +-----------.--->| | +------------+
  38293. * | | | . +--------------+
  38294. * +-----|------+ . ^ +-----------+
  38295. * | . | |Enter/Leave|
  38296. * + . +-------+|Plugin |
  38297. * +-------------+ . +-----------+
  38298. * | application | .
  38299. * |-------------| .
  38300. * | | .
  38301. * | | .
  38302. * +-------------+ .
  38303. * .
  38304. * React Core . General Purpose Event Plugin System
  38305. */
  38306. var alreadyListeningTo = {};
  38307. var reactTopListenersCounter = 0;
  38308. /**
  38309. * To ensure no conflicts with other potential React instances on the page
  38310. */
  38311. var topListenersIDKey = '_reactListenersID' + ('' + Math.random()).slice(2);
  38312. function getListeningForDocument(mountAt) {
  38313. // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
  38314. // directly.
  38315. if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
  38316. mountAt[topListenersIDKey] = reactTopListenersCounter++;
  38317. alreadyListeningTo[mountAt[topListenersIDKey]] = {};
  38318. }
  38319. return alreadyListeningTo[mountAt[topListenersIDKey]];
  38320. }
  38321. /**
  38322. * We listen for bubbled touch events on the document object.
  38323. *
  38324. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  38325. * mounting `onmousemove` events at some node that was not the document
  38326. * element. The symptoms were that if your mouse is not moving over something
  38327. * contained within that mount point (for example on the background) the
  38328. * top-level listeners for `onmousemove` won't be called. However, if you
  38329. * register the `mousemove` on the document object, then it will of course
  38330. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  38331. * top-level listeners to the document object only, at least for these
  38332. * movement types of events and possibly all events.
  38333. *
  38334. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  38335. *
  38336. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  38337. * they bubble to document.
  38338. *
  38339. * @param {string} registrationName Name of listener (e.g. `onClick`).
  38340. * @param {object} mountAt Container where to mount the listener
  38341. */
  38342. function listenTo(registrationName, mountAt) {
  38343. var isListening = getListeningForDocument(mountAt);
  38344. var dependencies = registrationNameDependencies[registrationName];
  38345. for (var i = 0; i < dependencies.length; i++) {
  38346. var dependency = dependencies[i];
  38347. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  38348. switch (dependency) {
  38349. case TOP_SCROLL:
  38350. trapCapturedEvent(TOP_SCROLL, mountAt);
  38351. break;
  38352. case TOP_FOCUS:
  38353. case TOP_BLUR:
  38354. trapCapturedEvent(TOP_FOCUS, mountAt);
  38355. trapCapturedEvent(TOP_BLUR, mountAt);
  38356. // We set the flag for a single dependency later in this function,
  38357. // but this ensures we mark both as attached rather than just one.
  38358. isListening[TOP_BLUR] = true;
  38359. isListening[TOP_FOCUS] = true;
  38360. break;
  38361. case TOP_CANCEL:
  38362. case TOP_CLOSE:
  38363. if (isEventSupported(getRawEventName(dependency))) {
  38364. trapCapturedEvent(dependency, mountAt);
  38365. }
  38366. break;
  38367. case TOP_INVALID:
  38368. case TOP_SUBMIT:
  38369. case TOP_RESET:
  38370. // We listen to them on the target DOM elements.
  38371. // Some of them bubble so we don't want them to fire twice.
  38372. break;
  38373. default:
  38374. // By default, listen on the top level to all non-media events.
  38375. // Media events don't bubble so adding the listener wouldn't do anything.
  38376. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  38377. if (!isMediaEvent) {
  38378. trapBubbledEvent(dependency, mountAt);
  38379. }
  38380. break;
  38381. }
  38382. isListening[dependency] = true;
  38383. }
  38384. }
  38385. }
  38386. function isListeningToAllDependencies(registrationName, mountAt) {
  38387. var isListening = getListeningForDocument(mountAt);
  38388. var dependencies = registrationNameDependencies[registrationName];
  38389. for (var i = 0; i < dependencies.length; i++) {
  38390. var dependency = dependencies[i];
  38391. if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
  38392. return false;
  38393. }
  38394. }
  38395. return true;
  38396. }
  38397. function getActiveElement(doc) {
  38398. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  38399. if (typeof doc === 'undefined') {
  38400. return null;
  38401. }
  38402. try {
  38403. return doc.activeElement || doc.body;
  38404. } catch (e) {
  38405. return doc.body;
  38406. }
  38407. }
  38408. /**
  38409. * Given any node return the first leaf node without children.
  38410. *
  38411. * @param {DOMElement|DOMTextNode} node
  38412. * @return {DOMElement|DOMTextNode}
  38413. */
  38414. function getLeafNode(node) {
  38415. while (node && node.firstChild) {
  38416. node = node.firstChild;
  38417. }
  38418. return node;
  38419. }
  38420. /**
  38421. * Get the next sibling within a container. This will walk up the
  38422. * DOM if a node's siblings have been exhausted.
  38423. *
  38424. * @param {DOMElement|DOMTextNode} node
  38425. * @return {?DOMElement|DOMTextNode}
  38426. */
  38427. function getSiblingNode(node) {
  38428. while (node) {
  38429. if (node.nextSibling) {
  38430. return node.nextSibling;
  38431. }
  38432. node = node.parentNode;
  38433. }
  38434. }
  38435. /**
  38436. * Get object describing the nodes which contain characters at offset.
  38437. *
  38438. * @param {DOMElement|DOMTextNode} root
  38439. * @param {number} offset
  38440. * @return {?object}
  38441. */
  38442. function getNodeForCharacterOffset(root, offset) {
  38443. var node = getLeafNode(root);
  38444. var nodeStart = 0;
  38445. var nodeEnd = 0;
  38446. while (node) {
  38447. if (node.nodeType === TEXT_NODE) {
  38448. nodeEnd = nodeStart + node.textContent.length;
  38449. if (nodeStart <= offset && nodeEnd >= offset) {
  38450. return {
  38451. node: node,
  38452. offset: offset - nodeStart
  38453. };
  38454. }
  38455. nodeStart = nodeEnd;
  38456. }
  38457. node = getLeafNode(getSiblingNode(node));
  38458. }
  38459. }
  38460. /**
  38461. * @param {DOMElement} outerNode
  38462. * @return {?object}
  38463. */
  38464. function getOffsets(outerNode) {
  38465. var ownerDocument = outerNode.ownerDocument;
  38466. var win = ownerDocument && ownerDocument.defaultView || window;
  38467. var selection = win.getSelection && win.getSelection();
  38468. if (!selection || selection.rangeCount === 0) {
  38469. return null;
  38470. }
  38471. var anchorNode = selection.anchorNode,
  38472. anchorOffset = selection.anchorOffset,
  38473. focusNode = selection.focusNode,
  38474. focusOffset = selection.focusOffset;
  38475. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  38476. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  38477. // expose properties, triggering a "Permission denied error" if any of its
  38478. // properties are accessed. The only seemingly possible way to avoid erroring
  38479. // is to access a property that typically works for non-anonymous divs and
  38480. // catch any error that may otherwise arise. See
  38481. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  38482. try {
  38483. /* eslint-disable no-unused-expressions */
  38484. anchorNode.nodeType;
  38485. focusNode.nodeType;
  38486. /* eslint-enable no-unused-expressions */
  38487. } catch (e) {
  38488. return null;
  38489. }
  38490. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  38491. }
  38492. /**
  38493. * Returns {start, end} where `start` is the character/codepoint index of
  38494. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  38495. * `end` is the index of (focusNode, focusOffset).
  38496. *
  38497. * Returns null if you pass in garbage input but we should probably just crash.
  38498. *
  38499. * Exported only for testing.
  38500. */
  38501. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  38502. var length = 0;
  38503. var start = -1;
  38504. var end = -1;
  38505. var indexWithinAnchor = 0;
  38506. var indexWithinFocus = 0;
  38507. var node = outerNode;
  38508. var parentNode = null;
  38509. outer: while (true) {
  38510. var next = null;
  38511. while (true) {
  38512. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  38513. start = length + anchorOffset;
  38514. }
  38515. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  38516. end = length + focusOffset;
  38517. }
  38518. if (node.nodeType === TEXT_NODE) {
  38519. length += node.nodeValue.length;
  38520. }
  38521. if ((next = node.firstChild) === null) {
  38522. break;
  38523. }
  38524. // Moving from `node` to its first child `next`.
  38525. parentNode = node;
  38526. node = next;
  38527. }
  38528. while (true) {
  38529. if (node === outerNode) {
  38530. // If `outerNode` has children, this is always the second time visiting
  38531. // it. If it has no children, this is still the first loop, and the only
  38532. // valid selection is anchorNode and focusNode both equal to this node
  38533. // and both offsets 0, in which case we will have handled above.
  38534. break outer;
  38535. }
  38536. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  38537. start = length;
  38538. }
  38539. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  38540. end = length;
  38541. }
  38542. if ((next = node.nextSibling) !== null) {
  38543. break;
  38544. }
  38545. node = parentNode;
  38546. parentNode = node.parentNode;
  38547. }
  38548. // Moving from `node` to its next sibling `next`.
  38549. node = next;
  38550. }
  38551. if (start === -1 || end === -1) {
  38552. // This should never happen. (Would happen if the anchor/focus nodes aren't
  38553. // actually inside the passed-in node.)
  38554. return null;
  38555. }
  38556. return {
  38557. start: start,
  38558. end: end
  38559. };
  38560. }
  38561. /**
  38562. * In modern non-IE browsers, we can support both forward and backward
  38563. * selections.
  38564. *
  38565. * Note: IE10+ supports the Selection object, but it does not support
  38566. * the `extend` method, which means that even in modern IE, it's not possible
  38567. * to programmatically create a backward selection. Thus, for all IE
  38568. * versions, we use the old IE API to create our selections.
  38569. *
  38570. * @param {DOMElement|DOMTextNode} node
  38571. * @param {object} offsets
  38572. */
  38573. function setOffsets(node, offsets) {
  38574. var doc = node.ownerDocument || document;
  38575. var win = doc && doc.defaultView || window;
  38576. // Edge fails with "Object expected" in some scenarios.
  38577. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  38578. // fails when pasting 100+ items)
  38579. if (!win.getSelection) {
  38580. return;
  38581. }
  38582. var selection = win.getSelection();
  38583. var length = node.textContent.length;
  38584. var start = Math.min(offsets.start, length);
  38585. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  38586. // IE 11 uses modern selection, but doesn't support the extend method.
  38587. // Flip backward selections, so we can set with a single range.
  38588. if (!selection.extend && start > end) {
  38589. var temp = end;
  38590. end = start;
  38591. start = temp;
  38592. }
  38593. var startMarker = getNodeForCharacterOffset(node, start);
  38594. var endMarker = getNodeForCharacterOffset(node, end);
  38595. if (startMarker && endMarker) {
  38596. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  38597. return;
  38598. }
  38599. var range = doc.createRange();
  38600. range.setStart(startMarker.node, startMarker.offset);
  38601. selection.removeAllRanges();
  38602. if (start > end) {
  38603. selection.addRange(range);
  38604. selection.extend(endMarker.node, endMarker.offset);
  38605. } else {
  38606. range.setEnd(endMarker.node, endMarker.offset);
  38607. selection.addRange(range);
  38608. }
  38609. }
  38610. }
  38611. function isTextNode(node) {
  38612. return node && node.nodeType === TEXT_NODE;
  38613. }
  38614. function containsNode(outerNode, innerNode) {
  38615. if (!outerNode || !innerNode) {
  38616. return false;
  38617. } else if (outerNode === innerNode) {
  38618. return true;
  38619. } else if (isTextNode(outerNode)) {
  38620. return false;
  38621. } else if (isTextNode(innerNode)) {
  38622. return containsNode(outerNode, innerNode.parentNode);
  38623. } else if ('contains' in outerNode) {
  38624. return outerNode.contains(innerNode);
  38625. } else if (outerNode.compareDocumentPosition) {
  38626. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  38627. } else {
  38628. return false;
  38629. }
  38630. }
  38631. function isInDocument(node) {
  38632. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  38633. }
  38634. function getActiveElementDeep() {
  38635. var win = window;
  38636. var element = getActiveElement();
  38637. while (element instanceof win.HTMLIFrameElement) {
  38638. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  38639. // to throw, e.g. if it has a cross-origin src attribute
  38640. try {
  38641. win = element.contentDocument.defaultView;
  38642. } catch (e) {
  38643. return element;
  38644. }
  38645. element = getActiveElement(win.document);
  38646. }
  38647. return element;
  38648. }
  38649. /**
  38650. * @ReactInputSelection: React input selection module. Based on Selection.js,
  38651. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  38652. * assume buttons have range selections allowed).
  38653. * Input selection module for React.
  38654. */
  38655. /**
  38656. * @hasSelectionCapabilities: we get the element types that support selection
  38657. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  38658. * and `selectionEnd` rows.
  38659. */
  38660. function hasSelectionCapabilities(elem) {
  38661. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  38662. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  38663. }
  38664. function getSelectionInformation() {
  38665. var focusedElem = getActiveElementDeep();
  38666. return {
  38667. focusedElem: focusedElem,
  38668. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  38669. };
  38670. }
  38671. /**
  38672. * @restoreSelection: If any selection information was potentially lost,
  38673. * restore it. This is useful when performing operations that could remove dom
  38674. * nodes and place them back in, resulting in focus being lost.
  38675. */
  38676. function restoreSelection(priorSelectionInformation) {
  38677. var curFocusedElem = getActiveElementDeep();
  38678. var priorFocusedElem = priorSelectionInformation.focusedElem;
  38679. var priorSelectionRange = priorSelectionInformation.selectionRange;
  38680. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  38681. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  38682. setSelection(priorFocusedElem, priorSelectionRange);
  38683. }
  38684. // Focusing a node can change the scroll position, which is undesirable
  38685. var ancestors = [];
  38686. var ancestor = priorFocusedElem;
  38687. while (ancestor = ancestor.parentNode) {
  38688. if (ancestor.nodeType === ELEMENT_NODE) {
  38689. ancestors.push({
  38690. element: ancestor,
  38691. left: ancestor.scrollLeft,
  38692. top: ancestor.scrollTop
  38693. });
  38694. }
  38695. }
  38696. if (typeof priorFocusedElem.focus === 'function') {
  38697. priorFocusedElem.focus();
  38698. }
  38699. for (var i = 0; i < ancestors.length; i++) {
  38700. var info = ancestors[i];
  38701. info.element.scrollLeft = info.left;
  38702. info.element.scrollTop = info.top;
  38703. }
  38704. }
  38705. }
  38706. /**
  38707. * @getSelection: Gets the selection bounds of a focused textarea, input or
  38708. * contentEditable node.
  38709. * -@input: Look up selection bounds of this input
  38710. * -@return {start: selectionStart, end: selectionEnd}
  38711. */
  38712. function getSelection$1(input) {
  38713. var selection = void 0;
  38714. if ('selectionStart' in input) {
  38715. // Modern browser with input or textarea.
  38716. selection = {
  38717. start: input.selectionStart,
  38718. end: input.selectionEnd
  38719. };
  38720. } else {
  38721. // Content editable or old IE textarea.
  38722. selection = getOffsets(input);
  38723. }
  38724. return selection || { start: 0, end: 0 };
  38725. }
  38726. /**
  38727. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  38728. * the input.
  38729. * -@input Set selection bounds of this input or textarea
  38730. * -@offsets Object of same form that is returned from get*
  38731. */
  38732. function setSelection(input, offsets) {
  38733. var start = offsets.start,
  38734. end = offsets.end;
  38735. if (end === undefined) {
  38736. end = start;
  38737. }
  38738. if ('selectionStart' in input) {
  38739. input.selectionStart = start;
  38740. input.selectionEnd = Math.min(end, input.value.length);
  38741. } else {
  38742. setOffsets(input, offsets);
  38743. }
  38744. }
  38745. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  38746. var eventTypes$3 = {
  38747. select: {
  38748. phasedRegistrationNames: {
  38749. bubbled: 'onSelect',
  38750. captured: 'onSelectCapture'
  38751. },
  38752. 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]
  38753. }
  38754. };
  38755. var activeElement$1 = null;
  38756. var activeElementInst$1 = null;
  38757. var lastSelection = null;
  38758. var mouseDown = false;
  38759. /**
  38760. * Get an object which is a unique representation of the current selection.
  38761. *
  38762. * The return value will not be consistent across nodes or browsers, but
  38763. * two identical selections on the same node will return identical objects.
  38764. *
  38765. * @param {DOMElement} node
  38766. * @return {object}
  38767. */
  38768. function getSelection(node) {
  38769. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  38770. return {
  38771. start: node.selectionStart,
  38772. end: node.selectionEnd
  38773. };
  38774. } else {
  38775. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  38776. var selection = win.getSelection();
  38777. return {
  38778. anchorNode: selection.anchorNode,
  38779. anchorOffset: selection.anchorOffset,
  38780. focusNode: selection.focusNode,
  38781. focusOffset: selection.focusOffset
  38782. };
  38783. }
  38784. }
  38785. /**
  38786. * Get document associated with the event target.
  38787. *
  38788. * @param {object} nativeEventTarget
  38789. * @return {Document}
  38790. */
  38791. function getEventTargetDocument(eventTarget) {
  38792. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  38793. }
  38794. /**
  38795. * Poll selection to see whether it's changed.
  38796. *
  38797. * @param {object} nativeEvent
  38798. * @param {object} nativeEventTarget
  38799. * @return {?SyntheticEvent}
  38800. */
  38801. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  38802. // Ensure we have the right element, and that the user is not dragging a
  38803. // selection (this matches native `select` event behavior). In HTML5, select
  38804. // fires only on input and textarea thus if there's no focused element we
  38805. // won't dispatch.
  38806. var doc = getEventTargetDocument(nativeEventTarget);
  38807. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  38808. return null;
  38809. }
  38810. // Only fire when selection has actually changed.
  38811. var currentSelection = getSelection(activeElement$1);
  38812. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  38813. lastSelection = currentSelection;
  38814. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  38815. syntheticEvent.type = 'select';
  38816. syntheticEvent.target = activeElement$1;
  38817. accumulateTwoPhaseDispatches(syntheticEvent);
  38818. return syntheticEvent;
  38819. }
  38820. return null;
  38821. }
  38822. /**
  38823. * This plugin creates an `onSelect` event that normalizes select events
  38824. * across form elements.
  38825. *
  38826. * Supported elements are:
  38827. * - input (see `isTextInputElement`)
  38828. * - textarea
  38829. * - contentEditable
  38830. *
  38831. * This differs from native browser implementations in the following ways:
  38832. * - Fires on contentEditable fields as well as inputs.
  38833. * - Fires for collapsed selection.
  38834. * - Fires after user input.
  38835. */
  38836. var SelectEventPlugin = {
  38837. eventTypes: eventTypes$3,
  38838. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  38839. var doc = getEventTargetDocument(nativeEventTarget);
  38840. // Track whether all listeners exists for this plugin. If none exist, we do
  38841. // not extract events. See #3639.
  38842. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  38843. return null;
  38844. }
  38845. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  38846. switch (topLevelType) {
  38847. // Track the input node that has focus.
  38848. case TOP_FOCUS:
  38849. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  38850. activeElement$1 = targetNode;
  38851. activeElementInst$1 = targetInst;
  38852. lastSelection = null;
  38853. }
  38854. break;
  38855. case TOP_BLUR:
  38856. activeElement$1 = null;
  38857. activeElementInst$1 = null;
  38858. lastSelection = null;
  38859. break;
  38860. // Don't fire the event while the user is dragging. This matches the
  38861. // semantics of the native select event.
  38862. case TOP_MOUSE_DOWN:
  38863. mouseDown = true;
  38864. break;
  38865. case TOP_CONTEXT_MENU:
  38866. case TOP_MOUSE_UP:
  38867. case TOP_DRAG_END:
  38868. mouseDown = false;
  38869. return constructSelectEvent(nativeEvent, nativeEventTarget);
  38870. // Chrome and IE fire non-standard event when selection is changed (and
  38871. // sometimes when it hasn't). IE's event fires out of order with respect
  38872. // to key and input events on deletion, so we discard it.
  38873. //
  38874. // Firefox doesn't support selectionchange, so check selection status
  38875. // after each key entry. The selection changes after keydown and before
  38876. // keyup, but we check on keydown as well in the case of holding down a
  38877. // key, when multiple keydown events are fired but only one keyup is.
  38878. // This is also our approach for IE handling, for the reason above.
  38879. case TOP_SELECTION_CHANGE:
  38880. if (skipSelectionChangeEvent) {
  38881. break;
  38882. }
  38883. // falls through
  38884. case TOP_KEY_DOWN:
  38885. case TOP_KEY_UP:
  38886. return constructSelectEvent(nativeEvent, nativeEventTarget);
  38887. }
  38888. return null;
  38889. }
  38890. };
  38891. /**
  38892. * Inject modules for resolving DOM hierarchy and plugin ordering.
  38893. */
  38894. injection.injectEventPluginOrder(DOMEventPluginOrder);
  38895. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  38896. /**
  38897. * Some important event plugins included by default (without having to require
  38898. * them).
  38899. */
  38900. injection.injectEventPluginsByName({
  38901. SimpleEventPlugin: SimpleEventPlugin,
  38902. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  38903. ChangeEventPlugin: ChangeEventPlugin,
  38904. SelectEventPlugin: SelectEventPlugin,
  38905. BeforeInputEventPlugin: BeforeInputEventPlugin
  38906. });
  38907. var didWarnSelectedSetOnOption = false;
  38908. var didWarnInvalidChild = false;
  38909. function flattenChildren(children) {
  38910. var content = '';
  38911. // Flatten children. We'll warn if they are invalid
  38912. // during validateProps() which runs for hydration too.
  38913. // Note that this would throw on non-element objects.
  38914. // Elements are stringified (which is normally irrelevant
  38915. // but matters for <fbt>).
  38916. React.Children.forEach(children, function (child) {
  38917. if (child == null) {
  38918. return;
  38919. }
  38920. content += child;
  38921. // Note: we don't warn about invalid children here.
  38922. // Instead, this is done separately below so that
  38923. // it happens during the hydration codepath too.
  38924. });
  38925. return content;
  38926. }
  38927. /**
  38928. * Implements an <option> host component that warns when `selected` is set.
  38929. */
  38930. function validateProps(element, props) {
  38931. {
  38932. // This mirrors the codepath above, but runs for hydration too.
  38933. // Warn about invalid children here so that client and hydration are consistent.
  38934. // TODO: this seems like it could cause a DEV-only throw for hydration
  38935. // if children contains a non-element object. We should try to avoid that.
  38936. if (typeof props.children === 'object' && props.children !== null) {
  38937. React.Children.forEach(props.children, function (child) {
  38938. if (child == null) {
  38939. return;
  38940. }
  38941. if (typeof child === 'string' || typeof child === 'number') {
  38942. return;
  38943. }
  38944. if (typeof child.type !== 'string') {
  38945. return;
  38946. }
  38947. if (!didWarnInvalidChild) {
  38948. didWarnInvalidChild = true;
  38949. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  38950. }
  38951. });
  38952. }
  38953. // TODO: Remove support for `selected` in <option>.
  38954. if (props.selected != null && !didWarnSelectedSetOnOption) {
  38955. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  38956. didWarnSelectedSetOnOption = true;
  38957. }
  38958. }
  38959. }
  38960. function postMountWrapper$1(element, props) {
  38961. // value="" should make a value attribute (#6219)
  38962. if (props.value != null) {
  38963. element.setAttribute('value', toString(getToStringValue(props.value)));
  38964. }
  38965. }
  38966. function getHostProps$1(element, props) {
  38967. var hostProps = _assign({ children: undefined }, props);
  38968. var content = flattenChildren(props.children);
  38969. if (content) {
  38970. hostProps.children = content;
  38971. }
  38972. return hostProps;
  38973. }
  38974. // TODO: direct imports like some-package/src/* are bad. Fix me.
  38975. var didWarnValueDefaultValue$1 = void 0;
  38976. {
  38977. didWarnValueDefaultValue$1 = false;
  38978. }
  38979. function getDeclarationErrorAddendum() {
  38980. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  38981. if (ownerName) {
  38982. return '\n\nCheck the render method of `' + ownerName + '`.';
  38983. }
  38984. return '';
  38985. }
  38986. var valuePropNames = ['value', 'defaultValue'];
  38987. /**
  38988. * Validation function for `value` and `defaultValue`.
  38989. */
  38990. function checkSelectPropTypes(props) {
  38991. ReactControlledValuePropTypes.checkPropTypes('select', props);
  38992. for (var i = 0; i < valuePropNames.length; i++) {
  38993. var propName = valuePropNames[i];
  38994. if (props[propName] == null) {
  38995. continue;
  38996. }
  38997. var isArray = Array.isArray(props[propName]);
  38998. if (props.multiple && !isArray) {
  38999. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  39000. } else if (!props.multiple && isArray) {
  39001. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  39002. }
  39003. }
  39004. }
  39005. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  39006. var options = node.options;
  39007. if (multiple) {
  39008. var selectedValues = propValue;
  39009. var selectedValue = {};
  39010. for (var i = 0; i < selectedValues.length; i++) {
  39011. // Prefix to avoid chaos with special keys.
  39012. selectedValue['$' + selectedValues[i]] = true;
  39013. }
  39014. for (var _i = 0; _i < options.length; _i++) {
  39015. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  39016. if (options[_i].selected !== selected) {
  39017. options[_i].selected = selected;
  39018. }
  39019. if (selected && setDefaultSelected) {
  39020. options[_i].defaultSelected = true;
  39021. }
  39022. }
  39023. } else {
  39024. // Do not set `select.value` as exact behavior isn't consistent across all
  39025. // browsers for all cases.
  39026. var _selectedValue = toString(getToStringValue(propValue));
  39027. var defaultSelected = null;
  39028. for (var _i2 = 0; _i2 < options.length; _i2++) {
  39029. if (options[_i2].value === _selectedValue) {
  39030. options[_i2].selected = true;
  39031. if (setDefaultSelected) {
  39032. options[_i2].defaultSelected = true;
  39033. }
  39034. return;
  39035. }
  39036. if (defaultSelected === null && !options[_i2].disabled) {
  39037. defaultSelected = options[_i2];
  39038. }
  39039. }
  39040. if (defaultSelected !== null) {
  39041. defaultSelected.selected = true;
  39042. }
  39043. }
  39044. }
  39045. /**
  39046. * Implements a <select> host component that allows optionally setting the
  39047. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  39048. * stringable. If `multiple` is true, the prop must be an array of stringables.
  39049. *
  39050. * If `value` is not supplied (or null/undefined), user actions that change the
  39051. * selected option will trigger updates to the rendered options.
  39052. *
  39053. * If it is supplied (and not null/undefined), the rendered options will not
  39054. * update in response to user actions. Instead, the `value` prop must change in
  39055. * order for the rendered options to update.
  39056. *
  39057. * If `defaultValue` is provided, any options with the supplied values will be
  39058. * selected.
  39059. */
  39060. function getHostProps$2(element, props) {
  39061. return _assign({}, props, {
  39062. value: undefined
  39063. });
  39064. }
  39065. function initWrapperState$1(element, props) {
  39066. var node = element;
  39067. {
  39068. checkSelectPropTypes(props);
  39069. }
  39070. node._wrapperState = {
  39071. wasMultiple: !!props.multiple
  39072. };
  39073. {
  39074. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  39075. 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');
  39076. didWarnValueDefaultValue$1 = true;
  39077. }
  39078. }
  39079. }
  39080. function postMountWrapper$2(element, props) {
  39081. var node = element;
  39082. node.multiple = !!props.multiple;
  39083. var value = props.value;
  39084. if (value != null) {
  39085. updateOptions(node, !!props.multiple, value, false);
  39086. } else if (props.defaultValue != null) {
  39087. updateOptions(node, !!props.multiple, props.defaultValue, true);
  39088. }
  39089. }
  39090. function postUpdateWrapper(element, props) {
  39091. var node = element;
  39092. var wasMultiple = node._wrapperState.wasMultiple;
  39093. node._wrapperState.wasMultiple = !!props.multiple;
  39094. var value = props.value;
  39095. if (value != null) {
  39096. updateOptions(node, !!props.multiple, value, false);
  39097. } else if (wasMultiple !== !!props.multiple) {
  39098. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  39099. if (props.defaultValue != null) {
  39100. updateOptions(node, !!props.multiple, props.defaultValue, true);
  39101. } else {
  39102. // Revert the select back to its default unselected state.
  39103. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  39104. }
  39105. }
  39106. }
  39107. function restoreControlledState$2(element, props) {
  39108. var node = element;
  39109. var value = props.value;
  39110. if (value != null) {
  39111. updateOptions(node, !!props.multiple, value, false);
  39112. }
  39113. }
  39114. var didWarnValDefaultVal = false;
  39115. /**
  39116. * Implements a <textarea> host component that allows setting `value`, and
  39117. * `defaultValue`. This differs from the traditional DOM API because value is
  39118. * usually set as PCDATA children.
  39119. *
  39120. * If `value` is not supplied (or null/undefined), user actions that affect the
  39121. * value will trigger updates to the element.
  39122. *
  39123. * If `value` is supplied (and not null/undefined), the rendered element will
  39124. * not trigger updates to the element. Instead, the `value` prop must change in
  39125. * order for the rendered element to be updated.
  39126. *
  39127. * The rendered element will be initialized with an empty value, the prop
  39128. * `defaultValue` if specified, or the children content (deprecated).
  39129. */
  39130. function getHostProps$3(element, props) {
  39131. var node = element;
  39132. !(props.dangerouslySetInnerHTML == null) ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : void 0;
  39133. // Always set children to the same thing. In IE9, the selection range will
  39134. // get reset if `textContent` is mutated. We could add a check in setTextContent
  39135. // to only set the value if/when the value differs from the node value (which would
  39136. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  39137. // solution. The value can be a boolean or object so that's why it's forced
  39138. // to be a string.
  39139. var hostProps = _assign({}, props, {
  39140. value: undefined,
  39141. defaultValue: undefined,
  39142. children: toString(node._wrapperState.initialValue)
  39143. });
  39144. return hostProps;
  39145. }
  39146. function initWrapperState$2(element, props) {
  39147. var node = element;
  39148. {
  39149. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  39150. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  39151. 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');
  39152. didWarnValDefaultVal = true;
  39153. }
  39154. }
  39155. var initialValue = props.value;
  39156. // Only bother fetching default value if we're going to use it
  39157. if (initialValue == null) {
  39158. var defaultValue = props.defaultValue;
  39159. // TODO (yungsters): Remove support for children content in <textarea>.
  39160. var children = props.children;
  39161. if (children != null) {
  39162. {
  39163. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  39164. }
  39165. !(defaultValue == null) ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : void 0;
  39166. if (Array.isArray(children)) {
  39167. !(children.length <= 1) ? invariant(false, '<textarea> can only have at most one child.') : void 0;
  39168. children = children[0];
  39169. }
  39170. defaultValue = children;
  39171. }
  39172. if (defaultValue == null) {
  39173. defaultValue = '';
  39174. }
  39175. initialValue = defaultValue;
  39176. }
  39177. node._wrapperState = {
  39178. initialValue: getToStringValue(initialValue)
  39179. };
  39180. }
  39181. function updateWrapper$1(element, props) {
  39182. var node = element;
  39183. var value = getToStringValue(props.value);
  39184. var defaultValue = getToStringValue(props.defaultValue);
  39185. if (value != null) {
  39186. // Cast `value` to a string to ensure the value is set correctly. While
  39187. // browsers typically do this as necessary, jsdom doesn't.
  39188. var newValue = toString(value);
  39189. // To avoid side effects (such as losing text selection), only set value if changed
  39190. if (newValue !== node.value) {
  39191. node.value = newValue;
  39192. }
  39193. if (props.defaultValue == null && node.defaultValue !== newValue) {
  39194. node.defaultValue = newValue;
  39195. }
  39196. }
  39197. if (defaultValue != null) {
  39198. node.defaultValue = toString(defaultValue);
  39199. }
  39200. }
  39201. function postMountWrapper$3(element, props) {
  39202. var node = element;
  39203. // This is in postMount because we need access to the DOM node, which is not
  39204. // available until after the component has mounted.
  39205. var textContent = node.textContent;
  39206. // Only set node.value if textContent is equal to the expected
  39207. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  39208. // will populate textContent as well.
  39209. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  39210. if (textContent === node._wrapperState.initialValue) {
  39211. node.value = textContent;
  39212. }
  39213. }
  39214. function restoreControlledState$3(element, props) {
  39215. // DOM component is still mounted; update
  39216. updateWrapper$1(element, props);
  39217. }
  39218. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  39219. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  39220. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  39221. var Namespaces = {
  39222. html: HTML_NAMESPACE$1,
  39223. mathml: MATH_NAMESPACE,
  39224. svg: SVG_NAMESPACE
  39225. };
  39226. // Assumes there is no parent namespace.
  39227. function getIntrinsicNamespace(type) {
  39228. switch (type) {
  39229. case 'svg':
  39230. return SVG_NAMESPACE;
  39231. case 'math':
  39232. return MATH_NAMESPACE;
  39233. default:
  39234. return HTML_NAMESPACE$1;
  39235. }
  39236. }
  39237. function getChildNamespace(parentNamespace, type) {
  39238. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  39239. // No (or default) parent namespace: potential entry point.
  39240. return getIntrinsicNamespace(type);
  39241. }
  39242. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  39243. // We're leaving SVG.
  39244. return HTML_NAMESPACE$1;
  39245. }
  39246. // By default, pass namespace below.
  39247. return parentNamespace;
  39248. }
  39249. /* globals MSApp */
  39250. /**
  39251. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  39252. */
  39253. var createMicrosoftUnsafeLocalFunction = function (func) {
  39254. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  39255. return function (arg0, arg1, arg2, arg3) {
  39256. MSApp.execUnsafeLocalFunction(function () {
  39257. return func(arg0, arg1, arg2, arg3);
  39258. });
  39259. };
  39260. } else {
  39261. return func;
  39262. }
  39263. };
  39264. // SVG temp container for IE lacking innerHTML
  39265. var reusableSVGContainer = void 0;
  39266. /**
  39267. * Set the innerHTML property of a node
  39268. *
  39269. * @param {DOMElement} node
  39270. * @param {string} html
  39271. * @internal
  39272. */
  39273. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  39274. // IE does not have innerHTML for SVG nodes, so instead we inject the
  39275. // new markup in a temp node and then move the child nodes across into
  39276. // the target node
  39277. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  39278. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  39279. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  39280. var svgNode = reusableSVGContainer.firstChild;
  39281. while (node.firstChild) {
  39282. node.removeChild(node.firstChild);
  39283. }
  39284. while (svgNode.firstChild) {
  39285. node.appendChild(svgNode.firstChild);
  39286. }
  39287. } else {
  39288. node.innerHTML = html;
  39289. }
  39290. });
  39291. /**
  39292. * Set the textContent property of a node. For text updates, it's faster
  39293. * to set the `nodeValue` of the Text node directly instead of using
  39294. * `.textContent` which will remove the existing node and create a new one.
  39295. *
  39296. * @param {DOMElement} node
  39297. * @param {string} text
  39298. * @internal
  39299. */
  39300. var setTextContent = function (node, text) {
  39301. if (text) {
  39302. var firstChild = node.firstChild;
  39303. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  39304. firstChild.nodeValue = text;
  39305. return;
  39306. }
  39307. }
  39308. node.textContent = text;
  39309. };
  39310. /**
  39311. * CSS properties which accept numbers but are not in units of "px".
  39312. */
  39313. var isUnitlessNumber = {
  39314. animationIterationCount: true,
  39315. borderImageOutset: true,
  39316. borderImageSlice: true,
  39317. borderImageWidth: true,
  39318. boxFlex: true,
  39319. boxFlexGroup: true,
  39320. boxOrdinalGroup: true,
  39321. columnCount: true,
  39322. columns: true,
  39323. flex: true,
  39324. flexGrow: true,
  39325. flexPositive: true,
  39326. flexShrink: true,
  39327. flexNegative: true,
  39328. flexOrder: true,
  39329. gridArea: true,
  39330. gridRow: true,
  39331. gridRowEnd: true,
  39332. gridRowSpan: true,
  39333. gridRowStart: true,
  39334. gridColumn: true,
  39335. gridColumnEnd: true,
  39336. gridColumnSpan: true,
  39337. gridColumnStart: true,
  39338. fontWeight: true,
  39339. lineClamp: true,
  39340. lineHeight: true,
  39341. opacity: true,
  39342. order: true,
  39343. orphans: true,
  39344. tabSize: true,
  39345. widows: true,
  39346. zIndex: true,
  39347. zoom: true,
  39348. // SVG-related properties
  39349. fillOpacity: true,
  39350. floodOpacity: true,
  39351. stopOpacity: true,
  39352. strokeDasharray: true,
  39353. strokeDashoffset: true,
  39354. strokeMiterlimit: true,
  39355. strokeOpacity: true,
  39356. strokeWidth: true
  39357. };
  39358. /**
  39359. * @param {string} prefix vendor-specific prefix, eg: Webkit
  39360. * @param {string} key style name, eg: transitionDuration
  39361. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  39362. * WebkitTransitionDuration
  39363. */
  39364. function prefixKey(prefix, key) {
  39365. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  39366. }
  39367. /**
  39368. * Support style names that may come passed in prefixed by adding permutations
  39369. * of vendor prefixes.
  39370. */
  39371. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  39372. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  39373. // infinite loop, because it iterates over the newly added props too.
  39374. Object.keys(isUnitlessNumber).forEach(function (prop) {
  39375. prefixes.forEach(function (prefix) {
  39376. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  39377. });
  39378. });
  39379. /**
  39380. * Convert a value into the proper css writable value. The style name `name`
  39381. * should be logical (no hyphens), as specified
  39382. * in `CSSProperty.isUnitlessNumber`.
  39383. *
  39384. * @param {string} name CSS property name such as `topMargin`.
  39385. * @param {*} value CSS property value such as `10px`.
  39386. * @return {string} Normalized style value with dimensions applied.
  39387. */
  39388. function dangerousStyleValue(name, value, isCustomProperty) {
  39389. // Note that we've removed escapeTextForBrowser() calls here since the
  39390. // whole string will be escaped when the attribute is injected into
  39391. // the markup. If you provide unsafe user data here they can inject
  39392. // arbitrary CSS which may be problematic (I couldn't repro this):
  39393. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  39394. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  39395. // This is not an XSS hole but instead a potential CSS injection issue
  39396. // which has lead to a greater discussion about how we're going to
  39397. // trust URLs moving forward. See #2115901
  39398. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  39399. if (isEmpty) {
  39400. return '';
  39401. }
  39402. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  39403. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  39404. }
  39405. return ('' + value).trim();
  39406. }
  39407. var uppercasePattern = /([A-Z])/g;
  39408. var msPattern = /^ms-/;
  39409. /**
  39410. * Hyphenates a camelcased CSS property name, for example:
  39411. *
  39412. * > hyphenateStyleName('backgroundColor')
  39413. * < "background-color"
  39414. * > hyphenateStyleName('MozTransition')
  39415. * < "-moz-transition"
  39416. * > hyphenateStyleName('msTransition')
  39417. * < "-ms-transition"
  39418. *
  39419. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  39420. * is converted to `-ms-`.
  39421. */
  39422. function hyphenateStyleName(name) {
  39423. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  39424. }
  39425. var warnValidStyle = function () {};
  39426. {
  39427. // 'msTransform' is correct, but the other prefixes should be capitalized
  39428. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  39429. var msPattern$1 = /^-ms-/;
  39430. var hyphenPattern = /-(.)/g;
  39431. // style values shouldn't contain a semicolon
  39432. var badStyleValueWithSemicolonPattern = /;\s*$/;
  39433. var warnedStyleNames = {};
  39434. var warnedStyleValues = {};
  39435. var warnedForNaNValue = false;
  39436. var warnedForInfinityValue = false;
  39437. var camelize = function (string) {
  39438. return string.replace(hyphenPattern, function (_, character) {
  39439. return character.toUpperCase();
  39440. });
  39441. };
  39442. var warnHyphenatedStyleName = function (name) {
  39443. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  39444. return;
  39445. }
  39446. warnedStyleNames[name] = true;
  39447. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  39448. // As Andi Smith suggests
  39449. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  39450. // is converted to lowercase `ms`.
  39451. camelize(name.replace(msPattern$1, 'ms-')));
  39452. };
  39453. var warnBadVendoredStyleName = function (name) {
  39454. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  39455. return;
  39456. }
  39457. warnedStyleNames[name] = true;
  39458. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  39459. };
  39460. var warnStyleValueWithSemicolon = function (name, value) {
  39461. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  39462. return;
  39463. }
  39464. warnedStyleValues[value] = true;
  39465. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  39466. };
  39467. var warnStyleValueIsNaN = function (name, value) {
  39468. if (warnedForNaNValue) {
  39469. return;
  39470. }
  39471. warnedForNaNValue = true;
  39472. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  39473. };
  39474. var warnStyleValueIsInfinity = function (name, value) {
  39475. if (warnedForInfinityValue) {
  39476. return;
  39477. }
  39478. warnedForInfinityValue = true;
  39479. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  39480. };
  39481. warnValidStyle = function (name, value) {
  39482. if (name.indexOf('-') > -1) {
  39483. warnHyphenatedStyleName(name);
  39484. } else if (badVendoredStyleNamePattern.test(name)) {
  39485. warnBadVendoredStyleName(name);
  39486. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  39487. warnStyleValueWithSemicolon(name, value);
  39488. }
  39489. if (typeof value === 'number') {
  39490. if (isNaN(value)) {
  39491. warnStyleValueIsNaN(name, value);
  39492. } else if (!isFinite(value)) {
  39493. warnStyleValueIsInfinity(name, value);
  39494. }
  39495. }
  39496. };
  39497. }
  39498. var warnValidStyle$1 = warnValidStyle;
  39499. /**
  39500. * Operations for dealing with CSS properties.
  39501. */
  39502. /**
  39503. * This creates a string that is expected to be equivalent to the style
  39504. * attribute generated by server-side rendering. It by-passes warnings and
  39505. * security checks so it's not safe to use this value for anything other than
  39506. * comparison. It is only used in DEV for SSR validation.
  39507. */
  39508. function createDangerousStringForStyles(styles) {
  39509. {
  39510. var serialized = '';
  39511. var delimiter = '';
  39512. for (var styleName in styles) {
  39513. if (!styles.hasOwnProperty(styleName)) {
  39514. continue;
  39515. }
  39516. var styleValue = styles[styleName];
  39517. if (styleValue != null) {
  39518. var isCustomProperty = styleName.indexOf('--') === 0;
  39519. serialized += delimiter + hyphenateStyleName(styleName) + ':';
  39520. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  39521. delimiter = ';';
  39522. }
  39523. }
  39524. return serialized || null;
  39525. }
  39526. }
  39527. /**
  39528. * Sets the value for multiple styles on a node. If a value is specified as
  39529. * '' (empty string), the corresponding style property will be unset.
  39530. *
  39531. * @param {DOMElement} node
  39532. * @param {object} styles
  39533. */
  39534. function setValueForStyles(node, styles) {
  39535. var style = node.style;
  39536. for (var styleName in styles) {
  39537. if (!styles.hasOwnProperty(styleName)) {
  39538. continue;
  39539. }
  39540. var isCustomProperty = styleName.indexOf('--') === 0;
  39541. {
  39542. if (!isCustomProperty) {
  39543. warnValidStyle$1(styleName, styles[styleName]);
  39544. }
  39545. }
  39546. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  39547. if (styleName === 'float') {
  39548. styleName = 'cssFloat';
  39549. }
  39550. if (isCustomProperty) {
  39551. style.setProperty(styleName, styleValue);
  39552. } else {
  39553. style[styleName] = styleValue;
  39554. }
  39555. }
  39556. }
  39557. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  39558. // those special-case tags.
  39559. var omittedCloseTags = {
  39560. area: true,
  39561. base: true,
  39562. br: true,
  39563. col: true,
  39564. embed: true,
  39565. hr: true,
  39566. img: true,
  39567. input: true,
  39568. keygen: true,
  39569. link: true,
  39570. meta: true,
  39571. param: true,
  39572. source: true,
  39573. track: true,
  39574. wbr: true
  39575. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  39576. };
  39577. // For HTML, certain tags cannot have children. This has the same purpose as
  39578. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  39579. var voidElementTags = _assign({
  39580. menuitem: true
  39581. }, omittedCloseTags);
  39582. // TODO: We can remove this if we add invariantWithStack()
  39583. // or add stack by default to invariants where possible.
  39584. var HTML$1 = '__html';
  39585. var ReactDebugCurrentFrame$2 = null;
  39586. {
  39587. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  39588. }
  39589. function assertValidProps(tag, props) {
  39590. if (!props) {
  39591. return;
  39592. }
  39593. // Note the use of `==` which checks for null or undefined.
  39594. if (voidElementTags[tag]) {
  39595. !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  39596. }
  39597. if (props.dangerouslySetInnerHTML != null) {
  39598. !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0;
  39599. !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0;
  39600. }
  39601. {
  39602. !(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;
  39603. }
  39604. !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', ReactDebugCurrentFrame$2.getStackAddendum()) : void 0;
  39605. }
  39606. function isCustomComponent(tagName, props) {
  39607. if (tagName.indexOf('-') === -1) {
  39608. return typeof props.is === 'string';
  39609. }
  39610. switch (tagName) {
  39611. // These are reserved SVG and MathML elements.
  39612. // We don't mind this whitelist too much because we expect it to never grow.
  39613. // The alternative is to track the namespace in a few places which is convoluted.
  39614. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  39615. case 'annotation-xml':
  39616. case 'color-profile':
  39617. case 'font-face':
  39618. case 'font-face-src':
  39619. case 'font-face-uri':
  39620. case 'font-face-format':
  39621. case 'font-face-name':
  39622. case 'missing-glyph':
  39623. return false;
  39624. default:
  39625. return true;
  39626. }
  39627. }
  39628. // When adding attributes to the HTML or SVG whitelist, be sure to
  39629. // also add them to this module to ensure casing and incorrect name
  39630. // warnings.
  39631. var possibleStandardNames = {
  39632. // HTML
  39633. accept: 'accept',
  39634. acceptcharset: 'acceptCharset',
  39635. 'accept-charset': 'acceptCharset',
  39636. accesskey: 'accessKey',
  39637. action: 'action',
  39638. allowfullscreen: 'allowFullScreen',
  39639. alt: 'alt',
  39640. as: 'as',
  39641. async: 'async',
  39642. autocapitalize: 'autoCapitalize',
  39643. autocomplete: 'autoComplete',
  39644. autocorrect: 'autoCorrect',
  39645. autofocus: 'autoFocus',
  39646. autoplay: 'autoPlay',
  39647. autosave: 'autoSave',
  39648. capture: 'capture',
  39649. cellpadding: 'cellPadding',
  39650. cellspacing: 'cellSpacing',
  39651. challenge: 'challenge',
  39652. charset: 'charSet',
  39653. checked: 'checked',
  39654. children: 'children',
  39655. cite: 'cite',
  39656. class: 'className',
  39657. classid: 'classID',
  39658. classname: 'className',
  39659. cols: 'cols',
  39660. colspan: 'colSpan',
  39661. content: 'content',
  39662. contenteditable: 'contentEditable',
  39663. contextmenu: 'contextMenu',
  39664. controls: 'controls',
  39665. controlslist: 'controlsList',
  39666. coords: 'coords',
  39667. crossorigin: 'crossOrigin',
  39668. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  39669. data: 'data',
  39670. datetime: 'dateTime',
  39671. default: 'default',
  39672. defaultchecked: 'defaultChecked',
  39673. defaultvalue: 'defaultValue',
  39674. defer: 'defer',
  39675. dir: 'dir',
  39676. disabled: 'disabled',
  39677. download: 'download',
  39678. draggable: 'draggable',
  39679. enctype: 'encType',
  39680. for: 'htmlFor',
  39681. form: 'form',
  39682. formmethod: 'formMethod',
  39683. formaction: 'formAction',
  39684. formenctype: 'formEncType',
  39685. formnovalidate: 'formNoValidate',
  39686. formtarget: 'formTarget',
  39687. frameborder: 'frameBorder',
  39688. headers: 'headers',
  39689. height: 'height',
  39690. hidden: 'hidden',
  39691. high: 'high',
  39692. href: 'href',
  39693. hreflang: 'hrefLang',
  39694. htmlfor: 'htmlFor',
  39695. httpequiv: 'httpEquiv',
  39696. 'http-equiv': 'httpEquiv',
  39697. icon: 'icon',
  39698. id: 'id',
  39699. innerhtml: 'innerHTML',
  39700. inputmode: 'inputMode',
  39701. integrity: 'integrity',
  39702. is: 'is',
  39703. itemid: 'itemID',
  39704. itemprop: 'itemProp',
  39705. itemref: 'itemRef',
  39706. itemscope: 'itemScope',
  39707. itemtype: 'itemType',
  39708. keyparams: 'keyParams',
  39709. keytype: 'keyType',
  39710. kind: 'kind',
  39711. label: 'label',
  39712. lang: 'lang',
  39713. list: 'list',
  39714. loop: 'loop',
  39715. low: 'low',
  39716. manifest: 'manifest',
  39717. marginwidth: 'marginWidth',
  39718. marginheight: 'marginHeight',
  39719. max: 'max',
  39720. maxlength: 'maxLength',
  39721. media: 'media',
  39722. mediagroup: 'mediaGroup',
  39723. method: 'method',
  39724. min: 'min',
  39725. minlength: 'minLength',
  39726. multiple: 'multiple',
  39727. muted: 'muted',
  39728. name: 'name',
  39729. nomodule: 'noModule',
  39730. nonce: 'nonce',
  39731. novalidate: 'noValidate',
  39732. open: 'open',
  39733. optimum: 'optimum',
  39734. pattern: 'pattern',
  39735. placeholder: 'placeholder',
  39736. playsinline: 'playsInline',
  39737. poster: 'poster',
  39738. preload: 'preload',
  39739. profile: 'profile',
  39740. radiogroup: 'radioGroup',
  39741. readonly: 'readOnly',
  39742. referrerpolicy: 'referrerPolicy',
  39743. rel: 'rel',
  39744. required: 'required',
  39745. reversed: 'reversed',
  39746. role: 'role',
  39747. rows: 'rows',
  39748. rowspan: 'rowSpan',
  39749. sandbox: 'sandbox',
  39750. scope: 'scope',
  39751. scoped: 'scoped',
  39752. scrolling: 'scrolling',
  39753. seamless: 'seamless',
  39754. selected: 'selected',
  39755. shape: 'shape',
  39756. size: 'size',
  39757. sizes: 'sizes',
  39758. span: 'span',
  39759. spellcheck: 'spellCheck',
  39760. src: 'src',
  39761. srcdoc: 'srcDoc',
  39762. srclang: 'srcLang',
  39763. srcset: 'srcSet',
  39764. start: 'start',
  39765. step: 'step',
  39766. style: 'style',
  39767. summary: 'summary',
  39768. tabindex: 'tabIndex',
  39769. target: 'target',
  39770. title: 'title',
  39771. type: 'type',
  39772. usemap: 'useMap',
  39773. value: 'value',
  39774. width: 'width',
  39775. wmode: 'wmode',
  39776. wrap: 'wrap',
  39777. // SVG
  39778. about: 'about',
  39779. accentheight: 'accentHeight',
  39780. 'accent-height': 'accentHeight',
  39781. accumulate: 'accumulate',
  39782. additive: 'additive',
  39783. alignmentbaseline: 'alignmentBaseline',
  39784. 'alignment-baseline': 'alignmentBaseline',
  39785. allowreorder: 'allowReorder',
  39786. alphabetic: 'alphabetic',
  39787. amplitude: 'amplitude',
  39788. arabicform: 'arabicForm',
  39789. 'arabic-form': 'arabicForm',
  39790. ascent: 'ascent',
  39791. attributename: 'attributeName',
  39792. attributetype: 'attributeType',
  39793. autoreverse: 'autoReverse',
  39794. azimuth: 'azimuth',
  39795. basefrequency: 'baseFrequency',
  39796. baselineshift: 'baselineShift',
  39797. 'baseline-shift': 'baselineShift',
  39798. baseprofile: 'baseProfile',
  39799. bbox: 'bbox',
  39800. begin: 'begin',
  39801. bias: 'bias',
  39802. by: 'by',
  39803. calcmode: 'calcMode',
  39804. capheight: 'capHeight',
  39805. 'cap-height': 'capHeight',
  39806. clip: 'clip',
  39807. clippath: 'clipPath',
  39808. 'clip-path': 'clipPath',
  39809. clippathunits: 'clipPathUnits',
  39810. cliprule: 'clipRule',
  39811. 'clip-rule': 'clipRule',
  39812. color: 'color',
  39813. colorinterpolation: 'colorInterpolation',
  39814. 'color-interpolation': 'colorInterpolation',
  39815. colorinterpolationfilters: 'colorInterpolationFilters',
  39816. 'color-interpolation-filters': 'colorInterpolationFilters',
  39817. colorprofile: 'colorProfile',
  39818. 'color-profile': 'colorProfile',
  39819. colorrendering: 'colorRendering',
  39820. 'color-rendering': 'colorRendering',
  39821. contentscripttype: 'contentScriptType',
  39822. contentstyletype: 'contentStyleType',
  39823. cursor: 'cursor',
  39824. cx: 'cx',
  39825. cy: 'cy',
  39826. d: 'd',
  39827. datatype: 'datatype',
  39828. decelerate: 'decelerate',
  39829. descent: 'descent',
  39830. diffuseconstant: 'diffuseConstant',
  39831. direction: 'direction',
  39832. display: 'display',
  39833. divisor: 'divisor',
  39834. dominantbaseline: 'dominantBaseline',
  39835. 'dominant-baseline': 'dominantBaseline',
  39836. dur: 'dur',
  39837. dx: 'dx',
  39838. dy: 'dy',
  39839. edgemode: 'edgeMode',
  39840. elevation: 'elevation',
  39841. enablebackground: 'enableBackground',
  39842. 'enable-background': 'enableBackground',
  39843. end: 'end',
  39844. exponent: 'exponent',
  39845. externalresourcesrequired: 'externalResourcesRequired',
  39846. fill: 'fill',
  39847. fillopacity: 'fillOpacity',
  39848. 'fill-opacity': 'fillOpacity',
  39849. fillrule: 'fillRule',
  39850. 'fill-rule': 'fillRule',
  39851. filter: 'filter',
  39852. filterres: 'filterRes',
  39853. filterunits: 'filterUnits',
  39854. floodopacity: 'floodOpacity',
  39855. 'flood-opacity': 'floodOpacity',
  39856. floodcolor: 'floodColor',
  39857. 'flood-color': 'floodColor',
  39858. focusable: 'focusable',
  39859. fontfamily: 'fontFamily',
  39860. 'font-family': 'fontFamily',
  39861. fontsize: 'fontSize',
  39862. 'font-size': 'fontSize',
  39863. fontsizeadjust: 'fontSizeAdjust',
  39864. 'font-size-adjust': 'fontSizeAdjust',
  39865. fontstretch: 'fontStretch',
  39866. 'font-stretch': 'fontStretch',
  39867. fontstyle: 'fontStyle',
  39868. 'font-style': 'fontStyle',
  39869. fontvariant: 'fontVariant',
  39870. 'font-variant': 'fontVariant',
  39871. fontweight: 'fontWeight',
  39872. 'font-weight': 'fontWeight',
  39873. format: 'format',
  39874. from: 'from',
  39875. fx: 'fx',
  39876. fy: 'fy',
  39877. g1: 'g1',
  39878. g2: 'g2',
  39879. glyphname: 'glyphName',
  39880. 'glyph-name': 'glyphName',
  39881. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  39882. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  39883. glyphorientationvertical: 'glyphOrientationVertical',
  39884. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  39885. glyphref: 'glyphRef',
  39886. gradienttransform: 'gradientTransform',
  39887. gradientunits: 'gradientUnits',
  39888. hanging: 'hanging',
  39889. horizadvx: 'horizAdvX',
  39890. 'horiz-adv-x': 'horizAdvX',
  39891. horizoriginx: 'horizOriginX',
  39892. 'horiz-origin-x': 'horizOriginX',
  39893. ideographic: 'ideographic',
  39894. imagerendering: 'imageRendering',
  39895. 'image-rendering': 'imageRendering',
  39896. in2: 'in2',
  39897. in: 'in',
  39898. inlist: 'inlist',
  39899. intercept: 'intercept',
  39900. k1: 'k1',
  39901. k2: 'k2',
  39902. k3: 'k3',
  39903. k4: 'k4',
  39904. k: 'k',
  39905. kernelmatrix: 'kernelMatrix',
  39906. kernelunitlength: 'kernelUnitLength',
  39907. kerning: 'kerning',
  39908. keypoints: 'keyPoints',
  39909. keysplines: 'keySplines',
  39910. keytimes: 'keyTimes',
  39911. lengthadjust: 'lengthAdjust',
  39912. letterspacing: 'letterSpacing',
  39913. 'letter-spacing': 'letterSpacing',
  39914. lightingcolor: 'lightingColor',
  39915. 'lighting-color': 'lightingColor',
  39916. limitingconeangle: 'limitingConeAngle',
  39917. local: 'local',
  39918. markerend: 'markerEnd',
  39919. 'marker-end': 'markerEnd',
  39920. markerheight: 'markerHeight',
  39921. markermid: 'markerMid',
  39922. 'marker-mid': 'markerMid',
  39923. markerstart: 'markerStart',
  39924. 'marker-start': 'markerStart',
  39925. markerunits: 'markerUnits',
  39926. markerwidth: 'markerWidth',
  39927. mask: 'mask',
  39928. maskcontentunits: 'maskContentUnits',
  39929. maskunits: 'maskUnits',
  39930. mathematical: 'mathematical',
  39931. mode: 'mode',
  39932. numoctaves: 'numOctaves',
  39933. offset: 'offset',
  39934. opacity: 'opacity',
  39935. operator: 'operator',
  39936. order: 'order',
  39937. orient: 'orient',
  39938. orientation: 'orientation',
  39939. origin: 'origin',
  39940. overflow: 'overflow',
  39941. overlineposition: 'overlinePosition',
  39942. 'overline-position': 'overlinePosition',
  39943. overlinethickness: 'overlineThickness',
  39944. 'overline-thickness': 'overlineThickness',
  39945. paintorder: 'paintOrder',
  39946. 'paint-order': 'paintOrder',
  39947. panose1: 'panose1',
  39948. 'panose-1': 'panose1',
  39949. pathlength: 'pathLength',
  39950. patterncontentunits: 'patternContentUnits',
  39951. patterntransform: 'patternTransform',
  39952. patternunits: 'patternUnits',
  39953. pointerevents: 'pointerEvents',
  39954. 'pointer-events': 'pointerEvents',
  39955. points: 'points',
  39956. pointsatx: 'pointsAtX',
  39957. pointsaty: 'pointsAtY',
  39958. pointsatz: 'pointsAtZ',
  39959. prefix: 'prefix',
  39960. preservealpha: 'preserveAlpha',
  39961. preserveaspectratio: 'preserveAspectRatio',
  39962. primitiveunits: 'primitiveUnits',
  39963. property: 'property',
  39964. r: 'r',
  39965. radius: 'radius',
  39966. refx: 'refX',
  39967. refy: 'refY',
  39968. renderingintent: 'renderingIntent',
  39969. 'rendering-intent': 'renderingIntent',
  39970. repeatcount: 'repeatCount',
  39971. repeatdur: 'repeatDur',
  39972. requiredextensions: 'requiredExtensions',
  39973. requiredfeatures: 'requiredFeatures',
  39974. resource: 'resource',
  39975. restart: 'restart',
  39976. result: 'result',
  39977. results: 'results',
  39978. rotate: 'rotate',
  39979. rx: 'rx',
  39980. ry: 'ry',
  39981. scale: 'scale',
  39982. security: 'security',
  39983. seed: 'seed',
  39984. shaperendering: 'shapeRendering',
  39985. 'shape-rendering': 'shapeRendering',
  39986. slope: 'slope',
  39987. spacing: 'spacing',
  39988. specularconstant: 'specularConstant',
  39989. specularexponent: 'specularExponent',
  39990. speed: 'speed',
  39991. spreadmethod: 'spreadMethod',
  39992. startoffset: 'startOffset',
  39993. stddeviation: 'stdDeviation',
  39994. stemh: 'stemh',
  39995. stemv: 'stemv',
  39996. stitchtiles: 'stitchTiles',
  39997. stopcolor: 'stopColor',
  39998. 'stop-color': 'stopColor',
  39999. stopopacity: 'stopOpacity',
  40000. 'stop-opacity': 'stopOpacity',
  40001. strikethroughposition: 'strikethroughPosition',
  40002. 'strikethrough-position': 'strikethroughPosition',
  40003. strikethroughthickness: 'strikethroughThickness',
  40004. 'strikethrough-thickness': 'strikethroughThickness',
  40005. string: 'string',
  40006. stroke: 'stroke',
  40007. strokedasharray: 'strokeDasharray',
  40008. 'stroke-dasharray': 'strokeDasharray',
  40009. strokedashoffset: 'strokeDashoffset',
  40010. 'stroke-dashoffset': 'strokeDashoffset',
  40011. strokelinecap: 'strokeLinecap',
  40012. 'stroke-linecap': 'strokeLinecap',
  40013. strokelinejoin: 'strokeLinejoin',
  40014. 'stroke-linejoin': 'strokeLinejoin',
  40015. strokemiterlimit: 'strokeMiterlimit',
  40016. 'stroke-miterlimit': 'strokeMiterlimit',
  40017. strokewidth: 'strokeWidth',
  40018. 'stroke-width': 'strokeWidth',
  40019. strokeopacity: 'strokeOpacity',
  40020. 'stroke-opacity': 'strokeOpacity',
  40021. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  40022. suppresshydrationwarning: 'suppressHydrationWarning',
  40023. surfacescale: 'surfaceScale',
  40024. systemlanguage: 'systemLanguage',
  40025. tablevalues: 'tableValues',
  40026. targetx: 'targetX',
  40027. targety: 'targetY',
  40028. textanchor: 'textAnchor',
  40029. 'text-anchor': 'textAnchor',
  40030. textdecoration: 'textDecoration',
  40031. 'text-decoration': 'textDecoration',
  40032. textlength: 'textLength',
  40033. textrendering: 'textRendering',
  40034. 'text-rendering': 'textRendering',
  40035. to: 'to',
  40036. transform: 'transform',
  40037. typeof: 'typeof',
  40038. u1: 'u1',
  40039. u2: 'u2',
  40040. underlineposition: 'underlinePosition',
  40041. 'underline-position': 'underlinePosition',
  40042. underlinethickness: 'underlineThickness',
  40043. 'underline-thickness': 'underlineThickness',
  40044. unicode: 'unicode',
  40045. unicodebidi: 'unicodeBidi',
  40046. 'unicode-bidi': 'unicodeBidi',
  40047. unicoderange: 'unicodeRange',
  40048. 'unicode-range': 'unicodeRange',
  40049. unitsperem: 'unitsPerEm',
  40050. 'units-per-em': 'unitsPerEm',
  40051. unselectable: 'unselectable',
  40052. valphabetic: 'vAlphabetic',
  40053. 'v-alphabetic': 'vAlphabetic',
  40054. values: 'values',
  40055. vectoreffect: 'vectorEffect',
  40056. 'vector-effect': 'vectorEffect',
  40057. version: 'version',
  40058. vertadvy: 'vertAdvY',
  40059. 'vert-adv-y': 'vertAdvY',
  40060. vertoriginx: 'vertOriginX',
  40061. 'vert-origin-x': 'vertOriginX',
  40062. vertoriginy: 'vertOriginY',
  40063. 'vert-origin-y': 'vertOriginY',
  40064. vhanging: 'vHanging',
  40065. 'v-hanging': 'vHanging',
  40066. videographic: 'vIdeographic',
  40067. 'v-ideographic': 'vIdeographic',
  40068. viewbox: 'viewBox',
  40069. viewtarget: 'viewTarget',
  40070. visibility: 'visibility',
  40071. vmathematical: 'vMathematical',
  40072. 'v-mathematical': 'vMathematical',
  40073. vocab: 'vocab',
  40074. widths: 'widths',
  40075. wordspacing: 'wordSpacing',
  40076. 'word-spacing': 'wordSpacing',
  40077. writingmode: 'writingMode',
  40078. 'writing-mode': 'writingMode',
  40079. x1: 'x1',
  40080. x2: 'x2',
  40081. x: 'x',
  40082. xchannelselector: 'xChannelSelector',
  40083. xheight: 'xHeight',
  40084. 'x-height': 'xHeight',
  40085. xlinkactuate: 'xlinkActuate',
  40086. 'xlink:actuate': 'xlinkActuate',
  40087. xlinkarcrole: 'xlinkArcrole',
  40088. 'xlink:arcrole': 'xlinkArcrole',
  40089. xlinkhref: 'xlinkHref',
  40090. 'xlink:href': 'xlinkHref',
  40091. xlinkrole: 'xlinkRole',
  40092. 'xlink:role': 'xlinkRole',
  40093. xlinkshow: 'xlinkShow',
  40094. 'xlink:show': 'xlinkShow',
  40095. xlinktitle: 'xlinkTitle',
  40096. 'xlink:title': 'xlinkTitle',
  40097. xlinktype: 'xlinkType',
  40098. 'xlink:type': 'xlinkType',
  40099. xmlbase: 'xmlBase',
  40100. 'xml:base': 'xmlBase',
  40101. xmllang: 'xmlLang',
  40102. 'xml:lang': 'xmlLang',
  40103. xmlns: 'xmlns',
  40104. 'xml:space': 'xmlSpace',
  40105. xmlnsxlink: 'xmlnsXlink',
  40106. 'xmlns:xlink': 'xmlnsXlink',
  40107. xmlspace: 'xmlSpace',
  40108. y1: 'y1',
  40109. y2: 'y2',
  40110. y: 'y',
  40111. ychannelselector: 'yChannelSelector',
  40112. z: 'z',
  40113. zoomandpan: 'zoomAndPan'
  40114. };
  40115. var ariaProperties = {
  40116. 'aria-current': 0, // state
  40117. 'aria-details': 0,
  40118. 'aria-disabled': 0, // state
  40119. 'aria-hidden': 0, // state
  40120. 'aria-invalid': 0, // state
  40121. 'aria-keyshortcuts': 0,
  40122. 'aria-label': 0,
  40123. 'aria-roledescription': 0,
  40124. // Widget Attributes
  40125. 'aria-autocomplete': 0,
  40126. 'aria-checked': 0,
  40127. 'aria-expanded': 0,
  40128. 'aria-haspopup': 0,
  40129. 'aria-level': 0,
  40130. 'aria-modal': 0,
  40131. 'aria-multiline': 0,
  40132. 'aria-multiselectable': 0,
  40133. 'aria-orientation': 0,
  40134. 'aria-placeholder': 0,
  40135. 'aria-pressed': 0,
  40136. 'aria-readonly': 0,
  40137. 'aria-required': 0,
  40138. 'aria-selected': 0,
  40139. 'aria-sort': 0,
  40140. 'aria-valuemax': 0,
  40141. 'aria-valuemin': 0,
  40142. 'aria-valuenow': 0,
  40143. 'aria-valuetext': 0,
  40144. // Live Region Attributes
  40145. 'aria-atomic': 0,
  40146. 'aria-busy': 0,
  40147. 'aria-live': 0,
  40148. 'aria-relevant': 0,
  40149. // Drag-and-Drop Attributes
  40150. 'aria-dropeffect': 0,
  40151. 'aria-grabbed': 0,
  40152. // Relationship Attributes
  40153. 'aria-activedescendant': 0,
  40154. 'aria-colcount': 0,
  40155. 'aria-colindex': 0,
  40156. 'aria-colspan': 0,
  40157. 'aria-controls': 0,
  40158. 'aria-describedby': 0,
  40159. 'aria-errormessage': 0,
  40160. 'aria-flowto': 0,
  40161. 'aria-labelledby': 0,
  40162. 'aria-owns': 0,
  40163. 'aria-posinset': 0,
  40164. 'aria-rowcount': 0,
  40165. 'aria-rowindex': 0,
  40166. 'aria-rowspan': 0,
  40167. 'aria-setsize': 0
  40168. };
  40169. var warnedProperties = {};
  40170. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  40171. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  40172. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  40173. function validateProperty(tagName, name) {
  40174. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  40175. return true;
  40176. }
  40177. if (rARIACamel.test(name)) {
  40178. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  40179. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  40180. // If this is an aria-* attribute, but is not listed in the known DOM
  40181. // DOM properties, then it is an invalid aria-* attribute.
  40182. if (correctName == null) {
  40183. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  40184. warnedProperties[name] = true;
  40185. return true;
  40186. }
  40187. // aria-* attributes should be lowercase; suggest the lowercase version.
  40188. if (name !== correctName) {
  40189. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  40190. warnedProperties[name] = true;
  40191. return true;
  40192. }
  40193. }
  40194. if (rARIA.test(name)) {
  40195. var lowerCasedName = name.toLowerCase();
  40196. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  40197. // If this is an aria-* attribute, but is not listed in the known DOM
  40198. // DOM properties, then it is an invalid aria-* attribute.
  40199. if (standardName == null) {
  40200. warnedProperties[name] = true;
  40201. return false;
  40202. }
  40203. // aria-* attributes should be lowercase; suggest the lowercase version.
  40204. if (name !== standardName) {
  40205. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  40206. warnedProperties[name] = true;
  40207. return true;
  40208. }
  40209. }
  40210. return true;
  40211. }
  40212. function warnInvalidARIAProps(type, props) {
  40213. var invalidProps = [];
  40214. for (var key in props) {
  40215. var isValid = validateProperty(type, key);
  40216. if (!isValid) {
  40217. invalidProps.push(key);
  40218. }
  40219. }
  40220. var unknownPropString = invalidProps.map(function (prop) {
  40221. return '`' + prop + '`';
  40222. }).join(', ');
  40223. if (invalidProps.length === 1) {
  40224. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  40225. } else if (invalidProps.length > 1) {
  40226. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  40227. }
  40228. }
  40229. function validateProperties(type, props) {
  40230. if (isCustomComponent(type, props)) {
  40231. return;
  40232. }
  40233. warnInvalidARIAProps(type, props);
  40234. }
  40235. var didWarnValueNull = false;
  40236. function validateProperties$1(type, props) {
  40237. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  40238. return;
  40239. }
  40240. if (props != null && props.value === null && !didWarnValueNull) {
  40241. didWarnValueNull = true;
  40242. if (type === 'select' && props.multiple) {
  40243. 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);
  40244. } else {
  40245. 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);
  40246. }
  40247. }
  40248. }
  40249. var validateProperty$1 = function () {};
  40250. {
  40251. var warnedProperties$1 = {};
  40252. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  40253. var EVENT_NAME_REGEX = /^on./;
  40254. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  40255. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  40256. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  40257. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  40258. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  40259. return true;
  40260. }
  40261. var lowerCasedName = name.toLowerCase();
  40262. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  40263. 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.');
  40264. warnedProperties$1[name] = true;
  40265. return true;
  40266. }
  40267. // We can't rely on the event system being injected on the server.
  40268. if (canUseEventSystem) {
  40269. if (registrationNameModules.hasOwnProperty(name)) {
  40270. return true;
  40271. }
  40272. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  40273. if (registrationName != null) {
  40274. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  40275. warnedProperties$1[name] = true;
  40276. return true;
  40277. }
  40278. if (EVENT_NAME_REGEX.test(name)) {
  40279. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  40280. warnedProperties$1[name] = true;
  40281. return true;
  40282. }
  40283. } else if (EVENT_NAME_REGEX.test(name)) {
  40284. // If no event plugins have been injected, we are in a server environment.
  40285. // So we can't tell if the event name is correct for sure, but we can filter
  40286. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  40287. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  40288. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  40289. }
  40290. warnedProperties$1[name] = true;
  40291. return true;
  40292. }
  40293. // Let the ARIA attribute hook validate ARIA attributes
  40294. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  40295. return true;
  40296. }
  40297. if (lowerCasedName === 'innerhtml') {
  40298. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  40299. warnedProperties$1[name] = true;
  40300. return true;
  40301. }
  40302. if (lowerCasedName === 'aria') {
  40303. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  40304. warnedProperties$1[name] = true;
  40305. return true;
  40306. }
  40307. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  40308. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  40309. warnedProperties$1[name] = true;
  40310. return true;
  40311. }
  40312. if (typeof value === 'number' && isNaN(value)) {
  40313. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  40314. warnedProperties$1[name] = true;
  40315. return true;
  40316. }
  40317. var propertyInfo = getPropertyInfo(name);
  40318. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  40319. // Known attributes should match the casing specified in the property config.
  40320. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  40321. var standardName = possibleStandardNames[lowerCasedName];
  40322. if (standardName !== name) {
  40323. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  40324. warnedProperties$1[name] = true;
  40325. return true;
  40326. }
  40327. } else if (!isReserved && name !== lowerCasedName) {
  40328. // Unknown attributes should have lowercase casing since that's how they
  40329. // will be cased anyway with server rendering.
  40330. 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);
  40331. warnedProperties$1[name] = true;
  40332. return true;
  40333. }
  40334. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  40335. if (value) {
  40336. 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);
  40337. } else {
  40338. 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);
  40339. }
  40340. warnedProperties$1[name] = true;
  40341. return true;
  40342. }
  40343. // Now that we've validated casing, do not validate
  40344. // data types for reserved props
  40345. if (isReserved) {
  40346. return true;
  40347. }
  40348. // Warn when a known attribute is a bad type
  40349. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  40350. warnedProperties$1[name] = true;
  40351. return false;
  40352. }
  40353. // Warn when passing the strings 'false' or 'true' into a boolean prop
  40354. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  40355. 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);
  40356. warnedProperties$1[name] = true;
  40357. return true;
  40358. }
  40359. return true;
  40360. };
  40361. }
  40362. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  40363. var unknownProps = [];
  40364. for (var key in props) {
  40365. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  40366. if (!isValid) {
  40367. unknownProps.push(key);
  40368. }
  40369. }
  40370. var unknownPropString = unknownProps.map(function (prop) {
  40371. return '`' + prop + '`';
  40372. }).join(', ');
  40373. if (unknownProps.length === 1) {
  40374. 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);
  40375. } else if (unknownProps.length > 1) {
  40376. 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);
  40377. }
  40378. };
  40379. function validateProperties$2(type, props, canUseEventSystem) {
  40380. if (isCustomComponent(type, props)) {
  40381. return;
  40382. }
  40383. warnUnknownProperties(type, props, canUseEventSystem);
  40384. }
  40385. // TODO: direct imports like some-package/src/* are bad. Fix me.
  40386. var didWarnInvalidHydration = false;
  40387. var didWarnShadyDOM = false;
  40388. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  40389. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  40390. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  40391. var AUTOFOCUS = 'autoFocus';
  40392. var CHILDREN = 'children';
  40393. var STYLE$1 = 'style';
  40394. var HTML = '__html';
  40395. var HTML_NAMESPACE = Namespaces.html;
  40396. var warnedUnknownTags = void 0;
  40397. var suppressHydrationWarning = void 0;
  40398. var validatePropertiesInDevelopment = void 0;
  40399. var warnForTextDifference = void 0;
  40400. var warnForPropDifference = void 0;
  40401. var warnForExtraAttributes = void 0;
  40402. var warnForInvalidEventListener = void 0;
  40403. var canDiffStyleForHydrationWarning = void 0;
  40404. var normalizeMarkupForTextOrAttribute = void 0;
  40405. var normalizeHTML = void 0;
  40406. {
  40407. warnedUnknownTags = {
  40408. // Chrome is the only major browser not shipping <time>. But as of July
  40409. // 2017 it intends to ship it due to widespread usage. We intentionally
  40410. // *don't* warn for <time> even if it's unrecognized by Chrome because
  40411. // it soon will be, and many apps have been using it anyway.
  40412. time: true,
  40413. // There are working polyfills for <dialog>. Let people use it.
  40414. dialog: true,
  40415. // Electron ships a custom <webview> tag to display external web content in
  40416. // an isolated frame and process.
  40417. // This tag is not present in non Electron environments such as JSDom which
  40418. // is often used for testing purposes.
  40419. // @see https://electronjs.org/docs/api/webview-tag
  40420. webview: true
  40421. };
  40422. validatePropertiesInDevelopment = function (type, props) {
  40423. validateProperties(type, props);
  40424. validateProperties$1(type, props);
  40425. validateProperties$2(type, props, /* canUseEventSystem */true);
  40426. };
  40427. // IE 11 parses & normalizes the style attribute as opposed to other
  40428. // browsers. It adds spaces and sorts the properties in some
  40429. // non-alphabetical order. Handling that would require sorting CSS
  40430. // properties in the client & server versions or applying
  40431. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  40432. // normalized. Since it only affects IE, we're skipping style warnings
  40433. // in that browser completely in favor of doing all that work.
  40434. // See https://github.com/facebook/react/issues/11807
  40435. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  40436. // HTML parsing normalizes CR and CRLF to LF.
  40437. // It also can turn \u0000 into \uFFFD inside attributes.
  40438. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  40439. // If we have a mismatch, it might be caused by that.
  40440. // We will still patch up in this case but not fire the warning.
  40441. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  40442. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  40443. normalizeMarkupForTextOrAttribute = function (markup) {
  40444. var markupString = typeof markup === 'string' ? markup : '' + markup;
  40445. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  40446. };
  40447. warnForTextDifference = function (serverText, clientText) {
  40448. if (didWarnInvalidHydration) {
  40449. return;
  40450. }
  40451. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  40452. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  40453. if (normalizedServerText === normalizedClientText) {
  40454. return;
  40455. }
  40456. didWarnInvalidHydration = true;
  40457. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  40458. };
  40459. warnForPropDifference = function (propName, serverValue, clientValue) {
  40460. if (didWarnInvalidHydration) {
  40461. return;
  40462. }
  40463. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  40464. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  40465. if (normalizedServerValue === normalizedClientValue) {
  40466. return;
  40467. }
  40468. didWarnInvalidHydration = true;
  40469. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  40470. };
  40471. warnForExtraAttributes = function (attributeNames) {
  40472. if (didWarnInvalidHydration) {
  40473. return;
  40474. }
  40475. didWarnInvalidHydration = true;
  40476. var names = [];
  40477. attributeNames.forEach(function (name) {
  40478. names.push(name);
  40479. });
  40480. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  40481. };
  40482. warnForInvalidEventListener = function (registrationName, listener) {
  40483. if (listener === false) {
  40484. 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);
  40485. } else {
  40486. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  40487. }
  40488. };
  40489. // Parse the HTML and read it back to normalize the HTML string so that it
  40490. // can be used for comparison.
  40491. normalizeHTML = function (parent, html) {
  40492. // We could have created a separate document here to avoid
  40493. // re-initializing custom elements if they exist. But this breaks
  40494. // how <noscript> is being handled. So we use the same document.
  40495. // See the discussion in https://github.com/facebook/react/pull/11157.
  40496. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  40497. testElement.innerHTML = html;
  40498. return testElement.innerHTML;
  40499. };
  40500. }
  40501. function ensureListeningTo(rootContainerElement, registrationName) {
  40502. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  40503. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  40504. listenTo(registrationName, doc);
  40505. }
  40506. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  40507. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  40508. }
  40509. function noop() {}
  40510. function trapClickOnNonInteractiveElement(node) {
  40511. // Mobile Safari does not fire properly bubble click events on
  40512. // non-interactive elements, which means delegated click listeners do not
  40513. // fire. The workaround for this bug involves attaching an empty click
  40514. // listener on the target node.
  40515. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  40516. // Just set it using the onclick property so that we don't have to manage any
  40517. // bookkeeping for it. Not sure if we need to clear it when the listener is
  40518. // removed.
  40519. // TODO: Only do this for the relevant Safaris maybe?
  40520. node.onclick = noop;
  40521. }
  40522. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  40523. for (var propKey in nextProps) {
  40524. if (!nextProps.hasOwnProperty(propKey)) {
  40525. continue;
  40526. }
  40527. var nextProp = nextProps[propKey];
  40528. if (propKey === STYLE$1) {
  40529. {
  40530. if (nextProp) {
  40531. // Freeze the next style object so that we can assume it won't be
  40532. // mutated. We have already warned for this in the past.
  40533. Object.freeze(nextProp);
  40534. }
  40535. }
  40536. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  40537. setValueForStyles(domElement, nextProp);
  40538. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40539. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  40540. if (nextHtml != null) {
  40541. setInnerHTML(domElement, nextHtml);
  40542. }
  40543. } else if (propKey === CHILDREN) {
  40544. if (typeof nextProp === 'string') {
  40545. // Avoid setting initial textContent when the text is empty. In IE11 setting
  40546. // textContent on a <textarea> will cause the placeholder to not
  40547. // show within the <textarea> until it has been focused and blurred again.
  40548. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  40549. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  40550. if (canSetTextContent) {
  40551. setTextContent(domElement, nextProp);
  40552. }
  40553. } else if (typeof nextProp === 'number') {
  40554. setTextContent(domElement, '' + nextProp);
  40555. }
  40556. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40557. // Noop
  40558. } else if (propKey === AUTOFOCUS) {
  40559. // We polyfill it separately on the client during commit.
  40560. // We could have excluded it in the property list instead of
  40561. // adding a special case here, but then it wouldn't be emitted
  40562. // on server rendering (but we *do* want to emit it in SSR).
  40563. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40564. if (nextProp != null) {
  40565. if ( true && typeof nextProp !== 'function') {
  40566. warnForInvalidEventListener(propKey, nextProp);
  40567. }
  40568. ensureListeningTo(rootContainerElement, propKey);
  40569. }
  40570. } else if (nextProp != null) {
  40571. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  40572. }
  40573. }
  40574. }
  40575. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  40576. // TODO: Handle wasCustomComponentTag
  40577. for (var i = 0; i < updatePayload.length; i += 2) {
  40578. var propKey = updatePayload[i];
  40579. var propValue = updatePayload[i + 1];
  40580. if (propKey === STYLE$1) {
  40581. setValueForStyles(domElement, propValue);
  40582. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40583. setInnerHTML(domElement, propValue);
  40584. } else if (propKey === CHILDREN) {
  40585. setTextContent(domElement, propValue);
  40586. } else {
  40587. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  40588. }
  40589. }
  40590. }
  40591. function createElement(type, props, rootContainerElement, parentNamespace) {
  40592. var isCustomComponentTag = void 0;
  40593. // We create tags in the namespace of their parent container, except HTML
  40594. // tags get no namespace.
  40595. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  40596. var domElement = void 0;
  40597. var namespaceURI = parentNamespace;
  40598. if (namespaceURI === HTML_NAMESPACE) {
  40599. namespaceURI = getIntrinsicNamespace(type);
  40600. }
  40601. if (namespaceURI === HTML_NAMESPACE) {
  40602. {
  40603. isCustomComponentTag = isCustomComponent(type, props);
  40604. // Should this check be gated by parent namespace? Not sure we want to
  40605. // allow <SVG> or <mATH>.
  40606. !(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;
  40607. }
  40608. if (type === 'script') {
  40609. // Create the script via .innerHTML so its "parser-inserted" flag is
  40610. // set to true and it does not execute
  40611. var div = ownerDocument.createElement('div');
  40612. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  40613. // This is guaranteed to yield a script element.
  40614. var firstChild = div.firstChild;
  40615. domElement = div.removeChild(firstChild);
  40616. } else if (typeof props.is === 'string') {
  40617. // $FlowIssue `createElement` should be updated for Web Components
  40618. domElement = ownerDocument.createElement(type, { is: props.is });
  40619. } else {
  40620. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  40621. // See discussion in https://github.com/facebook/react/pull/6896
  40622. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  40623. domElement = ownerDocument.createElement(type);
  40624. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple`
  40625. // attribute on `select`s needs to be added before `option`s are inserted. This prevents
  40626. // a bug where the `select` does not scroll to the correct option because singular
  40627. // `select` elements automatically pick the first item.
  40628. // See https://github.com/facebook/react/issues/13222
  40629. if (type === 'select' && props.multiple) {
  40630. var node = domElement;
  40631. node.multiple = true;
  40632. }
  40633. }
  40634. } else {
  40635. domElement = ownerDocument.createElementNS(namespaceURI, type);
  40636. }
  40637. {
  40638. if (namespaceURI === HTML_NAMESPACE) {
  40639. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  40640. warnedUnknownTags[type] = true;
  40641. 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);
  40642. }
  40643. }
  40644. }
  40645. return domElement;
  40646. }
  40647. function createTextNode(text, rootContainerElement) {
  40648. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  40649. }
  40650. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  40651. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  40652. {
  40653. validatePropertiesInDevelopment(tag, rawProps);
  40654. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  40655. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  40656. didWarnShadyDOM = true;
  40657. }
  40658. }
  40659. // TODO: Make sure that we check isMounted before firing any of these events.
  40660. var props = void 0;
  40661. switch (tag) {
  40662. case 'iframe':
  40663. case 'object':
  40664. trapBubbledEvent(TOP_LOAD, domElement);
  40665. props = rawProps;
  40666. break;
  40667. case 'video':
  40668. case 'audio':
  40669. // Create listener for each media event
  40670. for (var i = 0; i < mediaEventTypes.length; i++) {
  40671. trapBubbledEvent(mediaEventTypes[i], domElement);
  40672. }
  40673. props = rawProps;
  40674. break;
  40675. case 'source':
  40676. trapBubbledEvent(TOP_ERROR, domElement);
  40677. props = rawProps;
  40678. break;
  40679. case 'img':
  40680. case 'image':
  40681. case 'link':
  40682. trapBubbledEvent(TOP_ERROR, domElement);
  40683. trapBubbledEvent(TOP_LOAD, domElement);
  40684. props = rawProps;
  40685. break;
  40686. case 'form':
  40687. trapBubbledEvent(TOP_RESET, domElement);
  40688. trapBubbledEvent(TOP_SUBMIT, domElement);
  40689. props = rawProps;
  40690. break;
  40691. case 'details':
  40692. trapBubbledEvent(TOP_TOGGLE, domElement);
  40693. props = rawProps;
  40694. break;
  40695. case 'input':
  40696. initWrapperState(domElement, rawProps);
  40697. props = getHostProps(domElement, rawProps);
  40698. trapBubbledEvent(TOP_INVALID, domElement);
  40699. // For controlled components we always need to ensure we're listening
  40700. // to onChange. Even if there is no listener.
  40701. ensureListeningTo(rootContainerElement, 'onChange');
  40702. break;
  40703. case 'option':
  40704. validateProps(domElement, rawProps);
  40705. props = getHostProps$1(domElement, rawProps);
  40706. break;
  40707. case 'select':
  40708. initWrapperState$1(domElement, rawProps);
  40709. props = getHostProps$2(domElement, rawProps);
  40710. trapBubbledEvent(TOP_INVALID, domElement);
  40711. // For controlled components we always need to ensure we're listening
  40712. // to onChange. Even if there is no listener.
  40713. ensureListeningTo(rootContainerElement, 'onChange');
  40714. break;
  40715. case 'textarea':
  40716. initWrapperState$2(domElement, rawProps);
  40717. props = getHostProps$3(domElement, rawProps);
  40718. trapBubbledEvent(TOP_INVALID, domElement);
  40719. // For controlled components we always need to ensure we're listening
  40720. // to onChange. Even if there is no listener.
  40721. ensureListeningTo(rootContainerElement, 'onChange');
  40722. break;
  40723. default:
  40724. props = rawProps;
  40725. }
  40726. assertValidProps(tag, props);
  40727. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  40728. switch (tag) {
  40729. case 'input':
  40730. // TODO: Make sure we check if this is still unmounted or do any clean
  40731. // up necessary since we never stop tracking anymore.
  40732. track(domElement);
  40733. postMountWrapper(domElement, rawProps, false);
  40734. break;
  40735. case 'textarea':
  40736. // TODO: Make sure we check if this is still unmounted or do any clean
  40737. // up necessary since we never stop tracking anymore.
  40738. track(domElement);
  40739. postMountWrapper$3(domElement, rawProps);
  40740. break;
  40741. case 'option':
  40742. postMountWrapper$1(domElement, rawProps);
  40743. break;
  40744. case 'select':
  40745. postMountWrapper$2(domElement, rawProps);
  40746. break;
  40747. default:
  40748. if (typeof props.onClick === 'function') {
  40749. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  40750. trapClickOnNonInteractiveElement(domElement);
  40751. }
  40752. break;
  40753. }
  40754. }
  40755. // Calculate the diff between the two objects.
  40756. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  40757. {
  40758. validatePropertiesInDevelopment(tag, nextRawProps);
  40759. }
  40760. var updatePayload = null;
  40761. var lastProps = void 0;
  40762. var nextProps = void 0;
  40763. switch (tag) {
  40764. case 'input':
  40765. lastProps = getHostProps(domElement, lastRawProps);
  40766. nextProps = getHostProps(domElement, nextRawProps);
  40767. updatePayload = [];
  40768. break;
  40769. case 'option':
  40770. lastProps = getHostProps$1(domElement, lastRawProps);
  40771. nextProps = getHostProps$1(domElement, nextRawProps);
  40772. updatePayload = [];
  40773. break;
  40774. case 'select':
  40775. lastProps = getHostProps$2(domElement, lastRawProps);
  40776. nextProps = getHostProps$2(domElement, nextRawProps);
  40777. updatePayload = [];
  40778. break;
  40779. case 'textarea':
  40780. lastProps = getHostProps$3(domElement, lastRawProps);
  40781. nextProps = getHostProps$3(domElement, nextRawProps);
  40782. updatePayload = [];
  40783. break;
  40784. default:
  40785. lastProps = lastRawProps;
  40786. nextProps = nextRawProps;
  40787. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  40788. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  40789. trapClickOnNonInteractiveElement(domElement);
  40790. }
  40791. break;
  40792. }
  40793. assertValidProps(tag, nextProps);
  40794. var propKey = void 0;
  40795. var styleName = void 0;
  40796. var styleUpdates = null;
  40797. for (propKey in lastProps) {
  40798. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  40799. continue;
  40800. }
  40801. if (propKey === STYLE$1) {
  40802. var lastStyle = lastProps[propKey];
  40803. for (styleName in lastStyle) {
  40804. if (lastStyle.hasOwnProperty(styleName)) {
  40805. if (!styleUpdates) {
  40806. styleUpdates = {};
  40807. }
  40808. styleUpdates[styleName] = '';
  40809. }
  40810. }
  40811. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  40812. // Noop. This is handled by the clear text mechanism.
  40813. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40814. // Noop
  40815. } else if (propKey === AUTOFOCUS) {
  40816. // Noop. It doesn't work on updates anyway.
  40817. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40818. // This is a special case. If any listener updates we need to ensure
  40819. // that the "current" fiber pointer gets updated so we need a commit
  40820. // to update this element.
  40821. if (!updatePayload) {
  40822. updatePayload = [];
  40823. }
  40824. } else {
  40825. // For all other deleted properties we add it to the queue. We use
  40826. // the whitelist in the commit phase instead.
  40827. (updatePayload = updatePayload || []).push(propKey, null);
  40828. }
  40829. }
  40830. for (propKey in nextProps) {
  40831. var nextProp = nextProps[propKey];
  40832. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  40833. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  40834. continue;
  40835. }
  40836. if (propKey === STYLE$1) {
  40837. {
  40838. if (nextProp) {
  40839. // Freeze the next style object so that we can assume it won't be
  40840. // mutated. We have already warned for this in the past.
  40841. Object.freeze(nextProp);
  40842. }
  40843. }
  40844. if (lastProp) {
  40845. // Unset styles on `lastProp` but not on `nextProp`.
  40846. for (styleName in lastProp) {
  40847. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  40848. if (!styleUpdates) {
  40849. styleUpdates = {};
  40850. }
  40851. styleUpdates[styleName] = '';
  40852. }
  40853. }
  40854. // Update styles that changed since `lastProp`.
  40855. for (styleName in nextProp) {
  40856. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  40857. if (!styleUpdates) {
  40858. styleUpdates = {};
  40859. }
  40860. styleUpdates[styleName] = nextProp[styleName];
  40861. }
  40862. }
  40863. } else {
  40864. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  40865. if (!styleUpdates) {
  40866. if (!updatePayload) {
  40867. updatePayload = [];
  40868. }
  40869. updatePayload.push(propKey, styleUpdates);
  40870. }
  40871. styleUpdates = nextProp;
  40872. }
  40873. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  40874. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  40875. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  40876. if (nextHtml != null) {
  40877. if (lastHtml !== nextHtml) {
  40878. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  40879. }
  40880. } else {
  40881. // TODO: It might be too late to clear this if we have children
  40882. // inserted already.
  40883. }
  40884. } else if (propKey === CHILDREN) {
  40885. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  40886. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  40887. }
  40888. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  40889. // Noop
  40890. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  40891. if (nextProp != null) {
  40892. // We eagerly listen to this even though we haven't committed yet.
  40893. if ( true && typeof nextProp !== 'function') {
  40894. warnForInvalidEventListener(propKey, nextProp);
  40895. }
  40896. ensureListeningTo(rootContainerElement, propKey);
  40897. }
  40898. if (!updatePayload && lastProp !== nextProp) {
  40899. // This is a special case. If any listener updates we need to ensure
  40900. // that the "current" props pointer gets updated so we need a commit
  40901. // to update this element.
  40902. updatePayload = [];
  40903. }
  40904. } else {
  40905. // For any other property we always add it to the queue and then we
  40906. // filter it out using the whitelist during the commit.
  40907. (updatePayload = updatePayload || []).push(propKey, nextProp);
  40908. }
  40909. }
  40910. if (styleUpdates) {
  40911. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  40912. }
  40913. return updatePayload;
  40914. }
  40915. // Apply the diff.
  40916. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  40917. // Update checked *before* name.
  40918. // In the middle of an update, it is possible to have multiple checked.
  40919. // When a checked radio tries to change name, browser makes another radio's checked false.
  40920. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  40921. updateChecked(domElement, nextRawProps);
  40922. }
  40923. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  40924. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  40925. // Apply the diff.
  40926. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  40927. // TODO: Ensure that an update gets scheduled if any of the special props
  40928. // changed.
  40929. switch (tag) {
  40930. case 'input':
  40931. // Update the wrapper around inputs *after* updating props. This has to
  40932. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  40933. // raise warnings and prevent the new value from being assigned.
  40934. updateWrapper(domElement, nextRawProps);
  40935. break;
  40936. case 'textarea':
  40937. updateWrapper$1(domElement, nextRawProps);
  40938. break;
  40939. case 'select':
  40940. // <select> value update needs to occur after <option> children
  40941. // reconciliation
  40942. postUpdateWrapper(domElement, nextRawProps);
  40943. break;
  40944. }
  40945. }
  40946. function getPossibleStandardName(propName) {
  40947. {
  40948. var lowerCasedName = propName.toLowerCase();
  40949. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  40950. return null;
  40951. }
  40952. return possibleStandardNames[lowerCasedName] || null;
  40953. }
  40954. return null;
  40955. }
  40956. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  40957. var isCustomComponentTag = void 0;
  40958. var extraAttributeNames = void 0;
  40959. {
  40960. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  40961. isCustomComponentTag = isCustomComponent(tag, rawProps);
  40962. validatePropertiesInDevelopment(tag, rawProps);
  40963. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  40964. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  40965. didWarnShadyDOM = true;
  40966. }
  40967. }
  40968. // TODO: Make sure that we check isMounted before firing any of these events.
  40969. switch (tag) {
  40970. case 'iframe':
  40971. case 'object':
  40972. trapBubbledEvent(TOP_LOAD, domElement);
  40973. break;
  40974. case 'video':
  40975. case 'audio':
  40976. // Create listener for each media event
  40977. for (var i = 0; i < mediaEventTypes.length; i++) {
  40978. trapBubbledEvent(mediaEventTypes[i], domElement);
  40979. }
  40980. break;
  40981. case 'source':
  40982. trapBubbledEvent(TOP_ERROR, domElement);
  40983. break;
  40984. case 'img':
  40985. case 'image':
  40986. case 'link':
  40987. trapBubbledEvent(TOP_ERROR, domElement);
  40988. trapBubbledEvent(TOP_LOAD, domElement);
  40989. break;
  40990. case 'form':
  40991. trapBubbledEvent(TOP_RESET, domElement);
  40992. trapBubbledEvent(TOP_SUBMIT, domElement);
  40993. break;
  40994. case 'details':
  40995. trapBubbledEvent(TOP_TOGGLE, domElement);
  40996. break;
  40997. case 'input':
  40998. initWrapperState(domElement, rawProps);
  40999. trapBubbledEvent(TOP_INVALID, domElement);
  41000. // For controlled components we always need to ensure we're listening
  41001. // to onChange. Even if there is no listener.
  41002. ensureListeningTo(rootContainerElement, 'onChange');
  41003. break;
  41004. case 'option':
  41005. validateProps(domElement, rawProps);
  41006. break;
  41007. case 'select':
  41008. initWrapperState$1(domElement, rawProps);
  41009. trapBubbledEvent(TOP_INVALID, domElement);
  41010. // For controlled components we always need to ensure we're listening
  41011. // to onChange. Even if there is no listener.
  41012. ensureListeningTo(rootContainerElement, 'onChange');
  41013. break;
  41014. case 'textarea':
  41015. initWrapperState$2(domElement, rawProps);
  41016. trapBubbledEvent(TOP_INVALID, domElement);
  41017. // For controlled components we always need to ensure we're listening
  41018. // to onChange. Even if there is no listener.
  41019. ensureListeningTo(rootContainerElement, 'onChange');
  41020. break;
  41021. }
  41022. assertValidProps(tag, rawProps);
  41023. {
  41024. extraAttributeNames = new Set();
  41025. var attributes = domElement.attributes;
  41026. for (var _i = 0; _i < attributes.length; _i++) {
  41027. var name = attributes[_i].name.toLowerCase();
  41028. switch (name) {
  41029. // Built-in SSR attribute is whitelisted
  41030. case 'data-reactroot':
  41031. break;
  41032. // Controlled attributes are not validated
  41033. // TODO: Only ignore them on controlled tags.
  41034. case 'value':
  41035. break;
  41036. case 'checked':
  41037. break;
  41038. case 'selected':
  41039. break;
  41040. default:
  41041. // Intentionally use the original name.
  41042. // See discussion in https://github.com/facebook/react/pull/10676.
  41043. extraAttributeNames.add(attributes[_i].name);
  41044. }
  41045. }
  41046. }
  41047. var updatePayload = null;
  41048. for (var propKey in rawProps) {
  41049. if (!rawProps.hasOwnProperty(propKey)) {
  41050. continue;
  41051. }
  41052. var nextProp = rawProps[propKey];
  41053. if (propKey === CHILDREN) {
  41054. // For text content children we compare against textContent. This
  41055. // might match additional HTML that is hidden when we read it using
  41056. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  41057. // satisfies our requirement. Our requirement is not to produce perfect
  41058. // HTML and attributes. Ideally we should preserve structure but it's
  41059. // ok not to if the visible content is still enough to indicate what
  41060. // even listeners these nodes might be wired up to.
  41061. // TODO: Warn if there is more than a single textNode as a child.
  41062. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  41063. if (typeof nextProp === 'string') {
  41064. if (domElement.textContent !== nextProp) {
  41065. if ( true && !suppressHydrationWarning) {
  41066. warnForTextDifference(domElement.textContent, nextProp);
  41067. }
  41068. updatePayload = [CHILDREN, nextProp];
  41069. }
  41070. } else if (typeof nextProp === 'number') {
  41071. if (domElement.textContent !== '' + nextProp) {
  41072. if ( true && !suppressHydrationWarning) {
  41073. warnForTextDifference(domElement.textContent, nextProp);
  41074. }
  41075. updatePayload = [CHILDREN, '' + nextProp];
  41076. }
  41077. }
  41078. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  41079. if (nextProp != null) {
  41080. if ( true && typeof nextProp !== 'function') {
  41081. warnForInvalidEventListener(propKey, nextProp);
  41082. }
  41083. ensureListeningTo(rootContainerElement, propKey);
  41084. }
  41085. } else if ( true &&
  41086. // Convince Flow we've calculated it (it's DEV-only in this method.)
  41087. typeof isCustomComponentTag === 'boolean') {
  41088. // Validate that the properties correspond to their expected values.
  41089. var serverValue = void 0;
  41090. var propertyInfo = getPropertyInfo(propKey);
  41091. if (suppressHydrationWarning) {
  41092. // Don't bother comparing. We're ignoring all these warnings.
  41093. } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  41094. // Controlled attributes are not validated
  41095. // TODO: Only ignore them on controlled tags.
  41096. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  41097. // Noop
  41098. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  41099. var serverHTML = domElement.innerHTML;
  41100. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  41101. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  41102. if (expectedHTML !== serverHTML) {
  41103. warnForPropDifference(propKey, serverHTML, expectedHTML);
  41104. }
  41105. } else if (propKey === STYLE$1) {
  41106. // $FlowFixMe - Should be inferred as not undefined.
  41107. extraAttributeNames.delete(propKey);
  41108. if (canDiffStyleForHydrationWarning) {
  41109. var expectedStyle = createDangerousStringForStyles(nextProp);
  41110. serverValue = domElement.getAttribute('style');
  41111. if (expectedStyle !== serverValue) {
  41112. warnForPropDifference(propKey, serverValue, expectedStyle);
  41113. }
  41114. }
  41115. } else if (isCustomComponentTag) {
  41116. // $FlowFixMe - Should be inferred as not undefined.
  41117. extraAttributeNames.delete(propKey.toLowerCase());
  41118. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  41119. if (nextProp !== serverValue) {
  41120. warnForPropDifference(propKey, serverValue, nextProp);
  41121. }
  41122. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  41123. var isMismatchDueToBadCasing = false;
  41124. if (propertyInfo !== null) {
  41125. // $FlowFixMe - Should be inferred as not undefined.
  41126. extraAttributeNames.delete(propertyInfo.attributeName);
  41127. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  41128. } else {
  41129. var ownNamespace = parentNamespace;
  41130. if (ownNamespace === HTML_NAMESPACE) {
  41131. ownNamespace = getIntrinsicNamespace(tag);
  41132. }
  41133. if (ownNamespace === HTML_NAMESPACE) {
  41134. // $FlowFixMe - Should be inferred as not undefined.
  41135. extraAttributeNames.delete(propKey.toLowerCase());
  41136. } else {
  41137. var standardName = getPossibleStandardName(propKey);
  41138. if (standardName !== null && standardName !== propKey) {
  41139. // If an SVG prop is supplied with bad casing, it will
  41140. // be successfully parsed from HTML, but will produce a mismatch
  41141. // (and would be incorrectly rendered on the client).
  41142. // However, we already warn about bad casing elsewhere.
  41143. // So we'll skip the misleading extra mismatch warning in this case.
  41144. isMismatchDueToBadCasing = true;
  41145. // $FlowFixMe - Should be inferred as not undefined.
  41146. extraAttributeNames.delete(standardName);
  41147. }
  41148. // $FlowFixMe - Should be inferred as not undefined.
  41149. extraAttributeNames.delete(propKey);
  41150. }
  41151. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  41152. }
  41153. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  41154. warnForPropDifference(propKey, serverValue, nextProp);
  41155. }
  41156. }
  41157. }
  41158. }
  41159. {
  41160. // $FlowFixMe - Should be inferred as not undefined.
  41161. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  41162. // $FlowFixMe - Should be inferred as not undefined.
  41163. warnForExtraAttributes(extraAttributeNames);
  41164. }
  41165. }
  41166. switch (tag) {
  41167. case 'input':
  41168. // TODO: Make sure we check if this is still unmounted or do any clean
  41169. // up necessary since we never stop tracking anymore.
  41170. track(domElement);
  41171. postMountWrapper(domElement, rawProps, true);
  41172. break;
  41173. case 'textarea':
  41174. // TODO: Make sure we check if this is still unmounted or do any clean
  41175. // up necessary since we never stop tracking anymore.
  41176. track(domElement);
  41177. postMountWrapper$3(domElement, rawProps);
  41178. break;
  41179. case 'select':
  41180. case 'option':
  41181. // For input and textarea we current always set the value property at
  41182. // post mount to force it to diverge from attributes. However, for
  41183. // option and select we don't quite do the same thing and select
  41184. // is not resilient to the DOM state changing so we don't do that here.
  41185. // TODO: Consider not doing this for input and textarea.
  41186. break;
  41187. default:
  41188. if (typeof rawProps.onClick === 'function') {
  41189. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  41190. trapClickOnNonInteractiveElement(domElement);
  41191. }
  41192. break;
  41193. }
  41194. return updatePayload;
  41195. }
  41196. function diffHydratedText(textNode, text) {
  41197. var isDifferent = textNode.nodeValue !== text;
  41198. return isDifferent;
  41199. }
  41200. function warnForUnmatchedText(textNode, text) {
  41201. {
  41202. warnForTextDifference(textNode.nodeValue, text);
  41203. }
  41204. }
  41205. function warnForDeletedHydratableElement(parentNode, child) {
  41206. {
  41207. if (didWarnInvalidHydration) {
  41208. return;
  41209. }
  41210. didWarnInvalidHydration = true;
  41211. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  41212. }
  41213. }
  41214. function warnForDeletedHydratableText(parentNode, child) {
  41215. {
  41216. if (didWarnInvalidHydration) {
  41217. return;
  41218. }
  41219. didWarnInvalidHydration = true;
  41220. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  41221. }
  41222. }
  41223. function warnForInsertedHydratedElement(parentNode, tag, props) {
  41224. {
  41225. if (didWarnInvalidHydration) {
  41226. return;
  41227. }
  41228. didWarnInvalidHydration = true;
  41229. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  41230. }
  41231. }
  41232. function warnForInsertedHydratedText(parentNode, text) {
  41233. {
  41234. if (text === '') {
  41235. // We expect to insert empty text nodes since they're not represented in
  41236. // the HTML.
  41237. // TODO: Remove this special case if we can just avoid inserting empty
  41238. // text nodes.
  41239. return;
  41240. }
  41241. if (didWarnInvalidHydration) {
  41242. return;
  41243. }
  41244. didWarnInvalidHydration = true;
  41245. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  41246. }
  41247. }
  41248. function restoreControlledState$1(domElement, tag, props) {
  41249. switch (tag) {
  41250. case 'input':
  41251. restoreControlledState(domElement, props);
  41252. return;
  41253. case 'textarea':
  41254. restoreControlledState$3(domElement, props);
  41255. return;
  41256. case 'select':
  41257. restoreControlledState$2(domElement, props);
  41258. return;
  41259. }
  41260. }
  41261. // TODO: direct imports like some-package/src/* are bad. Fix me.
  41262. var validateDOMNesting = function () {};
  41263. var updatedAncestorInfo = function () {};
  41264. {
  41265. // This validation code was written based on the HTML5 parsing spec:
  41266. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  41267. //
  41268. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  41269. // not clear what practical benefit doing so provides); instead, we warn only
  41270. // for cases where the parser will give a parse tree differing from what React
  41271. // intended. For example, <b><div></div></b> is invalid but we don't warn
  41272. // because it still parses correctly; we do warn for other cases like nested
  41273. // <p> tags where the beginning of the second element implicitly closes the
  41274. // first, causing a confusing mess.
  41275. // https://html.spec.whatwg.org/multipage/syntax.html#special
  41276. 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'];
  41277. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  41278. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  41279. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  41280. // TODO: Distinguish by namespace here -- for <title>, including it here
  41281. // errs on the side of fewer warnings
  41282. 'foreignObject', 'desc', 'title'];
  41283. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  41284. var buttonScopeTags = inScopeTags.concat(['button']);
  41285. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  41286. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  41287. var emptyAncestorInfo = {
  41288. current: null,
  41289. formTag: null,
  41290. aTagInScope: null,
  41291. buttonTagInScope: null,
  41292. nobrTagInScope: null,
  41293. pTagInButtonScope: null,
  41294. listItemTagAutoclosing: null,
  41295. dlItemTagAutoclosing: null
  41296. };
  41297. updatedAncestorInfo = function (oldInfo, tag) {
  41298. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  41299. var info = { tag: tag };
  41300. if (inScopeTags.indexOf(tag) !== -1) {
  41301. ancestorInfo.aTagInScope = null;
  41302. ancestorInfo.buttonTagInScope = null;
  41303. ancestorInfo.nobrTagInScope = null;
  41304. }
  41305. if (buttonScopeTags.indexOf(tag) !== -1) {
  41306. ancestorInfo.pTagInButtonScope = null;
  41307. }
  41308. // See rules for 'li', 'dd', 'dt' start tags in
  41309. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  41310. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  41311. ancestorInfo.listItemTagAutoclosing = null;
  41312. ancestorInfo.dlItemTagAutoclosing = null;
  41313. }
  41314. ancestorInfo.current = info;
  41315. if (tag === 'form') {
  41316. ancestorInfo.formTag = info;
  41317. }
  41318. if (tag === 'a') {
  41319. ancestorInfo.aTagInScope = info;
  41320. }
  41321. if (tag === 'button') {
  41322. ancestorInfo.buttonTagInScope = info;
  41323. }
  41324. if (tag === 'nobr') {
  41325. ancestorInfo.nobrTagInScope = info;
  41326. }
  41327. if (tag === 'p') {
  41328. ancestorInfo.pTagInButtonScope = info;
  41329. }
  41330. if (tag === 'li') {
  41331. ancestorInfo.listItemTagAutoclosing = info;
  41332. }
  41333. if (tag === 'dd' || tag === 'dt') {
  41334. ancestorInfo.dlItemTagAutoclosing = info;
  41335. }
  41336. return ancestorInfo;
  41337. };
  41338. /**
  41339. * Returns whether
  41340. */
  41341. var isTagValidWithParent = function (tag, parentTag) {
  41342. // First, let's check if we're in an unusual parsing mode...
  41343. switch (parentTag) {
  41344. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  41345. case 'select':
  41346. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  41347. case 'optgroup':
  41348. return tag === 'option' || tag === '#text';
  41349. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  41350. // but
  41351. case 'option':
  41352. return tag === '#text';
  41353. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  41354. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  41355. // No special behavior since these rules fall back to "in body" mode for
  41356. // all except special table nodes which cause bad parsing behavior anyway.
  41357. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  41358. case 'tr':
  41359. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  41360. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  41361. case 'tbody':
  41362. case 'thead':
  41363. case 'tfoot':
  41364. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  41365. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  41366. case 'colgroup':
  41367. return tag === 'col' || tag === 'template';
  41368. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  41369. case 'table':
  41370. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  41371. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  41372. case 'head':
  41373. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  41374. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  41375. case 'html':
  41376. return tag === 'head' || tag === 'body';
  41377. case '#document':
  41378. return tag === 'html';
  41379. }
  41380. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  41381. // where the parsing rules cause implicit opens or closes to be added.
  41382. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  41383. switch (tag) {
  41384. case 'h1':
  41385. case 'h2':
  41386. case 'h3':
  41387. case 'h4':
  41388. case 'h5':
  41389. case 'h6':
  41390. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  41391. case 'rp':
  41392. case 'rt':
  41393. return impliedEndTags.indexOf(parentTag) === -1;
  41394. case 'body':
  41395. case 'caption':
  41396. case 'col':
  41397. case 'colgroup':
  41398. case 'frame':
  41399. case 'head':
  41400. case 'html':
  41401. case 'tbody':
  41402. case 'td':
  41403. case 'tfoot':
  41404. case 'th':
  41405. case 'thead':
  41406. case 'tr':
  41407. // These tags are only valid with a few parents that have special child
  41408. // parsing rules -- if we're down here, then none of those matched and
  41409. // so we allow it only if we don't know what the parent is, as all other
  41410. // cases are invalid.
  41411. return parentTag == null;
  41412. }
  41413. return true;
  41414. };
  41415. /**
  41416. * Returns whether
  41417. */
  41418. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  41419. switch (tag) {
  41420. case 'address':
  41421. case 'article':
  41422. case 'aside':
  41423. case 'blockquote':
  41424. case 'center':
  41425. case 'details':
  41426. case 'dialog':
  41427. case 'dir':
  41428. case 'div':
  41429. case 'dl':
  41430. case 'fieldset':
  41431. case 'figcaption':
  41432. case 'figure':
  41433. case 'footer':
  41434. case 'header':
  41435. case 'hgroup':
  41436. case 'main':
  41437. case 'menu':
  41438. case 'nav':
  41439. case 'ol':
  41440. case 'p':
  41441. case 'section':
  41442. case 'summary':
  41443. case 'ul':
  41444. case 'pre':
  41445. case 'listing':
  41446. case 'table':
  41447. case 'hr':
  41448. case 'xmp':
  41449. case 'h1':
  41450. case 'h2':
  41451. case 'h3':
  41452. case 'h4':
  41453. case 'h5':
  41454. case 'h6':
  41455. return ancestorInfo.pTagInButtonScope;
  41456. case 'form':
  41457. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  41458. case 'li':
  41459. return ancestorInfo.listItemTagAutoclosing;
  41460. case 'dd':
  41461. case 'dt':
  41462. return ancestorInfo.dlItemTagAutoclosing;
  41463. case 'button':
  41464. return ancestorInfo.buttonTagInScope;
  41465. case 'a':
  41466. // Spec says something about storing a list of markers, but it sounds
  41467. // equivalent to this check.
  41468. return ancestorInfo.aTagInScope;
  41469. case 'nobr':
  41470. return ancestorInfo.nobrTagInScope;
  41471. }
  41472. return null;
  41473. };
  41474. var didWarn = {};
  41475. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  41476. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  41477. var parentInfo = ancestorInfo.current;
  41478. var parentTag = parentInfo && parentInfo.tag;
  41479. if (childText != null) {
  41480. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  41481. childTag = '#text';
  41482. }
  41483. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  41484. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  41485. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  41486. if (!invalidParentOrAncestor) {
  41487. return;
  41488. }
  41489. var ancestorTag = invalidParentOrAncestor.tag;
  41490. var addendum = getCurrentFiberStackInDev();
  41491. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  41492. if (didWarn[warnKey]) {
  41493. return;
  41494. }
  41495. didWarn[warnKey] = true;
  41496. var tagDisplayName = childTag;
  41497. var whitespaceInfo = '';
  41498. if (childTag === '#text') {
  41499. if (/\S/.test(childText)) {
  41500. tagDisplayName = 'Text nodes';
  41501. } else {
  41502. tagDisplayName = 'Whitespace text nodes';
  41503. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  41504. }
  41505. } else {
  41506. tagDisplayName = '<' + childTag + '>';
  41507. }
  41508. if (invalidParent) {
  41509. var info = '';
  41510. if (ancestorTag === 'table' && childTag === 'tr') {
  41511. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  41512. }
  41513. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  41514. } else {
  41515. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  41516. }
  41517. };
  41518. }
  41519. // Renderers that don't support persistence
  41520. // can re-export everything from this module.
  41521. function shim() {
  41522. invariant(false, 'The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.');
  41523. }
  41524. // Persistence (when unsupported)
  41525. var supportsPersistence = false;
  41526. var cloneInstance = shim;
  41527. var createContainerChildSet = shim;
  41528. var appendChildToContainerChildSet = shim;
  41529. var finalizeContainerChildren = shim;
  41530. var replaceContainerChildren = shim;
  41531. var cloneHiddenInstance = shim;
  41532. var cloneUnhiddenInstance = shim;
  41533. var createHiddenTextInstance = shim;
  41534. var SUPPRESS_HYDRATION_WARNING = void 0;
  41535. {
  41536. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  41537. }
  41538. var STYLE = 'style';
  41539. var eventsEnabled = null;
  41540. var selectionInformation = null;
  41541. function shouldAutoFocusHostComponent(type, props) {
  41542. switch (type) {
  41543. case 'button':
  41544. case 'input':
  41545. case 'select':
  41546. case 'textarea':
  41547. return !!props.autoFocus;
  41548. }
  41549. return false;
  41550. }
  41551. function getRootHostContext(rootContainerInstance) {
  41552. var type = void 0;
  41553. var namespace = void 0;
  41554. var nodeType = rootContainerInstance.nodeType;
  41555. switch (nodeType) {
  41556. case DOCUMENT_NODE:
  41557. case DOCUMENT_FRAGMENT_NODE:
  41558. {
  41559. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  41560. var root = rootContainerInstance.documentElement;
  41561. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  41562. break;
  41563. }
  41564. default:
  41565. {
  41566. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  41567. var ownNamespace = container.namespaceURI || null;
  41568. type = container.tagName;
  41569. namespace = getChildNamespace(ownNamespace, type);
  41570. break;
  41571. }
  41572. }
  41573. {
  41574. var validatedTag = type.toLowerCase();
  41575. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  41576. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  41577. }
  41578. return namespace;
  41579. }
  41580. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  41581. {
  41582. var parentHostContextDev = parentHostContext;
  41583. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  41584. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  41585. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  41586. }
  41587. var parentNamespace = parentHostContext;
  41588. return getChildNamespace(parentNamespace, type);
  41589. }
  41590. function getPublicInstance(instance) {
  41591. return instance;
  41592. }
  41593. function prepareForCommit(containerInfo) {
  41594. eventsEnabled = isEnabled();
  41595. selectionInformation = getSelectionInformation();
  41596. setEnabled(false);
  41597. }
  41598. function resetAfterCommit(containerInfo) {
  41599. restoreSelection(selectionInformation);
  41600. selectionInformation = null;
  41601. setEnabled(eventsEnabled);
  41602. eventsEnabled = null;
  41603. }
  41604. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  41605. var parentNamespace = void 0;
  41606. {
  41607. // TODO: take namespace into account when validating.
  41608. var hostContextDev = hostContext;
  41609. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  41610. if (typeof props.children === 'string' || typeof props.children === 'number') {
  41611. var string = '' + props.children;
  41612. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  41613. validateDOMNesting(null, string, ownAncestorInfo);
  41614. }
  41615. parentNamespace = hostContextDev.namespace;
  41616. }
  41617. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  41618. precacheFiberNode(internalInstanceHandle, domElement);
  41619. updateFiberProps(domElement, props);
  41620. return domElement;
  41621. }
  41622. function appendInitialChild(parentInstance, child) {
  41623. parentInstance.appendChild(child);
  41624. }
  41625. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  41626. setInitialProperties(domElement, type, props, rootContainerInstance);
  41627. return shouldAutoFocusHostComponent(type, props);
  41628. }
  41629. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  41630. {
  41631. var hostContextDev = hostContext;
  41632. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  41633. var string = '' + newProps.children;
  41634. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  41635. validateDOMNesting(null, string, ownAncestorInfo);
  41636. }
  41637. }
  41638. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  41639. }
  41640. function shouldSetTextContent(type, props) {
  41641. 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;
  41642. }
  41643. function shouldDeprioritizeSubtree(type, props) {
  41644. return !!props.hidden;
  41645. }
  41646. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  41647. {
  41648. var hostContextDev = hostContext;
  41649. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  41650. }
  41651. var textNode = createTextNode(text, rootContainerInstance);
  41652. precacheFiberNode(internalInstanceHandle, textNode);
  41653. return textNode;
  41654. }
  41655. var isPrimaryRenderer = true;
  41656. // This initialization code may run even on server environments
  41657. // if a component just imports ReactDOM (e.g. for findDOMNode).
  41658. // Some environments might not have setTimeout or clearTimeout.
  41659. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  41660. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  41661. var noTimeout = -1;
  41662. // -------------------
  41663. // Mutation
  41664. // -------------------
  41665. var supportsMutation = true;
  41666. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  41667. // Despite the naming that might imply otherwise, this method only
  41668. // fires if there is an `Update` effect scheduled during mounting.
  41669. // This happens if `finalizeInitialChildren` returns `true` (which it
  41670. // does to implement the `autoFocus` attribute on the client). But
  41671. // there are also other cases when this might happen (such as patching
  41672. // up text content during hydration mismatch). So we'll check this again.
  41673. if (shouldAutoFocusHostComponent(type, newProps)) {
  41674. domElement.focus();
  41675. }
  41676. }
  41677. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  41678. // Update the props handle so that we know which props are the ones with
  41679. // with current event handlers.
  41680. updateFiberProps(domElement, newProps);
  41681. // Apply the diff to the DOM node.
  41682. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  41683. }
  41684. function resetTextContent(domElement) {
  41685. setTextContent(domElement, '');
  41686. }
  41687. function commitTextUpdate(textInstance, oldText, newText) {
  41688. textInstance.nodeValue = newText;
  41689. }
  41690. function appendChild(parentInstance, child) {
  41691. parentInstance.appendChild(child);
  41692. }
  41693. function appendChildToContainer(container, child) {
  41694. var parentNode = void 0;
  41695. if (container.nodeType === COMMENT_NODE) {
  41696. parentNode = container.parentNode;
  41697. parentNode.insertBefore(child, container);
  41698. } else {
  41699. parentNode = container;
  41700. parentNode.appendChild(child);
  41701. }
  41702. // This container might be used for a portal.
  41703. // If something inside a portal is clicked, that click should bubble
  41704. // through the React tree. However, on Mobile Safari the click would
  41705. // never bubble through the *DOM* tree unless an ancestor with onclick
  41706. // event exists. So we wouldn't see it and dispatch it.
  41707. // This is why we ensure that non React root containers have inline onclick
  41708. // defined.
  41709. // https://github.com/facebook/react/issues/11918
  41710. var reactRootContainer = container._reactRootContainer;
  41711. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  41712. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  41713. trapClickOnNonInteractiveElement(parentNode);
  41714. }
  41715. }
  41716. function insertBefore(parentInstance, child, beforeChild) {
  41717. parentInstance.insertBefore(child, beforeChild);
  41718. }
  41719. function insertInContainerBefore(container, child, beforeChild) {
  41720. if (container.nodeType === COMMENT_NODE) {
  41721. container.parentNode.insertBefore(child, beforeChild);
  41722. } else {
  41723. container.insertBefore(child, beforeChild);
  41724. }
  41725. }
  41726. function removeChild(parentInstance, child) {
  41727. parentInstance.removeChild(child);
  41728. }
  41729. function removeChildFromContainer(container, child) {
  41730. if (container.nodeType === COMMENT_NODE) {
  41731. container.parentNode.removeChild(child);
  41732. } else {
  41733. container.removeChild(child);
  41734. }
  41735. }
  41736. function hideInstance(instance) {
  41737. // TODO: Does this work for all element types? What about MathML? Should we
  41738. // pass host context to this method?
  41739. instance = instance;
  41740. instance.style.display = 'none';
  41741. }
  41742. function hideTextInstance(textInstance) {
  41743. textInstance.nodeValue = '';
  41744. }
  41745. function unhideInstance(instance, props) {
  41746. instance = instance;
  41747. var styleProp = props[STYLE];
  41748. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  41749. instance.style.display = dangerousStyleValue('display', display);
  41750. }
  41751. function unhideTextInstance(textInstance, text) {
  41752. textInstance.nodeValue = text;
  41753. }
  41754. // -------------------
  41755. // Hydration
  41756. // -------------------
  41757. var supportsHydration = true;
  41758. function canHydrateInstance(instance, type, props) {
  41759. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  41760. return null;
  41761. }
  41762. // This has now been refined to an element node.
  41763. return instance;
  41764. }
  41765. function canHydrateTextInstance(instance, text) {
  41766. if (text === '' || instance.nodeType !== TEXT_NODE) {
  41767. // Empty strings are not parsed by HTML so there won't be a correct match here.
  41768. return null;
  41769. }
  41770. // This has now been refined to a text node.
  41771. return instance;
  41772. }
  41773. function getNextHydratableSibling(instance) {
  41774. var node = instance.nextSibling;
  41775. // Skip non-hydratable nodes.
  41776. while (node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE) {
  41777. node = node.nextSibling;
  41778. }
  41779. return node;
  41780. }
  41781. function getFirstHydratableChild(parentInstance) {
  41782. var next = parentInstance.firstChild;
  41783. // Skip non-hydratable nodes.
  41784. while (next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE) {
  41785. next = next.nextSibling;
  41786. }
  41787. return next;
  41788. }
  41789. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  41790. precacheFiberNode(internalInstanceHandle, instance);
  41791. // TODO: Possibly defer this until the commit phase where all the events
  41792. // get attached.
  41793. updateFiberProps(instance, props);
  41794. var parentNamespace = void 0;
  41795. {
  41796. var hostContextDev = hostContext;
  41797. parentNamespace = hostContextDev.namespace;
  41798. }
  41799. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  41800. }
  41801. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  41802. precacheFiberNode(internalInstanceHandle, textInstance);
  41803. return diffHydratedText(textInstance, text);
  41804. }
  41805. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  41806. {
  41807. warnForUnmatchedText(textInstance, text);
  41808. }
  41809. }
  41810. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  41811. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41812. warnForUnmatchedText(textInstance, text);
  41813. }
  41814. }
  41815. function didNotHydrateContainerInstance(parentContainer, instance) {
  41816. {
  41817. if (instance.nodeType === ELEMENT_NODE) {
  41818. warnForDeletedHydratableElement(parentContainer, instance);
  41819. } else {
  41820. warnForDeletedHydratableText(parentContainer, instance);
  41821. }
  41822. }
  41823. }
  41824. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  41825. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41826. if (instance.nodeType === ELEMENT_NODE) {
  41827. warnForDeletedHydratableElement(parentInstance, instance);
  41828. } else {
  41829. warnForDeletedHydratableText(parentInstance, instance);
  41830. }
  41831. }
  41832. }
  41833. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  41834. {
  41835. warnForInsertedHydratedElement(parentContainer, type, props);
  41836. }
  41837. }
  41838. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  41839. {
  41840. warnForInsertedHydratedText(parentContainer, text);
  41841. }
  41842. }
  41843. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  41844. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41845. warnForInsertedHydratedElement(parentInstance, type, props);
  41846. }
  41847. }
  41848. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  41849. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  41850. warnForInsertedHydratedText(parentInstance, text);
  41851. }
  41852. }
  41853. // Prefix measurements so that it's possible to filter them.
  41854. // Longer prefixes are hard to read in DevTools.
  41855. var reactEmoji = '\u269B';
  41856. var warningEmoji = '\u26D4';
  41857. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  41858. // Keep track of current fiber so that we know the path to unwind on pause.
  41859. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  41860. var currentFiber = null;
  41861. // If we're in the middle of user code, which fiber and method is it?
  41862. // Reusing `currentFiber` would be confusing for this because user code fiber
  41863. // can change during commit phase too, but we don't need to unwind it (since
  41864. // lifecycles in the commit phase don't resemble a tree).
  41865. var currentPhase = null;
  41866. var currentPhaseFiber = null;
  41867. // Did lifecycle hook schedule an update? This is often a performance problem,
  41868. // so we will keep track of it, and include it in the report.
  41869. // Track commits caused by cascading updates.
  41870. var isCommitting = false;
  41871. var hasScheduledUpdateInCurrentCommit = false;
  41872. var hasScheduledUpdateInCurrentPhase = false;
  41873. var commitCountInCurrentWorkLoop = 0;
  41874. var effectCountInCurrentCommit = 0;
  41875. var isWaitingForCallback = false;
  41876. // During commits, we only show a measurement once per method name
  41877. // to avoid stretch the commit phase with measurement overhead.
  41878. var labelsInCurrentCommit = new Set();
  41879. var formatMarkName = function (markName) {
  41880. return reactEmoji + ' ' + markName;
  41881. };
  41882. var formatLabel = function (label, warning) {
  41883. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  41884. var suffix = warning ? ' Warning: ' + warning : '';
  41885. return '' + prefix + label + suffix;
  41886. };
  41887. var beginMark = function (markName) {
  41888. performance.mark(formatMarkName(markName));
  41889. };
  41890. var clearMark = function (markName) {
  41891. performance.clearMarks(formatMarkName(markName));
  41892. };
  41893. var endMark = function (label, markName, warning) {
  41894. var formattedMarkName = formatMarkName(markName);
  41895. var formattedLabel = formatLabel(label, warning);
  41896. try {
  41897. performance.measure(formattedLabel, formattedMarkName);
  41898. } catch (err) {}
  41899. // If previous mark was missing for some reason, this will throw.
  41900. // This could only happen if React crashed in an unexpected place earlier.
  41901. // Don't pile on with more errors.
  41902. // Clear marks immediately to avoid growing buffer.
  41903. performance.clearMarks(formattedMarkName);
  41904. performance.clearMeasures(formattedLabel);
  41905. };
  41906. var getFiberMarkName = function (label, debugID) {
  41907. return label + ' (#' + debugID + ')';
  41908. };
  41909. var getFiberLabel = function (componentName, isMounted, phase) {
  41910. if (phase === null) {
  41911. // These are composite component total time measurements.
  41912. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  41913. } else {
  41914. // Composite component methods.
  41915. return componentName + '.' + phase;
  41916. }
  41917. };
  41918. var beginFiberMark = function (fiber, phase) {
  41919. var componentName = getComponentName(fiber.type) || 'Unknown';
  41920. var debugID = fiber._debugID;
  41921. var isMounted = fiber.alternate !== null;
  41922. var label = getFiberLabel(componentName, isMounted, phase);
  41923. if (isCommitting && labelsInCurrentCommit.has(label)) {
  41924. // During the commit phase, we don't show duplicate labels because
  41925. // there is a fixed overhead for every measurement, and we don't
  41926. // want to stretch the commit phase beyond necessary.
  41927. return false;
  41928. }
  41929. labelsInCurrentCommit.add(label);
  41930. var markName = getFiberMarkName(label, debugID);
  41931. beginMark(markName);
  41932. return true;
  41933. };
  41934. var clearFiberMark = function (fiber, phase) {
  41935. var componentName = getComponentName(fiber.type) || 'Unknown';
  41936. var debugID = fiber._debugID;
  41937. var isMounted = fiber.alternate !== null;
  41938. var label = getFiberLabel(componentName, isMounted, phase);
  41939. var markName = getFiberMarkName(label, debugID);
  41940. clearMark(markName);
  41941. };
  41942. var endFiberMark = function (fiber, phase, warning) {
  41943. var componentName = getComponentName(fiber.type) || 'Unknown';
  41944. var debugID = fiber._debugID;
  41945. var isMounted = fiber.alternate !== null;
  41946. var label = getFiberLabel(componentName, isMounted, phase);
  41947. var markName = getFiberMarkName(label, debugID);
  41948. endMark(label, markName, warning);
  41949. };
  41950. var shouldIgnoreFiber = function (fiber) {
  41951. // Host components should be skipped in the timeline.
  41952. // We could check typeof fiber.type, but does this work with RN?
  41953. switch (fiber.tag) {
  41954. case HostRoot:
  41955. case HostComponent:
  41956. case HostText:
  41957. case HostPortal:
  41958. case Fragment:
  41959. case ContextProvider:
  41960. case ContextConsumer:
  41961. case Mode:
  41962. return true;
  41963. default:
  41964. return false;
  41965. }
  41966. };
  41967. var clearPendingPhaseMeasurement = function () {
  41968. if (currentPhase !== null && currentPhaseFiber !== null) {
  41969. clearFiberMark(currentPhaseFiber, currentPhase);
  41970. }
  41971. currentPhaseFiber = null;
  41972. currentPhase = null;
  41973. hasScheduledUpdateInCurrentPhase = false;
  41974. };
  41975. var pauseTimers = function () {
  41976. // Stops all currently active measurements so that they can be resumed
  41977. // if we continue in a later deferred loop from the same unit of work.
  41978. var fiber = currentFiber;
  41979. while (fiber) {
  41980. if (fiber._debugIsCurrentlyTiming) {
  41981. endFiberMark(fiber, null, null);
  41982. }
  41983. fiber = fiber.return;
  41984. }
  41985. };
  41986. var resumeTimersRecursively = function (fiber) {
  41987. if (fiber.return !== null) {
  41988. resumeTimersRecursively(fiber.return);
  41989. }
  41990. if (fiber._debugIsCurrentlyTiming) {
  41991. beginFiberMark(fiber, null);
  41992. }
  41993. };
  41994. var resumeTimers = function () {
  41995. // Resumes all measurements that were active during the last deferred loop.
  41996. if (currentFiber !== null) {
  41997. resumeTimersRecursively(currentFiber);
  41998. }
  41999. };
  42000. function recordEffect() {
  42001. if (enableUserTimingAPI) {
  42002. effectCountInCurrentCommit++;
  42003. }
  42004. }
  42005. function recordScheduleUpdate() {
  42006. if (enableUserTimingAPI) {
  42007. if (isCommitting) {
  42008. hasScheduledUpdateInCurrentCommit = true;
  42009. }
  42010. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  42011. hasScheduledUpdateInCurrentPhase = true;
  42012. }
  42013. }
  42014. }
  42015. function startRequestCallbackTimer() {
  42016. if (enableUserTimingAPI) {
  42017. if (supportsUserTiming && !isWaitingForCallback) {
  42018. isWaitingForCallback = true;
  42019. beginMark('(Waiting for async callback...)');
  42020. }
  42021. }
  42022. }
  42023. function stopRequestCallbackTimer(didExpire, expirationTime) {
  42024. if (enableUserTimingAPI) {
  42025. if (supportsUserTiming) {
  42026. isWaitingForCallback = false;
  42027. var warning = didExpire ? 'React was blocked by main thread' : null;
  42028. endMark('(Waiting for async callback... will force flush in ' + expirationTime + ' ms)', '(Waiting for async callback...)', warning);
  42029. }
  42030. }
  42031. }
  42032. function startWorkTimer(fiber) {
  42033. if (enableUserTimingAPI) {
  42034. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42035. return;
  42036. }
  42037. // If we pause, this is the fiber to unwind from.
  42038. currentFiber = fiber;
  42039. if (!beginFiberMark(fiber, null)) {
  42040. return;
  42041. }
  42042. fiber._debugIsCurrentlyTiming = true;
  42043. }
  42044. }
  42045. function cancelWorkTimer(fiber) {
  42046. if (enableUserTimingAPI) {
  42047. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42048. return;
  42049. }
  42050. // Remember we shouldn't complete measurement for this fiber.
  42051. // Otherwise flamechart will be deep even for small updates.
  42052. fiber._debugIsCurrentlyTiming = false;
  42053. clearFiberMark(fiber, null);
  42054. }
  42055. }
  42056. function stopWorkTimer(fiber) {
  42057. if (enableUserTimingAPI) {
  42058. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42059. return;
  42060. }
  42061. // If we pause, its parent is the fiber to unwind from.
  42062. currentFiber = fiber.return;
  42063. if (!fiber._debugIsCurrentlyTiming) {
  42064. return;
  42065. }
  42066. fiber._debugIsCurrentlyTiming = false;
  42067. endFiberMark(fiber, null, null);
  42068. }
  42069. }
  42070. function stopFailedWorkTimer(fiber) {
  42071. if (enableUserTimingAPI) {
  42072. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  42073. return;
  42074. }
  42075. // If we pause, its parent is the fiber to unwind from.
  42076. currentFiber = fiber.return;
  42077. if (!fiber._debugIsCurrentlyTiming) {
  42078. return;
  42079. }
  42080. fiber._debugIsCurrentlyTiming = false;
  42081. var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  42082. endFiberMark(fiber, null, warning);
  42083. }
  42084. }
  42085. function startPhaseTimer(fiber, phase) {
  42086. if (enableUserTimingAPI) {
  42087. if (!supportsUserTiming) {
  42088. return;
  42089. }
  42090. clearPendingPhaseMeasurement();
  42091. if (!beginFiberMark(fiber, phase)) {
  42092. return;
  42093. }
  42094. currentPhaseFiber = fiber;
  42095. currentPhase = phase;
  42096. }
  42097. }
  42098. function stopPhaseTimer() {
  42099. if (enableUserTimingAPI) {
  42100. if (!supportsUserTiming) {
  42101. return;
  42102. }
  42103. if (currentPhase !== null && currentPhaseFiber !== null) {
  42104. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  42105. endFiberMark(currentPhaseFiber, currentPhase, warning);
  42106. }
  42107. currentPhase = null;
  42108. currentPhaseFiber = null;
  42109. }
  42110. }
  42111. function startWorkLoopTimer(nextUnitOfWork) {
  42112. if (enableUserTimingAPI) {
  42113. currentFiber = nextUnitOfWork;
  42114. if (!supportsUserTiming) {
  42115. return;
  42116. }
  42117. commitCountInCurrentWorkLoop = 0;
  42118. // This is top level call.
  42119. // Any other measurements are performed within.
  42120. beginMark('(React Tree Reconciliation)');
  42121. // Resume any measurements that were in progress during the last loop.
  42122. resumeTimers();
  42123. }
  42124. }
  42125. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  42126. if (enableUserTimingAPI) {
  42127. if (!supportsUserTiming) {
  42128. return;
  42129. }
  42130. var warning = null;
  42131. if (interruptedBy !== null) {
  42132. if (interruptedBy.tag === HostRoot) {
  42133. warning = 'A top-level update interrupted the previous render';
  42134. } else {
  42135. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  42136. warning = 'An update to ' + componentName + ' interrupted the previous render';
  42137. }
  42138. } else if (commitCountInCurrentWorkLoop > 1) {
  42139. warning = 'There were cascading updates';
  42140. }
  42141. commitCountInCurrentWorkLoop = 0;
  42142. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  42143. // Pause any measurements until the next loop.
  42144. pauseTimers();
  42145. endMark(label, '(React Tree Reconciliation)', warning);
  42146. }
  42147. }
  42148. function startCommitTimer() {
  42149. if (enableUserTimingAPI) {
  42150. if (!supportsUserTiming) {
  42151. return;
  42152. }
  42153. isCommitting = true;
  42154. hasScheduledUpdateInCurrentCommit = false;
  42155. labelsInCurrentCommit.clear();
  42156. beginMark('(Committing Changes)');
  42157. }
  42158. }
  42159. function stopCommitTimer() {
  42160. if (enableUserTimingAPI) {
  42161. if (!supportsUserTiming) {
  42162. return;
  42163. }
  42164. var warning = null;
  42165. if (hasScheduledUpdateInCurrentCommit) {
  42166. warning = 'Lifecycle hook scheduled a cascading update';
  42167. } else if (commitCountInCurrentWorkLoop > 0) {
  42168. warning = 'Caused by a cascading update in earlier commit';
  42169. }
  42170. hasScheduledUpdateInCurrentCommit = false;
  42171. commitCountInCurrentWorkLoop++;
  42172. isCommitting = false;
  42173. labelsInCurrentCommit.clear();
  42174. endMark('(Committing Changes)', '(Committing Changes)', warning);
  42175. }
  42176. }
  42177. function startCommitSnapshotEffectsTimer() {
  42178. if (enableUserTimingAPI) {
  42179. if (!supportsUserTiming) {
  42180. return;
  42181. }
  42182. effectCountInCurrentCommit = 0;
  42183. beginMark('(Committing Snapshot Effects)');
  42184. }
  42185. }
  42186. function stopCommitSnapshotEffectsTimer() {
  42187. if (enableUserTimingAPI) {
  42188. if (!supportsUserTiming) {
  42189. return;
  42190. }
  42191. var count = effectCountInCurrentCommit;
  42192. effectCountInCurrentCommit = 0;
  42193. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  42194. }
  42195. }
  42196. function startCommitHostEffectsTimer() {
  42197. if (enableUserTimingAPI) {
  42198. if (!supportsUserTiming) {
  42199. return;
  42200. }
  42201. effectCountInCurrentCommit = 0;
  42202. beginMark('(Committing Host Effects)');
  42203. }
  42204. }
  42205. function stopCommitHostEffectsTimer() {
  42206. if (enableUserTimingAPI) {
  42207. if (!supportsUserTiming) {
  42208. return;
  42209. }
  42210. var count = effectCountInCurrentCommit;
  42211. effectCountInCurrentCommit = 0;
  42212. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  42213. }
  42214. }
  42215. function startCommitLifeCyclesTimer() {
  42216. if (enableUserTimingAPI) {
  42217. if (!supportsUserTiming) {
  42218. return;
  42219. }
  42220. effectCountInCurrentCommit = 0;
  42221. beginMark('(Calling Lifecycle Methods)');
  42222. }
  42223. }
  42224. function stopCommitLifeCyclesTimer() {
  42225. if (enableUserTimingAPI) {
  42226. if (!supportsUserTiming) {
  42227. return;
  42228. }
  42229. var count = effectCountInCurrentCommit;
  42230. effectCountInCurrentCommit = 0;
  42231. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  42232. }
  42233. }
  42234. var valueStack = [];
  42235. var fiberStack = void 0;
  42236. {
  42237. fiberStack = [];
  42238. }
  42239. var index = -1;
  42240. function createCursor(defaultValue) {
  42241. return {
  42242. current: defaultValue
  42243. };
  42244. }
  42245. function pop(cursor, fiber) {
  42246. if (index < 0) {
  42247. {
  42248. warningWithoutStack$1(false, 'Unexpected pop.');
  42249. }
  42250. return;
  42251. }
  42252. {
  42253. if (fiber !== fiberStack[index]) {
  42254. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  42255. }
  42256. }
  42257. cursor.current = valueStack[index];
  42258. valueStack[index] = null;
  42259. {
  42260. fiberStack[index] = null;
  42261. }
  42262. index--;
  42263. }
  42264. function push(cursor, value, fiber) {
  42265. index++;
  42266. valueStack[index] = cursor.current;
  42267. {
  42268. fiberStack[index] = fiber;
  42269. }
  42270. cursor.current = value;
  42271. }
  42272. function checkThatStackIsEmpty() {
  42273. {
  42274. if (index !== -1) {
  42275. warningWithoutStack$1(false, 'Expected an empty stack. Something was not reset properly.');
  42276. }
  42277. }
  42278. }
  42279. function resetStackAfterFatalErrorInDev() {
  42280. {
  42281. index = -1;
  42282. valueStack.length = 0;
  42283. fiberStack.length = 0;
  42284. }
  42285. }
  42286. var warnedAboutMissingGetChildContext = void 0;
  42287. {
  42288. warnedAboutMissingGetChildContext = {};
  42289. }
  42290. var emptyContextObject = {};
  42291. {
  42292. Object.freeze(emptyContextObject);
  42293. }
  42294. // A cursor to the current merged context object on the stack.
  42295. var contextStackCursor = createCursor(emptyContextObject);
  42296. // A cursor to a boolean indicating whether the context has changed.
  42297. var didPerformWorkStackCursor = createCursor(false);
  42298. // Keep track of the previous context object that was on the stack.
  42299. // We use this to get access to the parent context after we have already
  42300. // pushed the next context provider, and now need to merge their contexts.
  42301. var previousContext = emptyContextObject;
  42302. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  42303. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  42304. // If the fiber is a context provider itself, when we read its context
  42305. // we may have already pushed its own child context on the stack. A context
  42306. // provider should not "see" its own child context. Therefore we read the
  42307. // previous (parent) context instead for a context provider.
  42308. return previousContext;
  42309. }
  42310. return contextStackCursor.current;
  42311. }
  42312. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  42313. var instance = workInProgress.stateNode;
  42314. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  42315. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  42316. }
  42317. function getMaskedContext(workInProgress, unmaskedContext) {
  42318. var type = workInProgress.type;
  42319. var contextTypes = type.contextTypes;
  42320. if (!contextTypes) {
  42321. return emptyContextObject;
  42322. }
  42323. // Avoid recreating masked context unless unmasked context has changed.
  42324. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  42325. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  42326. var instance = workInProgress.stateNode;
  42327. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  42328. return instance.__reactInternalMemoizedMaskedChildContext;
  42329. }
  42330. var context = {};
  42331. for (var key in contextTypes) {
  42332. context[key] = unmaskedContext[key];
  42333. }
  42334. {
  42335. var name = getComponentName(type) || 'Unknown';
  42336. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  42337. }
  42338. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  42339. // Context is created before the class component is instantiated so check for instance.
  42340. if (instance) {
  42341. cacheContext(workInProgress, unmaskedContext, context);
  42342. }
  42343. return context;
  42344. }
  42345. function hasContextChanged() {
  42346. return didPerformWorkStackCursor.current;
  42347. }
  42348. function isContextProvider(type) {
  42349. var childContextTypes = type.childContextTypes;
  42350. return childContextTypes !== null && childContextTypes !== undefined;
  42351. }
  42352. function popContext(fiber) {
  42353. pop(didPerformWorkStackCursor, fiber);
  42354. pop(contextStackCursor, fiber);
  42355. }
  42356. function popTopLevelContextObject(fiber) {
  42357. pop(didPerformWorkStackCursor, fiber);
  42358. pop(contextStackCursor, fiber);
  42359. }
  42360. function pushTopLevelContextObject(fiber, context, didChange) {
  42361. !(contextStackCursor.current === emptyContextObject) ? invariant(false, 'Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  42362. push(contextStackCursor, context, fiber);
  42363. push(didPerformWorkStackCursor, didChange, fiber);
  42364. }
  42365. function processChildContext(fiber, type, parentContext) {
  42366. var instance = fiber.stateNode;
  42367. var childContextTypes = type.childContextTypes;
  42368. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  42369. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  42370. if (typeof instance.getChildContext !== 'function') {
  42371. {
  42372. var componentName = getComponentName(type) || 'Unknown';
  42373. if (!warnedAboutMissingGetChildContext[componentName]) {
  42374. warnedAboutMissingGetChildContext[componentName] = true;
  42375. 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);
  42376. }
  42377. }
  42378. return parentContext;
  42379. }
  42380. var childContext = void 0;
  42381. {
  42382. setCurrentPhase('getChildContext');
  42383. }
  42384. startPhaseTimer(fiber, 'getChildContext');
  42385. childContext = instance.getChildContext();
  42386. stopPhaseTimer();
  42387. {
  42388. setCurrentPhase(null);
  42389. }
  42390. for (var contextKey in childContext) {
  42391. !(contextKey in childContextTypes) ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(type) || 'Unknown', contextKey) : void 0;
  42392. }
  42393. {
  42394. var name = getComponentName(type) || 'Unknown';
  42395. checkPropTypes(childContextTypes, childContext, 'child context', name,
  42396. // In practice, there is one case in which we won't get a stack. It's when
  42397. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  42398. // context from the parent component instance. The stack will be missing
  42399. // because it's outside of the reconciliation, and so the pointer has not
  42400. // been set. This is rare and doesn't matter. We'll also remove that API.
  42401. getCurrentFiberStackInDev);
  42402. }
  42403. return _assign({}, parentContext, childContext);
  42404. }
  42405. function pushContextProvider(workInProgress) {
  42406. var instance = workInProgress.stateNode;
  42407. // We push the context as early as possible to ensure stack integrity.
  42408. // If the instance does not exist yet, we will push null at first,
  42409. // and replace it on the stack later when invalidating the context.
  42410. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  42411. // Remember the parent context so we can merge with it later.
  42412. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  42413. previousContext = contextStackCursor.current;
  42414. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  42415. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  42416. return true;
  42417. }
  42418. function invalidateContextProvider(workInProgress, type, didChange) {
  42419. var instance = workInProgress.stateNode;
  42420. !instance ? invariant(false, 'Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  42421. if (didChange) {
  42422. // Merge parent and own context.
  42423. // Skip this if we're not updating due to sCU.
  42424. // This avoids unnecessarily recomputing memoized values.
  42425. var mergedContext = processChildContext(workInProgress, type, previousContext);
  42426. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  42427. // Replace the old (or empty) context with the new one.
  42428. // It is important to unwind the context in the reverse order.
  42429. pop(didPerformWorkStackCursor, workInProgress);
  42430. pop(contextStackCursor, workInProgress);
  42431. // Now push the new context and mark that it has changed.
  42432. push(contextStackCursor, mergedContext, workInProgress);
  42433. push(didPerformWorkStackCursor, didChange, workInProgress);
  42434. } else {
  42435. pop(didPerformWorkStackCursor, workInProgress);
  42436. push(didPerformWorkStackCursor, didChange, workInProgress);
  42437. }
  42438. }
  42439. function findCurrentUnmaskedContext(fiber) {
  42440. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  42441. // makes sense elsewhere
  42442. !(isFiberMounted(fiber) && fiber.tag === ClassComponent) ? invariant(false, 'Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  42443. var node = fiber;
  42444. do {
  42445. switch (node.tag) {
  42446. case HostRoot:
  42447. return node.stateNode.context;
  42448. case ClassComponent:
  42449. {
  42450. var Component = node.type;
  42451. if (isContextProvider(Component)) {
  42452. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  42453. }
  42454. break;
  42455. }
  42456. }
  42457. node = node.return;
  42458. } while (node !== null);
  42459. invariant(false, 'Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.');
  42460. }
  42461. var onCommitFiberRoot = null;
  42462. var onCommitFiberUnmount = null;
  42463. var hasLoggedError = false;
  42464. function catchErrors(fn) {
  42465. return function (arg) {
  42466. try {
  42467. return fn(arg);
  42468. } catch (err) {
  42469. if ( true && !hasLoggedError) {
  42470. hasLoggedError = true;
  42471. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  42472. }
  42473. }
  42474. };
  42475. }
  42476. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  42477. function injectInternals(internals) {
  42478. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  42479. // No DevTools
  42480. return false;
  42481. }
  42482. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  42483. if (hook.isDisabled) {
  42484. // This isn't a real property on the hook, but it can be set to opt out
  42485. // of DevTools integration and associated warnings and logs.
  42486. // https://github.com/facebook/react/issues/3877
  42487. return true;
  42488. }
  42489. if (!hook.supportsFiber) {
  42490. {
  42491. 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');
  42492. }
  42493. // DevTools exists, even though it doesn't support Fiber.
  42494. return true;
  42495. }
  42496. try {
  42497. var rendererID = hook.inject(internals);
  42498. // We have successfully injected, so now it is safe to set up hooks.
  42499. onCommitFiberRoot = catchErrors(function (root) {
  42500. return hook.onCommitFiberRoot(rendererID, root);
  42501. });
  42502. onCommitFiberUnmount = catchErrors(function (fiber) {
  42503. return hook.onCommitFiberUnmount(rendererID, fiber);
  42504. });
  42505. } catch (err) {
  42506. // Catch all errors because it is unsafe to throw during initialization.
  42507. {
  42508. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  42509. }
  42510. }
  42511. // DevTools exists
  42512. return true;
  42513. }
  42514. function onCommitRoot(root) {
  42515. if (typeof onCommitFiberRoot === 'function') {
  42516. onCommitFiberRoot(root);
  42517. }
  42518. }
  42519. function onCommitUnmount(fiber) {
  42520. if (typeof onCommitFiberUnmount === 'function') {
  42521. onCommitFiberUnmount(fiber);
  42522. }
  42523. }
  42524. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  42525. // Math.pow(2, 30) - 1
  42526. // 0b111111111111111111111111111111
  42527. var maxSigned31BitInt = 1073741823;
  42528. var NoWork = 0;
  42529. var Never = 1;
  42530. var Sync = maxSigned31BitInt;
  42531. var UNIT_SIZE = 10;
  42532. var MAGIC_NUMBER_OFFSET = maxSigned31BitInt - 1;
  42533. // 1 unit of expiration time represents 10ms.
  42534. function msToExpirationTime(ms) {
  42535. // Always add an offset so that we don't clash with the magic number for NoWork.
  42536. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  42537. }
  42538. function expirationTimeToMs(expirationTime) {
  42539. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  42540. }
  42541. function ceiling(num, precision) {
  42542. return ((num / precision | 0) + 1) * precision;
  42543. }
  42544. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  42545. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  42546. }
  42547. var LOW_PRIORITY_EXPIRATION = 5000;
  42548. var LOW_PRIORITY_BATCH_SIZE = 250;
  42549. function computeAsyncExpiration(currentTime) {
  42550. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  42551. }
  42552. // We intentionally set a higher expiration time for interactive updates in
  42553. // dev than in production.
  42554. //
  42555. // If the main thread is being blocked so long that you hit the expiration,
  42556. // it's a problem that could be solved with better scheduling.
  42557. //
  42558. // People will be more likely to notice this and fix it with the long
  42559. // expiration time in development.
  42560. //
  42561. // In production we opt for better UX at the risk of masking scheduling
  42562. // problems, by expiring fast.
  42563. var HIGH_PRIORITY_EXPIRATION = 500;
  42564. var HIGH_PRIORITY_BATCH_SIZE = 100;
  42565. function computeInteractiveExpiration(currentTime) {
  42566. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  42567. }
  42568. var NoContext = 0;
  42569. var ConcurrentMode = 1;
  42570. var StrictMode = 2;
  42571. var ProfileMode = 4;
  42572. var hasBadMapPolyfill = void 0;
  42573. {
  42574. hasBadMapPolyfill = false;
  42575. try {
  42576. var nonExtensibleObject = Object.preventExtensions({});
  42577. var testMap = new Map([[nonExtensibleObject, null]]);
  42578. var testSet = new Set([nonExtensibleObject]);
  42579. // This is necessary for Rollup to not consider these unused.
  42580. // https://github.com/rollup/rollup/issues/1771
  42581. // TODO: we can remove these if Rollup fixes the bug.
  42582. testMap.set(0, 0);
  42583. testSet.add(0);
  42584. } catch (e) {
  42585. // TODO: Consider warning about bad polyfills
  42586. hasBadMapPolyfill = true;
  42587. }
  42588. }
  42589. // A Fiber is work on a Component that needs to be done or was done. There can
  42590. // be more than one per component.
  42591. var debugCounter = void 0;
  42592. {
  42593. debugCounter = 1;
  42594. }
  42595. function FiberNode(tag, pendingProps, key, mode) {
  42596. // Instance
  42597. this.tag = tag;
  42598. this.key = key;
  42599. this.elementType = null;
  42600. this.type = null;
  42601. this.stateNode = null;
  42602. // Fiber
  42603. this.return = null;
  42604. this.child = null;
  42605. this.sibling = null;
  42606. this.index = 0;
  42607. this.ref = null;
  42608. this.pendingProps = pendingProps;
  42609. this.memoizedProps = null;
  42610. this.updateQueue = null;
  42611. this.memoizedState = null;
  42612. this.firstContextDependency = null;
  42613. this.mode = mode;
  42614. // Effects
  42615. this.effectTag = NoEffect;
  42616. this.nextEffect = null;
  42617. this.firstEffect = null;
  42618. this.lastEffect = null;
  42619. this.expirationTime = NoWork;
  42620. this.childExpirationTime = NoWork;
  42621. this.alternate = null;
  42622. if (enableProfilerTimer) {
  42623. this.actualDuration = 0;
  42624. this.actualStartTime = -1;
  42625. this.selfBaseDuration = 0;
  42626. this.treeBaseDuration = 0;
  42627. }
  42628. {
  42629. this._debugID = debugCounter++;
  42630. this._debugSource = null;
  42631. this._debugOwner = null;
  42632. this._debugIsCurrentlyTiming = false;
  42633. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  42634. Object.preventExtensions(this);
  42635. }
  42636. }
  42637. }
  42638. // This is a constructor function, rather than a POJO constructor, still
  42639. // please ensure we do the following:
  42640. // 1) Nobody should add any instance methods on this. Instance methods can be
  42641. // more difficult to predict when they get optimized and they are almost
  42642. // never inlined properly in static compilers.
  42643. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  42644. // always know when it is a fiber.
  42645. // 3) We might want to experiment with using numeric keys since they are easier
  42646. // to optimize in a non-JIT environment.
  42647. // 4) We can easily go from a constructor to a createFiber object literal if that
  42648. // is faster.
  42649. // 5) It should be easy to port this to a C struct and keep a C implementation
  42650. // compatible.
  42651. var createFiber = function (tag, pendingProps, key, mode) {
  42652. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  42653. return new FiberNode(tag, pendingProps, key, mode);
  42654. };
  42655. function shouldConstruct(Component) {
  42656. var prototype = Component.prototype;
  42657. return !!(prototype && prototype.isReactComponent);
  42658. }
  42659. function isSimpleFunctionComponent(type) {
  42660. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  42661. }
  42662. function resolveLazyComponentTag(Component) {
  42663. if (typeof Component === 'function') {
  42664. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  42665. } else if (Component !== undefined && Component !== null) {
  42666. var $$typeof = Component.$$typeof;
  42667. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  42668. return ForwardRef;
  42669. }
  42670. if ($$typeof === REACT_MEMO_TYPE) {
  42671. return MemoComponent;
  42672. }
  42673. }
  42674. return IndeterminateComponent;
  42675. }
  42676. // This is used to create an alternate fiber to do work on.
  42677. function createWorkInProgress(current, pendingProps, expirationTime) {
  42678. var workInProgress = current.alternate;
  42679. if (workInProgress === null) {
  42680. // We use a double buffering pooling technique because we know that we'll
  42681. // only ever need at most two versions of a tree. We pool the "other" unused
  42682. // node that we're free to reuse. This is lazily created to avoid allocating
  42683. // extra objects for things that are never updated. It also allow us to
  42684. // reclaim the extra memory if needed.
  42685. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  42686. workInProgress.elementType = current.elementType;
  42687. workInProgress.type = current.type;
  42688. workInProgress.stateNode = current.stateNode;
  42689. {
  42690. // DEV-only fields
  42691. workInProgress._debugID = current._debugID;
  42692. workInProgress._debugSource = current._debugSource;
  42693. workInProgress._debugOwner = current._debugOwner;
  42694. }
  42695. workInProgress.alternate = current;
  42696. current.alternate = workInProgress;
  42697. } else {
  42698. workInProgress.pendingProps = pendingProps;
  42699. // We already have an alternate.
  42700. // Reset the effect tag.
  42701. workInProgress.effectTag = NoEffect;
  42702. // The effect list is no longer valid.
  42703. workInProgress.nextEffect = null;
  42704. workInProgress.firstEffect = null;
  42705. workInProgress.lastEffect = null;
  42706. if (enableProfilerTimer) {
  42707. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  42708. // This prevents time from endlessly accumulating in new commits.
  42709. // This has the downside of resetting values for different priority renders,
  42710. // But works for yielding (the common case) and should support resuming.
  42711. workInProgress.actualDuration = 0;
  42712. workInProgress.actualStartTime = -1;
  42713. }
  42714. }
  42715. workInProgress.childExpirationTime = current.childExpirationTime;
  42716. workInProgress.expirationTime = current.expirationTime;
  42717. workInProgress.child = current.child;
  42718. workInProgress.memoizedProps = current.memoizedProps;
  42719. workInProgress.memoizedState = current.memoizedState;
  42720. workInProgress.updateQueue = current.updateQueue;
  42721. workInProgress.firstContextDependency = current.firstContextDependency;
  42722. // These will be overridden during the parent's reconciliation
  42723. workInProgress.sibling = current.sibling;
  42724. workInProgress.index = current.index;
  42725. workInProgress.ref = current.ref;
  42726. if (enableProfilerTimer) {
  42727. workInProgress.selfBaseDuration = current.selfBaseDuration;
  42728. workInProgress.treeBaseDuration = current.treeBaseDuration;
  42729. }
  42730. return workInProgress;
  42731. }
  42732. function createHostRootFiber(isConcurrent) {
  42733. var mode = isConcurrent ? ConcurrentMode | StrictMode : NoContext;
  42734. if (enableProfilerTimer && isDevToolsPresent) {
  42735. // Always collect profile timings when DevTools are present.
  42736. // This enables DevTools to start capturing timing at any point–
  42737. // Without some nodes in the tree having empty base times.
  42738. mode |= ProfileMode;
  42739. }
  42740. return createFiber(HostRoot, null, null, mode);
  42741. }
  42742. function createFiberFromTypeAndProps(type, // React$ElementType
  42743. key, pendingProps, owner, mode, expirationTime) {
  42744. var fiber = void 0;
  42745. var fiberTag = IndeterminateComponent;
  42746. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  42747. var resolvedType = type;
  42748. if (typeof type === 'function') {
  42749. if (shouldConstruct(type)) {
  42750. fiberTag = ClassComponent;
  42751. }
  42752. } else if (typeof type === 'string') {
  42753. fiberTag = HostComponent;
  42754. } else {
  42755. getTag: switch (type) {
  42756. case REACT_FRAGMENT_TYPE:
  42757. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  42758. case REACT_CONCURRENT_MODE_TYPE:
  42759. return createFiberFromMode(pendingProps, mode | ConcurrentMode | StrictMode, expirationTime, key);
  42760. case REACT_STRICT_MODE_TYPE:
  42761. return createFiberFromMode(pendingProps, mode | StrictMode, expirationTime, key);
  42762. case REACT_PROFILER_TYPE:
  42763. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  42764. case REACT_SUSPENSE_TYPE:
  42765. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  42766. default:
  42767. {
  42768. if (typeof type === 'object' && type !== null) {
  42769. switch (type.$$typeof) {
  42770. case REACT_PROVIDER_TYPE:
  42771. fiberTag = ContextProvider;
  42772. break getTag;
  42773. case REACT_CONTEXT_TYPE:
  42774. // This is a consumer
  42775. fiberTag = ContextConsumer;
  42776. break getTag;
  42777. case REACT_FORWARD_REF_TYPE:
  42778. fiberTag = ForwardRef;
  42779. break getTag;
  42780. case REACT_MEMO_TYPE:
  42781. fiberTag = MemoComponent;
  42782. break getTag;
  42783. case REACT_LAZY_TYPE:
  42784. fiberTag = LazyComponent;
  42785. resolvedType = null;
  42786. break getTag;
  42787. }
  42788. }
  42789. var info = '';
  42790. {
  42791. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  42792. 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.';
  42793. }
  42794. var ownerName = owner ? getComponentName(owner.type) : null;
  42795. if (ownerName) {
  42796. info += '\n\nCheck the render method of `' + ownerName + '`.';
  42797. }
  42798. }
  42799. invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', type == null ? type : typeof type, info);
  42800. }
  42801. }
  42802. }
  42803. fiber = createFiber(fiberTag, pendingProps, key, mode);
  42804. fiber.elementType = type;
  42805. fiber.type = resolvedType;
  42806. fiber.expirationTime = expirationTime;
  42807. return fiber;
  42808. }
  42809. function createFiberFromElement(element, mode, expirationTime) {
  42810. var owner = null;
  42811. {
  42812. owner = element._owner;
  42813. }
  42814. var type = element.type;
  42815. var key = element.key;
  42816. var pendingProps = element.props;
  42817. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  42818. {
  42819. fiber._debugSource = element._source;
  42820. fiber._debugOwner = element._owner;
  42821. }
  42822. return fiber;
  42823. }
  42824. function createFiberFromFragment(elements, mode, expirationTime, key) {
  42825. var fiber = createFiber(Fragment, elements, key, mode);
  42826. fiber.expirationTime = expirationTime;
  42827. return fiber;
  42828. }
  42829. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  42830. {
  42831. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  42832. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  42833. }
  42834. }
  42835. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  42836. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  42837. fiber.elementType = REACT_PROFILER_TYPE;
  42838. fiber.type = REACT_PROFILER_TYPE;
  42839. fiber.expirationTime = expirationTime;
  42840. return fiber;
  42841. }
  42842. function createFiberFromMode(pendingProps, mode, expirationTime, key) {
  42843. var fiber = createFiber(Mode, pendingProps, key, mode);
  42844. // TODO: The Mode fiber shouldn't have a type. It has a tag.
  42845. var type = (mode & ConcurrentMode) === NoContext ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;
  42846. fiber.elementType = type;
  42847. fiber.type = type;
  42848. fiber.expirationTime = expirationTime;
  42849. return fiber;
  42850. }
  42851. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  42852. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  42853. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  42854. var type = REACT_SUSPENSE_TYPE;
  42855. fiber.elementType = type;
  42856. fiber.type = type;
  42857. fiber.expirationTime = expirationTime;
  42858. return fiber;
  42859. }
  42860. function createFiberFromText(content, mode, expirationTime) {
  42861. var fiber = createFiber(HostText, content, null, mode);
  42862. fiber.expirationTime = expirationTime;
  42863. return fiber;
  42864. }
  42865. function createFiberFromHostInstanceForDeletion() {
  42866. var fiber = createFiber(HostComponent, null, null, NoContext);
  42867. // TODO: These should not need a type.
  42868. fiber.elementType = 'DELETED';
  42869. fiber.type = 'DELETED';
  42870. return fiber;
  42871. }
  42872. function createFiberFromPortal(portal, mode, expirationTime) {
  42873. var pendingProps = portal.children !== null ? portal.children : [];
  42874. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  42875. fiber.expirationTime = expirationTime;
  42876. fiber.stateNode = {
  42877. containerInfo: portal.containerInfo,
  42878. pendingChildren: null, // Used by persistent updates
  42879. implementation: portal.implementation
  42880. };
  42881. return fiber;
  42882. }
  42883. // Used for stashing WIP properties to replay failed work in DEV.
  42884. function assignFiberPropertiesInDEV(target, source) {
  42885. if (target === null) {
  42886. // This Fiber's initial properties will always be overwritten.
  42887. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  42888. target = createFiber(IndeterminateComponent, null, null, NoContext);
  42889. }
  42890. // This is intentionally written as a list of all properties.
  42891. // We tried to use Object.assign() instead but this is called in
  42892. // the hottest path, and Object.assign() was too slow:
  42893. // https://github.com/facebook/react/issues/12502
  42894. // This code is DEV-only so size is not a concern.
  42895. target.tag = source.tag;
  42896. target.key = source.key;
  42897. target.elementType = source.elementType;
  42898. target.type = source.type;
  42899. target.stateNode = source.stateNode;
  42900. target.return = source.return;
  42901. target.child = source.child;
  42902. target.sibling = source.sibling;
  42903. target.index = source.index;
  42904. target.ref = source.ref;
  42905. target.pendingProps = source.pendingProps;
  42906. target.memoizedProps = source.memoizedProps;
  42907. target.updateQueue = source.updateQueue;
  42908. target.memoizedState = source.memoizedState;
  42909. target.firstContextDependency = source.firstContextDependency;
  42910. target.mode = source.mode;
  42911. target.effectTag = source.effectTag;
  42912. target.nextEffect = source.nextEffect;
  42913. target.firstEffect = source.firstEffect;
  42914. target.lastEffect = source.lastEffect;
  42915. target.expirationTime = source.expirationTime;
  42916. target.childExpirationTime = source.childExpirationTime;
  42917. target.alternate = source.alternate;
  42918. if (enableProfilerTimer) {
  42919. target.actualDuration = source.actualDuration;
  42920. target.actualStartTime = source.actualStartTime;
  42921. target.selfBaseDuration = source.selfBaseDuration;
  42922. target.treeBaseDuration = source.treeBaseDuration;
  42923. }
  42924. target._debugID = source._debugID;
  42925. target._debugSource = source._debugSource;
  42926. target._debugOwner = source._debugOwner;
  42927. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  42928. return target;
  42929. }
  42930. // TODO: This should be lifted into the renderer.
  42931. // The following attributes are only used by interaction tracing builds.
  42932. // They enable interactions to be associated with their async work,
  42933. // And expose interaction metadata to the React DevTools Profiler plugin.
  42934. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  42935. // Exported FiberRoot type includes all properties,
  42936. // To avoid requiring potentially error-prone :any casts throughout the project.
  42937. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  42938. // The types are defined separately within this file to ensure they stay in sync.
  42939. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  42940. function createFiberRoot(containerInfo, isConcurrent, hydrate) {
  42941. // Cyclic construction. This cheats the type system right now because
  42942. // stateNode is any.
  42943. var uninitializedFiber = createHostRootFiber(isConcurrent);
  42944. var root = void 0;
  42945. if (enableSchedulerTracing) {
  42946. root = {
  42947. current: uninitializedFiber,
  42948. containerInfo: containerInfo,
  42949. pendingChildren: null,
  42950. earliestPendingTime: NoWork,
  42951. latestPendingTime: NoWork,
  42952. earliestSuspendedTime: NoWork,
  42953. latestSuspendedTime: NoWork,
  42954. latestPingedTime: NoWork,
  42955. didError: false,
  42956. pendingCommitExpirationTime: NoWork,
  42957. finishedWork: null,
  42958. timeoutHandle: noTimeout,
  42959. context: null,
  42960. pendingContext: null,
  42961. hydrate: hydrate,
  42962. nextExpirationTimeToWorkOn: NoWork,
  42963. expirationTime: NoWork,
  42964. firstBatch: null,
  42965. nextScheduledRoot: null,
  42966. interactionThreadID: tracing.unstable_getThreadID(),
  42967. memoizedInteractions: new Set(),
  42968. pendingInteractionMap: new Map()
  42969. };
  42970. } else {
  42971. root = {
  42972. current: uninitializedFiber,
  42973. containerInfo: containerInfo,
  42974. pendingChildren: null,
  42975. earliestPendingTime: NoWork,
  42976. latestPendingTime: NoWork,
  42977. earliestSuspendedTime: NoWork,
  42978. latestSuspendedTime: NoWork,
  42979. latestPingedTime: NoWork,
  42980. didError: false,
  42981. pendingCommitExpirationTime: NoWork,
  42982. finishedWork: null,
  42983. timeoutHandle: noTimeout,
  42984. context: null,
  42985. pendingContext: null,
  42986. hydrate: hydrate,
  42987. nextExpirationTimeToWorkOn: NoWork,
  42988. expirationTime: NoWork,
  42989. firstBatch: null,
  42990. nextScheduledRoot: null
  42991. };
  42992. }
  42993. uninitializedFiber.stateNode = root;
  42994. // The reason for the way the Flow types are structured in this file,
  42995. // Is to avoid needing :any casts everywhere interaction tracing fields are used.
  42996. // Unfortunately that requires an :any cast for non-interaction tracing capable builds.
  42997. // $FlowFixMe Remove this :any cast and replace it with something better.
  42998. return root;
  42999. }
  43000. /**
  43001. * Forked from fbjs/warning:
  43002. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  43003. *
  43004. * Only change is we use console.warn instead of console.error,
  43005. * and do nothing when 'console' is not supported.
  43006. * This really simplifies the code.
  43007. * ---
  43008. * Similar to invariant but only logs a warning if the condition is not met.
  43009. * This can be used to log issues in development environments in critical
  43010. * paths. Removing the logging code for production environments will keep the
  43011. * same logic and follow the same code paths.
  43012. */
  43013. var lowPriorityWarning = function () {};
  43014. {
  43015. var printWarning = function (format) {
  43016. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43017. args[_key - 1] = arguments[_key];
  43018. }
  43019. var argIndex = 0;
  43020. var message = 'Warning: ' + format.replace(/%s/g, function () {
  43021. return args[argIndex++];
  43022. });
  43023. if (typeof console !== 'undefined') {
  43024. console.warn(message);
  43025. }
  43026. try {
  43027. // --- Welcome to debugging React ---
  43028. // This error was thrown as a convenience so that you can use this stack
  43029. // to find the callsite that caused this warning to fire.
  43030. throw new Error(message);
  43031. } catch (x) {}
  43032. };
  43033. lowPriorityWarning = function (condition, format) {
  43034. if (format === undefined) {
  43035. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  43036. }
  43037. if (!condition) {
  43038. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  43039. args[_key2 - 2] = arguments[_key2];
  43040. }
  43041. printWarning.apply(undefined, [format].concat(args));
  43042. }
  43043. };
  43044. }
  43045. var lowPriorityWarning$1 = lowPriorityWarning;
  43046. var ReactStrictModeWarnings = {
  43047. discardPendingWarnings: function () {},
  43048. flushPendingDeprecationWarnings: function () {},
  43049. flushPendingUnsafeLifecycleWarnings: function () {},
  43050. recordDeprecationWarnings: function (fiber, instance) {},
  43051. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  43052. recordLegacyContextWarning: function (fiber, instance) {},
  43053. flushLegacyContextWarning: function () {}
  43054. };
  43055. {
  43056. var LIFECYCLE_SUGGESTIONS = {
  43057. UNSAFE_componentWillMount: 'componentDidMount',
  43058. UNSAFE_componentWillReceiveProps: 'static getDerivedStateFromProps',
  43059. UNSAFE_componentWillUpdate: 'componentDidUpdate'
  43060. };
  43061. var pendingComponentWillMountWarnings = [];
  43062. var pendingComponentWillReceivePropsWarnings = [];
  43063. var pendingComponentWillUpdateWarnings = [];
  43064. var pendingUnsafeLifecycleWarnings = new Map();
  43065. var pendingLegacyContextWarning = new Map();
  43066. // Tracks components we have already warned about.
  43067. var didWarnAboutDeprecatedLifecycles = new Set();
  43068. var didWarnAboutUnsafeLifecycles = new Set();
  43069. var didWarnAboutLegacyContext = new Set();
  43070. var setToSortedString = function (set) {
  43071. var array = [];
  43072. set.forEach(function (value) {
  43073. array.push(value);
  43074. });
  43075. return array.sort().join(', ');
  43076. };
  43077. ReactStrictModeWarnings.discardPendingWarnings = function () {
  43078. pendingComponentWillMountWarnings = [];
  43079. pendingComponentWillReceivePropsWarnings = [];
  43080. pendingComponentWillUpdateWarnings = [];
  43081. pendingUnsafeLifecycleWarnings = new Map();
  43082. pendingLegacyContextWarning = new Map();
  43083. };
  43084. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  43085. pendingUnsafeLifecycleWarnings.forEach(function (lifecycleWarningsMap, strictRoot) {
  43086. var lifecyclesWarningMesages = [];
  43087. Object.keys(lifecycleWarningsMap).forEach(function (lifecycle) {
  43088. var lifecycleWarnings = lifecycleWarningsMap[lifecycle];
  43089. if (lifecycleWarnings.length > 0) {
  43090. var componentNames = new Set();
  43091. lifecycleWarnings.forEach(function (fiber) {
  43092. componentNames.add(getComponentName(fiber.type) || 'Component');
  43093. didWarnAboutUnsafeLifecycles.add(fiber.type);
  43094. });
  43095. var formatted = lifecycle.replace('UNSAFE_', '');
  43096. var suggestion = LIFECYCLE_SUGGESTIONS[lifecycle];
  43097. var sortedComponentNames = setToSortedString(componentNames);
  43098. lifecyclesWarningMesages.push(formatted + ': Please update the following components to use ' + (suggestion + ' instead: ' + sortedComponentNames));
  43099. }
  43100. });
  43101. if (lifecyclesWarningMesages.length > 0) {
  43102. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  43103. warningWithoutStack$1(false, 'Unsafe lifecycle methods were found within a strict-mode tree:%s' + '\n\n%s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, lifecyclesWarningMesages.join('\n\n'));
  43104. }
  43105. });
  43106. pendingUnsafeLifecycleWarnings = new Map();
  43107. };
  43108. var findStrictRoot = function (fiber) {
  43109. var maybeStrictRoot = null;
  43110. var node = fiber;
  43111. while (node !== null) {
  43112. if (node.mode & StrictMode) {
  43113. maybeStrictRoot = node;
  43114. }
  43115. node = node.return;
  43116. }
  43117. return maybeStrictRoot;
  43118. };
  43119. ReactStrictModeWarnings.flushPendingDeprecationWarnings = function () {
  43120. if (pendingComponentWillMountWarnings.length > 0) {
  43121. var uniqueNames = new Set();
  43122. pendingComponentWillMountWarnings.forEach(function (fiber) {
  43123. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43124. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43125. });
  43126. var sortedNames = setToSortedString(uniqueNames);
  43127. lowPriorityWarning$1(false, 'componentWillMount is deprecated and will be removed in the next major version. ' + 'Use componentDidMount instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillMount.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', sortedNames);
  43128. pendingComponentWillMountWarnings = [];
  43129. }
  43130. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  43131. var _uniqueNames = new Set();
  43132. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  43133. _uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43134. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43135. });
  43136. var _sortedNames = setToSortedString(_uniqueNames);
  43137. lowPriorityWarning$1(false, 'componentWillReceiveProps is deprecated and will be removed in the next major version. ' + 'Use static getDerivedStateFromProps instead.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames);
  43138. pendingComponentWillReceivePropsWarnings = [];
  43139. }
  43140. if (pendingComponentWillUpdateWarnings.length > 0) {
  43141. var _uniqueNames2 = new Set();
  43142. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  43143. _uniqueNames2.add(getComponentName(fiber.type) || 'Component');
  43144. didWarnAboutDeprecatedLifecycles.add(fiber.type);
  43145. });
  43146. var _sortedNames2 = setToSortedString(_uniqueNames2);
  43147. lowPriorityWarning$1(false, 'componentWillUpdate is deprecated and will be removed in the next major version. ' + 'Use componentDidUpdate instead. As a temporary workaround, ' + 'you can rename to UNSAFE_componentWillUpdate.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-async-component-lifecycle-hooks', _sortedNames2);
  43148. pendingComponentWillUpdateWarnings = [];
  43149. }
  43150. };
  43151. ReactStrictModeWarnings.recordDeprecationWarnings = function (fiber, instance) {
  43152. // Dedup strategy: Warn once per component.
  43153. if (didWarnAboutDeprecatedLifecycles.has(fiber.type)) {
  43154. return;
  43155. }
  43156. // Don't warn about react-lifecycles-compat polyfilled components.
  43157. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  43158. pendingComponentWillMountWarnings.push(fiber);
  43159. }
  43160. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  43161. pendingComponentWillReceivePropsWarnings.push(fiber);
  43162. }
  43163. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  43164. pendingComponentWillUpdateWarnings.push(fiber);
  43165. }
  43166. };
  43167. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  43168. var strictRoot = findStrictRoot(fiber);
  43169. if (strictRoot === null) {
  43170. 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.');
  43171. return;
  43172. }
  43173. // Dedup strategy: Warn once per component.
  43174. // This is difficult to track any other way since component names
  43175. // are often vague and are likely to collide between 3rd party libraries.
  43176. // An expand property is probably okay to use here since it's DEV-only,
  43177. // and will only be set in the event of serious warnings.
  43178. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  43179. return;
  43180. }
  43181. var warningsForRoot = void 0;
  43182. if (!pendingUnsafeLifecycleWarnings.has(strictRoot)) {
  43183. warningsForRoot = {
  43184. UNSAFE_componentWillMount: [],
  43185. UNSAFE_componentWillReceiveProps: [],
  43186. UNSAFE_componentWillUpdate: []
  43187. };
  43188. pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot);
  43189. } else {
  43190. warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot);
  43191. }
  43192. var unsafeLifecycles = [];
  43193. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillMount === 'function') {
  43194. unsafeLifecycles.push('UNSAFE_componentWillMount');
  43195. }
  43196. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  43197. unsafeLifecycles.push('UNSAFE_componentWillReceiveProps');
  43198. }
  43199. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true || typeof instance.UNSAFE_componentWillUpdate === 'function') {
  43200. unsafeLifecycles.push('UNSAFE_componentWillUpdate');
  43201. }
  43202. if (unsafeLifecycles.length > 0) {
  43203. unsafeLifecycles.forEach(function (lifecycle) {
  43204. warningsForRoot[lifecycle].push(fiber);
  43205. });
  43206. }
  43207. };
  43208. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  43209. var strictRoot = findStrictRoot(fiber);
  43210. if (strictRoot === null) {
  43211. 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.');
  43212. return;
  43213. }
  43214. // Dedup strategy: Warn once per component.
  43215. if (didWarnAboutLegacyContext.has(fiber.type)) {
  43216. return;
  43217. }
  43218. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  43219. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  43220. if (warningsForRoot === undefined) {
  43221. warningsForRoot = [];
  43222. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  43223. }
  43224. warningsForRoot.push(fiber);
  43225. }
  43226. };
  43227. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  43228. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  43229. var uniqueNames = new Set();
  43230. fiberArray.forEach(function (fiber) {
  43231. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  43232. didWarnAboutLegacyContext.add(fiber.type);
  43233. });
  43234. var sortedNames = setToSortedString(uniqueNames);
  43235. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  43236. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-strict-mode-warnings', strictRootComponentStack, sortedNames);
  43237. });
  43238. };
  43239. }
  43240. // This lets us hook into Fiber to debug what it's doing.
  43241. // See https://github.com/facebook/react/pull/8033.
  43242. // This is not part of the public API, not even for React DevTools.
  43243. // You may only inject a debugTool if you work on React Fiber itself.
  43244. var ReactFiberInstrumentation = {
  43245. debugTool: null
  43246. };
  43247. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  43248. // TODO: Offscreen updates should never suspend. However, a promise that
  43249. // suspended inside an offscreen subtree should be able to ping at the priority
  43250. // of the outer render.
  43251. function markPendingPriorityLevel(root, expirationTime) {
  43252. // If there's a gap between completing a failed root and retrying it,
  43253. // additional updates may be scheduled. Clear `didError`, in case the update
  43254. // is sufficient to fix the error.
  43255. root.didError = false;
  43256. // Update the latest and earliest pending times
  43257. var earliestPendingTime = root.earliestPendingTime;
  43258. if (earliestPendingTime === NoWork) {
  43259. // No other pending updates.
  43260. root.earliestPendingTime = root.latestPendingTime = expirationTime;
  43261. } else {
  43262. if (earliestPendingTime < expirationTime) {
  43263. // This is the earliest pending update.
  43264. root.earliestPendingTime = expirationTime;
  43265. } else {
  43266. var latestPendingTime = root.latestPendingTime;
  43267. if (latestPendingTime > expirationTime) {
  43268. // This is the latest pending update
  43269. root.latestPendingTime = expirationTime;
  43270. }
  43271. }
  43272. }
  43273. findNextExpirationTimeToWorkOn(expirationTime, root);
  43274. }
  43275. function markCommittedPriorityLevels(root, earliestRemainingTime) {
  43276. root.didError = false;
  43277. if (earliestRemainingTime === NoWork) {
  43278. // Fast path. There's no remaining work. Clear everything.
  43279. root.earliestPendingTime = NoWork;
  43280. root.latestPendingTime = NoWork;
  43281. root.earliestSuspendedTime = NoWork;
  43282. root.latestSuspendedTime = NoWork;
  43283. root.latestPingedTime = NoWork;
  43284. findNextExpirationTimeToWorkOn(NoWork, root);
  43285. return;
  43286. }
  43287. // Let's see if the previous latest known pending level was just flushed.
  43288. var latestPendingTime = root.latestPendingTime;
  43289. if (latestPendingTime !== NoWork) {
  43290. if (latestPendingTime > earliestRemainingTime) {
  43291. // We've flushed all the known pending levels.
  43292. root.earliestPendingTime = root.latestPendingTime = NoWork;
  43293. } else {
  43294. var earliestPendingTime = root.earliestPendingTime;
  43295. if (earliestPendingTime > earliestRemainingTime) {
  43296. // We've flushed the earliest known pending level. Set this to the
  43297. // latest pending time.
  43298. root.earliestPendingTime = root.latestPendingTime;
  43299. }
  43300. }
  43301. }
  43302. // Now let's handle the earliest remaining level in the whole tree. We need to
  43303. // decide whether to treat it as a pending level or as suspended. Check
  43304. // it falls within the range of known suspended levels.
  43305. var earliestSuspendedTime = root.earliestSuspendedTime;
  43306. if (earliestSuspendedTime === NoWork) {
  43307. // There's no suspended work. Treat the earliest remaining level as a
  43308. // pending level.
  43309. markPendingPriorityLevel(root, earliestRemainingTime);
  43310. findNextExpirationTimeToWorkOn(NoWork, root);
  43311. return;
  43312. }
  43313. var latestSuspendedTime = root.latestSuspendedTime;
  43314. if (earliestRemainingTime < latestSuspendedTime) {
  43315. // The earliest remaining level is later than all the suspended work. That
  43316. // means we've flushed all the suspended work.
  43317. root.earliestSuspendedTime = NoWork;
  43318. root.latestSuspendedTime = NoWork;
  43319. root.latestPingedTime = NoWork;
  43320. // There's no suspended work. Treat the earliest remaining level as a
  43321. // pending level.
  43322. markPendingPriorityLevel(root, earliestRemainingTime);
  43323. findNextExpirationTimeToWorkOn(NoWork, root);
  43324. return;
  43325. }
  43326. if (earliestRemainingTime > earliestSuspendedTime) {
  43327. // The earliest remaining time is earlier than all the suspended work.
  43328. // Treat it as a pending update.
  43329. markPendingPriorityLevel(root, earliestRemainingTime);
  43330. findNextExpirationTimeToWorkOn(NoWork, root);
  43331. return;
  43332. }
  43333. // The earliest remaining time falls within the range of known suspended
  43334. // levels. We should treat this as suspended work.
  43335. findNextExpirationTimeToWorkOn(NoWork, root);
  43336. }
  43337. function hasLowerPriorityWork(root, erroredExpirationTime) {
  43338. var latestPendingTime = root.latestPendingTime;
  43339. var latestSuspendedTime = root.latestSuspendedTime;
  43340. var latestPingedTime = root.latestPingedTime;
  43341. return latestPendingTime !== NoWork && latestPendingTime < erroredExpirationTime || latestSuspendedTime !== NoWork && latestSuspendedTime < erroredExpirationTime || latestPingedTime !== NoWork && latestPingedTime < erroredExpirationTime;
  43342. }
  43343. function isPriorityLevelSuspended(root, expirationTime) {
  43344. var earliestSuspendedTime = root.earliestSuspendedTime;
  43345. var latestSuspendedTime = root.latestSuspendedTime;
  43346. return earliestSuspendedTime !== NoWork && expirationTime <= earliestSuspendedTime && expirationTime >= latestSuspendedTime;
  43347. }
  43348. function markSuspendedPriorityLevel(root, suspendedTime) {
  43349. root.didError = false;
  43350. clearPing(root, suspendedTime);
  43351. // First, check the known pending levels and update them if needed.
  43352. var earliestPendingTime = root.earliestPendingTime;
  43353. var latestPendingTime = root.latestPendingTime;
  43354. if (earliestPendingTime === suspendedTime) {
  43355. if (latestPendingTime === suspendedTime) {
  43356. // Both known pending levels were suspended. Clear them.
  43357. root.earliestPendingTime = root.latestPendingTime = NoWork;
  43358. } else {
  43359. // The earliest pending level was suspended. Clear by setting it to the
  43360. // latest pending level.
  43361. root.earliestPendingTime = latestPendingTime;
  43362. }
  43363. } else if (latestPendingTime === suspendedTime) {
  43364. // The latest pending level was suspended. Clear by setting it to the
  43365. // latest pending level.
  43366. root.latestPendingTime = earliestPendingTime;
  43367. }
  43368. // Finally, update the known suspended levels.
  43369. var earliestSuspendedTime = root.earliestSuspendedTime;
  43370. var latestSuspendedTime = root.latestSuspendedTime;
  43371. if (earliestSuspendedTime === NoWork) {
  43372. // No other suspended levels.
  43373. root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime;
  43374. } else {
  43375. if (earliestSuspendedTime < suspendedTime) {
  43376. // This is the earliest suspended level.
  43377. root.earliestSuspendedTime = suspendedTime;
  43378. } else if (latestSuspendedTime > suspendedTime) {
  43379. // This is the latest suspended level
  43380. root.latestSuspendedTime = suspendedTime;
  43381. }
  43382. }
  43383. findNextExpirationTimeToWorkOn(suspendedTime, root);
  43384. }
  43385. function markPingedPriorityLevel(root, pingedTime) {
  43386. root.didError = false;
  43387. // TODO: When we add back resuming, we need to ensure the progressed work
  43388. // is thrown out and not reused during the restarted render. One way to
  43389. // invalidate the progressed work is to restart at expirationTime + 1.
  43390. var latestPingedTime = root.latestPingedTime;
  43391. if (latestPingedTime === NoWork || latestPingedTime > pingedTime) {
  43392. root.latestPingedTime = pingedTime;
  43393. }
  43394. findNextExpirationTimeToWorkOn(pingedTime, root);
  43395. }
  43396. function clearPing(root, completedTime) {
  43397. // TODO: Track whether the root was pinged during the render phase. If so,
  43398. // we need to make sure we don't lose track of it.
  43399. var latestPingedTime = root.latestPingedTime;
  43400. if (latestPingedTime !== NoWork && latestPingedTime >= completedTime) {
  43401. root.latestPingedTime = NoWork;
  43402. }
  43403. }
  43404. function findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {
  43405. var earliestExpirationTime = renderExpirationTime;
  43406. var earliestPendingTime = root.earliestPendingTime;
  43407. var earliestSuspendedTime = root.earliestSuspendedTime;
  43408. if (earliestPendingTime > earliestExpirationTime) {
  43409. earliestExpirationTime = earliestPendingTime;
  43410. }
  43411. if (earliestSuspendedTime > earliestExpirationTime) {
  43412. earliestExpirationTime = earliestSuspendedTime;
  43413. }
  43414. return earliestExpirationTime;
  43415. }
  43416. function didExpireAtExpirationTime(root, currentTime) {
  43417. var expirationTime = root.expirationTime;
  43418. if (expirationTime !== NoWork && currentTime <= expirationTime) {
  43419. // The root has expired. Flush all work up to the current time.
  43420. root.nextExpirationTimeToWorkOn = currentTime;
  43421. }
  43422. }
  43423. function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
  43424. var earliestSuspendedTime = root.earliestSuspendedTime;
  43425. var latestSuspendedTime = root.latestSuspendedTime;
  43426. var earliestPendingTime = root.earliestPendingTime;
  43427. var latestPingedTime = root.latestPingedTime;
  43428. // Work on the earliest pending time. Failing that, work on the latest
  43429. // pinged time.
  43430. var nextExpirationTimeToWorkOn = earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
  43431. // If there is no pending or pinged work, check if there's suspended work
  43432. // that's lower priority than what we just completed.
  43433. if (nextExpirationTimeToWorkOn === NoWork && (completedExpirationTime === NoWork || latestSuspendedTime < completedExpirationTime)) {
  43434. // The lowest priority suspended work is the work most likely to be
  43435. // committed next. Let's start rendering it again, so that if it times out,
  43436. // it's ready to commit.
  43437. nextExpirationTimeToWorkOn = latestSuspendedTime;
  43438. }
  43439. var expirationTime = nextExpirationTimeToWorkOn;
  43440. if (expirationTime !== NoWork && earliestSuspendedTime > expirationTime) {
  43441. // Expire using the earliest known expiration time.
  43442. expirationTime = earliestSuspendedTime;
  43443. }
  43444. root.nextExpirationTimeToWorkOn = nextExpirationTimeToWorkOn;
  43445. root.expirationTime = expirationTime;
  43446. }
  43447. // UpdateQueue is a linked list of prioritized updates.
  43448. //
  43449. // Like fibers, update queues come in pairs: a current queue, which represents
  43450. // the visible state of the screen, and a work-in-progress queue, which is
  43451. // can be mutated and processed asynchronously before it is committed — a form
  43452. // of double buffering. If a work-in-progress render is discarded before
  43453. // finishing, we create a new work-in-progress by cloning the current queue.
  43454. //
  43455. // Both queues share a persistent, singly-linked list structure. To schedule an
  43456. // update, we append it to the end of both queues. Each queue maintains a
  43457. // pointer to first update in the persistent list that hasn't been processed.
  43458. // The work-in-progress pointer always has a position equal to or greater than
  43459. // the current queue, since we always work on that one. The current queue's
  43460. // pointer is only updated during the commit phase, when we swap in the
  43461. // work-in-progress.
  43462. //
  43463. // For example:
  43464. //
  43465. // Current pointer: A - B - C - D - E - F
  43466. // Work-in-progress pointer: D - E - F
  43467. // ^
  43468. // The work-in-progress queue has
  43469. // processed more updates than current.
  43470. //
  43471. // The reason we append to both queues is because otherwise we might drop
  43472. // updates without ever processing them. For example, if we only add updates to
  43473. // the work-in-progress queue, some updates could be lost whenever a work-in
  43474. // -progress render restarts by cloning from current. Similarly, if we only add
  43475. // updates to the current queue, the updates will be lost whenever an already
  43476. // in-progress queue commits and swaps with the current queue. However, by
  43477. // adding to both queues, we guarantee that the update will be part of the next
  43478. // work-in-progress. (And because the work-in-progress queue becomes the
  43479. // current queue once it commits, there's no danger of applying the same
  43480. // update twice.)
  43481. //
  43482. // Prioritization
  43483. // --------------
  43484. //
  43485. // Updates are not sorted by priority, but by insertion; new updates are always
  43486. // appended to the end of the list.
  43487. //
  43488. // The priority is still important, though. When processing the update queue
  43489. // during the render phase, only the updates with sufficient priority are
  43490. // included in the result. If we skip an update because it has insufficient
  43491. // priority, it remains in the queue to be processed later, during a lower
  43492. // priority render. Crucially, all updates subsequent to a skipped update also
  43493. // remain in the queue *regardless of their priority*. That means high priority
  43494. // updates are sometimes processed twice, at two separate priorities. We also
  43495. // keep track of a base state, that represents the state before the first
  43496. // update in the queue is applied.
  43497. //
  43498. // For example:
  43499. //
  43500. // Given a base state of '', and the following queue of updates
  43501. //
  43502. // A1 - B2 - C1 - D2
  43503. //
  43504. // where the number indicates the priority, and the update is applied to the
  43505. // previous state by appending a letter, React will process these updates as
  43506. // two separate renders, one per distinct priority level:
  43507. //
  43508. // First render, at priority 1:
  43509. // Base state: ''
  43510. // Updates: [A1, C1]
  43511. // Result state: 'AC'
  43512. //
  43513. // Second render, at priority 2:
  43514. // Base state: 'A' <- The base state does not include C1,
  43515. // because B2 was skipped.
  43516. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  43517. // Result state: 'ABCD'
  43518. //
  43519. // Because we process updates in insertion order, and rebase high priority
  43520. // updates when preceding updates are skipped, the final result is deterministic
  43521. // regardless of priority. Intermediate state may vary according to system
  43522. // resources, but the final state is always the same.
  43523. var UpdateState = 0;
  43524. var ReplaceState = 1;
  43525. var ForceUpdate = 2;
  43526. var CaptureUpdate = 3;
  43527. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  43528. // It should only be read right after calling `processUpdateQueue`, via
  43529. // `checkHasForceUpdateAfterProcessing`.
  43530. var hasForceUpdate = false;
  43531. var didWarnUpdateInsideUpdate = void 0;
  43532. var currentlyProcessingQueue = void 0;
  43533. var resetCurrentlyProcessingQueue = void 0;
  43534. {
  43535. didWarnUpdateInsideUpdate = false;
  43536. currentlyProcessingQueue = null;
  43537. resetCurrentlyProcessingQueue = function () {
  43538. currentlyProcessingQueue = null;
  43539. };
  43540. }
  43541. function createUpdateQueue(baseState) {
  43542. var queue = {
  43543. baseState: baseState,
  43544. firstUpdate: null,
  43545. lastUpdate: null,
  43546. firstCapturedUpdate: null,
  43547. lastCapturedUpdate: null,
  43548. firstEffect: null,
  43549. lastEffect: null,
  43550. firstCapturedEffect: null,
  43551. lastCapturedEffect: null
  43552. };
  43553. return queue;
  43554. }
  43555. function cloneUpdateQueue(currentQueue) {
  43556. var queue = {
  43557. baseState: currentQueue.baseState,
  43558. firstUpdate: currentQueue.firstUpdate,
  43559. lastUpdate: currentQueue.lastUpdate,
  43560. // TODO: With resuming, if we bail out and resuse the child tree, we should
  43561. // keep these effects.
  43562. firstCapturedUpdate: null,
  43563. lastCapturedUpdate: null,
  43564. firstEffect: null,
  43565. lastEffect: null,
  43566. firstCapturedEffect: null,
  43567. lastCapturedEffect: null
  43568. };
  43569. return queue;
  43570. }
  43571. function createUpdate(expirationTime) {
  43572. return {
  43573. expirationTime: expirationTime,
  43574. tag: UpdateState,
  43575. payload: null,
  43576. callback: null,
  43577. next: null,
  43578. nextEffect: null
  43579. };
  43580. }
  43581. function appendUpdateToQueue(queue, update) {
  43582. // Append the update to the end of the list.
  43583. if (queue.lastUpdate === null) {
  43584. // Queue is empty
  43585. queue.firstUpdate = queue.lastUpdate = update;
  43586. } else {
  43587. queue.lastUpdate.next = update;
  43588. queue.lastUpdate = update;
  43589. }
  43590. }
  43591. function enqueueUpdate(fiber, update) {
  43592. // Update queues are created lazily.
  43593. var alternate = fiber.alternate;
  43594. var queue1 = void 0;
  43595. var queue2 = void 0;
  43596. if (alternate === null) {
  43597. // There's only one fiber.
  43598. queue1 = fiber.updateQueue;
  43599. queue2 = null;
  43600. if (queue1 === null) {
  43601. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  43602. }
  43603. } else {
  43604. // There are two owners.
  43605. queue1 = fiber.updateQueue;
  43606. queue2 = alternate.updateQueue;
  43607. if (queue1 === null) {
  43608. if (queue2 === null) {
  43609. // Neither fiber has an update queue. Create new ones.
  43610. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  43611. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  43612. } else {
  43613. // Only one fiber has an update queue. Clone to create a new one.
  43614. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  43615. }
  43616. } else {
  43617. if (queue2 === null) {
  43618. // Only one fiber has an update queue. Clone to create a new one.
  43619. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  43620. } else {
  43621. // Both owners have an update queue.
  43622. }
  43623. }
  43624. }
  43625. if (queue2 === null || queue1 === queue2) {
  43626. // There's only a single queue.
  43627. appendUpdateToQueue(queue1, update);
  43628. } else {
  43629. // There are two queues. We need to append the update to both queues,
  43630. // while accounting for the persistent structure of the list — we don't
  43631. // want the same update to be added multiple times.
  43632. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  43633. // One of the queues is not empty. We must add the update to both queues.
  43634. appendUpdateToQueue(queue1, update);
  43635. appendUpdateToQueue(queue2, update);
  43636. } else {
  43637. // Both queues are non-empty. The last update is the same in both lists,
  43638. // because of structural sharing. So, only append to one of the lists.
  43639. appendUpdateToQueue(queue1, update);
  43640. // But we still need to update the `lastUpdate` pointer of queue2.
  43641. queue2.lastUpdate = update;
  43642. }
  43643. }
  43644. {
  43645. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  43646. 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.');
  43647. didWarnUpdateInsideUpdate = true;
  43648. }
  43649. }
  43650. }
  43651. function enqueueCapturedUpdate(workInProgress, update) {
  43652. // Captured updates go into a separate list, and only on the work-in-
  43653. // progress queue.
  43654. var workInProgressQueue = workInProgress.updateQueue;
  43655. if (workInProgressQueue === null) {
  43656. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  43657. } else {
  43658. // TODO: I put this here rather than createWorkInProgress so that we don't
  43659. // clone the queue unnecessarily. There's probably a better way to
  43660. // structure this.
  43661. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  43662. }
  43663. // Append the update to the end of the list.
  43664. if (workInProgressQueue.lastCapturedUpdate === null) {
  43665. // This is the first render phase update
  43666. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  43667. } else {
  43668. workInProgressQueue.lastCapturedUpdate.next = update;
  43669. workInProgressQueue.lastCapturedUpdate = update;
  43670. }
  43671. }
  43672. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  43673. var current = workInProgress.alternate;
  43674. if (current !== null) {
  43675. // If the work-in-progress queue is equal to the current queue,
  43676. // we need to clone it first.
  43677. if (queue === current.updateQueue) {
  43678. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  43679. }
  43680. }
  43681. return queue;
  43682. }
  43683. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  43684. switch (update.tag) {
  43685. case ReplaceState:
  43686. {
  43687. var _payload = update.payload;
  43688. if (typeof _payload === 'function') {
  43689. // Updater function
  43690. {
  43691. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  43692. _payload.call(instance, prevState, nextProps);
  43693. }
  43694. }
  43695. return _payload.call(instance, prevState, nextProps);
  43696. }
  43697. // State object
  43698. return _payload;
  43699. }
  43700. case CaptureUpdate:
  43701. {
  43702. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  43703. }
  43704. // Intentional fallthrough
  43705. case UpdateState:
  43706. {
  43707. var _payload2 = update.payload;
  43708. var partialState = void 0;
  43709. if (typeof _payload2 === 'function') {
  43710. // Updater function
  43711. {
  43712. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  43713. _payload2.call(instance, prevState, nextProps);
  43714. }
  43715. }
  43716. partialState = _payload2.call(instance, prevState, nextProps);
  43717. } else {
  43718. // Partial state object
  43719. partialState = _payload2;
  43720. }
  43721. if (partialState === null || partialState === undefined) {
  43722. // Null and undefined are treated as no-ops.
  43723. return prevState;
  43724. }
  43725. // Merge the partial state and the previous state.
  43726. return _assign({}, prevState, partialState);
  43727. }
  43728. case ForceUpdate:
  43729. {
  43730. hasForceUpdate = true;
  43731. return prevState;
  43732. }
  43733. }
  43734. return prevState;
  43735. }
  43736. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  43737. hasForceUpdate = false;
  43738. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  43739. {
  43740. currentlyProcessingQueue = queue;
  43741. }
  43742. // These values may change as we process the queue.
  43743. var newBaseState = queue.baseState;
  43744. var newFirstUpdate = null;
  43745. var newExpirationTime = NoWork;
  43746. // Iterate through the list of updates to compute the result.
  43747. var update = queue.firstUpdate;
  43748. var resultState = newBaseState;
  43749. while (update !== null) {
  43750. var updateExpirationTime = update.expirationTime;
  43751. if (updateExpirationTime < renderExpirationTime) {
  43752. // This update does not have sufficient priority. Skip it.
  43753. if (newFirstUpdate === null) {
  43754. // This is the first skipped update. It will be the first update in
  43755. // the new list.
  43756. newFirstUpdate = update;
  43757. // Since this is the first update that was skipped, the current result
  43758. // is the new base state.
  43759. newBaseState = resultState;
  43760. }
  43761. // Since this update will remain in the list, update the remaining
  43762. // expiration time.
  43763. if (newExpirationTime < updateExpirationTime) {
  43764. newExpirationTime = updateExpirationTime;
  43765. }
  43766. } else {
  43767. // This update does have sufficient priority. Process it and compute
  43768. // a new result.
  43769. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  43770. var _callback = update.callback;
  43771. if (_callback !== null) {
  43772. workInProgress.effectTag |= Callback;
  43773. // Set this to null, in case it was mutated during an aborted render.
  43774. update.nextEffect = null;
  43775. if (queue.lastEffect === null) {
  43776. queue.firstEffect = queue.lastEffect = update;
  43777. } else {
  43778. queue.lastEffect.nextEffect = update;
  43779. queue.lastEffect = update;
  43780. }
  43781. }
  43782. }
  43783. // Continue to the next update.
  43784. update = update.next;
  43785. }
  43786. // Separately, iterate though the list of captured updates.
  43787. var newFirstCapturedUpdate = null;
  43788. update = queue.firstCapturedUpdate;
  43789. while (update !== null) {
  43790. var _updateExpirationTime = update.expirationTime;
  43791. if (_updateExpirationTime < renderExpirationTime) {
  43792. // This update does not have sufficient priority. Skip it.
  43793. if (newFirstCapturedUpdate === null) {
  43794. // This is the first skipped captured update. It will be the first
  43795. // update in the new list.
  43796. newFirstCapturedUpdate = update;
  43797. // If this is the first update that was skipped, the current result is
  43798. // the new base state.
  43799. if (newFirstUpdate === null) {
  43800. newBaseState = resultState;
  43801. }
  43802. }
  43803. // Since this update will remain in the list, update the remaining
  43804. // expiration time.
  43805. if (newExpirationTime < _updateExpirationTime) {
  43806. newExpirationTime = _updateExpirationTime;
  43807. }
  43808. } else {
  43809. // This update does have sufficient priority. Process it and compute
  43810. // a new result.
  43811. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  43812. var _callback2 = update.callback;
  43813. if (_callback2 !== null) {
  43814. workInProgress.effectTag |= Callback;
  43815. // Set this to null, in case it was mutated during an aborted render.
  43816. update.nextEffect = null;
  43817. if (queue.lastCapturedEffect === null) {
  43818. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  43819. } else {
  43820. queue.lastCapturedEffect.nextEffect = update;
  43821. queue.lastCapturedEffect = update;
  43822. }
  43823. }
  43824. }
  43825. update = update.next;
  43826. }
  43827. if (newFirstUpdate === null) {
  43828. queue.lastUpdate = null;
  43829. }
  43830. if (newFirstCapturedUpdate === null) {
  43831. queue.lastCapturedUpdate = null;
  43832. } else {
  43833. workInProgress.effectTag |= Callback;
  43834. }
  43835. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  43836. // We processed every update, without skipping. That means the new base
  43837. // state is the same as the result state.
  43838. newBaseState = resultState;
  43839. }
  43840. queue.baseState = newBaseState;
  43841. queue.firstUpdate = newFirstUpdate;
  43842. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  43843. // Set the remaining expiration time to be whatever is remaining in the queue.
  43844. // This should be fine because the only two other things that contribute to
  43845. // expiration time are props and context. We're already in the middle of the
  43846. // begin phase by the time we start processing the queue, so we've already
  43847. // dealt with the props. Context in components that specify
  43848. // shouldComponentUpdate is tricky; but we'll have to account for
  43849. // that regardless.
  43850. workInProgress.expirationTime = newExpirationTime;
  43851. workInProgress.memoizedState = resultState;
  43852. {
  43853. currentlyProcessingQueue = null;
  43854. }
  43855. }
  43856. function callCallback(callback, context) {
  43857. !(typeof callback === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', callback) : void 0;
  43858. callback.call(context);
  43859. }
  43860. function resetHasForceUpdateBeforeProcessing() {
  43861. hasForceUpdate = false;
  43862. }
  43863. function checkHasForceUpdateAfterProcessing() {
  43864. return hasForceUpdate;
  43865. }
  43866. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  43867. // If the finished render included captured updates, and there are still
  43868. // lower priority updates left over, we need to keep the captured updates
  43869. // in the queue so that they are rebased and not dropped once we process the
  43870. // queue again at the lower priority.
  43871. if (finishedQueue.firstCapturedUpdate !== null) {
  43872. // Join the captured update list to the end of the normal list.
  43873. if (finishedQueue.lastUpdate !== null) {
  43874. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  43875. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  43876. }
  43877. // Clear the list of captured updates.
  43878. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  43879. }
  43880. // Commit the effects
  43881. commitUpdateEffects(finishedQueue.firstEffect, instance);
  43882. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  43883. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  43884. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  43885. }
  43886. function commitUpdateEffects(effect, instance) {
  43887. while (effect !== null) {
  43888. var _callback3 = effect.callback;
  43889. if (_callback3 !== null) {
  43890. effect.callback = null;
  43891. callCallback(_callback3, instance);
  43892. }
  43893. effect = effect.nextEffect;
  43894. }
  43895. }
  43896. function createCapturedValue(value, source) {
  43897. // If the value is an error, call this function immediately after it is thrown
  43898. // so the stack is accurate.
  43899. return {
  43900. value: value,
  43901. source: source,
  43902. stack: getStackByFiberInDevAndProd(source)
  43903. };
  43904. }
  43905. var valueCursor = createCursor(null);
  43906. var rendererSigil = void 0;
  43907. {
  43908. // Use this to detect multiple renderers using the same context
  43909. rendererSigil = {};
  43910. }
  43911. var currentlyRenderingFiber = null;
  43912. var lastContextDependency = null;
  43913. var lastContextWithAllBitsObserved = null;
  43914. function resetContextDependences() {
  43915. // This is called right before React yields execution, to ensure `readContext`
  43916. // cannot be called outside the render phase.
  43917. currentlyRenderingFiber = null;
  43918. lastContextDependency = null;
  43919. lastContextWithAllBitsObserved = null;
  43920. }
  43921. function pushProvider(providerFiber, nextValue) {
  43922. var context = providerFiber.type._context;
  43923. if (isPrimaryRenderer) {
  43924. push(valueCursor, context._currentValue, providerFiber);
  43925. context._currentValue = nextValue;
  43926. {
  43927. !(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;
  43928. context._currentRenderer = rendererSigil;
  43929. }
  43930. } else {
  43931. push(valueCursor, context._currentValue2, providerFiber);
  43932. context._currentValue2 = nextValue;
  43933. {
  43934. !(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;
  43935. context._currentRenderer2 = rendererSigil;
  43936. }
  43937. }
  43938. }
  43939. function popProvider(providerFiber) {
  43940. var currentValue = valueCursor.current;
  43941. pop(valueCursor, providerFiber);
  43942. var context = providerFiber.type._context;
  43943. if (isPrimaryRenderer) {
  43944. context._currentValue = currentValue;
  43945. } else {
  43946. context._currentValue2 = currentValue;
  43947. }
  43948. }
  43949. function calculateChangedBits(context, newValue, oldValue) {
  43950. // Use Object.is to compare the new context value to the old value. Inlined
  43951. // Object.is polyfill.
  43952. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  43953. if (oldValue === newValue && (oldValue !== 0 || 1 / oldValue === 1 / newValue) || oldValue !== oldValue && newValue !== newValue // eslint-disable-line no-self-compare
  43954. ) {
  43955. // No change
  43956. return 0;
  43957. } else {
  43958. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : maxSigned31BitInt;
  43959. {
  43960. !((changedBits & maxSigned31BitInt) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  43961. }
  43962. return changedBits | 0;
  43963. }
  43964. }
  43965. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  43966. var fiber = workInProgress.child;
  43967. if (fiber !== null) {
  43968. // Set the return pointer of the child to the work-in-progress fiber.
  43969. fiber.return = workInProgress;
  43970. }
  43971. while (fiber !== null) {
  43972. var nextFiber = void 0;
  43973. // Visit this fiber.
  43974. var dependency = fiber.firstContextDependency;
  43975. if (dependency !== null) {
  43976. do {
  43977. // Check if the context matches.
  43978. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  43979. // Match! Schedule an update on this fiber.
  43980. if (fiber.tag === ClassComponent) {
  43981. // Schedule a force update on the work-in-progress.
  43982. var update = createUpdate(renderExpirationTime);
  43983. update.tag = ForceUpdate;
  43984. // TODO: Because we don't have a work-in-progress, this will add the
  43985. // update to the current fiber, too, which means it will persist even if
  43986. // this render is thrown away. Since it's a race condition, not sure it's
  43987. // worth fixing.
  43988. enqueueUpdate(fiber, update);
  43989. }
  43990. if (fiber.expirationTime < renderExpirationTime) {
  43991. fiber.expirationTime = renderExpirationTime;
  43992. }
  43993. var alternate = fiber.alternate;
  43994. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  43995. alternate.expirationTime = renderExpirationTime;
  43996. }
  43997. // Update the child expiration time of all the ancestors, including
  43998. // the alternates.
  43999. var node = fiber.return;
  44000. while (node !== null) {
  44001. alternate = node.alternate;
  44002. if (node.childExpirationTime < renderExpirationTime) {
  44003. node.childExpirationTime = renderExpirationTime;
  44004. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44005. alternate.childExpirationTime = renderExpirationTime;
  44006. }
  44007. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  44008. alternate.childExpirationTime = renderExpirationTime;
  44009. } else {
  44010. // Neither alternate was updated, which means the rest of the
  44011. // ancestor path already has sufficient priority.
  44012. break;
  44013. }
  44014. node = node.return;
  44015. }
  44016. }
  44017. nextFiber = fiber.child;
  44018. dependency = dependency.next;
  44019. } while (dependency !== null);
  44020. } else if (fiber.tag === ContextProvider) {
  44021. // Don't scan deeper if this is a matching provider
  44022. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  44023. } else {
  44024. // Traverse down.
  44025. nextFiber = fiber.child;
  44026. }
  44027. if (nextFiber !== null) {
  44028. // Set the return pointer of the child to the work-in-progress fiber.
  44029. nextFiber.return = fiber;
  44030. } else {
  44031. // No child. Traverse to next sibling.
  44032. nextFiber = fiber;
  44033. while (nextFiber !== null) {
  44034. if (nextFiber === workInProgress) {
  44035. // We're back to the root of this subtree. Exit.
  44036. nextFiber = null;
  44037. break;
  44038. }
  44039. var sibling = nextFiber.sibling;
  44040. if (sibling !== null) {
  44041. // Set the return pointer of the sibling to the work-in-progress fiber.
  44042. sibling.return = nextFiber.return;
  44043. nextFiber = sibling;
  44044. break;
  44045. }
  44046. // No more siblings. Traverse up.
  44047. nextFiber = nextFiber.return;
  44048. }
  44049. }
  44050. fiber = nextFiber;
  44051. }
  44052. }
  44053. function prepareToReadContext(workInProgress, renderExpirationTime) {
  44054. currentlyRenderingFiber = workInProgress;
  44055. lastContextDependency = null;
  44056. lastContextWithAllBitsObserved = null;
  44057. // Reset the work-in-progress list
  44058. workInProgress.firstContextDependency = null;
  44059. }
  44060. function readContext(context, observedBits) {
  44061. if (lastContextWithAllBitsObserved === context) {
  44062. // Nothing to do. We already observe everything in this context.
  44063. } else if (observedBits === false || observedBits === 0) {
  44064. // Do not observe any updates.
  44065. } else {
  44066. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  44067. if (typeof observedBits !== 'number' || observedBits === maxSigned31BitInt) {
  44068. // Observe all updates.
  44069. lastContextWithAllBitsObserved = context;
  44070. resolvedObservedBits = maxSigned31BitInt;
  44071. } else {
  44072. resolvedObservedBits = observedBits;
  44073. }
  44074. var contextItem = {
  44075. context: context,
  44076. observedBits: resolvedObservedBits,
  44077. next: null
  44078. };
  44079. if (lastContextDependency === null) {
  44080. !(currentlyRenderingFiber !== null) ? invariant(false, 'Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
  44081. // This is the first dependency in the list
  44082. currentlyRenderingFiber.firstContextDependency = lastContextDependency = contextItem;
  44083. } else {
  44084. // Append a new context item.
  44085. lastContextDependency = lastContextDependency.next = contextItem;
  44086. }
  44087. }
  44088. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  44089. }
  44090. var NoEffect$1 = /* */0;
  44091. var UnmountSnapshot = /* */2;
  44092. var UnmountMutation = /* */4;
  44093. var MountMutation = /* */8;
  44094. var UnmountLayout = /* */16;
  44095. var MountLayout = /* */32;
  44096. var MountPassive = /* */64;
  44097. var UnmountPassive = /* */128;
  44098. function areHookInputsEqual(arr1, arr2) {
  44099. // Don't bother comparing lengths in prod because these arrays should be
  44100. // passed inline.
  44101. {
  44102. !(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0;
  44103. }
  44104. for (var i = 0; i < arr1.length; i++) {
  44105. // Inlined Object.is polyfill.
  44106. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  44107. var val1 = arr1[i];
  44108. var val2 = arr2[i];
  44109. if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
  44110. ) {
  44111. continue;
  44112. }
  44113. return false;
  44114. }
  44115. return true;
  44116. }
  44117. // These are set right before calling the component.
  44118. var renderExpirationTime = NoWork;
  44119. // The work-in-progress fiber. I've named it differently to distinguish it from
  44120. // the work-in-progress hook.
  44121. var currentlyRenderingFiber$1 = null;
  44122. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  44123. // current hook list is the list that belongs to the current fiber. The
  44124. // work-in-progress hook list is a new list that will be added to the
  44125. // work-in-progress fiber.
  44126. var firstCurrentHook = null;
  44127. var currentHook = null;
  44128. var firstWorkInProgressHook = null;
  44129. var workInProgressHook = null;
  44130. var remainingExpirationTime = NoWork;
  44131. var componentUpdateQueue = null;
  44132. // Updates scheduled during render will trigger an immediate re-render at the
  44133. // end of the current pass. We can't store these updates on the normal queue,
  44134. // because if the work is aborted, they should be discarded. Because this is
  44135. // a relatively rare case, we also don't want to add an additional field to
  44136. // either the hook or queue object types. So we store them in a lazily create
  44137. // map of queue -> render-phase updates, which are discarded once the component
  44138. // completes without re-rendering.
  44139. // Whether the work-in-progress hook is a re-rendered hook
  44140. var isReRender = false;
  44141. // Whether an update was scheduled during the currently executing render pass.
  44142. var didScheduleRenderPhaseUpdate = false;
  44143. // Lazily created map of render-phase updates
  44144. var renderPhaseUpdates = null;
  44145. // Counter to prevent infinite loops.
  44146. var numberOfReRenders = 0;
  44147. var RE_RENDER_LIMIT = 25;
  44148. function resolveCurrentlyRenderingFiber() {
  44149. !(currentlyRenderingFiber$1 !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  44150. return currentlyRenderingFiber$1;
  44151. }
  44152. function prepareToUseHooks(current, workInProgress, nextRenderExpirationTime) {
  44153. if (!enableHooks) {
  44154. return;
  44155. }
  44156. renderExpirationTime = nextRenderExpirationTime;
  44157. currentlyRenderingFiber$1 = workInProgress;
  44158. firstCurrentHook = current !== null ? current.memoizedState : null;
  44159. // The following should have already been reset
  44160. // currentHook = null;
  44161. // workInProgressHook = null;
  44162. // remainingExpirationTime = NoWork;
  44163. // componentUpdateQueue = null;
  44164. // isReRender = false;
  44165. // didScheduleRenderPhaseUpdate = false;
  44166. // renderPhaseUpdates = null;
  44167. // numberOfReRenders = 0;
  44168. }
  44169. function finishHooks(Component, props, children, refOrContext) {
  44170. if (!enableHooks) {
  44171. return children;
  44172. }
  44173. // This must be called after every function component to prevent hooks from
  44174. // being used in classes.
  44175. while (didScheduleRenderPhaseUpdate) {
  44176. // Updates were scheduled during the render phase. They are stored in
  44177. // the `renderPhaseUpdates` map. Call the component again, reusing the
  44178. // work-in-progress hooks and applying the additional updates on top. Keep
  44179. // restarting until no more updates are scheduled.
  44180. didScheduleRenderPhaseUpdate = false;
  44181. numberOfReRenders += 1;
  44182. // Start over from the beginning of the list
  44183. currentHook = null;
  44184. workInProgressHook = null;
  44185. componentUpdateQueue = null;
  44186. children = Component(props, refOrContext);
  44187. }
  44188. renderPhaseUpdates = null;
  44189. numberOfReRenders = 0;
  44190. var renderedWork = currentlyRenderingFiber$1;
  44191. renderedWork.memoizedState = firstWorkInProgressHook;
  44192. renderedWork.expirationTime = remainingExpirationTime;
  44193. renderedWork.updateQueue = componentUpdateQueue;
  44194. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  44195. renderExpirationTime = NoWork;
  44196. currentlyRenderingFiber$1 = null;
  44197. firstCurrentHook = null;
  44198. currentHook = null;
  44199. firstWorkInProgressHook = null;
  44200. workInProgressHook = null;
  44201. remainingExpirationTime = NoWork;
  44202. componentUpdateQueue = null;
  44203. // Always set during createWorkInProgress
  44204. // isReRender = false;
  44205. // These were reset above
  44206. // didScheduleRenderPhaseUpdate = false;
  44207. // renderPhaseUpdates = null;
  44208. // numberOfReRenders = 0;
  44209. !!didRenderTooFewHooks ? invariant(false, 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.') : void 0;
  44210. return children;
  44211. }
  44212. function resetHooks() {
  44213. if (!enableHooks) {
  44214. return;
  44215. }
  44216. // This is called instead of `finishHooks` if the component throws. It's also
  44217. // called inside mountIndeterminateComponent if we determine the component
  44218. // is a module-style component.
  44219. renderExpirationTime = NoWork;
  44220. currentlyRenderingFiber$1 = null;
  44221. firstCurrentHook = null;
  44222. currentHook = null;
  44223. firstWorkInProgressHook = null;
  44224. workInProgressHook = null;
  44225. remainingExpirationTime = NoWork;
  44226. componentUpdateQueue = null;
  44227. // Always set during createWorkInProgress
  44228. // isReRender = false;
  44229. didScheduleRenderPhaseUpdate = false;
  44230. renderPhaseUpdates = null;
  44231. numberOfReRenders = 0;
  44232. }
  44233. function createHook() {
  44234. return {
  44235. memoizedState: null,
  44236. baseState: null,
  44237. queue: null,
  44238. baseUpdate: null,
  44239. next: null
  44240. };
  44241. }
  44242. function cloneHook(hook) {
  44243. return {
  44244. memoizedState: hook.memoizedState,
  44245. baseState: hook.memoizedState,
  44246. queue: hook.queue,
  44247. baseUpdate: hook.baseUpdate,
  44248. next: null
  44249. };
  44250. }
  44251. function createWorkInProgressHook() {
  44252. if (workInProgressHook === null) {
  44253. // This is the first hook in the list
  44254. if (firstWorkInProgressHook === null) {
  44255. isReRender = false;
  44256. currentHook = firstCurrentHook;
  44257. if (currentHook === null) {
  44258. // This is a newly mounted hook
  44259. workInProgressHook = createHook();
  44260. } else {
  44261. // Clone the current hook.
  44262. workInProgressHook = cloneHook(currentHook);
  44263. }
  44264. firstWorkInProgressHook = workInProgressHook;
  44265. } else {
  44266. // There's already a work-in-progress. Reuse it.
  44267. isReRender = true;
  44268. currentHook = firstCurrentHook;
  44269. workInProgressHook = firstWorkInProgressHook;
  44270. }
  44271. } else {
  44272. if (workInProgressHook.next === null) {
  44273. isReRender = false;
  44274. var hook = void 0;
  44275. if (currentHook === null) {
  44276. // This is a newly mounted hook
  44277. hook = createHook();
  44278. } else {
  44279. currentHook = currentHook.next;
  44280. if (currentHook === null) {
  44281. // This is a newly mounted hook
  44282. hook = createHook();
  44283. } else {
  44284. // Clone the current hook.
  44285. hook = cloneHook(currentHook);
  44286. }
  44287. }
  44288. // Append to the end of the list
  44289. workInProgressHook = workInProgressHook.next = hook;
  44290. } else {
  44291. // There's already a work-in-progress. Reuse it.
  44292. isReRender = true;
  44293. workInProgressHook = workInProgressHook.next;
  44294. currentHook = currentHook !== null ? currentHook.next : null;
  44295. }
  44296. }
  44297. return workInProgressHook;
  44298. }
  44299. function createFunctionComponentUpdateQueue() {
  44300. return {
  44301. lastEffect: null
  44302. };
  44303. }
  44304. function basicStateReducer(state, action) {
  44305. return typeof action === 'function' ? action(state) : action;
  44306. }
  44307. function useContext(context, observedBits) {
  44308. // Ensure we're in a function component (class components support only the
  44309. // .unstable_read() form)
  44310. resolveCurrentlyRenderingFiber();
  44311. return readContext(context, observedBits);
  44312. }
  44313. function useState(initialState) {
  44314. return useReducer(basicStateReducer,
  44315. // useReducer has a special case to support lazy useState initializers
  44316. initialState);
  44317. }
  44318. function useReducer(reducer, initialState, initialAction) {
  44319. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44320. workInProgressHook = createWorkInProgressHook();
  44321. var queue = workInProgressHook.queue;
  44322. if (queue !== null) {
  44323. // Already have a queue, so this is an update.
  44324. if (isReRender) {
  44325. // This is a re-render. Apply the new render phase updates to the previous
  44326. var _dispatch2 = queue.dispatch;
  44327. if (renderPhaseUpdates !== null) {
  44328. // Render phase updates are stored in a map of queue -> linked list
  44329. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  44330. if (firstRenderPhaseUpdate !== undefined) {
  44331. renderPhaseUpdates.delete(queue);
  44332. var newState = workInProgressHook.memoizedState;
  44333. var update = firstRenderPhaseUpdate;
  44334. do {
  44335. // Process this render phase update. We don't have to check the
  44336. // priority because it will always be the same as the current
  44337. // render's.
  44338. var _action = update.action;
  44339. newState = reducer(newState, _action);
  44340. update = update.next;
  44341. } while (update !== null);
  44342. workInProgressHook.memoizedState = newState;
  44343. // Don't persist the state accumlated from the render phase updates to
  44344. // the base state unless the queue is empty.
  44345. // TODO: Not sure if this is the desired semantics, but it's what we
  44346. // do for gDSFP. I can't remember why.
  44347. if (workInProgressHook.baseUpdate === queue.last) {
  44348. workInProgressHook.baseState = newState;
  44349. }
  44350. return [newState, _dispatch2];
  44351. }
  44352. }
  44353. return [workInProgressHook.memoizedState, _dispatch2];
  44354. }
  44355. // The last update in the entire queue
  44356. var _last = queue.last;
  44357. // The last update that is part of the base state.
  44358. var _baseUpdate = workInProgressHook.baseUpdate;
  44359. // Find the first unprocessed update.
  44360. var first = void 0;
  44361. if (_baseUpdate !== null) {
  44362. if (_last !== null) {
  44363. // For the first update, the queue is a circular linked list where
  44364. // `queue.last.next = queue.first`. Once the first update commits, and
  44365. // the `baseUpdate` is no longer empty, we can unravel the list.
  44366. _last.next = null;
  44367. }
  44368. first = _baseUpdate.next;
  44369. } else {
  44370. first = _last !== null ? _last.next : null;
  44371. }
  44372. if (first !== null) {
  44373. var _newState = workInProgressHook.baseState;
  44374. var newBaseState = null;
  44375. var newBaseUpdate = null;
  44376. var prevUpdate = _baseUpdate;
  44377. var _update = first;
  44378. var didSkip = false;
  44379. do {
  44380. var updateExpirationTime = _update.expirationTime;
  44381. if (updateExpirationTime < renderExpirationTime) {
  44382. // Priority is insufficient. Skip this update. If this is the first
  44383. // skipped update, the previous update/state is the new base
  44384. // update/state.
  44385. if (!didSkip) {
  44386. didSkip = true;
  44387. newBaseUpdate = prevUpdate;
  44388. newBaseState = _newState;
  44389. }
  44390. // Update the remaining priority in the queue.
  44391. if (updateExpirationTime > remainingExpirationTime) {
  44392. remainingExpirationTime = updateExpirationTime;
  44393. }
  44394. } else {
  44395. // Process this update.
  44396. var _action2 = _update.action;
  44397. _newState = reducer(_newState, _action2);
  44398. }
  44399. prevUpdate = _update;
  44400. _update = _update.next;
  44401. } while (_update !== null && _update !== first);
  44402. if (!didSkip) {
  44403. newBaseUpdate = prevUpdate;
  44404. newBaseState = _newState;
  44405. }
  44406. workInProgressHook.memoizedState = _newState;
  44407. workInProgressHook.baseUpdate = newBaseUpdate;
  44408. workInProgressHook.baseState = newBaseState;
  44409. }
  44410. var _dispatch = queue.dispatch;
  44411. return [workInProgressHook.memoizedState, _dispatch];
  44412. }
  44413. // There's no existing queue, so this is the initial render.
  44414. if (reducer === basicStateReducer) {
  44415. // Special case for `useState`.
  44416. if (typeof initialState === 'function') {
  44417. initialState = initialState();
  44418. }
  44419. } else if (initialAction !== undefined && initialAction !== null) {
  44420. initialState = reducer(initialState, initialAction);
  44421. }
  44422. workInProgressHook.memoizedState = workInProgressHook.baseState = initialState;
  44423. queue = workInProgressHook.queue = {
  44424. last: null,
  44425. dispatch: null
  44426. };
  44427. var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  44428. return [workInProgressHook.memoizedState, dispatch];
  44429. }
  44430. function pushEffect(tag, create, destroy, inputs) {
  44431. var effect = {
  44432. tag: tag,
  44433. create: create,
  44434. destroy: destroy,
  44435. inputs: inputs,
  44436. // Circular
  44437. next: null
  44438. };
  44439. if (componentUpdateQueue === null) {
  44440. componentUpdateQueue = createFunctionComponentUpdateQueue();
  44441. componentUpdateQueue.lastEffect = effect.next = effect;
  44442. } else {
  44443. var _lastEffect = componentUpdateQueue.lastEffect;
  44444. if (_lastEffect === null) {
  44445. componentUpdateQueue.lastEffect = effect.next = effect;
  44446. } else {
  44447. var firstEffect = _lastEffect.next;
  44448. _lastEffect.next = effect;
  44449. effect.next = firstEffect;
  44450. componentUpdateQueue.lastEffect = effect;
  44451. }
  44452. }
  44453. return effect;
  44454. }
  44455. function useRef(initialValue) {
  44456. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44457. workInProgressHook = createWorkInProgressHook();
  44458. var ref = void 0;
  44459. if (workInProgressHook.memoizedState === null) {
  44460. ref = { current: initialValue };
  44461. {
  44462. Object.seal(ref);
  44463. }
  44464. workInProgressHook.memoizedState = ref;
  44465. } else {
  44466. ref = workInProgressHook.memoizedState;
  44467. }
  44468. return ref;
  44469. }
  44470. function useMutationEffect(create, inputs) {
  44471. useEffectImpl(Snapshot | Update, UnmountSnapshot | MountMutation, create, inputs);
  44472. }
  44473. function useLayoutEffect(create, inputs) {
  44474. useEffectImpl(Update, UnmountMutation | MountLayout, create, inputs);
  44475. }
  44476. function useEffect(create, inputs) {
  44477. useEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, inputs);
  44478. }
  44479. function useEffectImpl(fiberEffectTag, hookEffectTag, create, inputs) {
  44480. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44481. workInProgressHook = createWorkInProgressHook();
  44482. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [create];
  44483. var destroy = null;
  44484. if (currentHook !== null) {
  44485. var prevEffect = currentHook.memoizedState;
  44486. destroy = prevEffect.destroy;
  44487. if (areHookInputsEqual(nextInputs, prevEffect.inputs)) {
  44488. pushEffect(NoEffect$1, create, destroy, nextInputs);
  44489. return;
  44490. }
  44491. }
  44492. currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  44493. workInProgressHook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextInputs);
  44494. }
  44495. function useImperativeMethods(ref, create, inputs) {
  44496. // TODO: If inputs are provided, should we skip comparing the ref itself?
  44497. var nextInputs = inputs !== null && inputs !== undefined ? inputs.concat([ref]) : [ref, create];
  44498. // TODO: I've implemented this on top of useEffect because it's almost the
  44499. // same thing, and it would require an equal amount of code. It doesn't seem
  44500. // like a common enough use case to justify the additional size.
  44501. useEffectImpl(Update, UnmountMutation | MountLayout, function () {
  44502. if (typeof ref === 'function') {
  44503. var refCallback = ref;
  44504. var _inst = create();
  44505. refCallback(_inst);
  44506. return function () {
  44507. return refCallback(null);
  44508. };
  44509. } else if (ref !== null && ref !== undefined) {
  44510. var refObject = ref;
  44511. var _inst2 = create();
  44512. refObject.current = _inst2;
  44513. return function () {
  44514. refObject.current = null;
  44515. };
  44516. }
  44517. }, nextInputs);
  44518. }
  44519. function useCallback(callback, inputs) {
  44520. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44521. workInProgressHook = createWorkInProgressHook();
  44522. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [callback];
  44523. var prevState = workInProgressHook.memoizedState;
  44524. if (prevState !== null) {
  44525. var prevInputs = prevState[1];
  44526. if (areHookInputsEqual(nextInputs, prevInputs)) {
  44527. return prevState[0];
  44528. }
  44529. }
  44530. workInProgressHook.memoizedState = [callback, nextInputs];
  44531. return callback;
  44532. }
  44533. function useMemo(nextCreate, inputs) {
  44534. currentlyRenderingFiber$1 = resolveCurrentlyRenderingFiber();
  44535. workInProgressHook = createWorkInProgressHook();
  44536. var nextInputs = inputs !== undefined && inputs !== null ? inputs : [nextCreate];
  44537. var prevState = workInProgressHook.memoizedState;
  44538. if (prevState !== null) {
  44539. var prevInputs = prevState[1];
  44540. if (areHookInputsEqual(nextInputs, prevInputs)) {
  44541. return prevState[0];
  44542. }
  44543. }
  44544. var nextValue = nextCreate();
  44545. workInProgressHook.memoizedState = [nextValue, nextInputs];
  44546. return nextValue;
  44547. }
  44548. function dispatchAction(fiber, queue, action) {
  44549. !(numberOfReRenders < RE_RENDER_LIMIT) ? invariant(false, 'Too many re-renders. React limits the number of renders to prevent an infinite loop.') : void 0;
  44550. var alternate = fiber.alternate;
  44551. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  44552. // This is a render phase update. Stash it in a lazily-created map of
  44553. // queue -> linked list of updates. After this render pass, we'll restart
  44554. // and apply the stashed updates on top of the work-in-progress hook.
  44555. didScheduleRenderPhaseUpdate = true;
  44556. var update = {
  44557. expirationTime: renderExpirationTime,
  44558. action: action,
  44559. next: null
  44560. };
  44561. if (renderPhaseUpdates === null) {
  44562. renderPhaseUpdates = new Map();
  44563. }
  44564. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  44565. if (firstRenderPhaseUpdate === undefined) {
  44566. renderPhaseUpdates.set(queue, update);
  44567. } else {
  44568. // Append the update to the end of the list.
  44569. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  44570. while (lastRenderPhaseUpdate.next !== null) {
  44571. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  44572. }
  44573. lastRenderPhaseUpdate.next = update;
  44574. }
  44575. } else {
  44576. var currentTime = requestCurrentTime();
  44577. var _expirationTime = computeExpirationForFiber(currentTime, fiber);
  44578. var _update2 = {
  44579. expirationTime: _expirationTime,
  44580. action: action,
  44581. next: null
  44582. };
  44583. flushPassiveEffects();
  44584. // Append the update to the end of the list.
  44585. var _last2 = queue.last;
  44586. if (_last2 === null) {
  44587. // This is the first update. Create a circular list.
  44588. _update2.next = _update2;
  44589. } else {
  44590. var first = _last2.next;
  44591. if (first !== null) {
  44592. // Still circular.
  44593. _update2.next = first;
  44594. }
  44595. _last2.next = _update2;
  44596. }
  44597. queue.last = _update2;
  44598. scheduleWork(fiber, _expirationTime);
  44599. }
  44600. }
  44601. var NO_CONTEXT = {};
  44602. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  44603. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  44604. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  44605. function requiredContext(c) {
  44606. !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  44607. return c;
  44608. }
  44609. function getRootHostContainer() {
  44610. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  44611. return rootInstance;
  44612. }
  44613. function pushHostContainer(fiber, nextRootInstance) {
  44614. // Push current root instance onto the stack;
  44615. // This allows us to reset root when portals are popped.
  44616. push(rootInstanceStackCursor, nextRootInstance, fiber);
  44617. // Track the context and the Fiber that provided it.
  44618. // This enables us to pop only Fibers that provide unique contexts.
  44619. push(contextFiberStackCursor, fiber, fiber);
  44620. // Finally, we need to push the host context to the stack.
  44621. // However, we can't just call getRootHostContext() and push it because
  44622. // we'd have a different number of entries on the stack depending on
  44623. // whether getRootHostContext() throws somewhere in renderer code or not.
  44624. // So we push an empty value first. This lets us safely unwind on errors.
  44625. push(contextStackCursor$1, NO_CONTEXT, fiber);
  44626. var nextRootContext = getRootHostContext(nextRootInstance);
  44627. // Now that we know this function doesn't throw, replace it.
  44628. pop(contextStackCursor$1, fiber);
  44629. push(contextStackCursor$1, nextRootContext, fiber);
  44630. }
  44631. function popHostContainer(fiber) {
  44632. pop(contextStackCursor$1, fiber);
  44633. pop(contextFiberStackCursor, fiber);
  44634. pop(rootInstanceStackCursor, fiber);
  44635. }
  44636. function getHostContext() {
  44637. var context = requiredContext(contextStackCursor$1.current);
  44638. return context;
  44639. }
  44640. function pushHostContext(fiber) {
  44641. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  44642. var context = requiredContext(contextStackCursor$1.current);
  44643. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  44644. // Don't push this Fiber's context unless it's unique.
  44645. if (context === nextContext) {
  44646. return;
  44647. }
  44648. // Track the context and the Fiber that provided it.
  44649. // This enables us to pop only Fibers that provide unique contexts.
  44650. push(contextFiberStackCursor, fiber, fiber);
  44651. push(contextStackCursor$1, nextContext, fiber);
  44652. }
  44653. function popHostContext(fiber) {
  44654. // Do not pop unless this Fiber provided the current context.
  44655. // pushHostContext() only pushes Fibers that provide unique contexts.
  44656. if (contextFiberStackCursor.current !== fiber) {
  44657. return;
  44658. }
  44659. pop(contextStackCursor$1, fiber);
  44660. pop(contextFiberStackCursor, fiber);
  44661. }
  44662. var commitTime = 0;
  44663. var profilerStartTime = -1;
  44664. function getCommitTime() {
  44665. return commitTime;
  44666. }
  44667. function recordCommitTime() {
  44668. if (!enableProfilerTimer) {
  44669. return;
  44670. }
  44671. commitTime = scheduler.unstable_now();
  44672. }
  44673. function startProfilerTimer(fiber) {
  44674. if (!enableProfilerTimer) {
  44675. return;
  44676. }
  44677. profilerStartTime = scheduler.unstable_now();
  44678. if (fiber.actualStartTime < 0) {
  44679. fiber.actualStartTime = scheduler.unstable_now();
  44680. }
  44681. }
  44682. function stopProfilerTimerIfRunning(fiber) {
  44683. if (!enableProfilerTimer) {
  44684. return;
  44685. }
  44686. profilerStartTime = -1;
  44687. }
  44688. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  44689. if (!enableProfilerTimer) {
  44690. return;
  44691. }
  44692. if (profilerStartTime >= 0) {
  44693. var elapsedTime = scheduler.unstable_now() - profilerStartTime;
  44694. fiber.actualDuration += elapsedTime;
  44695. if (overrideBaseTime) {
  44696. fiber.selfBaseDuration = elapsedTime;
  44697. }
  44698. profilerStartTime = -1;
  44699. }
  44700. }
  44701. function resolveDefaultProps(Component, baseProps) {
  44702. if (Component && Component.defaultProps) {
  44703. // Resolve default props. Taken from ReactElement
  44704. var props = _assign({}, baseProps);
  44705. var defaultProps = Component.defaultProps;
  44706. for (var propName in defaultProps) {
  44707. if (props[propName] === undefined) {
  44708. props[propName] = defaultProps[propName];
  44709. }
  44710. }
  44711. return props;
  44712. }
  44713. return baseProps;
  44714. }
  44715. function readLazyComponentType(lazyComponent) {
  44716. var status = lazyComponent._status;
  44717. var result = lazyComponent._result;
  44718. switch (status) {
  44719. case Resolved:
  44720. {
  44721. var Component = result;
  44722. return Component;
  44723. }
  44724. case Rejected:
  44725. {
  44726. var error = result;
  44727. throw error;
  44728. }
  44729. case Pending:
  44730. {
  44731. var thenable = result;
  44732. throw thenable;
  44733. }
  44734. default:
  44735. {
  44736. lazyComponent._status = Pending;
  44737. var ctor = lazyComponent._ctor;
  44738. var _thenable = ctor();
  44739. _thenable.then(function (moduleObject) {
  44740. if (lazyComponent._status === Pending) {
  44741. var defaultExport = moduleObject.default;
  44742. {
  44743. if (defaultExport === undefined) {
  44744. 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);
  44745. }
  44746. }
  44747. lazyComponent._status = Resolved;
  44748. lazyComponent._result = defaultExport;
  44749. }
  44750. }, function (error) {
  44751. if (lazyComponent._status === Pending) {
  44752. lazyComponent._status = Rejected;
  44753. lazyComponent._result = error;
  44754. }
  44755. });
  44756. lazyComponent._result = _thenable;
  44757. throw _thenable;
  44758. }
  44759. }
  44760. }
  44761. var ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner;
  44762. function readContext$1(contextType) {
  44763. var dispatcher = ReactCurrentOwner$4.currentDispatcher;
  44764. return dispatcher.readContext(contextType);
  44765. }
  44766. var fakeInternalInstance = {};
  44767. var isArray$1 = Array.isArray;
  44768. // React.Component uses a shared frozen object by default.
  44769. // We'll use it to determine whether we need to initialize legacy refs.
  44770. var emptyRefsObject = new React.Component().refs;
  44771. var didWarnAboutStateAssignmentForComponent = void 0;
  44772. var didWarnAboutUninitializedState = void 0;
  44773. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  44774. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  44775. var didWarnAboutUndefinedDerivedState = void 0;
  44776. var warnOnUndefinedDerivedState = void 0;
  44777. var warnOnInvalidCallback$1 = void 0;
  44778. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  44779. var didWarnAboutContextTypeAndContextTypes = void 0;
  44780. var didWarnAboutInvalidateContextType = void 0;
  44781. {
  44782. didWarnAboutStateAssignmentForComponent = new Set();
  44783. didWarnAboutUninitializedState = new Set();
  44784. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  44785. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  44786. didWarnAboutDirectlyAssigningPropsToState = new Set();
  44787. didWarnAboutUndefinedDerivedState = new Set();
  44788. didWarnAboutContextTypeAndContextTypes = new Set();
  44789. didWarnAboutInvalidateContextType = new Set();
  44790. var didWarnOnInvalidCallback = new Set();
  44791. warnOnInvalidCallback$1 = function (callback, callerName) {
  44792. if (callback === null || typeof callback === 'function') {
  44793. return;
  44794. }
  44795. var key = callerName + '_' + callback;
  44796. if (!didWarnOnInvalidCallback.has(key)) {
  44797. didWarnOnInvalidCallback.add(key);
  44798. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  44799. }
  44800. };
  44801. warnOnUndefinedDerivedState = function (type, partialState) {
  44802. if (partialState === undefined) {
  44803. var componentName = getComponentName(type) || 'Component';
  44804. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  44805. didWarnAboutUndefinedDerivedState.add(componentName);
  44806. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  44807. }
  44808. }
  44809. };
  44810. // This is so gross but it's at least non-critical and can be removed if
  44811. // it causes problems. This is meant to give a nicer error message for
  44812. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  44813. // ...)) which otherwise throws a "_processChildContext is not a function"
  44814. // exception.
  44815. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  44816. enumerable: false,
  44817. value: function () {
  44818. invariant(false, '_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).');
  44819. }
  44820. });
  44821. Object.freeze(fakeInternalInstance);
  44822. }
  44823. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  44824. var prevState = workInProgress.memoizedState;
  44825. {
  44826. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  44827. // Invoke the function an extra time to help detect side-effects.
  44828. getDerivedStateFromProps(nextProps, prevState);
  44829. }
  44830. }
  44831. var partialState = getDerivedStateFromProps(nextProps, prevState);
  44832. {
  44833. warnOnUndefinedDerivedState(ctor, partialState);
  44834. }
  44835. // Merge the partial state and the previous state.
  44836. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  44837. workInProgress.memoizedState = memoizedState;
  44838. // Once the update queue is empty, persist the derived state onto the
  44839. // base state.
  44840. var updateQueue = workInProgress.updateQueue;
  44841. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  44842. updateQueue.baseState = memoizedState;
  44843. }
  44844. }
  44845. var classComponentUpdater = {
  44846. isMounted: isMounted,
  44847. enqueueSetState: function (inst, payload, callback) {
  44848. var fiber = get(inst);
  44849. var currentTime = requestCurrentTime();
  44850. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44851. var update = createUpdate(expirationTime);
  44852. update.payload = payload;
  44853. if (callback !== undefined && callback !== null) {
  44854. {
  44855. warnOnInvalidCallback$1(callback, 'setState');
  44856. }
  44857. update.callback = callback;
  44858. }
  44859. flushPassiveEffects();
  44860. enqueueUpdate(fiber, update);
  44861. scheduleWork(fiber, expirationTime);
  44862. },
  44863. enqueueReplaceState: function (inst, payload, callback) {
  44864. var fiber = get(inst);
  44865. var currentTime = requestCurrentTime();
  44866. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44867. var update = createUpdate(expirationTime);
  44868. update.tag = ReplaceState;
  44869. update.payload = payload;
  44870. if (callback !== undefined && callback !== null) {
  44871. {
  44872. warnOnInvalidCallback$1(callback, 'replaceState');
  44873. }
  44874. update.callback = callback;
  44875. }
  44876. flushPassiveEffects();
  44877. enqueueUpdate(fiber, update);
  44878. scheduleWork(fiber, expirationTime);
  44879. },
  44880. enqueueForceUpdate: function (inst, callback) {
  44881. var fiber = get(inst);
  44882. var currentTime = requestCurrentTime();
  44883. var expirationTime = computeExpirationForFiber(currentTime, fiber);
  44884. var update = createUpdate(expirationTime);
  44885. update.tag = ForceUpdate;
  44886. if (callback !== undefined && callback !== null) {
  44887. {
  44888. warnOnInvalidCallback$1(callback, 'forceUpdate');
  44889. }
  44890. update.callback = callback;
  44891. }
  44892. flushPassiveEffects();
  44893. enqueueUpdate(fiber, update);
  44894. scheduleWork(fiber, expirationTime);
  44895. }
  44896. };
  44897. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  44898. var instance = workInProgress.stateNode;
  44899. if (typeof instance.shouldComponentUpdate === 'function') {
  44900. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  44901. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  44902. stopPhaseTimer();
  44903. {
  44904. !(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;
  44905. }
  44906. return shouldUpdate;
  44907. }
  44908. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  44909. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  44910. }
  44911. return true;
  44912. }
  44913. function checkClassInstance(workInProgress, ctor, newProps) {
  44914. var instance = workInProgress.stateNode;
  44915. {
  44916. var name = getComponentName(ctor) || 'Component';
  44917. var renderPresent = instance.render;
  44918. if (!renderPresent) {
  44919. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  44920. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  44921. } else {
  44922. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  44923. }
  44924. }
  44925. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  44926. !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;
  44927. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  44928. !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;
  44929. var noInstancePropTypes = !instance.propTypes;
  44930. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  44931. var noInstanceContextType = !instance.contextType;
  44932. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  44933. var noInstanceContextTypes = !instance.contextTypes;
  44934. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  44935. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  44936. didWarnAboutContextTypeAndContextTypes.add(ctor);
  44937. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  44938. }
  44939. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  44940. !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;
  44941. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  44942. 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');
  44943. }
  44944. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  44945. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  44946. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  44947. !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;
  44948. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  44949. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  44950. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  44951. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  44952. var hasMutatedProps = instance.props !== newProps;
  44953. !(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;
  44954. var noInstanceDefaultProps = !instance.defaultProps;
  44955. !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;
  44956. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  44957. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  44958. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  44959. }
  44960. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  44961. !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;
  44962. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  44963. !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;
  44964. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  44965. !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;
  44966. var _state = instance.state;
  44967. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  44968. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  44969. }
  44970. if (typeof instance.getChildContext === 'function') {
  44971. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  44972. }
  44973. }
  44974. }
  44975. function adoptClassInstance(workInProgress, instance) {
  44976. instance.updater = classComponentUpdater;
  44977. workInProgress.stateNode = instance;
  44978. // The instance needs access to the fiber so that it can schedule updates
  44979. set(instance, workInProgress);
  44980. {
  44981. instance._reactInternalInstance = fakeInternalInstance;
  44982. }
  44983. }
  44984. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  44985. var isLegacyContextConsumer = false;
  44986. var unmaskedContext = emptyContextObject;
  44987. var context = null;
  44988. var contextType = ctor.contextType;
  44989. if (typeof contextType === 'object' && contextType !== null) {
  44990. {
  44991. if (contextType.$$typeof !== REACT_CONTEXT_TYPE && !didWarnAboutInvalidateContextType.has(ctor)) {
  44992. didWarnAboutInvalidateContextType.add(ctor);
  44993. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext(). ' + 'Did you accidentally pass the Context.Provider instead?', getComponentName(ctor) || 'Component');
  44994. }
  44995. }
  44996. context = readContext$1(contextType);
  44997. } else {
  44998. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  44999. var contextTypes = ctor.contextTypes;
  45000. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  45001. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  45002. }
  45003. // Instantiate twice to help detect side-effects.
  45004. {
  45005. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  45006. new ctor(props, context); // eslint-disable-line no-new
  45007. }
  45008. }
  45009. var instance = new ctor(props, context);
  45010. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  45011. adoptClassInstance(workInProgress, instance);
  45012. {
  45013. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  45014. var componentName = getComponentName(ctor) || 'Component';
  45015. if (!didWarnAboutUninitializedState.has(componentName)) {
  45016. didWarnAboutUninitializedState.add(componentName);
  45017. 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);
  45018. }
  45019. }
  45020. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  45021. // Warn about these lifecycles if they are present.
  45022. // Don't warn about react-lifecycles-compat polyfilled methods though.
  45023. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  45024. var foundWillMountName = null;
  45025. var foundWillReceivePropsName = null;
  45026. var foundWillUpdateName = null;
  45027. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  45028. foundWillMountName = 'componentWillMount';
  45029. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45030. foundWillMountName = 'UNSAFE_componentWillMount';
  45031. }
  45032. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  45033. foundWillReceivePropsName = 'componentWillReceiveProps';
  45034. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45035. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  45036. }
  45037. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  45038. foundWillUpdateName = 'componentWillUpdate';
  45039. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45040. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  45041. }
  45042. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  45043. var _componentName = getComponentName(ctor) || 'Component';
  45044. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  45045. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  45046. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  45047. 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 : '');
  45048. }
  45049. }
  45050. }
  45051. }
  45052. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  45053. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  45054. if (isLegacyContextConsumer) {
  45055. cacheContext(workInProgress, unmaskedContext, context);
  45056. }
  45057. return instance;
  45058. }
  45059. function callComponentWillMount(workInProgress, instance) {
  45060. startPhaseTimer(workInProgress, 'componentWillMount');
  45061. var oldState = instance.state;
  45062. if (typeof instance.componentWillMount === 'function') {
  45063. instance.componentWillMount();
  45064. }
  45065. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45066. instance.UNSAFE_componentWillMount();
  45067. }
  45068. stopPhaseTimer();
  45069. if (oldState !== instance.state) {
  45070. {
  45071. 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');
  45072. }
  45073. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45074. }
  45075. }
  45076. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  45077. var oldState = instance.state;
  45078. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  45079. if (typeof instance.componentWillReceiveProps === 'function') {
  45080. instance.componentWillReceiveProps(newProps, nextContext);
  45081. }
  45082. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  45083. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  45084. }
  45085. stopPhaseTimer();
  45086. if (instance.state !== oldState) {
  45087. {
  45088. var componentName = getComponentName(workInProgress.type) || 'Component';
  45089. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  45090. didWarnAboutStateAssignmentForComponent.add(componentName);
  45091. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  45092. }
  45093. }
  45094. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  45095. }
  45096. }
  45097. // Invokes the mount life-cycles on a previously never rendered instance.
  45098. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45099. {
  45100. checkClassInstance(workInProgress, ctor, newProps);
  45101. }
  45102. var instance = workInProgress.stateNode;
  45103. instance.props = newProps;
  45104. instance.state = workInProgress.memoizedState;
  45105. instance.refs = emptyRefsObject;
  45106. var contextType = ctor.contextType;
  45107. if (typeof contextType === 'object' && contextType !== null) {
  45108. instance.context = readContext$1(contextType);
  45109. } else {
  45110. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45111. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  45112. }
  45113. {
  45114. if (instance.state === newProps) {
  45115. var componentName = getComponentName(ctor) || 'Component';
  45116. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  45117. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  45118. 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);
  45119. }
  45120. }
  45121. if (workInProgress.mode & StrictMode) {
  45122. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  45123. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  45124. }
  45125. if (warnAboutDeprecatedLifecycles) {
  45126. ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
  45127. }
  45128. }
  45129. var updateQueue = workInProgress.updateQueue;
  45130. if (updateQueue !== null) {
  45131. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45132. instance.state = workInProgress.memoizedState;
  45133. }
  45134. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45135. if (typeof getDerivedStateFromProps === 'function') {
  45136. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45137. instance.state = workInProgress.memoizedState;
  45138. }
  45139. // In order to support react-lifecycles-compat polyfilled components,
  45140. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45141. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  45142. callComponentWillMount(workInProgress, instance);
  45143. // If we had additional state updates during this life-cycle, let's
  45144. // process them now.
  45145. updateQueue = workInProgress.updateQueue;
  45146. if (updateQueue !== null) {
  45147. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45148. instance.state = workInProgress.memoizedState;
  45149. }
  45150. }
  45151. if (typeof instance.componentDidMount === 'function') {
  45152. workInProgress.effectTag |= Update;
  45153. }
  45154. }
  45155. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  45156. var instance = workInProgress.stateNode;
  45157. var oldProps = workInProgress.memoizedProps;
  45158. instance.props = oldProps;
  45159. var oldContext = instance.context;
  45160. var contextType = ctor.contextType;
  45161. var nextContext = void 0;
  45162. if (typeof contextType === 'object' && contextType !== null) {
  45163. nextContext = readContext$1(contextType);
  45164. } else {
  45165. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45166. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  45167. }
  45168. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45169. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  45170. // Note: During these life-cycles, instance.props/instance.state are what
  45171. // ever the previously attempted to render - not the "current". However,
  45172. // during componentDidUpdate we pass the "current" props.
  45173. // In order to support react-lifecycles-compat polyfilled components,
  45174. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45175. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  45176. if (oldProps !== newProps || oldContext !== nextContext) {
  45177. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  45178. }
  45179. }
  45180. resetHasForceUpdateBeforeProcessing();
  45181. var oldState = workInProgress.memoizedState;
  45182. var newState = instance.state = oldState;
  45183. var updateQueue = workInProgress.updateQueue;
  45184. if (updateQueue !== null) {
  45185. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45186. newState = workInProgress.memoizedState;
  45187. }
  45188. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  45189. // If an update was already in progress, we should schedule an Update
  45190. // effect even though we're bailing out, so that cWU/cDU are called.
  45191. if (typeof instance.componentDidMount === 'function') {
  45192. workInProgress.effectTag |= Update;
  45193. }
  45194. return false;
  45195. }
  45196. if (typeof getDerivedStateFromProps === 'function') {
  45197. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45198. newState = workInProgress.memoizedState;
  45199. }
  45200. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  45201. if (shouldUpdate) {
  45202. // In order to support react-lifecycles-compat polyfilled components,
  45203. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45204. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  45205. startPhaseTimer(workInProgress, 'componentWillMount');
  45206. if (typeof instance.componentWillMount === 'function') {
  45207. instance.componentWillMount();
  45208. }
  45209. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  45210. instance.UNSAFE_componentWillMount();
  45211. }
  45212. stopPhaseTimer();
  45213. }
  45214. if (typeof instance.componentDidMount === 'function') {
  45215. workInProgress.effectTag |= Update;
  45216. }
  45217. } else {
  45218. // If an update was already in progress, we should schedule an Update
  45219. // effect even though we're bailing out, so that cWU/cDU are called.
  45220. if (typeof instance.componentDidMount === 'function') {
  45221. workInProgress.effectTag |= Update;
  45222. }
  45223. // If shouldComponentUpdate returned false, we should still update the
  45224. // memoized state to indicate that this work can be reused.
  45225. workInProgress.memoizedProps = newProps;
  45226. workInProgress.memoizedState = newState;
  45227. }
  45228. // Update the existing instance's state, props, and context pointers even
  45229. // if shouldComponentUpdate returns false.
  45230. instance.props = newProps;
  45231. instance.state = newState;
  45232. instance.context = nextContext;
  45233. return shouldUpdate;
  45234. }
  45235. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  45236. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  45237. var instance = workInProgress.stateNode;
  45238. var oldProps = workInProgress.memoizedProps;
  45239. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  45240. var oldContext = instance.context;
  45241. var contextType = ctor.contextType;
  45242. var nextContext = void 0;
  45243. if (typeof contextType === 'object' && contextType !== null) {
  45244. nextContext = readContext$1(contextType);
  45245. } else {
  45246. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  45247. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  45248. }
  45249. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  45250. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  45251. // Note: During these life-cycles, instance.props/instance.state are what
  45252. // ever the previously attempted to render - not the "current". However,
  45253. // during componentDidUpdate we pass the "current" props.
  45254. // In order to support react-lifecycles-compat polyfilled components,
  45255. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45256. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  45257. if (oldProps !== newProps || oldContext !== nextContext) {
  45258. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  45259. }
  45260. }
  45261. resetHasForceUpdateBeforeProcessing();
  45262. var oldState = workInProgress.memoizedState;
  45263. var newState = instance.state = oldState;
  45264. var updateQueue = workInProgress.updateQueue;
  45265. if (updateQueue !== null) {
  45266. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  45267. newState = workInProgress.memoizedState;
  45268. }
  45269. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  45270. // If an update was already in progress, we should schedule an Update
  45271. // effect even though we're bailing out, so that cWU/cDU are called.
  45272. if (typeof instance.componentDidUpdate === 'function') {
  45273. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45274. workInProgress.effectTag |= Update;
  45275. }
  45276. }
  45277. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45278. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45279. workInProgress.effectTag |= Snapshot;
  45280. }
  45281. }
  45282. return false;
  45283. }
  45284. if (typeof getDerivedStateFromProps === 'function') {
  45285. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  45286. newState = workInProgress.memoizedState;
  45287. }
  45288. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  45289. if (shouldUpdate) {
  45290. // In order to support react-lifecycles-compat polyfilled components,
  45291. // Unsafe lifecycles should not be invoked for components using the new APIs.
  45292. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  45293. startPhaseTimer(workInProgress, 'componentWillUpdate');
  45294. if (typeof instance.componentWillUpdate === 'function') {
  45295. instance.componentWillUpdate(newProps, newState, nextContext);
  45296. }
  45297. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  45298. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  45299. }
  45300. stopPhaseTimer();
  45301. }
  45302. if (typeof instance.componentDidUpdate === 'function') {
  45303. workInProgress.effectTag |= Update;
  45304. }
  45305. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45306. workInProgress.effectTag |= Snapshot;
  45307. }
  45308. } else {
  45309. // If an update was already in progress, we should schedule an Update
  45310. // effect even though we're bailing out, so that cWU/cDU are called.
  45311. if (typeof instance.componentDidUpdate === 'function') {
  45312. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45313. workInProgress.effectTag |= Update;
  45314. }
  45315. }
  45316. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  45317. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  45318. workInProgress.effectTag |= Snapshot;
  45319. }
  45320. }
  45321. // If shouldComponentUpdate returned false, we should still update the
  45322. // memoized props/state to indicate that this work can be reused.
  45323. workInProgress.memoizedProps = newProps;
  45324. workInProgress.memoizedState = newState;
  45325. }
  45326. // Update the existing instance's state, props, and context pointers even
  45327. // if shouldComponentUpdate returns false.
  45328. instance.props = newProps;
  45329. instance.state = newState;
  45330. instance.context = nextContext;
  45331. return shouldUpdate;
  45332. }
  45333. var didWarnAboutMaps = void 0;
  45334. var didWarnAboutGenerators = void 0;
  45335. var didWarnAboutStringRefInStrictMode = void 0;
  45336. var ownerHasKeyUseWarning = void 0;
  45337. var ownerHasFunctionTypeWarning = void 0;
  45338. var warnForMissingKey = function (child) {};
  45339. {
  45340. didWarnAboutMaps = false;
  45341. didWarnAboutGenerators = false;
  45342. didWarnAboutStringRefInStrictMode = {};
  45343. /**
  45344. * Warn if there's no key explicitly set on dynamic arrays of children or
  45345. * object keys are not valid. This allows us to keep track of children between
  45346. * updates.
  45347. */
  45348. ownerHasKeyUseWarning = {};
  45349. ownerHasFunctionTypeWarning = {};
  45350. warnForMissingKey = function (child) {
  45351. if (child === null || typeof child !== 'object') {
  45352. return;
  45353. }
  45354. if (!child._store || child._store.validated || child.key != null) {
  45355. return;
  45356. }
  45357. !(typeof child._store === 'object') ? invariant(false, 'React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  45358. child._store.validated = true;
  45359. var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  45360. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  45361. return;
  45362. }
  45363. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  45364. warning$1(false, 'Each child in an array or iterator should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  45365. };
  45366. }
  45367. var isArray = Array.isArray;
  45368. function coerceRef(returnFiber, current$$1, element) {
  45369. var mixedRef = element.ref;
  45370. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  45371. {
  45372. if (returnFiber.mode & StrictMode) {
  45373. var componentName = getComponentName(returnFiber.type) || 'Component';
  45374. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  45375. 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));
  45376. didWarnAboutStringRefInStrictMode[componentName] = true;
  45377. }
  45378. }
  45379. }
  45380. if (element._owner) {
  45381. var owner = element._owner;
  45382. var inst = void 0;
  45383. if (owner) {
  45384. var ownerFiber = owner;
  45385. !(ownerFiber.tag === ClassComponent) ? invariant(false, 'Function components cannot have refs.') : void 0;
  45386. inst = ownerFiber.stateNode;
  45387. }
  45388. !inst ? invariant(false, 'Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.', mixedRef) : void 0;
  45389. var stringRef = '' + mixedRef;
  45390. // Check if previous string ref matches new string ref
  45391. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  45392. return current$$1.ref;
  45393. }
  45394. var ref = function (value) {
  45395. var refs = inst.refs;
  45396. if (refs === emptyRefsObject) {
  45397. // This is a lazy pooled frozen object, so we need to initialize.
  45398. refs = inst.refs = {};
  45399. }
  45400. if (value === null) {
  45401. delete refs[stringRef];
  45402. } else {
  45403. refs[stringRef] = value;
  45404. }
  45405. };
  45406. ref._stringRef = stringRef;
  45407. return ref;
  45408. } else {
  45409. !(typeof mixedRef === 'string') ? invariant(false, 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.') : void 0;
  45410. !element._owner ? invariant(false, 'Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.', mixedRef) : void 0;
  45411. }
  45412. }
  45413. return mixedRef;
  45414. }
  45415. function throwOnInvalidObjectType(returnFiber, newChild) {
  45416. if (returnFiber.type !== 'textarea') {
  45417. var addendum = '';
  45418. {
  45419. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  45420. }
  45421. invariant(false, 'Objects are not valid as a React child (found: %s).%s', Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild, addendum);
  45422. }
  45423. }
  45424. function warnOnFunctionType() {
  45425. 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();
  45426. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  45427. return;
  45428. }
  45429. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  45430. 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.');
  45431. }
  45432. // This wrapper function exists because I expect to clone the code in each path
  45433. // to be able to optimize each path individually by branching early. This needs
  45434. // a compiler or we can do it manually. Helpers that don't need this branching
  45435. // live outside of this function.
  45436. function ChildReconciler(shouldTrackSideEffects) {
  45437. function deleteChild(returnFiber, childToDelete) {
  45438. if (!shouldTrackSideEffects) {
  45439. // Noop.
  45440. return;
  45441. }
  45442. // Deletions are added in reversed order so we add it to the front.
  45443. // At this point, the return fiber's effect list is empty except for
  45444. // deletions, so we can just append the deletion to the list. The remaining
  45445. // effects aren't added until the complete phase. Once we implement
  45446. // resuming, this may not be true.
  45447. var last = returnFiber.lastEffect;
  45448. if (last !== null) {
  45449. last.nextEffect = childToDelete;
  45450. returnFiber.lastEffect = childToDelete;
  45451. } else {
  45452. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  45453. }
  45454. childToDelete.nextEffect = null;
  45455. childToDelete.effectTag = Deletion;
  45456. }
  45457. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  45458. if (!shouldTrackSideEffects) {
  45459. // Noop.
  45460. return null;
  45461. }
  45462. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  45463. // assuming that after the first child we've already added everything.
  45464. var childToDelete = currentFirstChild;
  45465. while (childToDelete !== null) {
  45466. deleteChild(returnFiber, childToDelete);
  45467. childToDelete = childToDelete.sibling;
  45468. }
  45469. return null;
  45470. }
  45471. function mapRemainingChildren(returnFiber, currentFirstChild) {
  45472. // Add the remaining children to a temporary map so that we can find them by
  45473. // keys quickly. Implicit (null) keys get added to this set with their index
  45474. var existingChildren = new Map();
  45475. var existingChild = currentFirstChild;
  45476. while (existingChild !== null) {
  45477. if (existingChild.key !== null) {
  45478. existingChildren.set(existingChild.key, existingChild);
  45479. } else {
  45480. existingChildren.set(existingChild.index, existingChild);
  45481. }
  45482. existingChild = existingChild.sibling;
  45483. }
  45484. return existingChildren;
  45485. }
  45486. function useFiber(fiber, pendingProps, expirationTime) {
  45487. // We currently set sibling to null and index to 0 here because it is easy
  45488. // to forget to do before returning it. E.g. for the single child case.
  45489. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  45490. clone.index = 0;
  45491. clone.sibling = null;
  45492. return clone;
  45493. }
  45494. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  45495. newFiber.index = newIndex;
  45496. if (!shouldTrackSideEffects) {
  45497. // Noop.
  45498. return lastPlacedIndex;
  45499. }
  45500. var current$$1 = newFiber.alternate;
  45501. if (current$$1 !== null) {
  45502. var oldIndex = current$$1.index;
  45503. if (oldIndex < lastPlacedIndex) {
  45504. // This is a move.
  45505. newFiber.effectTag = Placement;
  45506. return lastPlacedIndex;
  45507. } else {
  45508. // This item can stay in place.
  45509. return oldIndex;
  45510. }
  45511. } else {
  45512. // This is an insertion.
  45513. newFiber.effectTag = Placement;
  45514. return lastPlacedIndex;
  45515. }
  45516. }
  45517. function placeSingleChild(newFiber) {
  45518. // This is simpler for the single child case. We only need to do a
  45519. // placement for inserting new children.
  45520. if (shouldTrackSideEffects && newFiber.alternate === null) {
  45521. newFiber.effectTag = Placement;
  45522. }
  45523. return newFiber;
  45524. }
  45525. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  45526. if (current$$1 === null || current$$1.tag !== HostText) {
  45527. // Insert
  45528. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  45529. created.return = returnFiber;
  45530. return created;
  45531. } else {
  45532. // Update
  45533. var existing = useFiber(current$$1, textContent, expirationTime);
  45534. existing.return = returnFiber;
  45535. return existing;
  45536. }
  45537. }
  45538. function updateElement(returnFiber, current$$1, element, expirationTime) {
  45539. if (current$$1 !== null && current$$1.elementType === element.type) {
  45540. // Move based on index
  45541. var existing = useFiber(current$$1, element.props, expirationTime);
  45542. existing.ref = coerceRef(returnFiber, current$$1, element);
  45543. existing.return = returnFiber;
  45544. {
  45545. existing._debugSource = element._source;
  45546. existing._debugOwner = element._owner;
  45547. }
  45548. return existing;
  45549. } else {
  45550. // Insert
  45551. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  45552. created.ref = coerceRef(returnFiber, current$$1, element);
  45553. created.return = returnFiber;
  45554. return created;
  45555. }
  45556. }
  45557. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  45558. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  45559. // Insert
  45560. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  45561. created.return = returnFiber;
  45562. return created;
  45563. } else {
  45564. // Update
  45565. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  45566. existing.return = returnFiber;
  45567. return existing;
  45568. }
  45569. }
  45570. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  45571. if (current$$1 === null || current$$1.tag !== Fragment) {
  45572. // Insert
  45573. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  45574. created.return = returnFiber;
  45575. return created;
  45576. } else {
  45577. // Update
  45578. var existing = useFiber(current$$1, fragment, expirationTime);
  45579. existing.return = returnFiber;
  45580. return existing;
  45581. }
  45582. }
  45583. function createChild(returnFiber, newChild, expirationTime) {
  45584. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45585. // Text nodes don't have keys. If the previous node is implicitly keyed
  45586. // we can continue to replace it without aborting even if it is not a text
  45587. // node.
  45588. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  45589. created.return = returnFiber;
  45590. return created;
  45591. }
  45592. if (typeof newChild === 'object' && newChild !== null) {
  45593. switch (newChild.$$typeof) {
  45594. case REACT_ELEMENT_TYPE:
  45595. {
  45596. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  45597. _created.ref = coerceRef(returnFiber, null, newChild);
  45598. _created.return = returnFiber;
  45599. return _created;
  45600. }
  45601. case REACT_PORTAL_TYPE:
  45602. {
  45603. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  45604. _created2.return = returnFiber;
  45605. return _created2;
  45606. }
  45607. }
  45608. if (isArray(newChild) || getIteratorFn(newChild)) {
  45609. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  45610. _created3.return = returnFiber;
  45611. return _created3;
  45612. }
  45613. throwOnInvalidObjectType(returnFiber, newChild);
  45614. }
  45615. {
  45616. if (typeof newChild === 'function') {
  45617. warnOnFunctionType();
  45618. }
  45619. }
  45620. return null;
  45621. }
  45622. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  45623. // Update the fiber if the keys match, otherwise return null.
  45624. var key = oldFiber !== null ? oldFiber.key : null;
  45625. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45626. // Text nodes don't have keys. If the previous node is implicitly keyed
  45627. // we can continue to replace it without aborting even if it is not a text
  45628. // node.
  45629. if (key !== null) {
  45630. return null;
  45631. }
  45632. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  45633. }
  45634. if (typeof newChild === 'object' && newChild !== null) {
  45635. switch (newChild.$$typeof) {
  45636. case REACT_ELEMENT_TYPE:
  45637. {
  45638. if (newChild.key === key) {
  45639. if (newChild.type === REACT_FRAGMENT_TYPE) {
  45640. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  45641. }
  45642. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  45643. } else {
  45644. return null;
  45645. }
  45646. }
  45647. case REACT_PORTAL_TYPE:
  45648. {
  45649. if (newChild.key === key) {
  45650. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  45651. } else {
  45652. return null;
  45653. }
  45654. }
  45655. }
  45656. if (isArray(newChild) || getIteratorFn(newChild)) {
  45657. if (key !== null) {
  45658. return null;
  45659. }
  45660. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  45661. }
  45662. throwOnInvalidObjectType(returnFiber, newChild);
  45663. }
  45664. {
  45665. if (typeof newChild === 'function') {
  45666. warnOnFunctionType();
  45667. }
  45668. }
  45669. return null;
  45670. }
  45671. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  45672. if (typeof newChild === 'string' || typeof newChild === 'number') {
  45673. // Text nodes don't have keys, so we neither have to check the old nor
  45674. // new node for the key. If both are text nodes, they match.
  45675. var matchedFiber = existingChildren.get(newIdx) || null;
  45676. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  45677. }
  45678. if (typeof newChild === 'object' && newChild !== null) {
  45679. switch (newChild.$$typeof) {
  45680. case REACT_ELEMENT_TYPE:
  45681. {
  45682. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  45683. if (newChild.type === REACT_FRAGMENT_TYPE) {
  45684. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  45685. }
  45686. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  45687. }
  45688. case REACT_PORTAL_TYPE:
  45689. {
  45690. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  45691. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  45692. }
  45693. }
  45694. if (isArray(newChild) || getIteratorFn(newChild)) {
  45695. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  45696. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  45697. }
  45698. throwOnInvalidObjectType(returnFiber, newChild);
  45699. }
  45700. {
  45701. if (typeof newChild === 'function') {
  45702. warnOnFunctionType();
  45703. }
  45704. }
  45705. return null;
  45706. }
  45707. /**
  45708. * Warns if there is a duplicate or missing key
  45709. */
  45710. function warnOnInvalidKey(child, knownKeys) {
  45711. {
  45712. if (typeof child !== 'object' || child === null) {
  45713. return knownKeys;
  45714. }
  45715. switch (child.$$typeof) {
  45716. case REACT_ELEMENT_TYPE:
  45717. case REACT_PORTAL_TYPE:
  45718. warnForMissingKey(child);
  45719. var key = child.key;
  45720. if (typeof key !== 'string') {
  45721. break;
  45722. }
  45723. if (knownKeys === null) {
  45724. knownKeys = new Set();
  45725. knownKeys.add(key);
  45726. break;
  45727. }
  45728. if (!knownKeys.has(key)) {
  45729. knownKeys.add(key);
  45730. break;
  45731. }
  45732. 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);
  45733. break;
  45734. default:
  45735. break;
  45736. }
  45737. }
  45738. return knownKeys;
  45739. }
  45740. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  45741. // This algorithm can't optimize by searching from boths ends since we
  45742. // don't have backpointers on fibers. I'm trying to see how far we can get
  45743. // with that model. If it ends up not being worth the tradeoffs, we can
  45744. // add it later.
  45745. // Even with a two ended optimization, we'd want to optimize for the case
  45746. // where there are few changes and brute force the comparison instead of
  45747. // going for the Map. It'd like to explore hitting that path first in
  45748. // forward-only mode and only go for the Map once we notice that we need
  45749. // lots of look ahead. This doesn't handle reversal as well as two ended
  45750. // search but that's unusual. Besides, for the two ended optimization to
  45751. // work on Iterables, we'd need to copy the whole set.
  45752. // In this first iteration, we'll just live with hitting the bad case
  45753. // (adding everything to a Map) in for every insert/move.
  45754. // If you change this code, also update reconcileChildrenIterator() which
  45755. // uses the same algorithm.
  45756. {
  45757. // First, validate keys.
  45758. var knownKeys = null;
  45759. for (var i = 0; i < newChildren.length; i++) {
  45760. var child = newChildren[i];
  45761. knownKeys = warnOnInvalidKey(child, knownKeys);
  45762. }
  45763. }
  45764. var resultingFirstChild = null;
  45765. var previousNewFiber = null;
  45766. var oldFiber = currentFirstChild;
  45767. var lastPlacedIndex = 0;
  45768. var newIdx = 0;
  45769. var nextOldFiber = null;
  45770. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  45771. if (oldFiber.index > newIdx) {
  45772. nextOldFiber = oldFiber;
  45773. oldFiber = null;
  45774. } else {
  45775. nextOldFiber = oldFiber.sibling;
  45776. }
  45777. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  45778. if (newFiber === null) {
  45779. // TODO: This breaks on empty slots like null children. That's
  45780. // unfortunate because it triggers the slow path all the time. We need
  45781. // a better way to communicate whether this was a miss or null,
  45782. // boolean, undefined, etc.
  45783. if (oldFiber === null) {
  45784. oldFiber = nextOldFiber;
  45785. }
  45786. break;
  45787. }
  45788. if (shouldTrackSideEffects) {
  45789. if (oldFiber && newFiber.alternate === null) {
  45790. // We matched the slot, but we didn't reuse the existing fiber, so we
  45791. // need to delete the existing child.
  45792. deleteChild(returnFiber, oldFiber);
  45793. }
  45794. }
  45795. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  45796. if (previousNewFiber === null) {
  45797. // TODO: Move out of the loop. This only happens for the first run.
  45798. resultingFirstChild = newFiber;
  45799. } else {
  45800. // TODO: Defer siblings if we're not at the right index for this slot.
  45801. // I.e. if we had null values before, then we want to defer this
  45802. // for each null value. However, we also don't want to call updateSlot
  45803. // with the previous one.
  45804. previousNewFiber.sibling = newFiber;
  45805. }
  45806. previousNewFiber = newFiber;
  45807. oldFiber = nextOldFiber;
  45808. }
  45809. if (newIdx === newChildren.length) {
  45810. // We've reached the end of the new children. We can delete the rest.
  45811. deleteRemainingChildren(returnFiber, oldFiber);
  45812. return resultingFirstChild;
  45813. }
  45814. if (oldFiber === null) {
  45815. // If we don't have any more existing children we can choose a fast path
  45816. // since the rest will all be insertions.
  45817. for (; newIdx < newChildren.length; newIdx++) {
  45818. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  45819. if (!_newFiber) {
  45820. continue;
  45821. }
  45822. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  45823. if (previousNewFiber === null) {
  45824. // TODO: Move out of the loop. This only happens for the first run.
  45825. resultingFirstChild = _newFiber;
  45826. } else {
  45827. previousNewFiber.sibling = _newFiber;
  45828. }
  45829. previousNewFiber = _newFiber;
  45830. }
  45831. return resultingFirstChild;
  45832. }
  45833. // Add all children to a key map for quick lookups.
  45834. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  45835. // Keep scanning and use the map to restore deleted items as moves.
  45836. for (; newIdx < newChildren.length; newIdx++) {
  45837. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  45838. if (_newFiber2) {
  45839. if (shouldTrackSideEffects) {
  45840. if (_newFiber2.alternate !== null) {
  45841. // The new fiber is a work in progress, but if there exists a
  45842. // current, that means that we reused the fiber. We need to delete
  45843. // it from the child list so that we don't add it to the deletion
  45844. // list.
  45845. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  45846. }
  45847. }
  45848. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  45849. if (previousNewFiber === null) {
  45850. resultingFirstChild = _newFiber2;
  45851. } else {
  45852. previousNewFiber.sibling = _newFiber2;
  45853. }
  45854. previousNewFiber = _newFiber2;
  45855. }
  45856. }
  45857. if (shouldTrackSideEffects) {
  45858. // Any existing children that weren't consumed above were deleted. We need
  45859. // to add them to the deletion list.
  45860. existingChildren.forEach(function (child) {
  45861. return deleteChild(returnFiber, child);
  45862. });
  45863. }
  45864. return resultingFirstChild;
  45865. }
  45866. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  45867. // This is the same implementation as reconcileChildrenArray(),
  45868. // but using the iterator instead.
  45869. var iteratorFn = getIteratorFn(newChildrenIterable);
  45870. !(typeof iteratorFn === 'function') ? invariant(false, 'An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  45871. {
  45872. // We don't support rendering Generators because it's a mutation.
  45873. // See https://github.com/facebook/react/issues/12995
  45874. if (typeof Symbol === 'function' &&
  45875. // $FlowFixMe Flow doesn't know about toStringTag
  45876. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  45877. !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;
  45878. didWarnAboutGenerators = true;
  45879. }
  45880. // Warn about using Maps as children
  45881. if (newChildrenIterable.entries === iteratorFn) {
  45882. !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;
  45883. didWarnAboutMaps = true;
  45884. }
  45885. // First, validate keys.
  45886. // We'll get a different iterator later for the main pass.
  45887. var _newChildren = iteratorFn.call(newChildrenIterable);
  45888. if (_newChildren) {
  45889. var knownKeys = null;
  45890. var _step = _newChildren.next();
  45891. for (; !_step.done; _step = _newChildren.next()) {
  45892. var child = _step.value;
  45893. knownKeys = warnOnInvalidKey(child, knownKeys);
  45894. }
  45895. }
  45896. }
  45897. var newChildren = iteratorFn.call(newChildrenIterable);
  45898. !(newChildren != null) ? invariant(false, 'An iterable object provided no iterator.') : void 0;
  45899. var resultingFirstChild = null;
  45900. var previousNewFiber = null;
  45901. var oldFiber = currentFirstChild;
  45902. var lastPlacedIndex = 0;
  45903. var newIdx = 0;
  45904. var nextOldFiber = null;
  45905. var step = newChildren.next();
  45906. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  45907. if (oldFiber.index > newIdx) {
  45908. nextOldFiber = oldFiber;
  45909. oldFiber = null;
  45910. } else {
  45911. nextOldFiber = oldFiber.sibling;
  45912. }
  45913. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  45914. if (newFiber === null) {
  45915. // TODO: This breaks on empty slots like null children. That's
  45916. // unfortunate because it triggers the slow path all the time. We need
  45917. // a better way to communicate whether this was a miss or null,
  45918. // boolean, undefined, etc.
  45919. if (!oldFiber) {
  45920. oldFiber = nextOldFiber;
  45921. }
  45922. break;
  45923. }
  45924. if (shouldTrackSideEffects) {
  45925. if (oldFiber && newFiber.alternate === null) {
  45926. // We matched the slot, but we didn't reuse the existing fiber, so we
  45927. // need to delete the existing child.
  45928. deleteChild(returnFiber, oldFiber);
  45929. }
  45930. }
  45931. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  45932. if (previousNewFiber === null) {
  45933. // TODO: Move out of the loop. This only happens for the first run.
  45934. resultingFirstChild = newFiber;
  45935. } else {
  45936. // TODO: Defer siblings if we're not at the right index for this slot.
  45937. // I.e. if we had null values before, then we want to defer this
  45938. // for each null value. However, we also don't want to call updateSlot
  45939. // with the previous one.
  45940. previousNewFiber.sibling = newFiber;
  45941. }
  45942. previousNewFiber = newFiber;
  45943. oldFiber = nextOldFiber;
  45944. }
  45945. if (step.done) {
  45946. // We've reached the end of the new children. We can delete the rest.
  45947. deleteRemainingChildren(returnFiber, oldFiber);
  45948. return resultingFirstChild;
  45949. }
  45950. if (oldFiber === null) {
  45951. // If we don't have any more existing children we can choose a fast path
  45952. // since the rest will all be insertions.
  45953. for (; !step.done; newIdx++, step = newChildren.next()) {
  45954. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  45955. if (_newFiber3 === null) {
  45956. continue;
  45957. }
  45958. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  45959. if (previousNewFiber === null) {
  45960. // TODO: Move out of the loop. This only happens for the first run.
  45961. resultingFirstChild = _newFiber3;
  45962. } else {
  45963. previousNewFiber.sibling = _newFiber3;
  45964. }
  45965. previousNewFiber = _newFiber3;
  45966. }
  45967. return resultingFirstChild;
  45968. }
  45969. // Add all children to a key map for quick lookups.
  45970. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  45971. // Keep scanning and use the map to restore deleted items as moves.
  45972. for (; !step.done; newIdx++, step = newChildren.next()) {
  45973. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  45974. if (_newFiber4 !== null) {
  45975. if (shouldTrackSideEffects) {
  45976. if (_newFiber4.alternate !== null) {
  45977. // The new fiber is a work in progress, but if there exists a
  45978. // current, that means that we reused the fiber. We need to delete
  45979. // it from the child list so that we don't add it to the deletion
  45980. // list.
  45981. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  45982. }
  45983. }
  45984. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  45985. if (previousNewFiber === null) {
  45986. resultingFirstChild = _newFiber4;
  45987. } else {
  45988. previousNewFiber.sibling = _newFiber4;
  45989. }
  45990. previousNewFiber = _newFiber4;
  45991. }
  45992. }
  45993. if (shouldTrackSideEffects) {
  45994. // Any existing children that weren't consumed above were deleted. We need
  45995. // to add them to the deletion list.
  45996. existingChildren.forEach(function (child) {
  45997. return deleteChild(returnFiber, child);
  45998. });
  45999. }
  46000. return resultingFirstChild;
  46001. }
  46002. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  46003. // There's no need to check for keys on text nodes since we don't have a
  46004. // way to define them.
  46005. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  46006. // We already have an existing node so let's just update it and delete
  46007. // the rest.
  46008. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  46009. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  46010. existing.return = returnFiber;
  46011. return existing;
  46012. }
  46013. // The existing first child is not a text node so we need to create one
  46014. // and delete the existing ones.
  46015. deleteRemainingChildren(returnFiber, currentFirstChild);
  46016. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  46017. created.return = returnFiber;
  46018. return created;
  46019. }
  46020. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  46021. var key = element.key;
  46022. var child = currentFirstChild;
  46023. while (child !== null) {
  46024. // TODO: If key === null and child.key === null, then this only applies to
  46025. // the first item in the list.
  46026. if (child.key === key) {
  46027. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type) {
  46028. deleteRemainingChildren(returnFiber, child.sibling);
  46029. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  46030. existing.ref = coerceRef(returnFiber, child, element);
  46031. existing.return = returnFiber;
  46032. {
  46033. existing._debugSource = element._source;
  46034. existing._debugOwner = element._owner;
  46035. }
  46036. return existing;
  46037. } else {
  46038. deleteRemainingChildren(returnFiber, child);
  46039. break;
  46040. }
  46041. } else {
  46042. deleteChild(returnFiber, child);
  46043. }
  46044. child = child.sibling;
  46045. }
  46046. if (element.type === REACT_FRAGMENT_TYPE) {
  46047. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  46048. created.return = returnFiber;
  46049. return created;
  46050. } else {
  46051. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  46052. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  46053. _created4.return = returnFiber;
  46054. return _created4;
  46055. }
  46056. }
  46057. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  46058. var key = portal.key;
  46059. var child = currentFirstChild;
  46060. while (child !== null) {
  46061. // TODO: If key === null and child.key === null, then this only applies to
  46062. // the first item in the list.
  46063. if (child.key === key) {
  46064. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  46065. deleteRemainingChildren(returnFiber, child.sibling);
  46066. var existing = useFiber(child, portal.children || [], expirationTime);
  46067. existing.return = returnFiber;
  46068. return existing;
  46069. } else {
  46070. deleteRemainingChildren(returnFiber, child);
  46071. break;
  46072. }
  46073. } else {
  46074. deleteChild(returnFiber, child);
  46075. }
  46076. child = child.sibling;
  46077. }
  46078. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  46079. created.return = returnFiber;
  46080. return created;
  46081. }
  46082. // This API will tag the children with the side-effect of the reconciliation
  46083. // itself. They will be added to the side-effect list as we pass through the
  46084. // children and the parent.
  46085. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  46086. // This function is not recursive.
  46087. // If the top level item is an array, we treat it as a set of children,
  46088. // not as a fragment. Nested arrays on the other hand will be treated as
  46089. // fragment nodes. Recursion happens at the normal flow.
  46090. // Handle top level unkeyed fragments as if they were arrays.
  46091. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  46092. // We treat the ambiguous cases above the same.
  46093. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  46094. if (isUnkeyedTopLevelFragment) {
  46095. newChild = newChild.props.children;
  46096. }
  46097. // Handle object types
  46098. var isObject = typeof newChild === 'object' && newChild !== null;
  46099. if (isObject) {
  46100. switch (newChild.$$typeof) {
  46101. case REACT_ELEMENT_TYPE:
  46102. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  46103. case REACT_PORTAL_TYPE:
  46104. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  46105. }
  46106. }
  46107. if (typeof newChild === 'string' || typeof newChild === 'number') {
  46108. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  46109. }
  46110. if (isArray(newChild)) {
  46111. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  46112. }
  46113. if (getIteratorFn(newChild)) {
  46114. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  46115. }
  46116. if (isObject) {
  46117. throwOnInvalidObjectType(returnFiber, newChild);
  46118. }
  46119. {
  46120. if (typeof newChild === 'function') {
  46121. warnOnFunctionType();
  46122. }
  46123. }
  46124. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  46125. // If the new child is undefined, and the return fiber is a composite
  46126. // component, throw an error. If Fiber return types are disabled,
  46127. // we already threw above.
  46128. switch (returnFiber.tag) {
  46129. case ClassComponent:
  46130. {
  46131. {
  46132. var instance = returnFiber.stateNode;
  46133. if (instance.render._isMockFunction) {
  46134. // We allow auto-mocks to proceed as if they're returning null.
  46135. break;
  46136. }
  46137. }
  46138. }
  46139. // Intentionally fall through to the next case, which handles both
  46140. // functions and classes
  46141. // eslint-disable-next-lined no-fallthrough
  46142. case FunctionComponent:
  46143. {
  46144. var Component = returnFiber.type;
  46145. invariant(false, '%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', Component.displayName || Component.name || 'Component');
  46146. }
  46147. }
  46148. }
  46149. // Remaining cases are all treated as empty.
  46150. return deleteRemainingChildren(returnFiber, currentFirstChild);
  46151. }
  46152. return reconcileChildFibers;
  46153. }
  46154. var reconcileChildFibers = ChildReconciler(true);
  46155. var mountChildFibers = ChildReconciler(false);
  46156. function cloneChildFibers(current$$1, workInProgress) {
  46157. !(current$$1 === null || workInProgress.child === current$$1.child) ? invariant(false, 'Resuming work not yet implemented.') : void 0;
  46158. if (workInProgress.child === null) {
  46159. return;
  46160. }
  46161. var currentChild = workInProgress.child;
  46162. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  46163. workInProgress.child = newChild;
  46164. newChild.return = workInProgress;
  46165. while (currentChild.sibling !== null) {
  46166. currentChild = currentChild.sibling;
  46167. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  46168. newChild.return = workInProgress;
  46169. }
  46170. newChild.sibling = null;
  46171. }
  46172. // The deepest Fiber on the stack involved in a hydration context.
  46173. // This may have been an insertion or a hydration.
  46174. var hydrationParentFiber = null;
  46175. var nextHydratableInstance = null;
  46176. var isHydrating = false;
  46177. function enterHydrationState(fiber) {
  46178. if (!supportsHydration) {
  46179. return false;
  46180. }
  46181. var parentInstance = fiber.stateNode.containerInfo;
  46182. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  46183. hydrationParentFiber = fiber;
  46184. isHydrating = true;
  46185. return true;
  46186. }
  46187. function deleteHydratableInstance(returnFiber, instance) {
  46188. {
  46189. switch (returnFiber.tag) {
  46190. case HostRoot:
  46191. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  46192. break;
  46193. case HostComponent:
  46194. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  46195. break;
  46196. }
  46197. }
  46198. var childToDelete = createFiberFromHostInstanceForDeletion();
  46199. childToDelete.stateNode = instance;
  46200. childToDelete.return = returnFiber;
  46201. childToDelete.effectTag = Deletion;
  46202. // This might seem like it belongs on progressedFirstDeletion. However,
  46203. // these children are not part of the reconciliation list of children.
  46204. // Even if we abort and rereconcile the children, that will try to hydrate
  46205. // again and the nodes are still in the host tree so these will be
  46206. // recreated.
  46207. if (returnFiber.lastEffect !== null) {
  46208. returnFiber.lastEffect.nextEffect = childToDelete;
  46209. returnFiber.lastEffect = childToDelete;
  46210. } else {
  46211. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  46212. }
  46213. }
  46214. function insertNonHydratedInstance(returnFiber, fiber) {
  46215. fiber.effectTag |= Placement;
  46216. {
  46217. switch (returnFiber.tag) {
  46218. case HostRoot:
  46219. {
  46220. var parentContainer = returnFiber.stateNode.containerInfo;
  46221. switch (fiber.tag) {
  46222. case HostComponent:
  46223. var type = fiber.type;
  46224. var props = fiber.pendingProps;
  46225. didNotFindHydratableContainerInstance(parentContainer, type, props);
  46226. break;
  46227. case HostText:
  46228. var text = fiber.pendingProps;
  46229. didNotFindHydratableContainerTextInstance(parentContainer, text);
  46230. break;
  46231. }
  46232. break;
  46233. }
  46234. case HostComponent:
  46235. {
  46236. var parentType = returnFiber.type;
  46237. var parentProps = returnFiber.memoizedProps;
  46238. var parentInstance = returnFiber.stateNode;
  46239. switch (fiber.tag) {
  46240. case HostComponent:
  46241. var _type = fiber.type;
  46242. var _props = fiber.pendingProps;
  46243. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  46244. break;
  46245. case HostText:
  46246. var _text = fiber.pendingProps;
  46247. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  46248. break;
  46249. }
  46250. break;
  46251. }
  46252. default:
  46253. return;
  46254. }
  46255. }
  46256. }
  46257. function tryHydrate(fiber, nextInstance) {
  46258. switch (fiber.tag) {
  46259. case HostComponent:
  46260. {
  46261. var type = fiber.type;
  46262. var props = fiber.pendingProps;
  46263. var instance = canHydrateInstance(nextInstance, type, props);
  46264. if (instance !== null) {
  46265. fiber.stateNode = instance;
  46266. return true;
  46267. }
  46268. return false;
  46269. }
  46270. case HostText:
  46271. {
  46272. var text = fiber.pendingProps;
  46273. var textInstance = canHydrateTextInstance(nextInstance, text);
  46274. if (textInstance !== null) {
  46275. fiber.stateNode = textInstance;
  46276. return true;
  46277. }
  46278. return false;
  46279. }
  46280. default:
  46281. return false;
  46282. }
  46283. }
  46284. function tryToClaimNextHydratableInstance(fiber) {
  46285. if (!isHydrating) {
  46286. return;
  46287. }
  46288. var nextInstance = nextHydratableInstance;
  46289. if (!nextInstance) {
  46290. // Nothing to hydrate. Make it an insertion.
  46291. insertNonHydratedInstance(hydrationParentFiber, fiber);
  46292. isHydrating = false;
  46293. hydrationParentFiber = fiber;
  46294. return;
  46295. }
  46296. var firstAttemptedInstance = nextInstance;
  46297. if (!tryHydrate(fiber, nextInstance)) {
  46298. // If we can't hydrate this instance let's try the next one.
  46299. // We use this as a heuristic. It's based on intuition and not data so it
  46300. // might be flawed or unnecessary.
  46301. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  46302. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  46303. // Nothing to hydrate. Make it an insertion.
  46304. insertNonHydratedInstance(hydrationParentFiber, fiber);
  46305. isHydrating = false;
  46306. hydrationParentFiber = fiber;
  46307. return;
  46308. }
  46309. // We matched the next one, we'll now assume that the first one was
  46310. // superfluous and we'll delete it. Since we can't eagerly delete it
  46311. // we'll have to schedule a deletion. To do that, this node needs a dummy
  46312. // fiber associated with it.
  46313. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  46314. }
  46315. hydrationParentFiber = fiber;
  46316. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  46317. }
  46318. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  46319. if (!supportsHydration) {
  46320. invariant(false, 'Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  46321. }
  46322. var instance = fiber.stateNode;
  46323. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  46324. // TODO: Type this specific to this type of component.
  46325. fiber.updateQueue = updatePayload;
  46326. // If the update payload indicates that there is a change or if there
  46327. // is a new ref we mark this as an update.
  46328. if (updatePayload !== null) {
  46329. return true;
  46330. }
  46331. return false;
  46332. }
  46333. function prepareToHydrateHostTextInstance(fiber) {
  46334. if (!supportsHydration) {
  46335. invariant(false, 'Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.');
  46336. }
  46337. var textInstance = fiber.stateNode;
  46338. var textContent = fiber.memoizedProps;
  46339. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  46340. {
  46341. if (shouldUpdate) {
  46342. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  46343. // hydration parent is the parent host component of this host text.
  46344. var returnFiber = hydrationParentFiber;
  46345. if (returnFiber !== null) {
  46346. switch (returnFiber.tag) {
  46347. case HostRoot:
  46348. {
  46349. var parentContainer = returnFiber.stateNode.containerInfo;
  46350. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  46351. break;
  46352. }
  46353. case HostComponent:
  46354. {
  46355. var parentType = returnFiber.type;
  46356. var parentProps = returnFiber.memoizedProps;
  46357. var parentInstance = returnFiber.stateNode;
  46358. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  46359. break;
  46360. }
  46361. }
  46362. }
  46363. }
  46364. }
  46365. return shouldUpdate;
  46366. }
  46367. function popToNextHostParent(fiber) {
  46368. var parent = fiber.return;
  46369. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot) {
  46370. parent = parent.return;
  46371. }
  46372. hydrationParentFiber = parent;
  46373. }
  46374. function popHydrationState(fiber) {
  46375. if (!supportsHydration) {
  46376. return false;
  46377. }
  46378. if (fiber !== hydrationParentFiber) {
  46379. // We're deeper than the current hydration context, inside an inserted
  46380. // tree.
  46381. return false;
  46382. }
  46383. if (!isHydrating) {
  46384. // If we're not currently hydrating but we're in a hydration context, then
  46385. // we were an insertion and now need to pop up reenter hydration of our
  46386. // siblings.
  46387. popToNextHostParent(fiber);
  46388. isHydrating = true;
  46389. return false;
  46390. }
  46391. var type = fiber.type;
  46392. // If we have any remaining hydratable nodes, we need to delete them now.
  46393. // We only do this deeper than head and body since they tend to have random
  46394. // other nodes in them. We also ignore components with pure text content in
  46395. // side of them.
  46396. // TODO: Better heuristic.
  46397. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  46398. var nextInstance = nextHydratableInstance;
  46399. while (nextInstance) {
  46400. deleteHydratableInstance(fiber, nextInstance);
  46401. nextInstance = getNextHydratableSibling(nextInstance);
  46402. }
  46403. }
  46404. popToNextHostParent(fiber);
  46405. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  46406. return true;
  46407. }
  46408. function resetHydrationState() {
  46409. if (!supportsHydration) {
  46410. return;
  46411. }
  46412. hydrationParentFiber = null;
  46413. nextHydratableInstance = null;
  46414. isHydrating = false;
  46415. }
  46416. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  46417. var didWarnAboutBadClass = void 0;
  46418. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  46419. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  46420. var didWarnAboutFunctionRefs = void 0;
  46421. {
  46422. didWarnAboutBadClass = {};
  46423. didWarnAboutContextTypeOnFunctionComponent = {};
  46424. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  46425. didWarnAboutFunctionRefs = {};
  46426. }
  46427. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  46428. if (current$$1 === null) {
  46429. // If this is a fresh new component that hasn't been rendered yet, we
  46430. // won't update its child set by applying minimal side-effects. Instead,
  46431. // we will add them all to the child before it gets rendered. That means
  46432. // we can optimize this reconciliation pass by not tracking side-effects.
  46433. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46434. } else {
  46435. // If the current child is the same as the work in progress, it means that
  46436. // we haven't yet started any work on these children. Therefore, we use
  46437. // the clone algorithm to create a copy of all the current children.
  46438. // If we had any progressed work already, that is invalid at this point so
  46439. // let's throw it out.
  46440. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  46441. }
  46442. }
  46443. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  46444. // This function is fork of reconcileChildren. It's used in cases where we
  46445. // want to reconcile without matching against the existing set. This has the
  46446. // effect of all current children being unmounted; even if the type and key
  46447. // are the same, the old child is unmounted and a new child is created.
  46448. //
  46449. // To do this, we're going to go through the reconcile algorithm twice. In
  46450. // the first pass, we schedule a deletion for all the current children by
  46451. // passing null.
  46452. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  46453. // In the second pass, we mount the new children. The trick here is that we
  46454. // pass null in place of where we usually pass the current child set. This has
  46455. // the effect of remounting all children regardless of whether their their
  46456. // identity matches.
  46457. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46458. }
  46459. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46460. var render = Component.render;
  46461. var ref = workInProgress.ref;
  46462. // The rest is a fork of updateFunctionComponent
  46463. var nextChildren = void 0;
  46464. prepareToReadContext(workInProgress, renderExpirationTime);
  46465. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  46466. {
  46467. ReactCurrentOwner$3.current = workInProgress;
  46468. setCurrentPhase('render');
  46469. nextChildren = render(nextProps, ref);
  46470. setCurrentPhase(null);
  46471. }
  46472. nextChildren = finishHooks(render, nextProps, nextChildren, ref);
  46473. // React DevTools reads this flag.
  46474. workInProgress.effectTag |= PerformedWork;
  46475. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46476. return workInProgress.child;
  46477. }
  46478. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  46479. if (current$$1 === null) {
  46480. var type = Component.type;
  46481. if (isSimpleFunctionComponent(type) && Component.compare === null) {
  46482. // If this is a plain function component without default props,
  46483. // and with only the default shallow comparison, we upgrade it
  46484. // to a SimpleMemoComponent to allow fast path updates.
  46485. workInProgress.tag = SimpleMemoComponent;
  46486. workInProgress.type = type;
  46487. return updateSimpleMemoComponent(current$$1, workInProgress, type, nextProps, updateExpirationTime, renderExpirationTime);
  46488. }
  46489. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  46490. child.ref = workInProgress.ref;
  46491. child.return = workInProgress;
  46492. workInProgress.child = child;
  46493. return child;
  46494. }
  46495. var currentChild = current$$1.child; // This is always exactly one child
  46496. if (updateExpirationTime < renderExpirationTime) {
  46497. // This will be the props with resolved defaultProps,
  46498. // unlike current.memoizedProps which will be the unresolved ones.
  46499. var prevProps = currentChild.memoizedProps;
  46500. // Default to shallow comparison
  46501. var compare = Component.compare;
  46502. compare = compare !== null ? compare : shallowEqual;
  46503. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  46504. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46505. }
  46506. }
  46507. // React DevTools reads this flag.
  46508. workInProgress.effectTag |= PerformedWork;
  46509. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  46510. newChild.ref = workInProgress.ref;
  46511. newChild.return = workInProgress;
  46512. workInProgress.child = newChild;
  46513. return newChild;
  46514. }
  46515. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  46516. if (current$$1 !== null && updateExpirationTime < renderExpirationTime) {
  46517. var prevProps = current$$1.memoizedProps;
  46518. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  46519. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46520. }
  46521. }
  46522. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  46523. }
  46524. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  46525. var nextChildren = workInProgress.pendingProps;
  46526. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46527. return workInProgress.child;
  46528. }
  46529. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  46530. var nextChildren = workInProgress.pendingProps.children;
  46531. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46532. return workInProgress.child;
  46533. }
  46534. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  46535. if (enableProfilerTimer) {
  46536. workInProgress.effectTag |= Update;
  46537. }
  46538. var nextProps = workInProgress.pendingProps;
  46539. var nextChildren = nextProps.children;
  46540. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46541. return workInProgress.child;
  46542. }
  46543. function markRef(current$$1, workInProgress) {
  46544. var ref = workInProgress.ref;
  46545. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  46546. // Schedule a Ref effect
  46547. workInProgress.effectTag |= Ref;
  46548. }
  46549. }
  46550. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46551. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  46552. var context = getMaskedContext(workInProgress, unmaskedContext);
  46553. var nextChildren = void 0;
  46554. prepareToReadContext(workInProgress, renderExpirationTime);
  46555. prepareToUseHooks(current$$1, workInProgress, renderExpirationTime);
  46556. {
  46557. ReactCurrentOwner$3.current = workInProgress;
  46558. setCurrentPhase('render');
  46559. nextChildren = Component(nextProps, context);
  46560. setCurrentPhase(null);
  46561. }
  46562. nextChildren = finishHooks(Component, nextProps, nextChildren, context);
  46563. // React DevTools reads this flag.
  46564. workInProgress.effectTag |= PerformedWork;
  46565. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46566. return workInProgress.child;
  46567. }
  46568. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  46569. // Push context providers early to prevent context stack mismatches.
  46570. // During mounting we don't know the child context yet as the instance doesn't exist.
  46571. // We will invalidate the child context in finishClassComponent() right after rendering.
  46572. var hasContext = void 0;
  46573. if (isContextProvider(Component)) {
  46574. hasContext = true;
  46575. pushContextProvider(workInProgress);
  46576. } else {
  46577. hasContext = false;
  46578. }
  46579. prepareToReadContext(workInProgress, renderExpirationTime);
  46580. var instance = workInProgress.stateNode;
  46581. var shouldUpdate = void 0;
  46582. if (instance === null) {
  46583. if (current$$1 !== null) {
  46584. // An class component without an instance only mounts if it suspended
  46585. // inside a non- concurrent tree, in an inconsistent state. We want to
  46586. // tree it like a new mount, even though an empty version of it already
  46587. // committed. Disconnect the alternate pointers.
  46588. current$$1.alternate = null;
  46589. workInProgress.alternate = null;
  46590. // Since this is conceptually a new fiber, schedule a Placement effect
  46591. workInProgress.effectTag |= Placement;
  46592. }
  46593. // In the initial pass we might need to construct the instance.
  46594. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46595. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46596. shouldUpdate = true;
  46597. } else if (current$$1 === null) {
  46598. // In a resume, we'll already have an instance we can reuse.
  46599. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46600. } else {
  46601. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  46602. }
  46603. return finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  46604. }
  46605. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  46606. // Refs should update even if shouldComponentUpdate returns false
  46607. markRef(current$$1, workInProgress);
  46608. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  46609. if (!shouldUpdate && !didCaptureError) {
  46610. // Context providers should defer to sCU for rendering
  46611. if (hasContext) {
  46612. invalidateContextProvider(workInProgress, Component, false);
  46613. }
  46614. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46615. }
  46616. var instance = workInProgress.stateNode;
  46617. // Rerender
  46618. ReactCurrentOwner$3.current = workInProgress;
  46619. var nextChildren = void 0;
  46620. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  46621. // If we captured an error, but getDerivedStateFrom catch is not defined,
  46622. // unmount all the children. componentDidCatch will schedule an update to
  46623. // re-render a fallback. This is temporary until we migrate everyone to
  46624. // the new API.
  46625. // TODO: Warn in a future release.
  46626. nextChildren = null;
  46627. if (enableProfilerTimer) {
  46628. stopProfilerTimerIfRunning(workInProgress);
  46629. }
  46630. } else {
  46631. {
  46632. setCurrentPhase('render');
  46633. nextChildren = instance.render();
  46634. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  46635. instance.render();
  46636. }
  46637. setCurrentPhase(null);
  46638. }
  46639. }
  46640. // React DevTools reads this flag.
  46641. workInProgress.effectTag |= PerformedWork;
  46642. if (current$$1 !== null && didCaptureError) {
  46643. // If we're recovering from an error, reconcile without reusing any of
  46644. // the existing children. Conceptually, the normal children and the children
  46645. // that are shown on error are two different sets, so we shouldn't reuse
  46646. // normal children even if their identities match.
  46647. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46648. } else {
  46649. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46650. }
  46651. // Memoize state using the values we just used to render.
  46652. // TODO: Restructure so we never read values from the instance.
  46653. workInProgress.memoizedState = instance.state;
  46654. // The context might have changed so we need to recalculate it.
  46655. if (hasContext) {
  46656. invalidateContextProvider(workInProgress, Component, true);
  46657. }
  46658. return workInProgress.child;
  46659. }
  46660. function pushHostRootContext(workInProgress) {
  46661. var root = workInProgress.stateNode;
  46662. if (root.pendingContext) {
  46663. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  46664. } else if (root.context) {
  46665. // Should always be set
  46666. pushTopLevelContextObject(workInProgress, root.context, false);
  46667. }
  46668. pushHostContainer(workInProgress, root.containerInfo);
  46669. }
  46670. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  46671. pushHostRootContext(workInProgress);
  46672. var updateQueue = workInProgress.updateQueue;
  46673. !(updateQueue !== null) ? invariant(false, 'If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  46674. var nextProps = workInProgress.pendingProps;
  46675. var prevState = workInProgress.memoizedState;
  46676. var prevChildren = prevState !== null ? prevState.element : null;
  46677. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  46678. var nextState = workInProgress.memoizedState;
  46679. // Caution: React DevTools currently depends on this property
  46680. // being called "element".
  46681. var nextChildren = nextState.element;
  46682. if (nextChildren === prevChildren) {
  46683. // If the state is the same as before, that's a bailout because we had
  46684. // no work that expires at this time.
  46685. resetHydrationState();
  46686. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  46687. }
  46688. var root = workInProgress.stateNode;
  46689. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  46690. // If we don't have any current children this might be the first pass.
  46691. // We always try to hydrate. If this isn't a hydration pass there won't
  46692. // be any children to hydrate which is effectively the same thing as
  46693. // not hydrating.
  46694. // This is a bit of a hack. We track the host root as a placement to
  46695. // know that we're currently in a mounting state. That way isMounted
  46696. // works as expected. We must reset this before committing.
  46697. // TODO: Delete this when we delete isMounted and findDOMNode.
  46698. workInProgress.effectTag |= Placement;
  46699. // Ensure that children mount into this root without tracking
  46700. // side-effects. This ensures that we don't store Placement effects on
  46701. // nodes that will be hydrated.
  46702. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  46703. } else {
  46704. // Otherwise reset hydration state in case we aborted and resumed another
  46705. // root.
  46706. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46707. resetHydrationState();
  46708. }
  46709. return workInProgress.child;
  46710. }
  46711. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  46712. pushHostContext(workInProgress);
  46713. if (current$$1 === null) {
  46714. tryToClaimNextHydratableInstance(workInProgress);
  46715. }
  46716. var type = workInProgress.type;
  46717. var nextProps = workInProgress.pendingProps;
  46718. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  46719. var nextChildren = nextProps.children;
  46720. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  46721. if (isDirectTextChild) {
  46722. // We special case a direct text child of a host node. This is a common
  46723. // case. We won't handle it as a reified child. We will instead handle
  46724. // this in the host environment that also have access to this prop. That
  46725. // avoids allocating another HostText fiber and traversing it.
  46726. nextChildren = null;
  46727. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  46728. // If we're switching from a direct text child to a normal child, or to
  46729. // empty, we need to schedule the text content to be reset.
  46730. workInProgress.effectTag |= ContentReset;
  46731. }
  46732. markRef(current$$1, workInProgress);
  46733. // Check the host config to see if the children are offscreen/hidden.
  46734. if (renderExpirationTime !== Never && workInProgress.mode & ConcurrentMode && shouldDeprioritizeSubtree(type, nextProps)) {
  46735. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  46736. workInProgress.expirationTime = Never;
  46737. return null;
  46738. }
  46739. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  46740. return workInProgress.child;
  46741. }
  46742. function updateHostText(current$$1, workInProgress) {
  46743. if (current$$1 === null) {
  46744. tryToClaimNextHydratableInstance(workInProgress);
  46745. }
  46746. // Nothing to do here. This is terminal. We'll do the completion step
  46747. // immediately after.
  46748. return null;
  46749. }
  46750. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  46751. if (_current !== null) {
  46752. // An lazy component only mounts if it suspended inside a non-
  46753. // concurrent tree, in an inconsistent state. We want to treat it like
  46754. // a new mount, even though an empty version of it already committed.
  46755. // Disconnect the alternate pointers.
  46756. _current.alternate = null;
  46757. workInProgress.alternate = null;
  46758. // Since this is conceptually a new fiber, schedule a Placement effect
  46759. workInProgress.effectTag |= Placement;
  46760. }
  46761. var props = workInProgress.pendingProps;
  46762. // We can't start a User Timing measurement with correct label yet.
  46763. // Cancel and resume right after we know the tag.
  46764. cancelWorkTimer(workInProgress);
  46765. var Component = readLazyComponentType(elementType);
  46766. // Store the unwrapped component in the type.
  46767. workInProgress.type = Component;
  46768. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  46769. startWorkTimer(workInProgress);
  46770. var resolvedProps = resolveDefaultProps(Component, props);
  46771. var child = void 0;
  46772. switch (resolvedTag) {
  46773. case FunctionComponent:
  46774. {
  46775. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46776. break;
  46777. }
  46778. case ClassComponent:
  46779. {
  46780. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46781. break;
  46782. }
  46783. case ForwardRef:
  46784. {
  46785. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  46786. break;
  46787. }
  46788. case MemoComponent:
  46789. {
  46790. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  46791. updateExpirationTime, renderExpirationTime);
  46792. break;
  46793. }
  46794. default:
  46795. {
  46796. // This message intentionally doesn't mention ForwardRef or MemoComponent
  46797. // because the fact that it's a separate type of work is an
  46798. // implementation detail.
  46799. invariant(false, 'Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.', Component);
  46800. }
  46801. }
  46802. return child;
  46803. }
  46804. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  46805. if (_current !== null) {
  46806. // An incomplete component only mounts if it suspended inside a non-
  46807. // concurrent tree, in an inconsistent state. We want to treat it like
  46808. // a new mount, even though an empty version of it already committed.
  46809. // Disconnect the alternate pointers.
  46810. _current.alternate = null;
  46811. workInProgress.alternate = null;
  46812. // Since this is conceptually a new fiber, schedule a Placement effect
  46813. workInProgress.effectTag |= Placement;
  46814. }
  46815. // Promote the fiber to a class and try rendering again.
  46816. workInProgress.tag = ClassComponent;
  46817. // The rest of this function is a fork of `updateClassComponent`
  46818. // Push context providers early to prevent context stack mismatches.
  46819. // During mounting we don't know the child context yet as the instance doesn't exist.
  46820. // We will invalidate the child context in finishClassComponent() right after rendering.
  46821. var hasContext = void 0;
  46822. if (isContextProvider(Component)) {
  46823. hasContext = true;
  46824. pushContextProvider(workInProgress);
  46825. } else {
  46826. hasContext = false;
  46827. }
  46828. prepareToReadContext(workInProgress, renderExpirationTime);
  46829. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46830. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  46831. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  46832. }
  46833. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  46834. if (_current !== null) {
  46835. // An indeterminate component only mounts if it suspended inside a non-
  46836. // concurrent tree, in an inconsistent state. We want to treat it like
  46837. // a new mount, even though an empty version of it already committed.
  46838. // Disconnect the alternate pointers.
  46839. _current.alternate = null;
  46840. workInProgress.alternate = null;
  46841. // Since this is conceptually a new fiber, schedule a Placement effect
  46842. workInProgress.effectTag |= Placement;
  46843. }
  46844. var props = workInProgress.pendingProps;
  46845. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  46846. var context = getMaskedContext(workInProgress, unmaskedContext);
  46847. prepareToReadContext(workInProgress, renderExpirationTime);
  46848. prepareToUseHooks(null, workInProgress, renderExpirationTime);
  46849. var value = void 0;
  46850. {
  46851. if (Component.prototype && typeof Component.prototype.render === 'function') {
  46852. var componentName = getComponentName(Component) || 'Unknown';
  46853. if (!didWarnAboutBadClass[componentName]) {
  46854. 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);
  46855. didWarnAboutBadClass[componentName] = true;
  46856. }
  46857. }
  46858. if (workInProgress.mode & StrictMode) {
  46859. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  46860. }
  46861. ReactCurrentOwner$3.current = workInProgress;
  46862. value = Component(props, context);
  46863. }
  46864. // React DevTools reads this flag.
  46865. workInProgress.effectTag |= PerformedWork;
  46866. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  46867. // Proceed under the assumption that this is a class instance
  46868. workInProgress.tag = ClassComponent;
  46869. // Throw out any hooks that were used.
  46870. resetHooks();
  46871. // Push context providers early to prevent context stack mismatches.
  46872. // During mounting we don't know the child context yet as the instance doesn't exist.
  46873. // We will invalidate the child context in finishClassComponent() right after rendering.
  46874. var hasContext = false;
  46875. if (isContextProvider(Component)) {
  46876. hasContext = true;
  46877. pushContextProvider(workInProgress);
  46878. } else {
  46879. hasContext = false;
  46880. }
  46881. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  46882. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  46883. if (typeof getDerivedStateFromProps === 'function') {
  46884. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  46885. }
  46886. adoptClassInstance(workInProgress, value);
  46887. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  46888. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  46889. } else {
  46890. // Proceed under the assumption that this is a function component
  46891. workInProgress.tag = FunctionComponent;
  46892. value = finishHooks(Component, props, value, context);
  46893. {
  46894. if (Component) {
  46895. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  46896. }
  46897. if (workInProgress.ref !== null) {
  46898. var info = '';
  46899. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  46900. if (ownerName) {
  46901. info += '\n\nCheck the render method of `' + ownerName + '`.';
  46902. }
  46903. var warningKey = ownerName || workInProgress._debugID || '';
  46904. var debugSource = workInProgress._debugSource;
  46905. if (debugSource) {
  46906. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  46907. }
  46908. if (!didWarnAboutFunctionRefs[warningKey]) {
  46909. didWarnAboutFunctionRefs[warningKey] = true;
  46910. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail.%s', info);
  46911. }
  46912. }
  46913. if (typeof Component.getDerivedStateFromProps === 'function') {
  46914. var _componentName = getComponentName(Component) || 'Unknown';
  46915. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName]) {
  46916. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName);
  46917. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName] = true;
  46918. }
  46919. }
  46920. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  46921. var _componentName2 = getComponentName(Component) || 'Unknown';
  46922. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName2]) {
  46923. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName2);
  46924. didWarnAboutContextTypeOnFunctionComponent[_componentName2] = true;
  46925. }
  46926. }
  46927. }
  46928. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  46929. return workInProgress.child;
  46930. }
  46931. }
  46932. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  46933. var mode = workInProgress.mode;
  46934. var nextProps = workInProgress.pendingProps;
  46935. // We should attempt to render the primary children unless this boundary
  46936. // already suspended during this render (`alreadyCaptured` is true).
  46937. var nextState = workInProgress.memoizedState;
  46938. var nextDidTimeout = void 0;
  46939. if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  46940. // This is the first attempt.
  46941. nextState = null;
  46942. nextDidTimeout = false;
  46943. } else {
  46944. // Something in this boundary's subtree already suspended. Switch to
  46945. // rendering the fallback children.
  46946. nextState = {
  46947. timedOutAt: nextState !== null ? nextState.timedOutAt : NoWork
  46948. };
  46949. nextDidTimeout = true;
  46950. workInProgress.effectTag &= ~DidCapture;
  46951. }
  46952. // This next part is a bit confusing. If the children timeout, we switch to
  46953. // showing the fallback children in place of the "primary" children.
  46954. // However, we don't want to delete the primary children because then their
  46955. // state will be lost (both the React state and the host state, e.g.
  46956. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  46957. // Both the fallback children AND the primary children are rendered at the
  46958. // same time. Once the primary children are un-suspended, we can delete
  46959. // the fallback children — don't need to preserve their state.
  46960. //
  46961. // The two sets of children are siblings in the host environment, but
  46962. // semantically, for purposes of reconciliation, they are two separate sets.
  46963. // So we store them using two fragment fibers.
  46964. //
  46965. // However, we want to avoid allocating extra fibers for every placeholder.
  46966. // They're only necessary when the children time out, because that's the
  46967. // only time when both sets are mounted.
  46968. //
  46969. // So, the extra fragment fibers are only used if the children time out.
  46970. // Otherwise, we render the primary children directly. This requires some
  46971. // custom reconciliation logic to preserve the state of the primary
  46972. // children. It's essentially a very basic form of re-parenting.
  46973. // `child` points to the child fiber. In the normal case, this is the first
  46974. // fiber of the primary children set. In the timed-out case, it's a
  46975. // a fragment fiber containing the primary children.
  46976. var child = void 0;
  46977. // `next` points to the next fiber React should render. In the normal case,
  46978. // it's the same as `child`: the first fiber of the primary children set.
  46979. // In the timed-out case, it's a fragment fiber containing the *fallback*
  46980. // children -- we skip over the primary children entirely.
  46981. var next = void 0;
  46982. if (current$$1 === null) {
  46983. // This is the initial mount. This branch is pretty simple because there's
  46984. // no previous state that needs to be preserved.
  46985. if (nextDidTimeout) {
  46986. // Mount separate fragments for primary and fallback children.
  46987. var nextFallbackChildren = nextProps.fallback;
  46988. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  46989. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  46990. // Outside of concurrent mode, we commit the effects from the
  46991. var progressedState = workInProgress.memoizedState;
  46992. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  46993. primaryChildFragment.child = progressedPrimaryChild;
  46994. }
  46995. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  46996. primaryChildFragment.sibling = fallbackChildFragment;
  46997. child = primaryChildFragment;
  46998. // Skip the primary children, and continue working on the
  46999. // fallback children.
  47000. next = fallbackChildFragment;
  47001. child.return = next.return = workInProgress;
  47002. } else {
  47003. // Mount the primary children without an intermediate fragment fiber.
  47004. var nextPrimaryChildren = nextProps.children;
  47005. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  47006. }
  47007. } else {
  47008. // This is an update. This branch is more complicated because we need to
  47009. // ensure the state of the primary children is preserved.
  47010. var prevState = current$$1.memoizedState;
  47011. var prevDidTimeout = prevState !== null;
  47012. if (prevDidTimeout) {
  47013. // The current tree already timed out. That means each child set is
  47014. var currentPrimaryChildFragment = current$$1.child;
  47015. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  47016. if (nextDidTimeout) {
  47017. // Still timed out. Reuse the current primary children by cloning
  47018. // its fragment. We're going to skip over these entirely.
  47019. var _nextFallbackChildren = nextProps.fallback;
  47020. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  47021. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  47022. // Outside of concurrent mode, we commit the effects from the
  47023. var _progressedState = workInProgress.memoizedState;
  47024. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  47025. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  47026. _primaryChildFragment.child = _progressedPrimaryChild;
  47027. }
  47028. }
  47029. // Because primaryChildFragment is a new fiber that we're inserting as the
  47030. // parent of a new tree, we need to set its treeBaseDuration.
  47031. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  47032. // treeBaseDuration is the sum of all the child tree base durations.
  47033. var treeBaseDuration = 0;
  47034. var hiddenChild = _primaryChildFragment.child;
  47035. while (hiddenChild !== null) {
  47036. treeBaseDuration += hiddenChild.treeBaseDuration;
  47037. hiddenChild = hiddenChild.sibling;
  47038. }
  47039. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  47040. }
  47041. // Clone the fallback child fragment, too. These we'll continue
  47042. // working on.
  47043. var _fallbackChildFragment = _primaryChildFragment.sibling = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  47044. child = _primaryChildFragment;
  47045. _primaryChildFragment.childExpirationTime = NoWork;
  47046. // Skip the primary children, and continue working on the
  47047. // fallback children.
  47048. next = _fallbackChildFragment;
  47049. child.return = next.return = workInProgress;
  47050. } else {
  47051. // No longer suspended. Switch back to showing the primary children,
  47052. // and remove the intermediate fragment fiber.
  47053. var _nextPrimaryChildren = nextProps.children;
  47054. var currentPrimaryChild = currentPrimaryChildFragment.child;
  47055. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  47056. // If this render doesn't suspend, we need to delete the fallback
  47057. // children. Wait until the complete phase, after we've confirmed the
  47058. // fallback is no longer needed.
  47059. // TODO: Would it be better to store the fallback fragment on
  47060. // the stateNode?
  47061. // Continue rendering the children, like we normally do.
  47062. child = next = primaryChild;
  47063. }
  47064. } else {
  47065. // The current tree has not already timed out. That means the primary
  47066. // children are not wrapped in a fragment fiber.
  47067. var _currentPrimaryChild = current$$1.child;
  47068. if (nextDidTimeout) {
  47069. // Timed out. Wrap the children in a fragment fiber to keep them
  47070. // separate from the fallback children.
  47071. var _nextFallbackChildren2 = nextProps.fallback;
  47072. var _primaryChildFragment2 = createFiberFromFragment(
  47073. // It shouldn't matter what the pending props are because we aren't
  47074. // going to render this fragment.
  47075. null, mode, NoWork, null);
  47076. _primaryChildFragment2.child = _currentPrimaryChild;
  47077. // Even though we're creating a new fiber, there are no new children,
  47078. // because we're reusing an already mounted tree. So we don't need to
  47079. // schedule a placement.
  47080. // primaryChildFragment.effectTag |= Placement;
  47081. if ((workInProgress.mode & ConcurrentMode) === NoContext) {
  47082. // Outside of concurrent mode, we commit the effects from the
  47083. var _progressedState2 = workInProgress.memoizedState;
  47084. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  47085. _primaryChildFragment2.child = _progressedPrimaryChild2;
  47086. }
  47087. // Because primaryChildFragment is a new fiber that we're inserting as the
  47088. // parent of a new tree, we need to set its treeBaseDuration.
  47089. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  47090. // treeBaseDuration is the sum of all the child tree base durations.
  47091. var _treeBaseDuration = 0;
  47092. var _hiddenChild = _primaryChildFragment2.child;
  47093. while (_hiddenChild !== null) {
  47094. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  47095. _hiddenChild = _hiddenChild.sibling;
  47096. }
  47097. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  47098. }
  47099. // Create a fragment from the fallback children, too.
  47100. var _fallbackChildFragment2 = _primaryChildFragment2.sibling = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  47101. _fallbackChildFragment2.effectTag |= Placement;
  47102. child = _primaryChildFragment2;
  47103. _primaryChildFragment2.childExpirationTime = NoWork;
  47104. // Skip the primary children, and continue working on the
  47105. // fallback children.
  47106. next = _fallbackChildFragment2;
  47107. child.return = next.return = workInProgress;
  47108. } else {
  47109. // Still haven't timed out. Continue rendering the children, like we
  47110. // normally do.
  47111. var _nextPrimaryChildren2 = nextProps.children;
  47112. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  47113. }
  47114. }
  47115. }
  47116. workInProgress.memoizedState = nextState;
  47117. workInProgress.child = child;
  47118. return next;
  47119. }
  47120. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  47121. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  47122. var nextChildren = workInProgress.pendingProps;
  47123. if (current$$1 === null) {
  47124. // Portals are special because we don't append the children during mount
  47125. // but at commit. Therefore we need to track insertions which the normal
  47126. // flow doesn't do during mount. This doesn't happen at the root because
  47127. // the root always starts with a "current" with a null child.
  47128. // TODO: Consider unifying this with how the root works.
  47129. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  47130. } else {
  47131. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  47132. }
  47133. return workInProgress.child;
  47134. }
  47135. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  47136. var providerType = workInProgress.type;
  47137. var context = providerType._context;
  47138. var newProps = workInProgress.pendingProps;
  47139. var oldProps = workInProgress.memoizedProps;
  47140. var newValue = newProps.value;
  47141. {
  47142. var providerPropTypes = workInProgress.type.propTypes;
  47143. if (providerPropTypes) {
  47144. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  47145. }
  47146. }
  47147. pushProvider(workInProgress, newValue);
  47148. if (oldProps !== null) {
  47149. var oldValue = oldProps.value;
  47150. var changedBits = calculateChangedBits(context, newValue, oldValue);
  47151. if (changedBits === 0) {
  47152. // No change. Bailout early if children are the same.
  47153. if (oldProps.children === newProps.children && !hasContextChanged()) {
  47154. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47155. }
  47156. } else {
  47157. // The context value changed. Search for matching consumers and schedule
  47158. // them to update.
  47159. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  47160. }
  47161. }
  47162. var newChildren = newProps.children;
  47163. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  47164. return workInProgress.child;
  47165. }
  47166. var hasWarnedAboutUsingContextAsConsumer = false;
  47167. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  47168. var context = workInProgress.type;
  47169. // The logic below for Context differs depending on PROD or DEV mode. In
  47170. // DEV mode, we create a separate object for Context.Consumer that acts
  47171. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  47172. // so we use the old behaviour (Context.Consumer references Context) to
  47173. // reduce size and overhead. The separate object references context via
  47174. // a property called "_context", which also gives us the ability to check
  47175. // in DEV mode if this property exists or not and warn if it does not.
  47176. {
  47177. if (context._context === undefined) {
  47178. // This may be because it's a Context (rather than a Consumer).
  47179. // Or it may be because it's older React where they're the same thing.
  47180. // We only want to warn if we're sure it's a new React.
  47181. if (context !== context.Consumer) {
  47182. if (!hasWarnedAboutUsingContextAsConsumer) {
  47183. hasWarnedAboutUsingContextAsConsumer = true;
  47184. 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?');
  47185. }
  47186. }
  47187. } else {
  47188. context = context._context;
  47189. }
  47190. }
  47191. var newProps = workInProgress.pendingProps;
  47192. var render = newProps.children;
  47193. {
  47194. !(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;
  47195. }
  47196. prepareToReadContext(workInProgress, renderExpirationTime);
  47197. var newValue = readContext(context, newProps.unstable_observedBits);
  47198. var newChildren = void 0;
  47199. {
  47200. ReactCurrentOwner$3.current = workInProgress;
  47201. setCurrentPhase('render');
  47202. newChildren = render(newValue);
  47203. setCurrentPhase(null);
  47204. }
  47205. // React DevTools reads this flag.
  47206. workInProgress.effectTag |= PerformedWork;
  47207. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  47208. return workInProgress.child;
  47209. }
  47210. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  47211. cancelWorkTimer(workInProgress);
  47212. if (current$$1 !== null) {
  47213. // Reuse previous context list
  47214. workInProgress.firstContextDependency = current$$1.firstContextDependency;
  47215. }
  47216. if (enableProfilerTimer) {
  47217. // Don't update "base" render times for bailouts.
  47218. stopProfilerTimerIfRunning(workInProgress);
  47219. }
  47220. // Check if the children have any pending work.
  47221. var childExpirationTime = workInProgress.childExpirationTime;
  47222. if (childExpirationTime < renderExpirationTime) {
  47223. // The children don't have any work either. We can skip them.
  47224. // TODO: Once we add back resuming, we should check if the children are
  47225. // a work-in-progress set. If so, we need to transfer their effects.
  47226. return null;
  47227. } else {
  47228. // This fiber doesn't have work, but its subtree does. Clone the child
  47229. // fibers and continue.
  47230. cloneChildFibers(current$$1, workInProgress);
  47231. return workInProgress.child;
  47232. }
  47233. }
  47234. function beginWork(current$$1, workInProgress, renderExpirationTime) {
  47235. var updateExpirationTime = workInProgress.expirationTime;
  47236. if (current$$1 !== null) {
  47237. var oldProps = current$$1.memoizedProps;
  47238. var newProps = workInProgress.pendingProps;
  47239. if (oldProps === newProps && !hasContextChanged() && updateExpirationTime < renderExpirationTime) {
  47240. // This fiber does not have any pending work. Bailout without entering
  47241. // the begin phase. There's still some bookkeeping we that needs to be done
  47242. // in this optimized path, mostly pushing stuff onto the stack.
  47243. switch (workInProgress.tag) {
  47244. case HostRoot:
  47245. pushHostRootContext(workInProgress);
  47246. resetHydrationState();
  47247. break;
  47248. case HostComponent:
  47249. pushHostContext(workInProgress);
  47250. break;
  47251. case ClassComponent:
  47252. {
  47253. var Component = workInProgress.type;
  47254. if (isContextProvider(Component)) {
  47255. pushContextProvider(workInProgress);
  47256. }
  47257. break;
  47258. }
  47259. case HostPortal:
  47260. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  47261. break;
  47262. case ContextProvider:
  47263. {
  47264. var newValue = workInProgress.memoizedProps.value;
  47265. pushProvider(workInProgress, newValue);
  47266. break;
  47267. }
  47268. case Profiler:
  47269. if (enableProfilerTimer) {
  47270. workInProgress.effectTag |= Update;
  47271. }
  47272. break;
  47273. case SuspenseComponent:
  47274. {
  47275. var state = workInProgress.memoizedState;
  47276. var didTimeout = state !== null;
  47277. if (didTimeout) {
  47278. // If this boundary is currently timed out, we need to decide
  47279. // whether to retry the primary children, or to skip over it and
  47280. // go straight to the fallback. Check the priority of the primary
  47281. var primaryChildFragment = workInProgress.child;
  47282. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  47283. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  47284. // The primary children have pending work. Use the normal path
  47285. // to attempt to render the primary children again.
  47286. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  47287. } else {
  47288. // The primary children do not have pending work with sufficient
  47289. // priority. Bailout.
  47290. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47291. if (child !== null) {
  47292. // The fallback children have pending work. Skip over the
  47293. // primary children and work on the fallback.
  47294. return child.sibling;
  47295. } else {
  47296. return null;
  47297. }
  47298. }
  47299. }
  47300. break;
  47301. }
  47302. }
  47303. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  47304. }
  47305. }
  47306. // Before entering the begin phase, clear the expiration time.
  47307. workInProgress.expirationTime = NoWork;
  47308. switch (workInProgress.tag) {
  47309. case IndeterminateComponent:
  47310. {
  47311. var elementType = workInProgress.elementType;
  47312. return mountIndeterminateComponent(current$$1, workInProgress, elementType, renderExpirationTime);
  47313. }
  47314. case LazyComponent:
  47315. {
  47316. var _elementType = workInProgress.elementType;
  47317. return mountLazyComponent(current$$1, workInProgress, _elementType, updateExpirationTime, renderExpirationTime);
  47318. }
  47319. case FunctionComponent:
  47320. {
  47321. var _Component = workInProgress.type;
  47322. var unresolvedProps = workInProgress.pendingProps;
  47323. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  47324. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  47325. }
  47326. case ClassComponent:
  47327. {
  47328. var _Component2 = workInProgress.type;
  47329. var _unresolvedProps = workInProgress.pendingProps;
  47330. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  47331. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  47332. }
  47333. case HostRoot:
  47334. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  47335. case HostComponent:
  47336. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  47337. case HostText:
  47338. return updateHostText(current$$1, workInProgress);
  47339. case SuspenseComponent:
  47340. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  47341. case HostPortal:
  47342. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  47343. case ForwardRef:
  47344. {
  47345. var type = workInProgress.type;
  47346. var _unresolvedProps2 = workInProgress.pendingProps;
  47347. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  47348. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  47349. }
  47350. case Fragment:
  47351. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  47352. case Mode:
  47353. return updateMode(current$$1, workInProgress, renderExpirationTime);
  47354. case Profiler:
  47355. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  47356. case ContextProvider:
  47357. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  47358. case ContextConsumer:
  47359. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  47360. case MemoComponent:
  47361. {
  47362. var _type = workInProgress.type;
  47363. var _unresolvedProps3 = workInProgress.pendingProps;
  47364. var _resolvedProps3 = resolveDefaultProps(_type.type, _unresolvedProps3);
  47365. return updateMemoComponent(current$$1, workInProgress, _type, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  47366. }
  47367. case SimpleMemoComponent:
  47368. {
  47369. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  47370. }
  47371. case IncompleteClassComponent:
  47372. {
  47373. var _Component3 = workInProgress.type;
  47374. var _unresolvedProps4 = workInProgress.pendingProps;
  47375. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  47376. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  47377. }
  47378. default:
  47379. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  47380. }
  47381. }
  47382. function markUpdate(workInProgress) {
  47383. // Tag the fiber with an update effect. This turns a Placement into
  47384. // a PlacementAndUpdate.
  47385. workInProgress.effectTag |= Update;
  47386. }
  47387. function markRef$1(workInProgress) {
  47388. workInProgress.effectTag |= Ref;
  47389. }
  47390. var appendAllChildren = void 0;
  47391. var updateHostContainer = void 0;
  47392. var updateHostComponent$1 = void 0;
  47393. var updateHostText$1 = void 0;
  47394. if (supportsMutation) {
  47395. // Mutation mode
  47396. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  47397. // We only have the top Fiber that was created but we need recurse down its
  47398. // children to find all the terminal nodes.
  47399. var node = workInProgress.child;
  47400. while (node !== null) {
  47401. if (node.tag === HostComponent || node.tag === HostText) {
  47402. appendInitialChild(parent, node.stateNode);
  47403. } else if (node.tag === HostPortal) {
  47404. // If we have a portal child, then we don't want to traverse
  47405. // down its children. Instead, we'll get insertions from each child in
  47406. // the portal directly.
  47407. } else if (node.child !== null) {
  47408. node.child.return = node;
  47409. node = node.child;
  47410. continue;
  47411. }
  47412. if (node === workInProgress) {
  47413. return;
  47414. }
  47415. while (node.sibling === null) {
  47416. if (node.return === null || node.return === workInProgress) {
  47417. return;
  47418. }
  47419. node = node.return;
  47420. }
  47421. node.sibling.return = node.return;
  47422. node = node.sibling;
  47423. }
  47424. };
  47425. updateHostContainer = function (workInProgress) {
  47426. // Noop
  47427. };
  47428. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47429. // If we have an alternate, that means this is an update and we need to
  47430. // schedule a side-effect to do the updates.
  47431. var oldProps = current.memoizedProps;
  47432. if (oldProps === newProps) {
  47433. // In mutation mode, this is sufficient for a bailout because
  47434. // we won't touch this node even if children changed.
  47435. return;
  47436. }
  47437. // If we get updated because one of our children updated, we don't
  47438. // have newProps so we'll have to reuse them.
  47439. // TODO: Split the update API as separate for the props vs. children.
  47440. // Even better would be if children weren't special cased at all tho.
  47441. var instance = workInProgress.stateNode;
  47442. var currentHostContext = getHostContext();
  47443. // TODO: Experiencing an error where oldProps is null. Suggests a host
  47444. // component is hitting the resume path. Figure out why. Possibly
  47445. // related to `hidden`.
  47446. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  47447. // TODO: Type this specific to this type of component.
  47448. workInProgress.updateQueue = updatePayload;
  47449. // If the update payload indicates that there is a change or if there
  47450. // is a new ref we mark this as an update. All the work is done in commitWork.
  47451. if (updatePayload) {
  47452. markUpdate(workInProgress);
  47453. }
  47454. };
  47455. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47456. // If the text differs, mark it as an update. All the work in done in commitWork.
  47457. if (oldText !== newText) {
  47458. markUpdate(workInProgress);
  47459. }
  47460. };
  47461. } else if (supportsPersistence) {
  47462. // Persistent host tree mode
  47463. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  47464. // We only have the top Fiber that was created but we need recurse down its
  47465. // children to find all the terminal nodes.
  47466. var node = workInProgress.child;
  47467. while (node !== null) {
  47468. // eslint-disable-next-line no-labels
  47469. branches: if (node.tag === HostComponent) {
  47470. var instance = node.stateNode;
  47471. if (needsVisibilityToggle) {
  47472. var props = node.memoizedProps;
  47473. var type = node.type;
  47474. if (isHidden) {
  47475. // This child is inside a timed out tree. Hide it.
  47476. instance = cloneHiddenInstance(instance, type, props, node);
  47477. } else {
  47478. // This child was previously inside a timed out tree. If it was not
  47479. // updated during this render, it may need to be unhidden. Clone
  47480. // again to be sure.
  47481. instance = cloneUnhiddenInstance(instance, type, props, node);
  47482. }
  47483. node.stateNode = instance;
  47484. }
  47485. appendInitialChild(parent, instance);
  47486. } else if (node.tag === HostText) {
  47487. var _instance = node.stateNode;
  47488. if (needsVisibilityToggle) {
  47489. var text = node.memoizedProps;
  47490. var rootContainerInstance = getRootHostContainer();
  47491. var currentHostContext = getHostContext();
  47492. if (isHidden) {
  47493. _instance = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47494. } else {
  47495. _instance = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47496. }
  47497. node.stateNode = _instance;
  47498. }
  47499. appendInitialChild(parent, _instance);
  47500. } else if (node.tag === HostPortal) {
  47501. // If we have a portal child, then we don't want to traverse
  47502. // down its children. Instead, we'll get insertions from each child in
  47503. // the portal directly.
  47504. } else if (node.tag === SuspenseComponent) {
  47505. var current = node.alternate;
  47506. if (current !== null) {
  47507. var oldState = current.memoizedState;
  47508. var newState = node.memoizedState;
  47509. var oldIsHidden = oldState !== null;
  47510. var newIsHidden = newState !== null;
  47511. if (oldIsHidden !== newIsHidden) {
  47512. // The placeholder either just timed out or switched back to the normal
  47513. // children after having previously timed out. Toggle the visibility of
  47514. // the direct host children.
  47515. var primaryChildParent = newIsHidden ? node.child : node;
  47516. if (primaryChildParent !== null) {
  47517. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  47518. }
  47519. // eslint-disable-next-line no-labels
  47520. break branches;
  47521. }
  47522. }
  47523. if (node.child !== null) {
  47524. // Continue traversing like normal
  47525. node.child.return = node;
  47526. node = node.child;
  47527. continue;
  47528. }
  47529. } else if (node.child !== null) {
  47530. node.child.return = node;
  47531. node = node.child;
  47532. continue;
  47533. }
  47534. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  47535. node = node;
  47536. if (node === workInProgress) {
  47537. return;
  47538. }
  47539. while (node.sibling === null) {
  47540. if (node.return === null || node.return === workInProgress) {
  47541. return;
  47542. }
  47543. node = node.return;
  47544. }
  47545. node.sibling.return = node.return;
  47546. node = node.sibling;
  47547. }
  47548. };
  47549. // An unfortunate fork of appendAllChildren because we have two different parent types.
  47550. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  47551. // We only have the top Fiber that was created but we need recurse down its
  47552. // children to find all the terminal nodes.
  47553. var node = workInProgress.child;
  47554. while (node !== null) {
  47555. // eslint-disable-next-line no-labels
  47556. branches: if (node.tag === HostComponent) {
  47557. var instance = node.stateNode;
  47558. if (needsVisibilityToggle) {
  47559. var props = node.memoizedProps;
  47560. var type = node.type;
  47561. if (isHidden) {
  47562. // This child is inside a timed out tree. Hide it.
  47563. instance = cloneHiddenInstance(instance, type, props, node);
  47564. } else {
  47565. // This child was previously inside a timed out tree. If it was not
  47566. // updated during this render, it may need to be unhidden. Clone
  47567. // again to be sure.
  47568. instance = cloneUnhiddenInstance(instance, type, props, node);
  47569. }
  47570. node.stateNode = instance;
  47571. }
  47572. appendChildToContainerChildSet(containerChildSet, instance);
  47573. } else if (node.tag === HostText) {
  47574. var _instance2 = node.stateNode;
  47575. if (needsVisibilityToggle) {
  47576. var text = node.memoizedProps;
  47577. var rootContainerInstance = getRootHostContainer();
  47578. var currentHostContext = getHostContext();
  47579. if (isHidden) {
  47580. _instance2 = createHiddenTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47581. } else {
  47582. _instance2 = createTextInstance(text, rootContainerInstance, currentHostContext, workInProgress);
  47583. }
  47584. node.stateNode = _instance2;
  47585. }
  47586. appendChildToContainerChildSet(containerChildSet, _instance2);
  47587. } else if (node.tag === HostPortal) {
  47588. // If we have a portal child, then we don't want to traverse
  47589. // down its children. Instead, we'll get insertions from each child in
  47590. // the portal directly.
  47591. } else if (node.tag === SuspenseComponent) {
  47592. var current = node.alternate;
  47593. if (current !== null) {
  47594. var oldState = current.memoizedState;
  47595. var newState = node.memoizedState;
  47596. var oldIsHidden = oldState !== null;
  47597. var newIsHidden = newState !== null;
  47598. if (oldIsHidden !== newIsHidden) {
  47599. // The placeholder either just timed out or switched back to the normal
  47600. // children after having previously timed out. Toggle the visibility of
  47601. // the direct host children.
  47602. var primaryChildParent = newIsHidden ? node.child : node;
  47603. if (primaryChildParent !== null) {
  47604. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  47605. }
  47606. // eslint-disable-next-line no-labels
  47607. break branches;
  47608. }
  47609. }
  47610. if (node.child !== null) {
  47611. // Continue traversing like normal
  47612. node.child.return = node;
  47613. node = node.child;
  47614. continue;
  47615. }
  47616. } else if (node.child !== null) {
  47617. node.child.return = node;
  47618. node = node.child;
  47619. continue;
  47620. }
  47621. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  47622. node = node;
  47623. if (node === workInProgress) {
  47624. return;
  47625. }
  47626. while (node.sibling === null) {
  47627. if (node.return === null || node.return === workInProgress) {
  47628. return;
  47629. }
  47630. node = node.return;
  47631. }
  47632. node.sibling.return = node.return;
  47633. node = node.sibling;
  47634. }
  47635. };
  47636. updateHostContainer = function (workInProgress) {
  47637. var portalOrRoot = workInProgress.stateNode;
  47638. var childrenUnchanged = workInProgress.firstEffect === null;
  47639. if (childrenUnchanged) {
  47640. // No changes, just reuse the existing instance.
  47641. } else {
  47642. var container = portalOrRoot.containerInfo;
  47643. var newChildSet = createContainerChildSet(container);
  47644. // If children might have changed, we have to add them all to the set.
  47645. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  47646. portalOrRoot.pendingChildren = newChildSet;
  47647. // Schedule an update on the container to swap out the container.
  47648. markUpdate(workInProgress);
  47649. finalizeContainerChildren(container, newChildSet);
  47650. }
  47651. };
  47652. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47653. var currentInstance = current.stateNode;
  47654. var oldProps = current.memoizedProps;
  47655. // If there are no effects associated with this node, then none of our children had any updates.
  47656. // This guarantees that we can reuse all of them.
  47657. var childrenUnchanged = workInProgress.firstEffect === null;
  47658. if (childrenUnchanged && oldProps === newProps) {
  47659. // No changes, just reuse the existing instance.
  47660. // Note that this might release a previous clone.
  47661. workInProgress.stateNode = currentInstance;
  47662. return;
  47663. }
  47664. var recyclableInstance = workInProgress.stateNode;
  47665. var currentHostContext = getHostContext();
  47666. var updatePayload = null;
  47667. if (oldProps !== newProps) {
  47668. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  47669. }
  47670. if (childrenUnchanged && updatePayload === null) {
  47671. // No changes, just reuse the existing instance.
  47672. // Note that this might release a previous clone.
  47673. workInProgress.stateNode = currentInstance;
  47674. return;
  47675. }
  47676. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  47677. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  47678. markUpdate(workInProgress);
  47679. }
  47680. workInProgress.stateNode = newInstance;
  47681. if (childrenUnchanged) {
  47682. // If there are no other effects in this tree, we need to flag this node as having one.
  47683. // Even though we're not going to use it for anything.
  47684. // Otherwise parents won't know that there are new children to propagate upwards.
  47685. markUpdate(workInProgress);
  47686. } else {
  47687. // If children might have changed, we have to add them all to the set.
  47688. appendAllChildren(newInstance, workInProgress, false, false);
  47689. }
  47690. };
  47691. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47692. if (oldText !== newText) {
  47693. // If the text content differs, we'll create a new text instance for it.
  47694. var rootContainerInstance = getRootHostContainer();
  47695. var currentHostContext = getHostContext();
  47696. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  47697. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  47698. // This lets the parents know that at least one of their children has changed.
  47699. markUpdate(workInProgress);
  47700. }
  47701. };
  47702. } else {
  47703. // No host operations
  47704. updateHostContainer = function (workInProgress) {
  47705. // Noop
  47706. };
  47707. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  47708. // Noop
  47709. };
  47710. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  47711. // Noop
  47712. };
  47713. }
  47714. function completeWork(current, workInProgress, renderExpirationTime) {
  47715. var newProps = workInProgress.pendingProps;
  47716. switch (workInProgress.tag) {
  47717. case IndeterminateComponent:
  47718. break;
  47719. case LazyComponent:
  47720. break;
  47721. case SimpleMemoComponent:
  47722. case FunctionComponent:
  47723. break;
  47724. case ClassComponent:
  47725. {
  47726. var Component = workInProgress.type;
  47727. if (isContextProvider(Component)) {
  47728. popContext(workInProgress);
  47729. }
  47730. break;
  47731. }
  47732. case HostRoot:
  47733. {
  47734. popHostContainer(workInProgress);
  47735. popTopLevelContextObject(workInProgress);
  47736. var fiberRoot = workInProgress.stateNode;
  47737. if (fiberRoot.pendingContext) {
  47738. fiberRoot.context = fiberRoot.pendingContext;
  47739. fiberRoot.pendingContext = null;
  47740. }
  47741. if (current === null || current.child === null) {
  47742. // If we hydrated, pop so that we can delete any remaining children
  47743. // that weren't hydrated.
  47744. popHydrationState(workInProgress);
  47745. // This resets the hacky state to fix isMounted before committing.
  47746. // TODO: Delete this when we delete isMounted and findDOMNode.
  47747. workInProgress.effectTag &= ~Placement;
  47748. }
  47749. updateHostContainer(workInProgress);
  47750. break;
  47751. }
  47752. case HostComponent:
  47753. {
  47754. popHostContext(workInProgress);
  47755. var rootContainerInstance = getRootHostContainer();
  47756. var type = workInProgress.type;
  47757. if (current !== null && workInProgress.stateNode != null) {
  47758. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  47759. if (current.ref !== workInProgress.ref) {
  47760. markRef$1(workInProgress);
  47761. }
  47762. } else {
  47763. if (!newProps) {
  47764. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  47765. // This can happen when we abort work.
  47766. break;
  47767. }
  47768. var currentHostContext = getHostContext();
  47769. // TODO: Move createInstance to beginWork and keep it on a context
  47770. // "stack" as the parent. Then append children as we go in beginWork
  47771. // or completeWork depending on we want to add then top->down or
  47772. // bottom->up. Top->down is faster in IE11.
  47773. var wasHydrated = popHydrationState(workInProgress);
  47774. if (wasHydrated) {
  47775. // TODO: Move this and createInstance step into the beginPhase
  47776. // to consolidate.
  47777. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  47778. // If changes to the hydrated node needs to be applied at the
  47779. // commit-phase we mark this as such.
  47780. markUpdate(workInProgress);
  47781. }
  47782. } else {
  47783. var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  47784. appendAllChildren(instance, workInProgress, false, false);
  47785. // Certain renderers require commit-time effects for initial mount.
  47786. // (eg DOM renderer supports auto-focus for certain elements).
  47787. // Make sure such renderers get scheduled for later work.
  47788. if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance, currentHostContext)) {
  47789. markUpdate(workInProgress);
  47790. }
  47791. workInProgress.stateNode = instance;
  47792. }
  47793. if (workInProgress.ref !== null) {
  47794. // If there is a ref on a host node we need to schedule a callback
  47795. markRef$1(workInProgress);
  47796. }
  47797. }
  47798. break;
  47799. }
  47800. case HostText:
  47801. {
  47802. var newText = newProps;
  47803. if (current && workInProgress.stateNode != null) {
  47804. var oldText = current.memoizedProps;
  47805. // If we have an alternate, that means this is an update and we need
  47806. // to schedule a side-effect to do the updates.
  47807. updateHostText$1(current, workInProgress, oldText, newText);
  47808. } else {
  47809. if (typeof newText !== 'string') {
  47810. !(workInProgress.stateNode !== null) ? invariant(false, 'We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  47811. // This can happen when we abort work.
  47812. }
  47813. var _rootContainerInstance = getRootHostContainer();
  47814. var _currentHostContext = getHostContext();
  47815. var _wasHydrated = popHydrationState(workInProgress);
  47816. if (_wasHydrated) {
  47817. if (prepareToHydrateHostTextInstance(workInProgress)) {
  47818. markUpdate(workInProgress);
  47819. }
  47820. } else {
  47821. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  47822. }
  47823. }
  47824. break;
  47825. }
  47826. case ForwardRef:
  47827. break;
  47828. case SuspenseComponent:
  47829. {
  47830. var nextState = workInProgress.memoizedState;
  47831. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  47832. // Something suspended. Re-render with the fallback children.
  47833. workInProgress.expirationTime = renderExpirationTime;
  47834. // Do not reset the effect list.
  47835. return workInProgress;
  47836. }
  47837. var nextDidTimeout = nextState !== null;
  47838. var prevDidTimeout = current !== null && current.memoizedState !== null;
  47839. if (current !== null && !nextDidTimeout && prevDidTimeout) {
  47840. // We just switched from the fallback to the normal children. Delete
  47841. // the fallback.
  47842. // TODO: Would it be better to store the fallback fragment on
  47843. var currentFallbackChild = current.child.sibling;
  47844. if (currentFallbackChild !== null) {
  47845. // Deletions go at the beginning of the return fiber's effect list
  47846. var first = workInProgress.firstEffect;
  47847. if (first !== null) {
  47848. workInProgress.firstEffect = currentFallbackChild;
  47849. currentFallbackChild.nextEffect = first;
  47850. } else {
  47851. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  47852. currentFallbackChild.nextEffect = null;
  47853. }
  47854. currentFallbackChild.effectTag = Deletion;
  47855. }
  47856. }
  47857. // The children either timed out after previously being visible, or
  47858. // were restored after previously being hidden. Schedule an effect
  47859. // to update their visiblity.
  47860. if (
  47861. //
  47862. nextDidTimeout !== prevDidTimeout ||
  47863. // Outside concurrent mode, the primary children commit in an
  47864. // inconsistent state, even if they are hidden. So if they are hidden,
  47865. // we need to schedule an effect to re-hide them, just in case.
  47866. (workInProgress.effectTag & ConcurrentMode) === NoContext && nextDidTimeout) {
  47867. workInProgress.effectTag |= Update;
  47868. }
  47869. break;
  47870. }
  47871. case Fragment:
  47872. break;
  47873. case Mode:
  47874. break;
  47875. case Profiler:
  47876. break;
  47877. case HostPortal:
  47878. popHostContainer(workInProgress);
  47879. updateHostContainer(workInProgress);
  47880. break;
  47881. case ContextProvider:
  47882. // Pop provider fiber
  47883. popProvider(workInProgress);
  47884. break;
  47885. case ContextConsumer:
  47886. break;
  47887. case MemoComponent:
  47888. break;
  47889. case IncompleteClassComponent:
  47890. {
  47891. // Same as class component case. I put it down here so that the tags are
  47892. // sequential to ensure this switch is compiled to a jump table.
  47893. var _Component = workInProgress.type;
  47894. if (isContextProvider(_Component)) {
  47895. popContext(workInProgress);
  47896. }
  47897. break;
  47898. }
  47899. default:
  47900. invariant(false, 'Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.');
  47901. }
  47902. return null;
  47903. }
  47904. function shouldCaptureSuspense(current, workInProgress) {
  47905. // In order to capture, the Suspense component must have a fallback prop.
  47906. if (workInProgress.memoizedProps.fallback === undefined) {
  47907. return false;
  47908. }
  47909. // If it was the primary children that just suspended, capture and render the
  47910. // fallback. Otherwise, don't capture and bubble to the next boundary.
  47911. var nextState = workInProgress.memoizedState;
  47912. return nextState === null;
  47913. }
  47914. // This module is forked in different environments.
  47915. // By default, return `true` to log errors to the console.
  47916. // Forks can return `false` if this isn't desirable.
  47917. function showErrorDialog(capturedError) {
  47918. return true;
  47919. }
  47920. function logCapturedError(capturedError) {
  47921. var logError = showErrorDialog(capturedError);
  47922. // Allow injected showErrorDialog() to prevent default console.error logging.
  47923. // This enables renderers like ReactNative to better manage redbox behavior.
  47924. if (logError === false) {
  47925. return;
  47926. }
  47927. var error = capturedError.error;
  47928. {
  47929. var componentName = capturedError.componentName,
  47930. componentStack = capturedError.componentStack,
  47931. errorBoundaryName = capturedError.errorBoundaryName,
  47932. errorBoundaryFound = capturedError.errorBoundaryFound,
  47933. willRetry = capturedError.willRetry;
  47934. // Browsers support silencing uncaught errors by calling
  47935. // `preventDefault()` in window `error` handler.
  47936. // We record this information as an expando on the error.
  47937. if (error != null && error._suppressLogging) {
  47938. if (errorBoundaryFound && willRetry) {
  47939. // The error is recoverable and was silenced.
  47940. // Ignore it and don't print the stack addendum.
  47941. // This is handy for testing error boundaries without noise.
  47942. return;
  47943. }
  47944. // The error is fatal. Since the silencing might have
  47945. // been accidental, we'll surface it anyway.
  47946. // However, the browser would have silenced the original error
  47947. // so we'll print it first, and then print the stack addendum.
  47948. console.error(error);
  47949. // For a more detailed description of this block, see:
  47950. // https://github.com/facebook/react/pull/13384
  47951. }
  47952. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  47953. var errorBoundaryMessage = void 0;
  47954. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  47955. if (errorBoundaryFound && errorBoundaryName) {
  47956. if (willRetry) {
  47957. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  47958. } else {
  47959. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  47960. }
  47961. } else {
  47962. 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.';
  47963. }
  47964. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  47965. // In development, we provide our own message with just the component stack.
  47966. // We don't include the original error message and JS stack because the browser
  47967. // has already printed it. Even if the application swallows the error, it is still
  47968. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  47969. console.error(combinedMessage);
  47970. }
  47971. }
  47972. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  47973. {
  47974. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  47975. }
  47976. function logError(boundary, errorInfo) {
  47977. var source = errorInfo.source;
  47978. var stack = errorInfo.stack;
  47979. if (stack === null && source !== null) {
  47980. stack = getStackByFiberInDevAndProd(source);
  47981. }
  47982. var capturedError = {
  47983. componentName: source !== null ? getComponentName(source.type) : null,
  47984. componentStack: stack !== null ? stack : '',
  47985. error: errorInfo.value,
  47986. errorBoundary: null,
  47987. errorBoundaryName: null,
  47988. errorBoundaryFound: false,
  47989. willRetry: false
  47990. };
  47991. if (boundary !== null && boundary.tag === ClassComponent) {
  47992. capturedError.errorBoundary = boundary.stateNode;
  47993. capturedError.errorBoundaryName = getComponentName(boundary.type);
  47994. capturedError.errorBoundaryFound = true;
  47995. capturedError.willRetry = true;
  47996. }
  47997. try {
  47998. logCapturedError(capturedError);
  47999. } catch (e) {
  48000. // This method must not throw, or React internal state will get messed up.
  48001. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  48002. // we want to report this error outside of the normal stack as a last resort.
  48003. // https://github.com/facebook/react/issues/13188
  48004. setTimeout(function () {
  48005. throw e;
  48006. });
  48007. }
  48008. }
  48009. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  48010. startPhaseTimer(current$$1, 'componentWillUnmount');
  48011. instance.props = current$$1.memoizedProps;
  48012. instance.state = current$$1.memoizedState;
  48013. instance.componentWillUnmount();
  48014. stopPhaseTimer();
  48015. };
  48016. // Capture errors so they don't interrupt unmounting.
  48017. function safelyCallComponentWillUnmount(current$$1, instance) {
  48018. {
  48019. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  48020. if (hasCaughtError()) {
  48021. var unmountError = clearCaughtError();
  48022. captureCommitPhaseError(current$$1, unmountError);
  48023. }
  48024. }
  48025. }
  48026. function safelyDetachRef(current$$1) {
  48027. var ref = current$$1.ref;
  48028. if (ref !== null) {
  48029. if (typeof ref === 'function') {
  48030. {
  48031. invokeGuardedCallback(null, ref, null, null);
  48032. if (hasCaughtError()) {
  48033. var refError = clearCaughtError();
  48034. captureCommitPhaseError(current$$1, refError);
  48035. }
  48036. }
  48037. } else {
  48038. ref.current = null;
  48039. }
  48040. }
  48041. }
  48042. function safelyCallDestroy(current$$1, destroy) {
  48043. {
  48044. invokeGuardedCallback(null, destroy, null);
  48045. if (hasCaughtError()) {
  48046. var error = clearCaughtError();
  48047. captureCommitPhaseError(current$$1, error);
  48048. }
  48049. }
  48050. }
  48051. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  48052. switch (finishedWork.tag) {
  48053. case FunctionComponent:
  48054. case ForwardRef:
  48055. case SimpleMemoComponent:
  48056. {
  48057. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  48058. return;
  48059. }
  48060. case ClassComponent:
  48061. {
  48062. if (finishedWork.effectTag & Snapshot) {
  48063. if (current$$1 !== null) {
  48064. var prevProps = current$$1.memoizedProps;
  48065. var prevState = current$$1.memoizedState;
  48066. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  48067. var instance = finishedWork.stateNode;
  48068. // We could update instance props and state here,
  48069. // but instead we rely on them being set during last render.
  48070. // TODO: revisit this when we implement resuming.
  48071. {
  48072. if (finishedWork.type === finishedWork.elementType) {
  48073. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48074. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'getSnapshotBeforeUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48075. }
  48076. }
  48077. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  48078. {
  48079. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  48080. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  48081. didWarnSet.add(finishedWork.type);
  48082. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  48083. }
  48084. }
  48085. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  48086. stopPhaseTimer();
  48087. }
  48088. }
  48089. return;
  48090. }
  48091. case HostRoot:
  48092. case HostComponent:
  48093. case HostText:
  48094. case HostPortal:
  48095. case IncompleteClassComponent:
  48096. // Nothing to do for these component types
  48097. return;
  48098. default:
  48099. {
  48100. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  48101. }
  48102. }
  48103. }
  48104. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  48105. if (!enableHooks) {
  48106. return;
  48107. }
  48108. var updateQueue = finishedWork.updateQueue;
  48109. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  48110. if (lastEffect !== null) {
  48111. var firstEffect = lastEffect.next;
  48112. var effect = firstEffect;
  48113. do {
  48114. if ((effect.tag & unmountTag) !== NoEffect$1) {
  48115. // Unmount
  48116. var destroy = effect.destroy;
  48117. effect.destroy = null;
  48118. if (destroy !== null) {
  48119. destroy();
  48120. }
  48121. }
  48122. if ((effect.tag & mountTag) !== NoEffect$1) {
  48123. // Mount
  48124. var create = effect.create;
  48125. var _destroy = create();
  48126. if (typeof _destroy !== 'function') {
  48127. {
  48128. if (_destroy !== null && _destroy !== undefined) {
  48129. warningWithoutStack$1(false, 'useEffect function must return a cleanup function or ' + 'nothing.%s%s', typeof _destroy.then === 'function' ? ' Promises and useEffect(async () => ...) are not ' + 'supported, but you can call an async function inside an ' + 'effect.' : '', getStackByFiberInDevAndProd(finishedWork));
  48130. }
  48131. }
  48132. _destroy = null;
  48133. }
  48134. effect.destroy = _destroy;
  48135. }
  48136. effect = effect.next;
  48137. } while (effect !== firstEffect);
  48138. }
  48139. }
  48140. function commitPassiveHookEffects(finishedWork) {
  48141. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  48142. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  48143. }
  48144. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  48145. switch (finishedWork.tag) {
  48146. case FunctionComponent:
  48147. case ForwardRef:
  48148. case SimpleMemoComponent:
  48149. {
  48150. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  48151. break;
  48152. }
  48153. case ClassComponent:
  48154. {
  48155. var instance = finishedWork.stateNode;
  48156. if (finishedWork.effectTag & Update) {
  48157. if (current$$1 === null) {
  48158. startPhaseTimer(finishedWork, 'componentDidMount');
  48159. // We could update instance props and state here,
  48160. // but instead we rely on them being set during last render.
  48161. // TODO: revisit this when we implement resuming.
  48162. {
  48163. if (finishedWork.type === finishedWork.elementType) {
  48164. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48165. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidMount. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48166. }
  48167. }
  48168. instance.componentDidMount();
  48169. stopPhaseTimer();
  48170. } else {
  48171. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  48172. var prevState = current$$1.memoizedState;
  48173. startPhaseTimer(finishedWork, 'componentDidUpdate');
  48174. // We could update instance props and state here,
  48175. // but instead we rely on them being set during last render.
  48176. // TODO: revisit this when we implement resuming.
  48177. {
  48178. if (finishedWork.type === finishedWork.elementType) {
  48179. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48180. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'componentDidUpdate. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48181. }
  48182. }
  48183. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  48184. stopPhaseTimer();
  48185. }
  48186. }
  48187. var updateQueue = finishedWork.updateQueue;
  48188. if (updateQueue !== null) {
  48189. {
  48190. if (finishedWork.type === finishedWork.elementType) {
  48191. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected instance props to match memoized props before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48192. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected instance state to match memoized state before ' + 'processing the update queue. This is likely due to a bug in React. ' + 'Please file an issue.') : void 0;
  48193. }
  48194. }
  48195. // We could update instance props and state here,
  48196. // but instead we rely on them being set during last render.
  48197. // TODO: revisit this when we implement resuming.
  48198. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  48199. }
  48200. return;
  48201. }
  48202. case HostRoot:
  48203. {
  48204. var _updateQueue = finishedWork.updateQueue;
  48205. if (_updateQueue !== null) {
  48206. var _instance = null;
  48207. if (finishedWork.child !== null) {
  48208. switch (finishedWork.child.tag) {
  48209. case HostComponent:
  48210. _instance = getPublicInstance(finishedWork.child.stateNode);
  48211. break;
  48212. case ClassComponent:
  48213. _instance = finishedWork.child.stateNode;
  48214. break;
  48215. }
  48216. }
  48217. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  48218. }
  48219. return;
  48220. }
  48221. case HostComponent:
  48222. {
  48223. var _instance2 = finishedWork.stateNode;
  48224. // Renderers may schedule work to be done after host components are mounted
  48225. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  48226. // These effects should only be committed when components are first mounted,
  48227. // aka when there is no current/alternate.
  48228. if (current$$1 === null && finishedWork.effectTag & Update) {
  48229. var type = finishedWork.type;
  48230. var props = finishedWork.memoizedProps;
  48231. commitMount(_instance2, type, props, finishedWork);
  48232. }
  48233. return;
  48234. }
  48235. case HostText:
  48236. {
  48237. // We have no life-cycles associated with text.
  48238. return;
  48239. }
  48240. case HostPortal:
  48241. {
  48242. // We have no life-cycles associated with portals.
  48243. return;
  48244. }
  48245. case Profiler:
  48246. {
  48247. if (enableProfilerTimer) {
  48248. var onRender = finishedWork.memoizedProps.onRender;
  48249. if (enableSchedulerTracing) {
  48250. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  48251. } else {
  48252. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  48253. }
  48254. }
  48255. return;
  48256. }
  48257. case SuspenseComponent:
  48258. break;
  48259. case IncompleteClassComponent:
  48260. break;
  48261. default:
  48262. {
  48263. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  48264. }
  48265. }
  48266. }
  48267. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  48268. if (supportsMutation) {
  48269. // We only have the top Fiber that was inserted but we need recurse down its
  48270. var node = finishedWork;
  48271. while (true) {
  48272. if (node.tag === HostComponent) {
  48273. var instance = node.stateNode;
  48274. if (isHidden) {
  48275. hideInstance(instance);
  48276. } else {
  48277. unhideInstance(node.stateNode, node.memoizedProps);
  48278. }
  48279. } else if (node.tag === HostText) {
  48280. var _instance3 = node.stateNode;
  48281. if (isHidden) {
  48282. hideTextInstance(_instance3);
  48283. } else {
  48284. unhideTextInstance(_instance3, node.memoizedProps);
  48285. }
  48286. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  48287. // Found a nested Suspense component that timed out. Skip over the
  48288. var fallbackChildFragment = node.child.sibling;
  48289. fallbackChildFragment.return = node;
  48290. node = fallbackChildFragment;
  48291. continue;
  48292. } else if (node.child !== null) {
  48293. node.child.return = node;
  48294. node = node.child;
  48295. continue;
  48296. }
  48297. if (node === finishedWork) {
  48298. return;
  48299. }
  48300. while (node.sibling === null) {
  48301. if (node.return === null || node.return === finishedWork) {
  48302. return;
  48303. }
  48304. node = node.return;
  48305. }
  48306. node.sibling.return = node.return;
  48307. node = node.sibling;
  48308. }
  48309. }
  48310. }
  48311. function commitAttachRef(finishedWork) {
  48312. var ref = finishedWork.ref;
  48313. if (ref !== null) {
  48314. var instance = finishedWork.stateNode;
  48315. var instanceToUse = void 0;
  48316. switch (finishedWork.tag) {
  48317. case HostComponent:
  48318. instanceToUse = getPublicInstance(instance);
  48319. break;
  48320. default:
  48321. instanceToUse = instance;
  48322. }
  48323. if (typeof ref === 'function') {
  48324. ref(instanceToUse);
  48325. } else {
  48326. {
  48327. if (!ref.hasOwnProperty('current')) {
  48328. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  48329. }
  48330. }
  48331. ref.current = instanceToUse;
  48332. }
  48333. }
  48334. }
  48335. function commitDetachRef(current$$1) {
  48336. var currentRef = current$$1.ref;
  48337. if (currentRef !== null) {
  48338. if (typeof currentRef === 'function') {
  48339. currentRef(null);
  48340. } else {
  48341. currentRef.current = null;
  48342. }
  48343. }
  48344. }
  48345. // User-originating errors (lifecycles and refs) should not interrupt
  48346. // deletion, so don't let them throw. Host-originating errors should
  48347. // interrupt deletion, so it's okay
  48348. function commitUnmount(current$$1) {
  48349. onCommitUnmount(current$$1);
  48350. switch (current$$1.tag) {
  48351. case FunctionComponent:
  48352. case ForwardRef:
  48353. case MemoComponent:
  48354. case SimpleMemoComponent:
  48355. {
  48356. var updateQueue = current$$1.updateQueue;
  48357. if (updateQueue !== null) {
  48358. var lastEffect = updateQueue.lastEffect;
  48359. if (lastEffect !== null) {
  48360. var firstEffect = lastEffect.next;
  48361. var effect = firstEffect;
  48362. do {
  48363. var destroy = effect.destroy;
  48364. if (destroy !== null) {
  48365. safelyCallDestroy(current$$1, destroy);
  48366. }
  48367. effect = effect.next;
  48368. } while (effect !== firstEffect);
  48369. }
  48370. }
  48371. break;
  48372. }
  48373. case ClassComponent:
  48374. {
  48375. safelyDetachRef(current$$1);
  48376. var instance = current$$1.stateNode;
  48377. if (typeof instance.componentWillUnmount === 'function') {
  48378. safelyCallComponentWillUnmount(current$$1, instance);
  48379. }
  48380. return;
  48381. }
  48382. case HostComponent:
  48383. {
  48384. safelyDetachRef(current$$1);
  48385. return;
  48386. }
  48387. case HostPortal:
  48388. {
  48389. // TODO: this is recursive.
  48390. // We are also not using this parent because
  48391. // the portal will get pushed immediately.
  48392. if (supportsMutation) {
  48393. unmountHostComponents(current$$1);
  48394. } else if (supportsPersistence) {
  48395. emptyPortalContainer(current$$1);
  48396. }
  48397. return;
  48398. }
  48399. }
  48400. }
  48401. function commitNestedUnmounts(root) {
  48402. // While we're inside a removed host node we don't want to call
  48403. // removeChild on the inner nodes because they're removed by the top
  48404. // call anyway. We also want to call componentWillUnmount on all
  48405. // composites before this host node is removed from the tree. Therefore
  48406. var node = root;
  48407. while (true) {
  48408. commitUnmount(node);
  48409. // Visit children because they may contain more composite or host nodes.
  48410. // Skip portals because commitUnmount() currently visits them recursively.
  48411. if (node.child !== null && (
  48412. // If we use mutation we drill down into portals using commitUnmount above.
  48413. // If we don't use mutation we drill down into portals here instead.
  48414. !supportsMutation || node.tag !== HostPortal)) {
  48415. node.child.return = node;
  48416. node = node.child;
  48417. continue;
  48418. }
  48419. if (node === root) {
  48420. return;
  48421. }
  48422. while (node.sibling === null) {
  48423. if (node.return === null || node.return === root) {
  48424. return;
  48425. }
  48426. node = node.return;
  48427. }
  48428. node.sibling.return = node.return;
  48429. node = node.sibling;
  48430. }
  48431. }
  48432. function detachFiber(current$$1) {
  48433. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  48434. // should clear the child pointer of the parent alternate to let this
  48435. // get GC:ed but we don't know which for sure which parent is the current
  48436. // one so we'll settle for GC:ing the subtree of this child. This child
  48437. // itself will be GC:ed when the parent updates the next time.
  48438. current$$1.return = null;
  48439. current$$1.child = null;
  48440. if (current$$1.alternate) {
  48441. current$$1.alternate.child = null;
  48442. current$$1.alternate.return = null;
  48443. }
  48444. }
  48445. function emptyPortalContainer(current$$1) {
  48446. if (!supportsPersistence) {
  48447. return;
  48448. }
  48449. var portal = current$$1.stateNode;
  48450. var containerInfo = portal.containerInfo;
  48451. var emptyChildSet = createContainerChildSet(containerInfo);
  48452. replaceContainerChildren(containerInfo, emptyChildSet);
  48453. }
  48454. function commitContainer(finishedWork) {
  48455. if (!supportsPersistence) {
  48456. return;
  48457. }
  48458. switch (finishedWork.tag) {
  48459. case ClassComponent:
  48460. {
  48461. return;
  48462. }
  48463. case HostComponent:
  48464. {
  48465. return;
  48466. }
  48467. case HostText:
  48468. {
  48469. return;
  48470. }
  48471. case HostRoot:
  48472. case HostPortal:
  48473. {
  48474. var portalOrRoot = finishedWork.stateNode;
  48475. var containerInfo = portalOrRoot.containerInfo,
  48476. _pendingChildren = portalOrRoot.pendingChildren;
  48477. replaceContainerChildren(containerInfo, _pendingChildren);
  48478. return;
  48479. }
  48480. default:
  48481. {
  48482. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  48483. }
  48484. }
  48485. }
  48486. function getHostParentFiber(fiber) {
  48487. var parent = fiber.return;
  48488. while (parent !== null) {
  48489. if (isHostParent(parent)) {
  48490. return parent;
  48491. }
  48492. parent = parent.return;
  48493. }
  48494. invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.');
  48495. }
  48496. function isHostParent(fiber) {
  48497. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  48498. }
  48499. function getHostSibling(fiber) {
  48500. // We're going to search forward into the tree until we find a sibling host
  48501. // node. Unfortunately, if multiple insertions are done in a row we have to
  48502. // search past them. This leads to exponential search for the next sibling.
  48503. var node = fiber;
  48504. siblings: while (true) {
  48505. // If we didn't find anything, let's try the next sibling.
  48506. while (node.sibling === null) {
  48507. if (node.return === null || isHostParent(node.return)) {
  48508. // If we pop out of the root or hit the parent the fiber we are the
  48509. // last sibling.
  48510. return null;
  48511. }
  48512. node = node.return;
  48513. }
  48514. node.sibling.return = node.return;
  48515. node = node.sibling;
  48516. while (node.tag !== HostComponent && node.tag !== HostText) {
  48517. // If it is not host node and, we might have a host node inside it.
  48518. // Try to search down until we find one.
  48519. if (node.effectTag & Placement) {
  48520. // If we don't have a child, try the siblings instead.
  48521. continue siblings;
  48522. }
  48523. // If we don't have a child, try the siblings instead.
  48524. // We also skip portals because they are not part of this host tree.
  48525. if (node.child === null || node.tag === HostPortal) {
  48526. continue siblings;
  48527. } else {
  48528. node.child.return = node;
  48529. node = node.child;
  48530. }
  48531. }
  48532. // Check if this host node is stable or about to be placed.
  48533. if (!(node.effectTag & Placement)) {
  48534. // Found it!
  48535. return node.stateNode;
  48536. }
  48537. }
  48538. }
  48539. function commitPlacement(finishedWork) {
  48540. if (!supportsMutation) {
  48541. return;
  48542. }
  48543. // Recursively insert all host nodes into the parent.
  48544. var parentFiber = getHostParentFiber(finishedWork);
  48545. // Note: these two variables *must* always be updated together.
  48546. var parent = void 0;
  48547. var isContainer = void 0;
  48548. switch (parentFiber.tag) {
  48549. case HostComponent:
  48550. parent = parentFiber.stateNode;
  48551. isContainer = false;
  48552. break;
  48553. case HostRoot:
  48554. parent = parentFiber.stateNode.containerInfo;
  48555. isContainer = true;
  48556. break;
  48557. case HostPortal:
  48558. parent = parentFiber.stateNode.containerInfo;
  48559. isContainer = true;
  48560. break;
  48561. default:
  48562. invariant(false, 'Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.');
  48563. }
  48564. if (parentFiber.effectTag & ContentReset) {
  48565. // Reset the text content of the parent before doing any insertions
  48566. resetTextContent(parent);
  48567. // Clear ContentReset from the effect tag
  48568. parentFiber.effectTag &= ~ContentReset;
  48569. }
  48570. var before = getHostSibling(finishedWork);
  48571. // We only have the top Fiber that was inserted but we need recurse down its
  48572. // children to find all the terminal nodes.
  48573. var node = finishedWork;
  48574. while (true) {
  48575. if (node.tag === HostComponent || node.tag === HostText) {
  48576. if (before) {
  48577. if (isContainer) {
  48578. insertInContainerBefore(parent, node.stateNode, before);
  48579. } else {
  48580. insertBefore(parent, node.stateNode, before);
  48581. }
  48582. } else {
  48583. if (isContainer) {
  48584. appendChildToContainer(parent, node.stateNode);
  48585. } else {
  48586. appendChild(parent, node.stateNode);
  48587. }
  48588. }
  48589. } else if (node.tag === HostPortal) {
  48590. // If the insertion itself is a portal, then we don't want to traverse
  48591. // down its children. Instead, we'll get insertions from each child in
  48592. // the portal directly.
  48593. } else if (node.child !== null) {
  48594. node.child.return = node;
  48595. node = node.child;
  48596. continue;
  48597. }
  48598. if (node === finishedWork) {
  48599. return;
  48600. }
  48601. while (node.sibling === null) {
  48602. if (node.return === null || node.return === finishedWork) {
  48603. return;
  48604. }
  48605. node = node.return;
  48606. }
  48607. node.sibling.return = node.return;
  48608. node = node.sibling;
  48609. }
  48610. }
  48611. function unmountHostComponents(current$$1) {
  48612. // We only have the top Fiber that was deleted but we need recurse down its
  48613. var node = current$$1;
  48614. // Each iteration, currentParent is populated with node's host parent if not
  48615. // currentParentIsValid.
  48616. var currentParentIsValid = false;
  48617. // Note: these two variables *must* always be updated together.
  48618. var currentParent = void 0;
  48619. var currentParentIsContainer = void 0;
  48620. while (true) {
  48621. if (!currentParentIsValid) {
  48622. var parent = node.return;
  48623. findParent: while (true) {
  48624. !(parent !== null) ? invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  48625. switch (parent.tag) {
  48626. case HostComponent:
  48627. currentParent = parent.stateNode;
  48628. currentParentIsContainer = false;
  48629. break findParent;
  48630. case HostRoot:
  48631. currentParent = parent.stateNode.containerInfo;
  48632. currentParentIsContainer = true;
  48633. break findParent;
  48634. case HostPortal:
  48635. currentParent = parent.stateNode.containerInfo;
  48636. currentParentIsContainer = true;
  48637. break findParent;
  48638. }
  48639. parent = parent.return;
  48640. }
  48641. currentParentIsValid = true;
  48642. }
  48643. if (node.tag === HostComponent || node.tag === HostText) {
  48644. commitNestedUnmounts(node);
  48645. // After all the children have unmounted, it is now safe to remove the
  48646. // node from the tree.
  48647. if (currentParentIsContainer) {
  48648. removeChildFromContainer(currentParent, node.stateNode);
  48649. } else {
  48650. removeChild(currentParent, node.stateNode);
  48651. }
  48652. // Don't visit children because we already visited them.
  48653. } else if (node.tag === HostPortal) {
  48654. // When we go into a portal, it becomes the parent to remove from.
  48655. // We will reassign it back when we pop the portal on the way up.
  48656. currentParent = node.stateNode.containerInfo;
  48657. currentParentIsContainer = true;
  48658. // Visit children because portals might contain host components.
  48659. if (node.child !== null) {
  48660. node.child.return = node;
  48661. node = node.child;
  48662. continue;
  48663. }
  48664. } else {
  48665. commitUnmount(node);
  48666. // Visit children because we may find more host components below.
  48667. if (node.child !== null) {
  48668. node.child.return = node;
  48669. node = node.child;
  48670. continue;
  48671. }
  48672. }
  48673. if (node === current$$1) {
  48674. return;
  48675. }
  48676. while (node.sibling === null) {
  48677. if (node.return === null || node.return === current$$1) {
  48678. return;
  48679. }
  48680. node = node.return;
  48681. if (node.tag === HostPortal) {
  48682. // When we go out of the portal, we need to restore the parent.
  48683. // Since we don't keep a stack of them, we will search for it.
  48684. currentParentIsValid = false;
  48685. }
  48686. }
  48687. node.sibling.return = node.return;
  48688. node = node.sibling;
  48689. }
  48690. }
  48691. function commitDeletion(current$$1) {
  48692. if (supportsMutation) {
  48693. // Recursively delete all host nodes from the parent.
  48694. // Detach refs and call componentWillUnmount() on the whole subtree.
  48695. unmountHostComponents(current$$1);
  48696. } else {
  48697. // Detach refs and call componentWillUnmount() on the whole subtree.
  48698. commitNestedUnmounts(current$$1);
  48699. }
  48700. detachFiber(current$$1);
  48701. }
  48702. function commitWork(current$$1, finishedWork) {
  48703. if (!supportsMutation) {
  48704. switch (finishedWork.tag) {
  48705. case FunctionComponent:
  48706. case ForwardRef:
  48707. case MemoComponent:
  48708. case SimpleMemoComponent:
  48709. {
  48710. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  48711. return;
  48712. }
  48713. }
  48714. commitContainer(finishedWork);
  48715. return;
  48716. }
  48717. switch (finishedWork.tag) {
  48718. case FunctionComponent:
  48719. case ForwardRef:
  48720. case MemoComponent:
  48721. case SimpleMemoComponent:
  48722. {
  48723. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  48724. return;
  48725. }
  48726. case ClassComponent:
  48727. {
  48728. return;
  48729. }
  48730. case HostComponent:
  48731. {
  48732. var instance = finishedWork.stateNode;
  48733. if (instance != null) {
  48734. // Commit the work prepared earlier.
  48735. var newProps = finishedWork.memoizedProps;
  48736. // For hydration we reuse the update path but we treat the oldProps
  48737. // as the newProps. The updatePayload will contain the real change in
  48738. // this case.
  48739. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  48740. var type = finishedWork.type;
  48741. // TODO: Type the updateQueue to be specific to host components.
  48742. var updatePayload = finishedWork.updateQueue;
  48743. finishedWork.updateQueue = null;
  48744. if (updatePayload !== null) {
  48745. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  48746. }
  48747. }
  48748. return;
  48749. }
  48750. case HostText:
  48751. {
  48752. !(finishedWork.stateNode !== null) ? invariant(false, 'This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  48753. var textInstance = finishedWork.stateNode;
  48754. var newText = finishedWork.memoizedProps;
  48755. // For hydration we reuse the update path but we treat the oldProps
  48756. // as the newProps. The updatePayload will contain the real change in
  48757. // this case.
  48758. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  48759. commitTextUpdate(textInstance, oldText, newText);
  48760. return;
  48761. }
  48762. case HostRoot:
  48763. {
  48764. return;
  48765. }
  48766. case Profiler:
  48767. {
  48768. return;
  48769. }
  48770. case SuspenseComponent:
  48771. {
  48772. var newState = finishedWork.memoizedState;
  48773. var newDidTimeout = void 0;
  48774. var primaryChildParent = finishedWork;
  48775. if (newState === null) {
  48776. newDidTimeout = false;
  48777. } else {
  48778. newDidTimeout = true;
  48779. primaryChildParent = finishedWork.child;
  48780. if (newState.timedOutAt === NoWork) {
  48781. // If the children had not already timed out, record the time.
  48782. // This is used to compute the elapsed time during subsequent
  48783. // attempts to render the children.
  48784. newState.timedOutAt = requestCurrentTime();
  48785. }
  48786. }
  48787. if (primaryChildParent !== null) {
  48788. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  48789. }
  48790. return;
  48791. }
  48792. case IncompleteClassComponent:
  48793. {
  48794. return;
  48795. }
  48796. default:
  48797. {
  48798. invariant(false, 'This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.');
  48799. }
  48800. }
  48801. }
  48802. function commitResetTextContent(current$$1) {
  48803. if (!supportsMutation) {
  48804. return;
  48805. }
  48806. resetTextContent(current$$1.stateNode);
  48807. }
  48808. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  48809. var update = createUpdate(expirationTime);
  48810. // Unmount the root by rendering null.
  48811. update.tag = CaptureUpdate;
  48812. // Caution: React DevTools currently depends on this property
  48813. // being called "element".
  48814. update.payload = { element: null };
  48815. var error = errorInfo.value;
  48816. update.callback = function () {
  48817. onUncaughtError(error);
  48818. logError(fiber, errorInfo);
  48819. };
  48820. return update;
  48821. }
  48822. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  48823. var update = createUpdate(expirationTime);
  48824. update.tag = CaptureUpdate;
  48825. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  48826. if (typeof getDerivedStateFromError === 'function') {
  48827. var error = errorInfo.value;
  48828. update.payload = function () {
  48829. return getDerivedStateFromError(error);
  48830. };
  48831. }
  48832. var inst = fiber.stateNode;
  48833. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  48834. update.callback = function callback() {
  48835. if (typeof getDerivedStateFromError !== 'function') {
  48836. // To preserve the preexisting retry behavior of error boundaries,
  48837. // we keep track of which ones already failed during this batch.
  48838. // This gets reset before we yield back to the browser.
  48839. // TODO: Warn in strict mode if getDerivedStateFromError is
  48840. // not defined.
  48841. markLegacyErrorBoundaryAsFailed(this);
  48842. }
  48843. var error = errorInfo.value;
  48844. var stack = errorInfo.stack;
  48845. logError(fiber, errorInfo);
  48846. this.componentDidCatch(error, {
  48847. componentStack: stack !== null ? stack : ''
  48848. });
  48849. {
  48850. if (typeof getDerivedStateFromError !== 'function') {
  48851. // If componentDidCatch is the only error boundary method defined,
  48852. // then it needs to call setState to recover from errors.
  48853. // If no state update is scheduled then the boundary will swallow the error.
  48854. !(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;
  48855. }
  48856. }
  48857. };
  48858. }
  48859. return update;
  48860. }
  48861. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  48862. // The source fiber did not complete.
  48863. sourceFiber.effectTag |= Incomplete;
  48864. // Its effect list is no longer valid.
  48865. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  48866. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  48867. // This is a thenable.
  48868. var thenable = value;
  48869. // Find the earliest timeout threshold of all the placeholders in the
  48870. // ancestor path. We could avoid this traversal by storing the thresholds on
  48871. // the stack, but we choose not to because we only hit this path if we're
  48872. // IO-bound (i.e. if something suspends). Whereas the stack is used even in
  48873. // the non-IO- bound case.
  48874. var _workInProgress = returnFiber;
  48875. var earliestTimeoutMs = -1;
  48876. var startTimeMs = -1;
  48877. do {
  48878. if (_workInProgress.tag === SuspenseComponent) {
  48879. var current$$1 = _workInProgress.alternate;
  48880. if (current$$1 !== null) {
  48881. var currentState = current$$1.memoizedState;
  48882. if (currentState !== null) {
  48883. // Reached a boundary that already timed out. Do not search
  48884. // any further.
  48885. var timedOutAt = currentState.timedOutAt;
  48886. startTimeMs = expirationTimeToMs(timedOutAt);
  48887. // Do not search any further.
  48888. break;
  48889. }
  48890. }
  48891. var timeoutPropMs = _workInProgress.pendingProps.maxDuration;
  48892. if (typeof timeoutPropMs === 'number') {
  48893. if (timeoutPropMs <= 0) {
  48894. earliestTimeoutMs = 0;
  48895. } else if (earliestTimeoutMs === -1 || timeoutPropMs < earliestTimeoutMs) {
  48896. earliestTimeoutMs = timeoutPropMs;
  48897. }
  48898. }
  48899. }
  48900. _workInProgress = _workInProgress.return;
  48901. } while (_workInProgress !== null);
  48902. // Schedule the nearest Suspense to re-render the timed out view.
  48903. _workInProgress = returnFiber;
  48904. do {
  48905. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress.alternate, _workInProgress)) {
  48906. // Found the nearest boundary.
  48907. // If the boundary is not in concurrent mode, we should not suspend, and
  48908. // likewise, when the promise resolves, we should ping synchronously.
  48909. var pingTime = (_workInProgress.mode & ConcurrentMode) === NoEffect ? Sync : renderExpirationTime;
  48910. // Attach a listener to the promise to "ping" the root and retry.
  48911. var onResolveOrReject = retrySuspendedRoot.bind(null, root, _workInProgress, sourceFiber, pingTime);
  48912. if (enableSchedulerTracing) {
  48913. onResolveOrReject = tracing.unstable_wrap(onResolveOrReject);
  48914. }
  48915. thenable.then(onResolveOrReject, onResolveOrReject);
  48916. // If the boundary is outside of concurrent mode, we should *not*
  48917. // suspend the commit. Pretend as if the suspended component rendered
  48918. // null and keep rendering. In the commit phase, we'll schedule a
  48919. // subsequent synchronous update to re-render the Suspense.
  48920. //
  48921. // Note: It doesn't matter whether the component that suspended was
  48922. // inside a concurrent mode tree. If the Suspense is outside of it, we
  48923. // should *not* suspend the commit.
  48924. if ((_workInProgress.mode & ConcurrentMode) === NoEffect) {
  48925. _workInProgress.effectTag |= DidCapture;
  48926. // We're going to commit this fiber even though it didn't complete.
  48927. // But we shouldn't call any lifecycle methods or callbacks. Remove
  48928. // all lifecycle effect tags.
  48929. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  48930. if (sourceFiber.tag === ClassComponent) {
  48931. var _current = sourceFiber.alternate;
  48932. if (_current === null) {
  48933. // This is a new mount. Change the tag so it's not mistaken for a
  48934. // completed class component. For example, we should not call
  48935. // componentWillUnmount if it is deleted.
  48936. sourceFiber.tag = IncompleteClassComponent;
  48937. }
  48938. }
  48939. // The source fiber did not complete. Mark it with the current
  48940. // render priority to indicate that it still has pending work.
  48941. sourceFiber.expirationTime = renderExpirationTime;
  48942. // Exit without suspending.
  48943. return;
  48944. }
  48945. // Confirmed that the boundary is in a concurrent mode tree. Continue
  48946. // with the normal suspend path.
  48947. var absoluteTimeoutMs = void 0;
  48948. if (earliestTimeoutMs === -1) {
  48949. // If no explicit threshold is given, default to an abitrarily large
  48950. // value. The actual size doesn't matter because the threshold for the
  48951. // whole tree will be clamped to the expiration time.
  48952. absoluteTimeoutMs = maxSigned31BitInt;
  48953. } else {
  48954. if (startTimeMs === -1) {
  48955. // This suspend happened outside of any already timed-out
  48956. // placeholders. We don't know exactly when the update was
  48957. // scheduled, but we can infer an approximate start time from the
  48958. // expiration time. First, find the earliest uncommitted expiration
  48959. // time in the tree, including work that is suspended. Then subtract
  48960. // the offset used to compute an async update's expiration time.
  48961. // This will cause high priority (interactive) work to expire
  48962. // earlier than necessary, but we can account for this by adjusting
  48963. // for the Just Noticeable Difference.
  48964. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, renderExpirationTime);
  48965. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  48966. startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  48967. }
  48968. absoluteTimeoutMs = startTimeMs + earliestTimeoutMs;
  48969. }
  48970. // Mark the earliest timeout in the suspended fiber's ancestor path.
  48971. // After completing the root, we'll take the largest of all the
  48972. // suspended fiber's timeouts and use it to compute a timeout for the
  48973. // whole tree.
  48974. renderDidSuspend(root, absoluteTimeoutMs, renderExpirationTime);
  48975. _workInProgress.effectTag |= ShouldCapture;
  48976. _workInProgress.expirationTime = renderExpirationTime;
  48977. return;
  48978. }
  48979. // This boundary already captured during this render. Continue to the next
  48980. // boundary.
  48981. _workInProgress = _workInProgress.return;
  48982. } while (_workInProgress !== null);
  48983. // No boundary was found. Fallthrough to error mode.
  48984. // TODO: Use invariant so the message is stripped in prod?
  48985. 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));
  48986. }
  48987. // We didn't find a boundary that could handle this type of exception. Start
  48988. // over and traverse parent path again, this time treating the exception
  48989. // as an error.
  48990. renderDidError();
  48991. value = createCapturedValue(value, sourceFiber);
  48992. var workInProgress = returnFiber;
  48993. do {
  48994. switch (workInProgress.tag) {
  48995. case HostRoot:
  48996. {
  48997. var _errorInfo = value;
  48998. workInProgress.effectTag |= ShouldCapture;
  48999. workInProgress.expirationTime = renderExpirationTime;
  49000. var update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  49001. enqueueCapturedUpdate(workInProgress, update);
  49002. return;
  49003. }
  49004. case ClassComponent:
  49005. // Capture and retry
  49006. var errorInfo = value;
  49007. var ctor = workInProgress.type;
  49008. var instance = workInProgress.stateNode;
  49009. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  49010. workInProgress.effectTag |= ShouldCapture;
  49011. workInProgress.expirationTime = renderExpirationTime;
  49012. // Schedule the error boundary to re-render using updated state
  49013. var _update = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  49014. enqueueCapturedUpdate(workInProgress, _update);
  49015. return;
  49016. }
  49017. break;
  49018. default:
  49019. break;
  49020. }
  49021. workInProgress = workInProgress.return;
  49022. } while (workInProgress !== null);
  49023. }
  49024. function unwindWork(workInProgress, renderExpirationTime) {
  49025. switch (workInProgress.tag) {
  49026. case ClassComponent:
  49027. {
  49028. var Component = workInProgress.type;
  49029. if (isContextProvider(Component)) {
  49030. popContext(workInProgress);
  49031. }
  49032. var effectTag = workInProgress.effectTag;
  49033. if (effectTag & ShouldCapture) {
  49034. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  49035. return workInProgress;
  49036. }
  49037. return null;
  49038. }
  49039. case HostRoot:
  49040. {
  49041. popHostContainer(workInProgress);
  49042. popTopLevelContextObject(workInProgress);
  49043. var _effectTag = workInProgress.effectTag;
  49044. !((_effectTag & DidCapture) === NoEffect) ? invariant(false, 'The root failed to unmount after an error. This is likely a bug in React. Please file an issue.') : void 0;
  49045. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  49046. return workInProgress;
  49047. }
  49048. case HostComponent:
  49049. {
  49050. popHostContext(workInProgress);
  49051. return null;
  49052. }
  49053. case SuspenseComponent:
  49054. {
  49055. var _effectTag2 = workInProgress.effectTag;
  49056. if (_effectTag2 & ShouldCapture) {
  49057. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  49058. // Captured a suspense effect. Re-render the boundary.
  49059. return workInProgress;
  49060. }
  49061. return null;
  49062. }
  49063. case HostPortal:
  49064. popHostContainer(workInProgress);
  49065. return null;
  49066. case ContextProvider:
  49067. popProvider(workInProgress);
  49068. return null;
  49069. default:
  49070. return null;
  49071. }
  49072. }
  49073. function unwindInterruptedWork(interruptedWork) {
  49074. switch (interruptedWork.tag) {
  49075. case ClassComponent:
  49076. {
  49077. var childContextTypes = interruptedWork.type.childContextTypes;
  49078. if (childContextTypes !== null && childContextTypes !== undefined) {
  49079. popContext(interruptedWork);
  49080. }
  49081. break;
  49082. }
  49083. case HostRoot:
  49084. {
  49085. popHostContainer(interruptedWork);
  49086. popTopLevelContextObject(interruptedWork);
  49087. break;
  49088. }
  49089. case HostComponent:
  49090. {
  49091. popHostContext(interruptedWork);
  49092. break;
  49093. }
  49094. case HostPortal:
  49095. popHostContainer(interruptedWork);
  49096. break;
  49097. case ContextProvider:
  49098. popProvider(interruptedWork);
  49099. break;
  49100. default:
  49101. break;
  49102. }
  49103. }
  49104. var Dispatcher = {
  49105. readContext: readContext,
  49106. useCallback: useCallback,
  49107. useContext: useContext,
  49108. useEffect: useEffect,
  49109. useImperativeMethods: useImperativeMethods,
  49110. useLayoutEffect: useLayoutEffect,
  49111. useMemo: useMemo,
  49112. useMutationEffect: useMutationEffect,
  49113. useReducer: useReducer,
  49114. useRef: useRef,
  49115. useState: useState
  49116. };
  49117. var DispatcherWithoutHooks = {
  49118. readContext: readContext
  49119. };
  49120. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  49121. var didWarnAboutStateTransition = void 0;
  49122. var didWarnSetStateChildContext = void 0;
  49123. var warnAboutUpdateOnUnmounted = void 0;
  49124. var warnAboutInvalidUpdates = void 0;
  49125. if (enableSchedulerTracing) {
  49126. // Provide explicit error message when production+profiling bundle of e.g. react-dom
  49127. // is used with production (non-profiling) bundle of scheduler/tracing
  49128. !(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null) ? invariant(false, 'It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling') : void 0;
  49129. }
  49130. {
  49131. didWarnAboutStateTransition = false;
  49132. didWarnSetStateChildContext = false;
  49133. var didWarnStateUpdateForUnmountedComponent = {};
  49134. warnAboutUpdateOnUnmounted = function (fiber, isClass) {
  49135. // We show the whole stack but dedupe on the top component's name because
  49136. // the problematic code almost always lies inside that component.
  49137. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  49138. if (didWarnStateUpdateForUnmountedComponent[componentName]) {
  49139. return;
  49140. }
  49141. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', isClass ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  49142. didWarnStateUpdateForUnmountedComponent[componentName] = true;
  49143. };
  49144. warnAboutInvalidUpdates = function (instance) {
  49145. switch (phase) {
  49146. case 'getChildContext':
  49147. if (didWarnSetStateChildContext) {
  49148. return;
  49149. }
  49150. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  49151. didWarnSetStateChildContext = true;
  49152. break;
  49153. case 'render':
  49154. if (didWarnAboutStateTransition) {
  49155. return;
  49156. }
  49157. 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.');
  49158. didWarnAboutStateTransition = true;
  49159. break;
  49160. }
  49161. };
  49162. }
  49163. // Used to ensure computeUniqueAsyncExpiration is monotonically decreasing.
  49164. var lastUniqueAsyncExpiration = Sync - 1;
  49165. // Represents the expiration time that incoming updates should use. (If this
  49166. // is NoWork, use the default strategy: async updates in async mode, sync
  49167. // updates in sync mode.)
  49168. var expirationContext = NoWork;
  49169. var isWorking = false;
  49170. // The next work in progress fiber that we're currently working on.
  49171. var nextUnitOfWork = null;
  49172. var nextRoot = null;
  49173. // The time at which we're currently rendering work.
  49174. var nextRenderExpirationTime = NoWork;
  49175. var nextLatestAbsoluteTimeoutMs = -1;
  49176. var nextRenderDidError = false;
  49177. // The next fiber with an effect that we're currently committing.
  49178. var nextEffect = null;
  49179. var isCommitting$1 = false;
  49180. var rootWithPendingPassiveEffects = null;
  49181. var passiveEffectCallbackHandle = null;
  49182. var passiveEffectCallback = null;
  49183. var legacyErrorBoundariesThatAlreadyFailed = null;
  49184. // Used for performance tracking.
  49185. var interruptedBy = null;
  49186. var stashedWorkInProgressProperties = void 0;
  49187. var replayUnitOfWork = void 0;
  49188. var mayReplayFailedUnitOfWork = void 0;
  49189. var isReplayingFailedUnitOfWork = void 0;
  49190. var originalReplayError = void 0;
  49191. var rethrowOriginalError = void 0;
  49192. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49193. stashedWorkInProgressProperties = null;
  49194. mayReplayFailedUnitOfWork = true;
  49195. isReplayingFailedUnitOfWork = false;
  49196. originalReplayError = null;
  49197. replayUnitOfWork = function (failedUnitOfWork, thrownValue, isYieldy) {
  49198. if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
  49199. // Don't replay promises. Treat everything else like an error.
  49200. // TODO: Need to figure out a different strategy if/when we add
  49201. // support for catching other types.
  49202. return;
  49203. }
  49204. // Restore the original state of the work-in-progress
  49205. if (stashedWorkInProgressProperties === null) {
  49206. // This should never happen. Don't throw because this code is DEV-only.
  49207. warningWithoutStack$1(false, 'Could not replay rendering after an error. This is likely a bug in React. ' + 'Please file an issue.');
  49208. return;
  49209. }
  49210. assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties);
  49211. switch (failedUnitOfWork.tag) {
  49212. case HostRoot:
  49213. popHostContainer(failedUnitOfWork);
  49214. popTopLevelContextObject(failedUnitOfWork);
  49215. break;
  49216. case HostComponent:
  49217. popHostContext(failedUnitOfWork);
  49218. break;
  49219. case ClassComponent:
  49220. {
  49221. var Component = failedUnitOfWork.type;
  49222. if (isContextProvider(Component)) {
  49223. popContext(failedUnitOfWork);
  49224. }
  49225. break;
  49226. }
  49227. case HostPortal:
  49228. popHostContainer(failedUnitOfWork);
  49229. break;
  49230. case ContextProvider:
  49231. popProvider(failedUnitOfWork);
  49232. break;
  49233. }
  49234. // Replay the begin phase.
  49235. isReplayingFailedUnitOfWork = true;
  49236. originalReplayError = thrownValue;
  49237. invokeGuardedCallback(null, workLoop, null, isYieldy);
  49238. isReplayingFailedUnitOfWork = false;
  49239. originalReplayError = null;
  49240. if (hasCaughtError()) {
  49241. var replayError = clearCaughtError();
  49242. if (replayError != null && thrownValue != null) {
  49243. try {
  49244. // Reading the expando property is intentionally
  49245. // inside `try` because it might be a getter or Proxy.
  49246. if (replayError._suppressLogging) {
  49247. // Also suppress logging for the original error.
  49248. thrownValue._suppressLogging = true;
  49249. }
  49250. } catch (inner) {
  49251. // Ignore.
  49252. }
  49253. }
  49254. } else {
  49255. // If the begin phase did not fail the second time, set this pointer
  49256. // back to the original value.
  49257. nextUnitOfWork = failedUnitOfWork;
  49258. }
  49259. };
  49260. rethrowOriginalError = function () {
  49261. throw originalReplayError;
  49262. };
  49263. }
  49264. function resetStack() {
  49265. if (nextUnitOfWork !== null) {
  49266. var interruptedWork = nextUnitOfWork.return;
  49267. while (interruptedWork !== null) {
  49268. unwindInterruptedWork(interruptedWork);
  49269. interruptedWork = interruptedWork.return;
  49270. }
  49271. }
  49272. {
  49273. ReactStrictModeWarnings.discardPendingWarnings();
  49274. checkThatStackIsEmpty();
  49275. }
  49276. nextRoot = null;
  49277. nextRenderExpirationTime = NoWork;
  49278. nextLatestAbsoluteTimeoutMs = -1;
  49279. nextRenderDidError = false;
  49280. nextUnitOfWork = null;
  49281. }
  49282. function commitAllHostEffects() {
  49283. while (nextEffect !== null) {
  49284. {
  49285. setCurrentFiber(nextEffect);
  49286. }
  49287. recordEffect();
  49288. var effectTag = nextEffect.effectTag;
  49289. if (effectTag & ContentReset) {
  49290. commitResetTextContent(nextEffect);
  49291. }
  49292. if (effectTag & Ref) {
  49293. var current$$1 = nextEffect.alternate;
  49294. if (current$$1 !== null) {
  49295. commitDetachRef(current$$1);
  49296. }
  49297. }
  49298. // The following switch statement is only concerned about placement,
  49299. // updates, and deletions. To avoid needing to add a case for every
  49300. // possible bitmap value, we remove the secondary effects from the
  49301. // effect tag and switch on that value.
  49302. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  49303. switch (primaryEffectTag) {
  49304. case Placement:
  49305. {
  49306. commitPlacement(nextEffect);
  49307. // Clear the "placement" from effect tag so that we know that this is inserted, before
  49308. // any life-cycles like componentDidMount gets called.
  49309. // TODO: findDOMNode doesn't rely on this any more but isMounted
  49310. // does and isMounted is deprecated anyway so we should be able
  49311. // to kill this.
  49312. nextEffect.effectTag &= ~Placement;
  49313. break;
  49314. }
  49315. case PlacementAndUpdate:
  49316. {
  49317. // Placement
  49318. commitPlacement(nextEffect);
  49319. // Clear the "placement" from effect tag so that we know that this is inserted, before
  49320. // any life-cycles like componentDidMount gets called.
  49321. nextEffect.effectTag &= ~Placement;
  49322. // Update
  49323. var _current = nextEffect.alternate;
  49324. commitWork(_current, nextEffect);
  49325. break;
  49326. }
  49327. case Update:
  49328. {
  49329. var _current2 = nextEffect.alternate;
  49330. commitWork(_current2, nextEffect);
  49331. break;
  49332. }
  49333. case Deletion:
  49334. {
  49335. commitDeletion(nextEffect);
  49336. break;
  49337. }
  49338. }
  49339. nextEffect = nextEffect.nextEffect;
  49340. }
  49341. {
  49342. resetCurrentFiber();
  49343. }
  49344. }
  49345. function commitBeforeMutationLifecycles() {
  49346. while (nextEffect !== null) {
  49347. {
  49348. setCurrentFiber(nextEffect);
  49349. }
  49350. var effectTag = nextEffect.effectTag;
  49351. if (effectTag & Snapshot) {
  49352. recordEffect();
  49353. var current$$1 = nextEffect.alternate;
  49354. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  49355. }
  49356. nextEffect = nextEffect.nextEffect;
  49357. }
  49358. {
  49359. resetCurrentFiber();
  49360. }
  49361. }
  49362. function commitAllLifeCycles(finishedRoot, committedExpirationTime) {
  49363. {
  49364. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  49365. ReactStrictModeWarnings.flushLegacyContextWarning();
  49366. if (warnAboutDeprecatedLifecycles) {
  49367. ReactStrictModeWarnings.flushPendingDeprecationWarnings();
  49368. }
  49369. }
  49370. while (nextEffect !== null) {
  49371. var effectTag = nextEffect.effectTag;
  49372. if (effectTag & (Update | Callback)) {
  49373. recordEffect();
  49374. var current$$1 = nextEffect.alternate;
  49375. commitLifeCycles(finishedRoot, current$$1, nextEffect, committedExpirationTime);
  49376. }
  49377. if (effectTag & Ref) {
  49378. recordEffect();
  49379. commitAttachRef(nextEffect);
  49380. }
  49381. if (enableHooks && effectTag & Passive) {
  49382. rootWithPendingPassiveEffects = finishedRoot;
  49383. }
  49384. nextEffect = nextEffect.nextEffect;
  49385. }
  49386. }
  49387. function commitPassiveEffects(root, firstEffect) {
  49388. rootWithPendingPassiveEffects = null;
  49389. passiveEffectCallbackHandle = null;
  49390. passiveEffectCallback = null;
  49391. // Set this to true to prevent re-entrancy
  49392. var previousIsRendering = isRendering;
  49393. isRendering = true;
  49394. var effect = firstEffect;
  49395. do {
  49396. if (effect.effectTag & Passive) {
  49397. var didError = false;
  49398. var error = void 0;
  49399. {
  49400. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  49401. if (hasCaughtError()) {
  49402. didError = true;
  49403. error = clearCaughtError();
  49404. }
  49405. }
  49406. if (didError) {
  49407. captureCommitPhaseError(effect, error);
  49408. }
  49409. }
  49410. effect = effect.nextEffect;
  49411. } while (effect !== null);
  49412. isRendering = previousIsRendering;
  49413. // Check if work was scheduled by one of the effects
  49414. var rootExpirationTime = root.expirationTime;
  49415. if (rootExpirationTime !== NoWork) {
  49416. requestWork(root, rootExpirationTime);
  49417. }
  49418. }
  49419. function isAlreadyFailedLegacyErrorBoundary(instance) {
  49420. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  49421. }
  49422. function markLegacyErrorBoundaryAsFailed(instance) {
  49423. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  49424. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  49425. } else {
  49426. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  49427. }
  49428. }
  49429. function flushPassiveEffects() {
  49430. if (passiveEffectCallback !== null) {
  49431. scheduler.unstable_cancelCallback(passiveEffectCallbackHandle);
  49432. // We call the scheduled callback instead of commitPassiveEffects directly
  49433. // to ensure tracing works correctly.
  49434. passiveEffectCallback();
  49435. }
  49436. }
  49437. function commitRoot(root, finishedWork) {
  49438. isWorking = true;
  49439. isCommitting$1 = true;
  49440. startCommitTimer();
  49441. !(root.current !== finishedWork) ? invariant(false, 'Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49442. var committedExpirationTime = root.pendingCommitExpirationTime;
  49443. !(committedExpirationTime !== NoWork) ? invariant(false, 'Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49444. root.pendingCommitExpirationTime = NoWork;
  49445. // Update the pending priority levels to account for the work that we are
  49446. // about to commit. This needs to happen before calling the lifecycles, since
  49447. // they may schedule additional updates.
  49448. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  49449. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  49450. var earliestRemainingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  49451. markCommittedPriorityLevels(root, earliestRemainingTimeBeforeCommit);
  49452. var prevInteractions = null;
  49453. if (enableSchedulerTracing) {
  49454. // Restore any pending interactions at this point,
  49455. // So that cascading work triggered during the render phase will be accounted for.
  49456. prevInteractions = tracing.__interactionsRef.current;
  49457. tracing.__interactionsRef.current = root.memoizedInteractions;
  49458. }
  49459. // Reset this to null before calling lifecycles
  49460. ReactCurrentOwner$2.current = null;
  49461. var firstEffect = void 0;
  49462. if (finishedWork.effectTag > PerformedWork) {
  49463. // A fiber's effect list consists only of its children, not itself. So if
  49464. // the root has an effect, we need to add it to the end of the list. The
  49465. // resulting list is the set that would belong to the root's parent, if
  49466. // it had one; that is, all the effects in the tree including the root.
  49467. if (finishedWork.lastEffect !== null) {
  49468. finishedWork.lastEffect.nextEffect = finishedWork;
  49469. firstEffect = finishedWork.firstEffect;
  49470. } else {
  49471. firstEffect = finishedWork;
  49472. }
  49473. } else {
  49474. // There is no effect on the root.
  49475. firstEffect = finishedWork.firstEffect;
  49476. }
  49477. prepareForCommit(root.containerInfo);
  49478. // Invoke instances of getSnapshotBeforeUpdate before mutation.
  49479. nextEffect = firstEffect;
  49480. startCommitSnapshotEffectsTimer();
  49481. while (nextEffect !== null) {
  49482. var didError = false;
  49483. var error = void 0;
  49484. {
  49485. invokeGuardedCallback(null, commitBeforeMutationLifecycles, null);
  49486. if (hasCaughtError()) {
  49487. didError = true;
  49488. error = clearCaughtError();
  49489. }
  49490. }
  49491. if (didError) {
  49492. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49493. captureCommitPhaseError(nextEffect, error);
  49494. // Clean-up
  49495. if (nextEffect !== null) {
  49496. nextEffect = nextEffect.nextEffect;
  49497. }
  49498. }
  49499. }
  49500. stopCommitSnapshotEffectsTimer();
  49501. if (enableProfilerTimer) {
  49502. // Mark the current commit time to be shared by all Profilers in this batch.
  49503. // This enables them to be grouped later.
  49504. recordCommitTime();
  49505. }
  49506. // Commit all the side-effects within a tree. We'll do this in two passes.
  49507. // The first pass performs all the host insertions, updates, deletions and
  49508. // ref unmounts.
  49509. nextEffect = firstEffect;
  49510. startCommitHostEffectsTimer();
  49511. while (nextEffect !== null) {
  49512. var _didError = false;
  49513. var _error = void 0;
  49514. {
  49515. invokeGuardedCallback(null, commitAllHostEffects, null);
  49516. if (hasCaughtError()) {
  49517. _didError = true;
  49518. _error = clearCaughtError();
  49519. }
  49520. }
  49521. if (_didError) {
  49522. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49523. captureCommitPhaseError(nextEffect, _error);
  49524. // Clean-up
  49525. if (nextEffect !== null) {
  49526. nextEffect = nextEffect.nextEffect;
  49527. }
  49528. }
  49529. }
  49530. stopCommitHostEffectsTimer();
  49531. resetAfterCommit(root.containerInfo);
  49532. // The work-in-progress tree is now the current tree. This must come after
  49533. // the first pass of the commit phase, so that the previous tree is still
  49534. // current during componentWillUnmount, but before the second pass, so that
  49535. // the finished work is current during componentDidMount/Update.
  49536. root.current = finishedWork;
  49537. // In the second pass we'll perform all life-cycles and ref callbacks.
  49538. // Life-cycles happen as a separate pass so that all placements, updates,
  49539. // and deletions in the entire tree have already been invoked.
  49540. // This pass also triggers any renderer-specific initial effects.
  49541. nextEffect = firstEffect;
  49542. startCommitLifeCyclesTimer();
  49543. while (nextEffect !== null) {
  49544. var _didError2 = false;
  49545. var _error2 = void 0;
  49546. {
  49547. invokeGuardedCallback(null, commitAllLifeCycles, null, root, committedExpirationTime);
  49548. if (hasCaughtError()) {
  49549. _didError2 = true;
  49550. _error2 = clearCaughtError();
  49551. }
  49552. }
  49553. if (_didError2) {
  49554. !(nextEffect !== null) ? invariant(false, 'Should have next effect. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49555. captureCommitPhaseError(nextEffect, _error2);
  49556. if (nextEffect !== null) {
  49557. nextEffect = nextEffect.nextEffect;
  49558. }
  49559. }
  49560. }
  49561. if (enableHooks && firstEffect !== null && rootWithPendingPassiveEffects !== null) {
  49562. // This commit included a passive effect. These do not need to fire until
  49563. // after the next paint. Schedule an callback to fire them in an async
  49564. // event. To ensure serial execution, the callback will be flushed early if
  49565. // we enter rootWithPendingPassiveEffects commit phase before then.
  49566. var callback = commitPassiveEffects.bind(null, root, firstEffect);
  49567. if (enableSchedulerTracing) {
  49568. // TODO: Avoid this extra callback by mutating the tracing ref directly,
  49569. // like we do at the beginning of commitRoot. I've opted not to do that
  49570. // here because that code is still in flux.
  49571. callback = tracing.unstable_wrap(callback);
  49572. }
  49573. passiveEffectCallbackHandle = scheduler.unstable_scheduleCallback(callback);
  49574. passiveEffectCallback = callback;
  49575. }
  49576. isCommitting$1 = false;
  49577. isWorking = false;
  49578. stopCommitLifeCyclesTimer();
  49579. stopCommitTimer();
  49580. onCommitRoot(finishedWork.stateNode);
  49581. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49582. ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork);
  49583. }
  49584. var updateExpirationTimeAfterCommit = finishedWork.expirationTime;
  49585. var childExpirationTimeAfterCommit = finishedWork.childExpirationTime;
  49586. var earliestRemainingTimeAfterCommit = childExpirationTimeAfterCommit > updateExpirationTimeAfterCommit ? childExpirationTimeAfterCommit : updateExpirationTimeAfterCommit;
  49587. if (earliestRemainingTimeAfterCommit === NoWork) {
  49588. // If there's no remaining work, we can clear the set of already failed
  49589. // error boundaries.
  49590. legacyErrorBoundariesThatAlreadyFailed = null;
  49591. }
  49592. onCommit(root, earliestRemainingTimeAfterCommit);
  49593. if (enableSchedulerTracing) {
  49594. tracing.__interactionsRef.current = prevInteractions;
  49595. var subscriber = void 0;
  49596. try {
  49597. subscriber = tracing.__subscriberRef.current;
  49598. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  49599. var threadID = computeThreadID(committedExpirationTime, root.interactionThreadID);
  49600. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  49601. }
  49602. } catch (error) {
  49603. // It's not safe for commitRoot() to throw.
  49604. // Store the error for now and we'll re-throw in finishRendering().
  49605. if (!hasUnhandledError) {
  49606. hasUnhandledError = true;
  49607. unhandledError = error;
  49608. }
  49609. } finally {
  49610. // Clear completed interactions from the pending Map.
  49611. // Unless the render was suspended or cascading work was scheduled,
  49612. // In which case– leave pending interactions until the subsequent render.
  49613. var pendingInteractionMap = root.pendingInteractionMap;
  49614. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  49615. // Only decrement the pending interaction count if we're done.
  49616. // If there's still work at the current priority,
  49617. // That indicates that we are waiting for suspense data.
  49618. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  49619. pendingInteractionMap.delete(scheduledExpirationTime);
  49620. scheduledInteractions.forEach(function (interaction) {
  49621. interaction.__count--;
  49622. if (subscriber !== null && interaction.__count === 0) {
  49623. try {
  49624. subscriber.onInteractionScheduledWorkCompleted(interaction);
  49625. } catch (error) {
  49626. // It's not safe for commitRoot() to throw.
  49627. // Store the error for now and we'll re-throw in finishRendering().
  49628. if (!hasUnhandledError) {
  49629. hasUnhandledError = true;
  49630. unhandledError = error;
  49631. }
  49632. }
  49633. }
  49634. });
  49635. }
  49636. });
  49637. }
  49638. }
  49639. }
  49640. function resetChildExpirationTime(workInProgress, renderTime) {
  49641. if (renderTime !== Never && workInProgress.childExpirationTime === Never) {
  49642. // The children of this component are hidden. Don't bubble their
  49643. // expiration times.
  49644. return;
  49645. }
  49646. var newChildExpirationTime = NoWork;
  49647. // Bubble up the earliest expiration time.
  49648. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49649. // We're in profiling mode.
  49650. // Let's use this same traversal to update the render durations.
  49651. var actualDuration = workInProgress.actualDuration;
  49652. var treeBaseDuration = workInProgress.selfBaseDuration;
  49653. // When a fiber is cloned, its actualDuration is reset to 0.
  49654. // This value will only be updated if work is done on the fiber (i.e. it doesn't bailout).
  49655. // When work is done, it should bubble to the parent's actualDuration.
  49656. // If the fiber has not been cloned though, (meaning no work was done),
  49657. // Then this value will reflect the amount of time spent working on a previous render.
  49658. // In that case it should not bubble.
  49659. // We determine whether it was cloned by comparing the child pointer.
  49660. var shouldBubbleActualDurations = workInProgress.alternate === null || workInProgress.child !== workInProgress.alternate.child;
  49661. var child = workInProgress.child;
  49662. while (child !== null) {
  49663. var childUpdateExpirationTime = child.expirationTime;
  49664. var childChildExpirationTime = child.childExpirationTime;
  49665. if (childUpdateExpirationTime > newChildExpirationTime) {
  49666. newChildExpirationTime = childUpdateExpirationTime;
  49667. }
  49668. if (childChildExpirationTime > newChildExpirationTime) {
  49669. newChildExpirationTime = childChildExpirationTime;
  49670. }
  49671. if (shouldBubbleActualDurations) {
  49672. actualDuration += child.actualDuration;
  49673. }
  49674. treeBaseDuration += child.treeBaseDuration;
  49675. child = child.sibling;
  49676. }
  49677. workInProgress.actualDuration = actualDuration;
  49678. workInProgress.treeBaseDuration = treeBaseDuration;
  49679. } else {
  49680. var _child = workInProgress.child;
  49681. while (_child !== null) {
  49682. var _childUpdateExpirationTime = _child.expirationTime;
  49683. var _childChildExpirationTime = _child.childExpirationTime;
  49684. if (_childUpdateExpirationTime > newChildExpirationTime) {
  49685. newChildExpirationTime = _childUpdateExpirationTime;
  49686. }
  49687. if (_childChildExpirationTime > newChildExpirationTime) {
  49688. newChildExpirationTime = _childChildExpirationTime;
  49689. }
  49690. _child = _child.sibling;
  49691. }
  49692. }
  49693. workInProgress.childExpirationTime = newChildExpirationTime;
  49694. }
  49695. function completeUnitOfWork(workInProgress) {
  49696. // Attempt to complete the current unit of work, then move to the
  49697. // next sibling. If there are no more siblings, return to the
  49698. // parent fiber.
  49699. while (true) {
  49700. // The current, flushed, state of this fiber is the alternate.
  49701. // Ideally nothing should rely on this, but relying on it here
  49702. // means that we don't need an additional field on the work in
  49703. // progress.
  49704. var current$$1 = workInProgress.alternate;
  49705. {
  49706. setCurrentFiber(workInProgress);
  49707. }
  49708. var returnFiber = workInProgress.return;
  49709. var siblingFiber = workInProgress.sibling;
  49710. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  49711. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49712. // Don't replay if it fails during completion phase.
  49713. mayReplayFailedUnitOfWork = false;
  49714. }
  49715. // This fiber completed.
  49716. // Remember we're completing this unit so we can find a boundary if it fails.
  49717. nextUnitOfWork = workInProgress;
  49718. if (enableProfilerTimer) {
  49719. if (workInProgress.mode & ProfileMode) {
  49720. startProfilerTimer(workInProgress);
  49721. }
  49722. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  49723. if (workInProgress.mode & ProfileMode) {
  49724. // Update render duration assuming we didn't error.
  49725. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  49726. }
  49727. } else {
  49728. nextUnitOfWork = completeWork(current$$1, workInProgress, nextRenderExpirationTime);
  49729. }
  49730. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49731. // We're out of completion phase so replaying is fine now.
  49732. mayReplayFailedUnitOfWork = true;
  49733. }
  49734. stopWorkTimer(workInProgress);
  49735. resetChildExpirationTime(workInProgress, nextRenderExpirationTime);
  49736. {
  49737. resetCurrentFiber();
  49738. }
  49739. if (nextUnitOfWork !== null) {
  49740. // Completing this fiber spawned new work. Work on that next.
  49741. return nextUnitOfWork;
  49742. }
  49743. if (returnFiber !== null &&
  49744. // Do not append effects to parents if a sibling failed to complete
  49745. (returnFiber.effectTag & Incomplete) === NoEffect) {
  49746. // Append all the effects of the subtree and this fiber onto the effect
  49747. // list of the parent. The completion order of the children affects the
  49748. // side-effect order.
  49749. if (returnFiber.firstEffect === null) {
  49750. returnFiber.firstEffect = workInProgress.firstEffect;
  49751. }
  49752. if (workInProgress.lastEffect !== null) {
  49753. if (returnFiber.lastEffect !== null) {
  49754. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  49755. }
  49756. returnFiber.lastEffect = workInProgress.lastEffect;
  49757. }
  49758. // If this fiber had side-effects, we append it AFTER the children's
  49759. // side-effects. We can perform certain side-effects earlier if
  49760. // needed, by doing multiple passes over the effect list. We don't want
  49761. // to schedule our own side-effect on our own list because if end up
  49762. // reusing children we'll schedule this effect onto itself since we're
  49763. // at the end.
  49764. var effectTag = workInProgress.effectTag;
  49765. // Skip both NoWork and PerformedWork tags when creating the effect list.
  49766. // PerformedWork effect is read by React DevTools but shouldn't be committed.
  49767. if (effectTag > PerformedWork) {
  49768. if (returnFiber.lastEffect !== null) {
  49769. returnFiber.lastEffect.nextEffect = workInProgress;
  49770. } else {
  49771. returnFiber.firstEffect = workInProgress;
  49772. }
  49773. returnFiber.lastEffect = workInProgress;
  49774. }
  49775. }
  49776. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49777. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49778. }
  49779. if (siblingFiber !== null) {
  49780. // If there is more work to do in this returnFiber, do that next.
  49781. return siblingFiber;
  49782. } else if (returnFiber !== null) {
  49783. // If there's no more work in this returnFiber. Complete the returnFiber.
  49784. workInProgress = returnFiber;
  49785. continue;
  49786. } else {
  49787. // We've reached the root.
  49788. return null;
  49789. }
  49790. } else {
  49791. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  49792. // Record the render duration for the fiber that errored.
  49793. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  49794. // Include the time spent working on failed children before continuing.
  49795. var actualDuration = workInProgress.actualDuration;
  49796. var child = workInProgress.child;
  49797. while (child !== null) {
  49798. actualDuration += child.actualDuration;
  49799. child = child.sibling;
  49800. }
  49801. workInProgress.actualDuration = actualDuration;
  49802. }
  49803. // This fiber did not complete because something threw. Pop values off
  49804. // the stack without entering the complete phase. If this is a boundary,
  49805. // capture values if possible.
  49806. var next = unwindWork(workInProgress, nextRenderExpirationTime);
  49807. // Because this fiber did not complete, don't reset its expiration time.
  49808. if (workInProgress.effectTag & DidCapture) {
  49809. // Restarting an error boundary
  49810. stopFailedWorkTimer(workInProgress);
  49811. } else {
  49812. stopWorkTimer(workInProgress);
  49813. }
  49814. {
  49815. resetCurrentFiber();
  49816. }
  49817. if (next !== null) {
  49818. stopWorkTimer(workInProgress);
  49819. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49820. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49821. }
  49822. // If completing this work spawned new work, do that next. We'll come
  49823. // back here again.
  49824. // Since we're restarting, remove anything that is not a host effect
  49825. // from the effect tag.
  49826. next.effectTag &= HostEffectMask;
  49827. return next;
  49828. }
  49829. if (returnFiber !== null) {
  49830. // Mark the parent fiber as incomplete and clear its effect list.
  49831. returnFiber.firstEffect = returnFiber.lastEffect = null;
  49832. returnFiber.effectTag |= Incomplete;
  49833. }
  49834. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49835. ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress);
  49836. }
  49837. if (siblingFiber !== null) {
  49838. // If there is more work to do in this returnFiber, do that next.
  49839. return siblingFiber;
  49840. } else if (returnFiber !== null) {
  49841. // If there's no more work in this returnFiber. Complete the returnFiber.
  49842. workInProgress = returnFiber;
  49843. continue;
  49844. } else {
  49845. return null;
  49846. }
  49847. }
  49848. }
  49849. // Without this explicit null return Flow complains of invalid return type
  49850. // TODO Remove the above while(true) loop
  49851. // eslint-disable-next-line no-unreachable
  49852. return null;
  49853. }
  49854. function performUnitOfWork(workInProgress) {
  49855. // The current, flushed, state of this fiber is the alternate.
  49856. // Ideally nothing should rely on this, but relying on it here
  49857. // means that we don't need an additional field on the work in
  49858. // progress.
  49859. var current$$1 = workInProgress.alternate;
  49860. // See if beginning this work spawns more work.
  49861. startWorkTimer(workInProgress);
  49862. {
  49863. setCurrentFiber(workInProgress);
  49864. }
  49865. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49866. stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress);
  49867. }
  49868. var next = void 0;
  49869. if (enableProfilerTimer) {
  49870. if (workInProgress.mode & ProfileMode) {
  49871. startProfilerTimer(workInProgress);
  49872. }
  49873. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  49874. workInProgress.memoizedProps = workInProgress.pendingProps;
  49875. if (workInProgress.mode & ProfileMode) {
  49876. // Record the render duration assuming we didn't bailout (or error).
  49877. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
  49878. }
  49879. } else {
  49880. next = beginWork(current$$1, workInProgress, nextRenderExpirationTime);
  49881. workInProgress.memoizedProps = workInProgress.pendingProps;
  49882. }
  49883. {
  49884. resetCurrentFiber();
  49885. if (isReplayingFailedUnitOfWork) {
  49886. // Currently replaying a failed unit of work. This should be unreachable,
  49887. // because the render phase is meant to be idempotent, and it should
  49888. // have thrown again. Since it didn't, rethrow the original error, so
  49889. // React's internal stack is not misaligned.
  49890. rethrowOriginalError();
  49891. }
  49892. }
  49893. if ( true && ReactFiberInstrumentation_1.debugTool) {
  49894. ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress);
  49895. }
  49896. if (next === null) {
  49897. // If this doesn't spawn new work, complete the current work.
  49898. next = completeUnitOfWork(workInProgress);
  49899. }
  49900. ReactCurrentOwner$2.current = null;
  49901. return next;
  49902. }
  49903. function workLoop(isYieldy) {
  49904. if (!isYieldy) {
  49905. // Flush work without yielding
  49906. while (nextUnitOfWork !== null) {
  49907. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  49908. }
  49909. } else {
  49910. // Flush asynchronous work until there's a higher priority event
  49911. while (nextUnitOfWork !== null && !shouldYieldToRenderer()) {
  49912. nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
  49913. }
  49914. }
  49915. }
  49916. function renderRoot(root, isYieldy) {
  49917. !!isWorking ? invariant(false, 'renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  49918. flushPassiveEffects();
  49919. isWorking = true;
  49920. if (enableHooks) {
  49921. ReactCurrentOwner$2.currentDispatcher = Dispatcher;
  49922. } else {
  49923. ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;
  49924. }
  49925. var expirationTime = root.nextExpirationTimeToWorkOn;
  49926. // Check if we're starting from a fresh stack, or if we're resuming from
  49927. // previously yielded work.
  49928. if (expirationTime !== nextRenderExpirationTime || root !== nextRoot || nextUnitOfWork === null) {
  49929. // Reset the stack and start working from the root.
  49930. resetStack();
  49931. nextRoot = root;
  49932. nextRenderExpirationTime = expirationTime;
  49933. nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime);
  49934. root.pendingCommitExpirationTime = NoWork;
  49935. if (enableSchedulerTracing) {
  49936. // Determine which interactions this batch of work currently includes,
  49937. // So that we can accurately attribute time spent working on it,
  49938. var interactions = new Set();
  49939. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  49940. if (scheduledExpirationTime >= expirationTime) {
  49941. scheduledInteractions.forEach(function (interaction) {
  49942. return interactions.add(interaction);
  49943. });
  49944. }
  49945. });
  49946. // Store the current set of interactions on the FiberRoot for a few reasons:
  49947. // We can re-use it in hot functions like renderRoot() without having to recalculate it.
  49948. // We will also use it in commitWork() to pass to any Profiler onRender() hooks.
  49949. // This also provides DevTools with a way to access it when the onCommitRoot() hook is called.
  49950. root.memoizedInteractions = interactions;
  49951. if (interactions.size > 0) {
  49952. var subscriber = tracing.__subscriberRef.current;
  49953. if (subscriber !== null) {
  49954. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  49955. try {
  49956. subscriber.onWorkStarted(interactions, threadID);
  49957. } catch (error) {
  49958. // Work thrown by an interaction tracing subscriber should be rethrown,
  49959. // But only once it's safe (to avoid leaveing the scheduler in an invalid state).
  49960. // Store the error for now and we'll re-throw in finishRendering().
  49961. if (!hasUnhandledError) {
  49962. hasUnhandledError = true;
  49963. unhandledError = error;
  49964. }
  49965. }
  49966. }
  49967. }
  49968. }
  49969. }
  49970. var prevInteractions = null;
  49971. if (enableSchedulerTracing) {
  49972. // We're about to start new traced work.
  49973. // Restore pending interactions so cascading work triggered during the render phase will be accounted for.
  49974. prevInteractions = tracing.__interactionsRef.current;
  49975. tracing.__interactionsRef.current = root.memoizedInteractions;
  49976. }
  49977. var didFatal = false;
  49978. startWorkLoopTimer(nextUnitOfWork);
  49979. do {
  49980. try {
  49981. workLoop(isYieldy);
  49982. } catch (thrownValue) {
  49983. resetContextDependences();
  49984. resetHooks();
  49985. // Reset in case completion throws.
  49986. // This is only used in DEV and when replaying is on.
  49987. var mayReplay = void 0;
  49988. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  49989. mayReplay = mayReplayFailedUnitOfWork;
  49990. mayReplayFailedUnitOfWork = true;
  49991. }
  49992. if (nextUnitOfWork === null) {
  49993. // This is a fatal error.
  49994. didFatal = true;
  49995. onUncaughtError(thrownValue);
  49996. } else {
  49997. if (enableProfilerTimer && nextUnitOfWork.mode & ProfileMode) {
  49998. // Record the time spent rendering before an error was thrown.
  49999. // This avoids inaccurate Profiler durations in the case of a suspended render.
  50000. stopProfilerTimerIfRunningAndRecordDelta(nextUnitOfWork, true);
  50001. }
  50002. {
  50003. // Reset global debug state
  50004. // We assume this is defined in DEV
  50005. resetCurrentlyProcessingQueue();
  50006. }
  50007. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  50008. if (mayReplay) {
  50009. var failedUnitOfWork = nextUnitOfWork;
  50010. replayUnitOfWork(failedUnitOfWork, thrownValue, isYieldy);
  50011. }
  50012. }
  50013. // TODO: we already know this isn't true in some cases.
  50014. // At least this shows a nicer error message until we figure out the cause.
  50015. // https://github.com/facebook/react/issues/12449#issuecomment-386727431
  50016. !(nextUnitOfWork !== null) ? invariant(false, 'Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.') : void 0;
  50017. var sourceFiber = nextUnitOfWork;
  50018. var returnFiber = sourceFiber.return;
  50019. if (returnFiber === null) {
  50020. // This is the root. The root could capture its own errors. However,
  50021. // we don't know if it errors before or after we pushed the host
  50022. // context. This information is needed to avoid a stack mismatch.
  50023. // Because we're not sure, treat this as a fatal error. We could track
  50024. // which phase it fails in, but doesn't seem worth it. At least
  50025. // for now.
  50026. didFatal = true;
  50027. onUncaughtError(thrownValue);
  50028. } else {
  50029. throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderExpirationTime);
  50030. nextUnitOfWork = completeUnitOfWork(sourceFiber);
  50031. continue;
  50032. }
  50033. }
  50034. }
  50035. break;
  50036. } while (true);
  50037. if (enableSchedulerTracing) {
  50038. // Traced work is done for now; restore the previous interactions.
  50039. tracing.__interactionsRef.current = prevInteractions;
  50040. }
  50041. // We're done performing work. Time to clean up.
  50042. isWorking = false;
  50043. ReactCurrentOwner$2.currentDispatcher = null;
  50044. resetContextDependences();
  50045. resetHooks();
  50046. // Yield back to main thread.
  50047. if (didFatal) {
  50048. var _didCompleteRoot = false;
  50049. stopWorkLoopTimer(interruptedBy, _didCompleteRoot);
  50050. interruptedBy = null;
  50051. // There was a fatal error.
  50052. {
  50053. resetStackAfterFatalErrorInDev();
  50054. }
  50055. // `nextRoot` points to the in-progress root. A non-null value indicates
  50056. // that we're in the middle of an async render. Set it to null to indicate
  50057. // there's no more work to be done in the current batch.
  50058. nextRoot = null;
  50059. onFatal(root);
  50060. return;
  50061. }
  50062. if (nextUnitOfWork !== null) {
  50063. // There's still remaining async work in this tree, but we ran out of time
  50064. // in the current frame. Yield back to the renderer. Unless we're
  50065. // interrupted by a higher priority update, we'll continue later from where
  50066. // we left off.
  50067. var _didCompleteRoot2 = false;
  50068. stopWorkLoopTimer(interruptedBy, _didCompleteRoot2);
  50069. interruptedBy = null;
  50070. onYield(root);
  50071. return;
  50072. }
  50073. // We completed the whole tree.
  50074. var didCompleteRoot = true;
  50075. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  50076. var rootWorkInProgress = root.current.alternate;
  50077. !(rootWorkInProgress !== null) ? invariant(false, 'Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  50078. // `nextRoot` points to the in-progress root. A non-null value indicates
  50079. // that we're in the middle of an async render. Set it to null to indicate
  50080. // there's no more work to be done in the current batch.
  50081. nextRoot = null;
  50082. interruptedBy = null;
  50083. if (nextRenderDidError) {
  50084. // There was an error
  50085. if (hasLowerPriorityWork(root, expirationTime)) {
  50086. // There's lower priority work. If so, it may have the effect of fixing
  50087. // the exception that was just thrown. Exit without committing. This is
  50088. // similar to a suspend, but without a timeout because we're not waiting
  50089. // for a promise to resolve. React will restart at the lower
  50090. // priority level.
  50091. markSuspendedPriorityLevel(root, expirationTime);
  50092. var suspendedExpirationTime = expirationTime;
  50093. var rootExpirationTime = root.expirationTime;
  50094. onSuspend(root, rootWorkInProgress, suspendedExpirationTime, rootExpirationTime, -1 // Indicates no timeout
  50095. );
  50096. return;
  50097. } else if (
  50098. // There's no lower priority work, but we're rendering asynchronously.
  50099. // Synchronsouly attempt to render the same level one more time. This is
  50100. // similar to a suspend, but without a timeout because we're not waiting
  50101. // for a promise to resolve.
  50102. !root.didError && isYieldy) {
  50103. root.didError = true;
  50104. var _suspendedExpirationTime = root.nextExpirationTimeToWorkOn = expirationTime;
  50105. var _rootExpirationTime = root.expirationTime = Sync;
  50106. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime, _rootExpirationTime, -1 // Indicates no timeout
  50107. );
  50108. return;
  50109. }
  50110. }
  50111. if (isYieldy && nextLatestAbsoluteTimeoutMs !== -1) {
  50112. // The tree was suspended.
  50113. var _suspendedExpirationTime2 = expirationTime;
  50114. markSuspendedPriorityLevel(root, _suspendedExpirationTime2);
  50115. // Find the earliest uncommitted expiration time in the tree, including
  50116. // work that is suspended. The timeout threshold cannot be longer than
  50117. // the overall expiration.
  50118. var earliestExpirationTime = findEarliestOutstandingPriorityLevel(root, expirationTime);
  50119. var earliestExpirationTimeMs = expirationTimeToMs(earliestExpirationTime);
  50120. if (earliestExpirationTimeMs < nextLatestAbsoluteTimeoutMs) {
  50121. nextLatestAbsoluteTimeoutMs = earliestExpirationTimeMs;
  50122. }
  50123. // Subtract the current time from the absolute timeout to get the number
  50124. // of milliseconds until the timeout. In other words, convert an absolute
  50125. // timestamp to a relative time. This is the value that is passed
  50126. // to `setTimeout`.
  50127. var currentTimeMs = expirationTimeToMs(requestCurrentTime());
  50128. var msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs;
  50129. msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout;
  50130. // TODO: Account for the Just Noticeable Difference
  50131. var _rootExpirationTime2 = root.expirationTime;
  50132. onSuspend(root, rootWorkInProgress, _suspendedExpirationTime2, _rootExpirationTime2, msUntilTimeout);
  50133. return;
  50134. }
  50135. // Ready to commit.
  50136. onComplete(root, rootWorkInProgress, expirationTime);
  50137. }
  50138. function captureCommitPhaseError(sourceFiber, value) {
  50139. var expirationTime = Sync;
  50140. var fiber = sourceFiber.return;
  50141. while (fiber !== null) {
  50142. switch (fiber.tag) {
  50143. case ClassComponent:
  50144. var ctor = fiber.type;
  50145. var instance = fiber.stateNode;
  50146. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  50147. var errorInfo = createCapturedValue(value, sourceFiber);
  50148. var update = createClassErrorUpdate(fiber, errorInfo, expirationTime);
  50149. enqueueUpdate(fiber, update);
  50150. scheduleWork(fiber, expirationTime);
  50151. return;
  50152. }
  50153. break;
  50154. case HostRoot:
  50155. {
  50156. var _errorInfo = createCapturedValue(value, sourceFiber);
  50157. var _update = createRootErrorUpdate(fiber, _errorInfo, expirationTime);
  50158. enqueueUpdate(fiber, _update);
  50159. scheduleWork(fiber, expirationTime);
  50160. return;
  50161. }
  50162. }
  50163. fiber = fiber.return;
  50164. }
  50165. if (sourceFiber.tag === HostRoot) {
  50166. // Error was thrown at the root. There is no parent, so the root
  50167. // itself should capture it.
  50168. var rootFiber = sourceFiber;
  50169. var _errorInfo2 = createCapturedValue(value, rootFiber);
  50170. var _update2 = createRootErrorUpdate(rootFiber, _errorInfo2, expirationTime);
  50171. enqueueUpdate(rootFiber, _update2);
  50172. scheduleWork(rootFiber, expirationTime);
  50173. }
  50174. }
  50175. function computeThreadID(expirationTime, interactionThreadID) {
  50176. // Interaction threads are unique per root and expiration time.
  50177. return expirationTime * 1000 + interactionThreadID;
  50178. }
  50179. // Creates a unique async expiration time.
  50180. function computeUniqueAsyncExpiration() {
  50181. var currentTime = requestCurrentTime();
  50182. var result = computeAsyncExpiration(currentTime);
  50183. if (result >= lastUniqueAsyncExpiration) {
  50184. // Since we assume the current time monotonically increases, we only hit
  50185. // this branch when computeUniqueAsyncExpiration is fired multiple times
  50186. // within a 200ms window (or whatever the async bucket size is).
  50187. result = lastUniqueAsyncExpiration - 1;
  50188. }
  50189. lastUniqueAsyncExpiration = result;
  50190. return lastUniqueAsyncExpiration;
  50191. }
  50192. function computeExpirationForFiber(currentTime, fiber) {
  50193. var expirationTime = void 0;
  50194. if (expirationContext !== NoWork) {
  50195. // An explicit expiration context was set;
  50196. expirationTime = expirationContext;
  50197. } else if (isWorking) {
  50198. if (isCommitting$1) {
  50199. // Updates that occur during the commit phase should have sync priority
  50200. // by default.
  50201. expirationTime = Sync;
  50202. } else {
  50203. // Updates during the render phase should expire at the same time as
  50204. // the work that is being rendered.
  50205. expirationTime = nextRenderExpirationTime;
  50206. }
  50207. } else {
  50208. // No explicit expiration context was set, and we're not currently
  50209. // performing work. Calculate a new expiration time.
  50210. if (fiber.mode & ConcurrentMode) {
  50211. if (isBatchingInteractiveUpdates) {
  50212. // This is an interactive update
  50213. expirationTime = computeInteractiveExpiration(currentTime);
  50214. } else {
  50215. // This is an async update
  50216. expirationTime = computeAsyncExpiration(currentTime);
  50217. }
  50218. // If we're in the middle of rendering a tree, do not update at the same
  50219. // expiration time that is already rendering.
  50220. if (nextRoot !== null && expirationTime === nextRenderExpirationTime) {
  50221. expirationTime -= 1;
  50222. }
  50223. } else {
  50224. // This is a sync update
  50225. expirationTime = Sync;
  50226. }
  50227. }
  50228. if (isBatchingInteractiveUpdates) {
  50229. // This is an interactive update. Keep track of the lowest pending
  50230. // interactive expiration time. This allows us to synchronously flush
  50231. // all interactive updates when needed.
  50232. if (lowestPriorityPendingInteractiveExpirationTime === NoWork || expirationTime < lowestPriorityPendingInteractiveExpirationTime) {
  50233. lowestPriorityPendingInteractiveExpirationTime = expirationTime;
  50234. }
  50235. }
  50236. return expirationTime;
  50237. }
  50238. function renderDidSuspend(root, absoluteTimeoutMs, suspendedTime) {
  50239. // Schedule the timeout.
  50240. if (absoluteTimeoutMs >= 0 && nextLatestAbsoluteTimeoutMs < absoluteTimeoutMs) {
  50241. nextLatestAbsoluteTimeoutMs = absoluteTimeoutMs;
  50242. }
  50243. }
  50244. function renderDidError() {
  50245. nextRenderDidError = true;
  50246. }
  50247. function retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {
  50248. var retryTime = void 0;
  50249. if (isPriorityLevelSuspended(root, suspendedTime)) {
  50250. // Ping at the original level
  50251. retryTime = suspendedTime;
  50252. markPingedPriorityLevel(root, retryTime);
  50253. } else {
  50254. // Suspense already timed out. Compute a new expiration time
  50255. var currentTime = requestCurrentTime();
  50256. retryTime = computeExpirationForFiber(currentTime, boundaryFiber);
  50257. markPendingPriorityLevel(root, retryTime);
  50258. }
  50259. // TODO: If the suspense fiber has already rendered the primary children
  50260. // without suspending (that is, all of the promises have already resolved),
  50261. // we should not trigger another update here. One case this happens is when
  50262. // we are in sync mode and a single promise is thrown both on initial render
  50263. // and on update; we attach two .then(retrySuspendedRoot) callbacks and each
  50264. // one performs Sync work, rerendering the Suspense.
  50265. if ((boundaryFiber.mode & ConcurrentMode) !== NoContext) {
  50266. if (root === nextRoot && nextRenderExpirationTime === suspendedTime) {
  50267. // Received a ping at the same priority level at which we're currently
  50268. // rendering. Restart from the root.
  50269. nextRoot = null;
  50270. }
  50271. }
  50272. scheduleWorkToRoot(boundaryFiber, retryTime);
  50273. if ((boundaryFiber.mode & ConcurrentMode) === NoContext) {
  50274. // Outside of concurrent mode, we must schedule an update on the source
  50275. // fiber, too, since it already committed in an inconsistent state and
  50276. // therefore does not have any pending work.
  50277. scheduleWorkToRoot(sourceFiber, retryTime);
  50278. var sourceTag = sourceFiber.tag;
  50279. if (sourceTag === ClassComponent && sourceFiber.stateNode !== null) {
  50280. // When we try rendering again, we should not reuse the current fiber,
  50281. // since it's known to be in an inconsistent state. Use a force updte to
  50282. // prevent a bail out.
  50283. var update = createUpdate(retryTime);
  50284. update.tag = ForceUpdate;
  50285. enqueueUpdate(sourceFiber, update);
  50286. }
  50287. }
  50288. var rootExpirationTime = root.expirationTime;
  50289. if (rootExpirationTime !== NoWork) {
  50290. requestWork(root, rootExpirationTime);
  50291. }
  50292. }
  50293. function scheduleWorkToRoot(fiber, expirationTime) {
  50294. recordScheduleUpdate();
  50295. {
  50296. if (fiber.tag === ClassComponent) {
  50297. var instance = fiber.stateNode;
  50298. warnAboutInvalidUpdates(instance);
  50299. }
  50300. }
  50301. // Update the source fiber's expiration time
  50302. if (fiber.expirationTime < expirationTime) {
  50303. fiber.expirationTime = expirationTime;
  50304. }
  50305. var alternate = fiber.alternate;
  50306. if (alternate !== null && alternate.expirationTime < expirationTime) {
  50307. alternate.expirationTime = expirationTime;
  50308. }
  50309. // Walk the parent path to the root and update the child expiration time.
  50310. var node = fiber.return;
  50311. var root = null;
  50312. if (node === null && fiber.tag === HostRoot) {
  50313. root = fiber.stateNode;
  50314. } else {
  50315. while (node !== null) {
  50316. alternate = node.alternate;
  50317. if (node.childExpirationTime < expirationTime) {
  50318. node.childExpirationTime = expirationTime;
  50319. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  50320. alternate.childExpirationTime = expirationTime;
  50321. }
  50322. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  50323. alternate.childExpirationTime = expirationTime;
  50324. }
  50325. if (node.return === null && node.tag === HostRoot) {
  50326. root = node.stateNode;
  50327. break;
  50328. }
  50329. node = node.return;
  50330. }
  50331. }
  50332. if (enableSchedulerTracing) {
  50333. if (root !== null) {
  50334. var interactions = tracing.__interactionsRef.current;
  50335. if (interactions.size > 0) {
  50336. var pendingInteractionMap = root.pendingInteractionMap;
  50337. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  50338. if (pendingInteractions != null) {
  50339. interactions.forEach(function (interaction) {
  50340. if (!pendingInteractions.has(interaction)) {
  50341. // Update the pending async work count for previously unscheduled interaction.
  50342. interaction.__count++;
  50343. }
  50344. pendingInteractions.add(interaction);
  50345. });
  50346. } else {
  50347. pendingInteractionMap.set(expirationTime, new Set(interactions));
  50348. // Update the pending async work count for the current interactions.
  50349. interactions.forEach(function (interaction) {
  50350. interaction.__count++;
  50351. });
  50352. }
  50353. var subscriber = tracing.__subscriberRef.current;
  50354. if (subscriber !== null) {
  50355. var threadID = computeThreadID(expirationTime, root.interactionThreadID);
  50356. subscriber.onWorkScheduled(interactions, threadID);
  50357. }
  50358. }
  50359. }
  50360. }
  50361. return root;
  50362. }
  50363. function scheduleWork(fiber, expirationTime) {
  50364. var root = scheduleWorkToRoot(fiber, expirationTime);
  50365. if (root === null) {
  50366. {
  50367. switch (fiber.tag) {
  50368. case ClassComponent:
  50369. warnAboutUpdateOnUnmounted(fiber, true);
  50370. break;
  50371. case FunctionComponent:
  50372. case ForwardRef:
  50373. case MemoComponent:
  50374. case SimpleMemoComponent:
  50375. warnAboutUpdateOnUnmounted(fiber, false);
  50376. break;
  50377. }
  50378. }
  50379. return;
  50380. }
  50381. if (!isWorking && nextRenderExpirationTime !== NoWork && expirationTime > nextRenderExpirationTime) {
  50382. // This is an interruption. (Used for performance tracking.)
  50383. interruptedBy = fiber;
  50384. resetStack();
  50385. }
  50386. markPendingPriorityLevel(root, expirationTime);
  50387. if (
  50388. // If we're in the render phase, we don't need to schedule this root
  50389. // for an update, because we'll do it before we exit...
  50390. !isWorking || isCommitting$1 ||
  50391. // ...unless this is a different root than the one we're rendering.
  50392. nextRoot !== root) {
  50393. var rootExpirationTime = root.expirationTime;
  50394. requestWork(root, rootExpirationTime);
  50395. }
  50396. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  50397. // Reset this back to zero so subsequent updates don't throw.
  50398. nestedUpdateCount = 0;
  50399. invariant(false, 'Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.');
  50400. }
  50401. }
  50402. function syncUpdates(fn, a, b, c, d) {
  50403. var previousExpirationContext = expirationContext;
  50404. expirationContext = Sync;
  50405. try {
  50406. return fn(a, b, c, d);
  50407. } finally {
  50408. expirationContext = previousExpirationContext;
  50409. }
  50410. }
  50411. // TODO: Everything below this is written as if it has been lifted to the
  50412. // renderers. I'll do this in a follow-up.
  50413. // Linked-list of roots
  50414. var firstScheduledRoot = null;
  50415. var lastScheduledRoot = null;
  50416. var callbackExpirationTime = NoWork;
  50417. var callbackID = void 0;
  50418. var isRendering = false;
  50419. var nextFlushedRoot = null;
  50420. var nextFlushedExpirationTime = NoWork;
  50421. var lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50422. var hasUnhandledError = false;
  50423. var unhandledError = null;
  50424. var isBatchingUpdates = false;
  50425. var isUnbatchingUpdates = false;
  50426. var isBatchingInteractiveUpdates = false;
  50427. var completedBatches = null;
  50428. var originalStartTimeMs = scheduler.unstable_now();
  50429. var currentRendererTime = msToExpirationTime(originalStartTimeMs);
  50430. var currentSchedulerTime = currentRendererTime;
  50431. // Use these to prevent an infinite loop of nested updates
  50432. var NESTED_UPDATE_LIMIT = 50;
  50433. var nestedUpdateCount = 0;
  50434. var lastCommittedRootDuringThisBatch = null;
  50435. function recomputeCurrentRendererTime() {
  50436. var currentTimeMs = scheduler.unstable_now() - originalStartTimeMs;
  50437. currentRendererTime = msToExpirationTime(currentTimeMs);
  50438. }
  50439. function scheduleCallbackWithExpirationTime(root, expirationTime) {
  50440. if (callbackExpirationTime !== NoWork) {
  50441. // A callback is already scheduled. Check its expiration time (timeout).
  50442. if (expirationTime < callbackExpirationTime) {
  50443. // Existing callback has sufficient timeout. Exit.
  50444. return;
  50445. } else {
  50446. if (callbackID !== null) {
  50447. // Existing callback has insufficient timeout. Cancel and schedule a
  50448. // new one.
  50449. scheduler.unstable_cancelCallback(callbackID);
  50450. }
  50451. }
  50452. // The request callback timer is already running. Don't start a new one.
  50453. } else {
  50454. startRequestCallbackTimer();
  50455. }
  50456. callbackExpirationTime = expirationTime;
  50457. var currentMs = scheduler.unstable_now() - originalStartTimeMs;
  50458. var expirationTimeMs = expirationTimeToMs(expirationTime);
  50459. var timeout = expirationTimeMs - currentMs;
  50460. callbackID = scheduler.unstable_scheduleCallback(performAsyncWork, { timeout: timeout });
  50461. }
  50462. // For every call to renderRoot, one of onFatal, onComplete, onSuspend, and
  50463. // onYield is called upon exiting. We use these in lieu of returning a tuple.
  50464. // I've also chosen not to inline them into renderRoot because these will
  50465. // eventually be lifted into the renderer.
  50466. function onFatal(root) {
  50467. root.finishedWork = null;
  50468. }
  50469. function onComplete(root, finishedWork, expirationTime) {
  50470. root.pendingCommitExpirationTime = expirationTime;
  50471. root.finishedWork = finishedWork;
  50472. }
  50473. function onSuspend(root, finishedWork, suspendedExpirationTime, rootExpirationTime, msUntilTimeout) {
  50474. root.expirationTime = rootExpirationTime;
  50475. if (msUntilTimeout === 0 && !shouldYieldToRenderer()) {
  50476. // Don't wait an additional tick. Commit the tree immediately.
  50477. root.pendingCommitExpirationTime = suspendedExpirationTime;
  50478. root.finishedWork = finishedWork;
  50479. } else if (msUntilTimeout > 0) {
  50480. // Wait `msUntilTimeout` milliseconds before committing.
  50481. root.timeoutHandle = scheduleTimeout(onTimeout.bind(null, root, finishedWork, suspendedExpirationTime), msUntilTimeout);
  50482. }
  50483. }
  50484. function onYield(root) {
  50485. root.finishedWork = null;
  50486. }
  50487. function onTimeout(root, finishedWork, suspendedExpirationTime) {
  50488. // The root timed out. Commit it.
  50489. root.pendingCommitExpirationTime = suspendedExpirationTime;
  50490. root.finishedWork = finishedWork;
  50491. // Read the current time before entering the commit phase. We can be
  50492. // certain this won't cause tearing related to batching of event updates
  50493. // because we're at the top of a timer event.
  50494. recomputeCurrentRendererTime();
  50495. currentSchedulerTime = currentRendererTime;
  50496. flushRoot(root, suspendedExpirationTime);
  50497. }
  50498. function onCommit(root, expirationTime) {
  50499. root.expirationTime = expirationTime;
  50500. root.finishedWork = null;
  50501. }
  50502. function requestCurrentTime() {
  50503. // requestCurrentTime is called by the scheduler to compute an expiration
  50504. // time.
  50505. //
  50506. // Expiration times are computed by adding to the current time (the start
  50507. // time). However, if two updates are scheduled within the same event, we
  50508. // should treat their start times as simultaneous, even if the actual clock
  50509. // time has advanced between the first and second call.
  50510. // In other words, because expiration times determine how updates are batched,
  50511. // we want all updates of like priority that occur within the same event to
  50512. // receive the same expiration time. Otherwise we get tearing.
  50513. //
  50514. // We keep track of two separate times: the current "renderer" time and the
  50515. // current "scheduler" time. The renderer time can be updated whenever; it
  50516. // only exists to minimize the calls performance.now.
  50517. //
  50518. // But the scheduler time can only be updated if there's no pending work, or
  50519. // if we know for certain that we're not in the middle of an event.
  50520. if (isRendering) {
  50521. // We're already rendering. Return the most recently read time.
  50522. return currentSchedulerTime;
  50523. }
  50524. // Check if there's pending work.
  50525. findHighestPriorityRoot();
  50526. if (nextFlushedExpirationTime === NoWork || nextFlushedExpirationTime === Never) {
  50527. // If there's no pending work, or if the pending work is offscreen, we can
  50528. // read the current time without risk of tearing.
  50529. recomputeCurrentRendererTime();
  50530. currentSchedulerTime = currentRendererTime;
  50531. return currentSchedulerTime;
  50532. }
  50533. // There's already pending work. We might be in the middle of a browser
  50534. // event. If we were to read the current time, it could cause multiple updates
  50535. // within the same event to receive different expiration times, leading to
  50536. // tearing. Return the last read time. During the next idle callback, the
  50537. // time will be updated.
  50538. return currentSchedulerTime;
  50539. }
  50540. // requestWork is called by the scheduler whenever a root receives an update.
  50541. // It's up to the renderer to call renderRoot at some point in the future.
  50542. function requestWork(root, expirationTime) {
  50543. addRootToSchedule(root, expirationTime);
  50544. if (isRendering) {
  50545. // Prevent reentrancy. Remaining work will be scheduled at the end of
  50546. // the currently rendering batch.
  50547. return;
  50548. }
  50549. if (isBatchingUpdates) {
  50550. // Flush work at the end of the batch.
  50551. if (isUnbatchingUpdates) {
  50552. // ...unless we're inside unbatchedUpdates, in which case we should
  50553. // flush it now.
  50554. nextFlushedRoot = root;
  50555. nextFlushedExpirationTime = Sync;
  50556. performWorkOnRoot(root, Sync, false);
  50557. }
  50558. return;
  50559. }
  50560. // TODO: Get rid of Sync and use current time?
  50561. if (expirationTime === Sync) {
  50562. performSyncWork();
  50563. } else {
  50564. scheduleCallbackWithExpirationTime(root, expirationTime);
  50565. }
  50566. }
  50567. function addRootToSchedule(root, expirationTime) {
  50568. // Add the root to the schedule.
  50569. // Check if this root is already part of the schedule.
  50570. if (root.nextScheduledRoot === null) {
  50571. // This root is not already scheduled. Add it.
  50572. root.expirationTime = expirationTime;
  50573. if (lastScheduledRoot === null) {
  50574. firstScheduledRoot = lastScheduledRoot = root;
  50575. root.nextScheduledRoot = root;
  50576. } else {
  50577. lastScheduledRoot.nextScheduledRoot = root;
  50578. lastScheduledRoot = root;
  50579. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  50580. }
  50581. } else {
  50582. // This root is already scheduled, but its priority may have increased.
  50583. var remainingExpirationTime = root.expirationTime;
  50584. if (expirationTime > remainingExpirationTime) {
  50585. // Update the priority.
  50586. root.expirationTime = expirationTime;
  50587. }
  50588. }
  50589. }
  50590. function findHighestPriorityRoot() {
  50591. var highestPriorityWork = NoWork;
  50592. var highestPriorityRoot = null;
  50593. if (lastScheduledRoot !== null) {
  50594. var previousScheduledRoot = lastScheduledRoot;
  50595. var root = firstScheduledRoot;
  50596. while (root !== null) {
  50597. var remainingExpirationTime = root.expirationTime;
  50598. if (remainingExpirationTime === NoWork) {
  50599. // This root no longer has work. Remove it from the scheduler.
  50600. // TODO: This check is redudant, but Flow is confused by the branch
  50601. // below where we set lastScheduledRoot to null, even though we break
  50602. // from the loop right after.
  50603. !(previousScheduledRoot !== null && lastScheduledRoot !== null) ? invariant(false, 'Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  50604. if (root === root.nextScheduledRoot) {
  50605. // This is the only root in the list.
  50606. root.nextScheduledRoot = null;
  50607. firstScheduledRoot = lastScheduledRoot = null;
  50608. break;
  50609. } else if (root === firstScheduledRoot) {
  50610. // This is the first root in the list.
  50611. var next = root.nextScheduledRoot;
  50612. firstScheduledRoot = next;
  50613. lastScheduledRoot.nextScheduledRoot = next;
  50614. root.nextScheduledRoot = null;
  50615. } else if (root === lastScheduledRoot) {
  50616. // This is the last root in the list.
  50617. lastScheduledRoot = previousScheduledRoot;
  50618. lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;
  50619. root.nextScheduledRoot = null;
  50620. break;
  50621. } else {
  50622. previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot;
  50623. root.nextScheduledRoot = null;
  50624. }
  50625. root = previousScheduledRoot.nextScheduledRoot;
  50626. } else {
  50627. if (remainingExpirationTime > highestPriorityWork) {
  50628. // Update the priority, if it's higher
  50629. highestPriorityWork = remainingExpirationTime;
  50630. highestPriorityRoot = root;
  50631. }
  50632. if (root === lastScheduledRoot) {
  50633. break;
  50634. }
  50635. if (highestPriorityWork === Sync) {
  50636. // Sync is highest priority by definition so
  50637. // we can stop searching.
  50638. break;
  50639. }
  50640. previousScheduledRoot = root;
  50641. root = root.nextScheduledRoot;
  50642. }
  50643. }
  50644. }
  50645. nextFlushedRoot = highestPriorityRoot;
  50646. nextFlushedExpirationTime = highestPriorityWork;
  50647. }
  50648. // TODO: This wrapper exists because many of the older tests (the ones that use
  50649. // flushDeferredPri) rely on the number of times `shouldYield` is called. We
  50650. // should get rid of it.
  50651. var didYield = false;
  50652. function shouldYieldToRenderer() {
  50653. if (didYield) {
  50654. return true;
  50655. }
  50656. if (scheduler.unstable_shouldYield()) {
  50657. didYield = true;
  50658. return true;
  50659. }
  50660. return false;
  50661. }
  50662. function performAsyncWork() {
  50663. try {
  50664. if (!shouldYieldToRenderer()) {
  50665. // The callback timed out. That means at least one update has expired.
  50666. // Iterate through the root schedule. If they contain expired work, set
  50667. // the next render expiration time to the current time. This has the effect
  50668. // of flushing all expired work in a single batch, instead of flushing each
  50669. // level one at a time.
  50670. if (firstScheduledRoot !== null) {
  50671. recomputeCurrentRendererTime();
  50672. var root = firstScheduledRoot;
  50673. do {
  50674. didExpireAtExpirationTime(root, currentRendererTime);
  50675. // The root schedule is circular, so this is never null.
  50676. root = root.nextScheduledRoot;
  50677. } while (root !== firstScheduledRoot);
  50678. }
  50679. }
  50680. performWork(NoWork, true);
  50681. } finally {
  50682. didYield = false;
  50683. }
  50684. }
  50685. function performSyncWork() {
  50686. performWork(Sync, false);
  50687. }
  50688. function performWork(minExpirationTime, isYieldy) {
  50689. // Keep working on roots until there's no more work, or until there's a higher
  50690. // priority event.
  50691. findHighestPriorityRoot();
  50692. if (isYieldy) {
  50693. recomputeCurrentRendererTime();
  50694. currentSchedulerTime = currentRendererTime;
  50695. if (enableUserTimingAPI) {
  50696. var didExpire = nextFlushedExpirationTime > currentRendererTime;
  50697. var timeout = expirationTimeToMs(nextFlushedExpirationTime);
  50698. stopRequestCallbackTimer(didExpire, timeout);
  50699. }
  50700. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime && !(didYield && currentRendererTime > nextFlushedExpirationTime)) {
  50701. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, currentRendererTime > nextFlushedExpirationTime);
  50702. findHighestPriorityRoot();
  50703. recomputeCurrentRendererTime();
  50704. currentSchedulerTime = currentRendererTime;
  50705. }
  50706. } else {
  50707. while (nextFlushedRoot !== null && nextFlushedExpirationTime !== NoWork && minExpirationTime <= nextFlushedExpirationTime) {
  50708. performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, false);
  50709. findHighestPriorityRoot();
  50710. }
  50711. }
  50712. // We're done flushing work. Either we ran out of time in this callback,
  50713. // or there's no more work left with sufficient priority.
  50714. // If we're inside a callback, set this to false since we just completed it.
  50715. if (isYieldy) {
  50716. callbackExpirationTime = NoWork;
  50717. callbackID = null;
  50718. }
  50719. // If there's work left over, schedule a new callback.
  50720. if (nextFlushedExpirationTime !== NoWork) {
  50721. scheduleCallbackWithExpirationTime(nextFlushedRoot, nextFlushedExpirationTime);
  50722. }
  50723. // Clean-up.
  50724. finishRendering();
  50725. }
  50726. function flushRoot(root, expirationTime) {
  50727. !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
  50728. // Perform work on root as if the given expiration time is the current time.
  50729. // This has the effect of synchronously flushing all work up to and
  50730. // including the given time.
  50731. nextFlushedRoot = root;
  50732. nextFlushedExpirationTime = expirationTime;
  50733. performWorkOnRoot(root, expirationTime, false);
  50734. // Flush any sync work that was scheduled by lifecycles
  50735. performSyncWork();
  50736. }
  50737. function finishRendering() {
  50738. nestedUpdateCount = 0;
  50739. lastCommittedRootDuringThisBatch = null;
  50740. if (completedBatches !== null) {
  50741. var batches = completedBatches;
  50742. completedBatches = null;
  50743. for (var i = 0; i < batches.length; i++) {
  50744. var batch = batches[i];
  50745. try {
  50746. batch._onComplete();
  50747. } catch (error) {
  50748. if (!hasUnhandledError) {
  50749. hasUnhandledError = true;
  50750. unhandledError = error;
  50751. }
  50752. }
  50753. }
  50754. }
  50755. if (hasUnhandledError) {
  50756. var error = unhandledError;
  50757. unhandledError = null;
  50758. hasUnhandledError = false;
  50759. throw error;
  50760. }
  50761. }
  50762. function performWorkOnRoot(root, expirationTime, isYieldy) {
  50763. !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  50764. isRendering = true;
  50765. // Check if this is async work or sync/expired work.
  50766. if (!isYieldy) {
  50767. // Flush work without yielding.
  50768. // TODO: Non-yieldy work does not necessarily imply expired work. A renderer
  50769. // may want to perform some work without yielding, but also without
  50770. // requiring the root to complete (by triggering placeholders).
  50771. var finishedWork = root.finishedWork;
  50772. if (finishedWork !== null) {
  50773. // This root is already complete. We can commit it.
  50774. completeRoot(root, finishedWork, expirationTime);
  50775. } else {
  50776. root.finishedWork = null;
  50777. // If this root previously suspended, clear its existing timeout, since
  50778. // we're about to try rendering again.
  50779. var timeoutHandle = root.timeoutHandle;
  50780. if (timeoutHandle !== noTimeout) {
  50781. root.timeoutHandle = noTimeout;
  50782. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  50783. cancelTimeout(timeoutHandle);
  50784. }
  50785. renderRoot(root, isYieldy);
  50786. finishedWork = root.finishedWork;
  50787. if (finishedWork !== null) {
  50788. // We've completed the root. Commit it.
  50789. completeRoot(root, finishedWork, expirationTime);
  50790. }
  50791. }
  50792. } else {
  50793. // Flush async work.
  50794. var _finishedWork = root.finishedWork;
  50795. if (_finishedWork !== null) {
  50796. // This root is already complete. We can commit it.
  50797. completeRoot(root, _finishedWork, expirationTime);
  50798. } else {
  50799. root.finishedWork = null;
  50800. // If this root previously suspended, clear its existing timeout, since
  50801. // we're about to try rendering again.
  50802. var _timeoutHandle = root.timeoutHandle;
  50803. if (_timeoutHandle !== noTimeout) {
  50804. root.timeoutHandle = noTimeout;
  50805. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  50806. cancelTimeout(_timeoutHandle);
  50807. }
  50808. renderRoot(root, isYieldy);
  50809. _finishedWork = root.finishedWork;
  50810. if (_finishedWork !== null) {
  50811. // We've completed the root. Check the if we should yield one more time
  50812. // before committing.
  50813. if (!shouldYieldToRenderer()) {
  50814. // Still time left. Commit the root.
  50815. completeRoot(root, _finishedWork, expirationTime);
  50816. } else {
  50817. // There's no time left. Mark this root as complete. We'll come
  50818. // back and commit it later.
  50819. root.finishedWork = _finishedWork;
  50820. }
  50821. }
  50822. }
  50823. }
  50824. isRendering = false;
  50825. }
  50826. function completeRoot(root, finishedWork, expirationTime) {
  50827. // Check if there's a batch that matches this expiration time.
  50828. var firstBatch = root.firstBatch;
  50829. if (firstBatch !== null && firstBatch._expirationTime >= expirationTime) {
  50830. if (completedBatches === null) {
  50831. completedBatches = [firstBatch];
  50832. } else {
  50833. completedBatches.push(firstBatch);
  50834. }
  50835. if (firstBatch._defer) {
  50836. // This root is blocked from committing by a batch. Unschedule it until
  50837. // we receive another update.
  50838. root.finishedWork = finishedWork;
  50839. root.expirationTime = NoWork;
  50840. return;
  50841. }
  50842. }
  50843. // Commit the root.
  50844. root.finishedWork = null;
  50845. // Check if this is a nested update (a sync update scheduled during the
  50846. // commit phase).
  50847. if (root === lastCommittedRootDuringThisBatch) {
  50848. // If the next root is the same as the previous root, this is a nested
  50849. // update. To prevent an infinite loop, increment the nested update count.
  50850. nestedUpdateCount++;
  50851. } else {
  50852. // Reset whenever we switch roots.
  50853. lastCommittedRootDuringThisBatch = root;
  50854. nestedUpdateCount = 0;
  50855. }
  50856. commitRoot(root, finishedWork);
  50857. }
  50858. function onUncaughtError(error) {
  50859. !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
  50860. // Unschedule this root so we don't work on it again until there's
  50861. // another update.
  50862. nextFlushedRoot.expirationTime = NoWork;
  50863. if (!hasUnhandledError) {
  50864. hasUnhandledError = true;
  50865. unhandledError = error;
  50866. }
  50867. }
  50868. // TODO: Batching should be implemented at the renderer level, not inside
  50869. // the reconciler.
  50870. function batchedUpdates$1(fn, a) {
  50871. var previousIsBatchingUpdates = isBatchingUpdates;
  50872. isBatchingUpdates = true;
  50873. try {
  50874. return fn(a);
  50875. } finally {
  50876. isBatchingUpdates = previousIsBatchingUpdates;
  50877. if (!isBatchingUpdates && !isRendering) {
  50878. performSyncWork();
  50879. }
  50880. }
  50881. }
  50882. // TODO: Batching should be implemented at the renderer level, not inside
  50883. // the reconciler.
  50884. function unbatchedUpdates(fn, a) {
  50885. if (isBatchingUpdates && !isUnbatchingUpdates) {
  50886. isUnbatchingUpdates = true;
  50887. try {
  50888. return fn(a);
  50889. } finally {
  50890. isUnbatchingUpdates = false;
  50891. }
  50892. }
  50893. return fn(a);
  50894. }
  50895. // TODO: Batching should be implemented at the renderer level, not within
  50896. // the reconciler.
  50897. function flushSync(fn, a) {
  50898. !!isRendering ? invariant(false, 'flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.') : void 0;
  50899. var previousIsBatchingUpdates = isBatchingUpdates;
  50900. isBatchingUpdates = true;
  50901. try {
  50902. return syncUpdates(fn, a);
  50903. } finally {
  50904. isBatchingUpdates = previousIsBatchingUpdates;
  50905. performSyncWork();
  50906. }
  50907. }
  50908. function interactiveUpdates$1(fn, a, b) {
  50909. if (isBatchingInteractiveUpdates) {
  50910. return fn(a, b);
  50911. }
  50912. // If there are any pending interactive updates, synchronously flush them.
  50913. // This needs to happen before we read any handlers, because the effect of
  50914. // the previous event may influence which handlers are called during
  50915. // this event.
  50916. if (!isBatchingUpdates && !isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  50917. // Synchronously flush pending interactive updates.
  50918. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  50919. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50920. }
  50921. var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates;
  50922. var previousIsBatchingUpdates = isBatchingUpdates;
  50923. isBatchingInteractiveUpdates = true;
  50924. isBatchingUpdates = true;
  50925. try {
  50926. return fn(a, b);
  50927. } finally {
  50928. isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates;
  50929. isBatchingUpdates = previousIsBatchingUpdates;
  50930. if (!isBatchingUpdates && !isRendering) {
  50931. performSyncWork();
  50932. }
  50933. }
  50934. }
  50935. function flushInteractiveUpdates$1() {
  50936. if (!isRendering && lowestPriorityPendingInteractiveExpirationTime !== NoWork) {
  50937. // Synchronously flush pending interactive updates.
  50938. performWork(lowestPriorityPendingInteractiveExpirationTime, false);
  50939. lowestPriorityPendingInteractiveExpirationTime = NoWork;
  50940. }
  50941. }
  50942. function flushControlled(fn) {
  50943. var previousIsBatchingUpdates = isBatchingUpdates;
  50944. isBatchingUpdates = true;
  50945. try {
  50946. syncUpdates(fn);
  50947. } finally {
  50948. isBatchingUpdates = previousIsBatchingUpdates;
  50949. if (!isBatchingUpdates && !isRendering) {
  50950. performSyncWork();
  50951. }
  50952. }
  50953. }
  50954. // 0 is PROD, 1 is DEV.
  50955. // Might add PROFILE later.
  50956. var didWarnAboutNestedUpdates = void 0;
  50957. var didWarnAboutFindNodeInStrictMode = void 0;
  50958. {
  50959. didWarnAboutNestedUpdates = false;
  50960. didWarnAboutFindNodeInStrictMode = {};
  50961. }
  50962. function getContextForSubtree(parentComponent) {
  50963. if (!parentComponent) {
  50964. return emptyContextObject;
  50965. }
  50966. var fiber = get(parentComponent);
  50967. var parentContext = findCurrentUnmaskedContext(fiber);
  50968. if (fiber.tag === ClassComponent) {
  50969. var Component = fiber.type;
  50970. if (isContextProvider(Component)) {
  50971. return processChildContext(fiber, Component, parentContext);
  50972. }
  50973. }
  50974. return parentContext;
  50975. }
  50976. function scheduleRootUpdate(current$$1, element, expirationTime, callback) {
  50977. {
  50978. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  50979. didWarnAboutNestedUpdates = true;
  50980. 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');
  50981. }
  50982. }
  50983. var update = createUpdate(expirationTime);
  50984. // Caution: React DevTools currently depends on this property
  50985. // being called "element".
  50986. update.payload = { element: element };
  50987. callback = callback === undefined ? null : callback;
  50988. if (callback !== null) {
  50989. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  50990. update.callback = callback;
  50991. }
  50992. flushPassiveEffects();
  50993. enqueueUpdate(current$$1, update);
  50994. scheduleWork(current$$1, expirationTime);
  50995. return expirationTime;
  50996. }
  50997. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
  50998. // TODO: If this is a nested container, this won't be the root.
  50999. var current$$1 = container.current;
  51000. {
  51001. if (ReactFiberInstrumentation_1.debugTool) {
  51002. if (current$$1.alternate === null) {
  51003. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  51004. } else if (element === null) {
  51005. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  51006. } else {
  51007. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  51008. }
  51009. }
  51010. }
  51011. var context = getContextForSubtree(parentComponent);
  51012. if (container.context === null) {
  51013. container.context = context;
  51014. } else {
  51015. container.pendingContext = context;
  51016. }
  51017. return scheduleRootUpdate(current$$1, element, expirationTime, callback);
  51018. }
  51019. function findHostInstance(component) {
  51020. var fiber = get(component);
  51021. if (fiber === undefined) {
  51022. if (typeof component.render === 'function') {
  51023. invariant(false, 'Unable to find node on an unmounted component.');
  51024. } else {
  51025. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  51026. }
  51027. }
  51028. var hostFiber = findCurrentHostFiber(fiber);
  51029. if (hostFiber === null) {
  51030. return null;
  51031. }
  51032. return hostFiber.stateNode;
  51033. }
  51034. function findHostInstanceWithWarning(component, methodName) {
  51035. {
  51036. var fiber = get(component);
  51037. if (fiber === undefined) {
  51038. if (typeof component.render === 'function') {
  51039. invariant(false, 'Unable to find node on an unmounted component.');
  51040. } else {
  51041. invariant(false, 'Argument appears to not be a ReactComponent. Keys: %s', Object.keys(component));
  51042. }
  51043. }
  51044. var hostFiber = findCurrentHostFiber(fiber);
  51045. if (hostFiber === null) {
  51046. return null;
  51047. }
  51048. if (hostFiber.mode & StrictMode) {
  51049. var componentName = getComponentName(fiber.type) || 'Component';
  51050. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  51051. didWarnAboutFindNodeInStrictMode[componentName] = true;
  51052. if (fiber.mode & StrictMode) {
  51053. 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));
  51054. } else {
  51055. 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));
  51056. }
  51057. }
  51058. }
  51059. return hostFiber.stateNode;
  51060. }
  51061. return findHostInstance(component);
  51062. }
  51063. function createContainer(containerInfo, isConcurrent, hydrate) {
  51064. return createFiberRoot(containerInfo, isConcurrent, hydrate);
  51065. }
  51066. function updateContainer(element, container, parentComponent, callback) {
  51067. var current$$1 = container.current;
  51068. var currentTime = requestCurrentTime();
  51069. var expirationTime = computeExpirationForFiber(currentTime, current$$1);
  51070. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback);
  51071. }
  51072. function getPublicRootInstance(container) {
  51073. var containerFiber = container.current;
  51074. if (!containerFiber.child) {
  51075. return null;
  51076. }
  51077. switch (containerFiber.child.tag) {
  51078. case HostComponent:
  51079. return getPublicInstance(containerFiber.child.stateNode);
  51080. default:
  51081. return containerFiber.child.stateNode;
  51082. }
  51083. }
  51084. function findHostInstanceWithNoPortals(fiber) {
  51085. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  51086. if (hostFiber === null) {
  51087. return null;
  51088. }
  51089. return hostFiber.stateNode;
  51090. }
  51091. function injectIntoDevTools(devToolsConfig) {
  51092. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  51093. return injectInternals(_assign({}, devToolsConfig, {
  51094. findHostInstanceByFiber: function (fiber) {
  51095. var hostFiber = findCurrentHostFiber(fiber);
  51096. if (hostFiber === null) {
  51097. return null;
  51098. }
  51099. return hostFiber.stateNode;
  51100. },
  51101. findFiberByHostInstance: function (instance) {
  51102. if (!findFiberByHostInstance) {
  51103. // Might not be implemented by the renderer.
  51104. return null;
  51105. }
  51106. return findFiberByHostInstance(instance);
  51107. }
  51108. }));
  51109. }
  51110. // This file intentionally does *not* have the Flow annotation.
  51111. // Don't add it. See `./inline-typed.js` for an explanation.
  51112. function createPortal$1(children, containerInfo,
  51113. // TODO: figure out the API for cross-renderer implementation.
  51114. implementation) {
  51115. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  51116. return {
  51117. // This tag allow us to uniquely identify this as a React Portal
  51118. $$typeof: REACT_PORTAL_TYPE,
  51119. key: key == null ? null : '' + key,
  51120. children: children,
  51121. containerInfo: containerInfo,
  51122. implementation: implementation
  51123. };
  51124. }
  51125. // TODO: this is special because it gets imported during build.
  51126. var ReactVersion = '16.6.3';
  51127. // TODO: This type is shared between the reconciler and ReactDOM, but will
  51128. // eventually be lifted out to the renderer.
  51129. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  51130. var topLevelUpdateWarnings = void 0;
  51131. var warnOnInvalidCallback = void 0;
  51132. var didWarnAboutUnstableCreatePortal = false;
  51133. {
  51134. if (typeof Map !== 'function' ||
  51135. // $FlowIssue Flow incorrectly thinks Map has no prototype
  51136. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  51137. // $FlowIssue Flow incorrectly thinks Set has no prototype
  51138. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  51139. 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');
  51140. }
  51141. topLevelUpdateWarnings = function (container) {
  51142. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  51143. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  51144. if (hostInstance) {
  51145. !(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;
  51146. }
  51147. }
  51148. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  51149. var rootEl = getReactRootElementInContainer(container);
  51150. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  51151. !(!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;
  51152. !(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;
  51153. };
  51154. warnOnInvalidCallback = function (callback, callerName) {
  51155. !(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;
  51156. };
  51157. }
  51158. setRestoreImplementation(restoreControlledState$1);
  51159. function ReactBatch(root) {
  51160. var expirationTime = computeUniqueAsyncExpiration();
  51161. this._expirationTime = expirationTime;
  51162. this._root = root;
  51163. this._next = null;
  51164. this._callbacks = null;
  51165. this._didComplete = false;
  51166. this._hasChildren = false;
  51167. this._children = null;
  51168. this._defer = true;
  51169. }
  51170. ReactBatch.prototype.render = function (children) {
  51171. !this._defer ? invariant(false, 'batch.render: Cannot render a batch that already committed.') : void 0;
  51172. this._hasChildren = true;
  51173. this._children = children;
  51174. var internalRoot = this._root._internalRoot;
  51175. var expirationTime = this._expirationTime;
  51176. var work = new ReactWork();
  51177. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit);
  51178. return work;
  51179. };
  51180. ReactBatch.prototype.then = function (onComplete) {
  51181. if (this._didComplete) {
  51182. onComplete();
  51183. return;
  51184. }
  51185. var callbacks = this._callbacks;
  51186. if (callbacks === null) {
  51187. callbacks = this._callbacks = [];
  51188. }
  51189. callbacks.push(onComplete);
  51190. };
  51191. ReactBatch.prototype.commit = function () {
  51192. var internalRoot = this._root._internalRoot;
  51193. var firstBatch = internalRoot.firstBatch;
  51194. !(this._defer && firstBatch !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  51195. if (!this._hasChildren) {
  51196. // This batch is empty. Return.
  51197. this._next = null;
  51198. this._defer = false;
  51199. return;
  51200. }
  51201. var expirationTime = this._expirationTime;
  51202. // Ensure this is the first batch in the list.
  51203. if (firstBatch !== this) {
  51204. // This batch is not the earliest batch. We need to move it to the front.
  51205. // Update its expiration time to be the expiration time of the earliest
  51206. // batch, so that we can flush it without flushing the other batches.
  51207. if (this._hasChildren) {
  51208. expirationTime = this._expirationTime = firstBatch._expirationTime;
  51209. // Rendering this batch again ensures its children will be the final state
  51210. // when we flush (updates are processed in insertion order: last
  51211. // update wins).
  51212. // TODO: This forces a restart. Should we print a warning?
  51213. this.render(this._children);
  51214. }
  51215. // Remove the batch from the list.
  51216. var previous = null;
  51217. var batch = firstBatch;
  51218. while (batch !== this) {
  51219. previous = batch;
  51220. batch = batch._next;
  51221. }
  51222. !(previous !== null) ? invariant(false, 'batch.commit: Cannot commit a batch multiple times.') : void 0;
  51223. previous._next = batch._next;
  51224. // Add it to the front.
  51225. this._next = firstBatch;
  51226. firstBatch = internalRoot.firstBatch = this;
  51227. }
  51228. // Synchronously flush all the work up to this batch's expiration time.
  51229. this._defer = false;
  51230. flushRoot(internalRoot, expirationTime);
  51231. // Pop the batch from the list.
  51232. var next = this._next;
  51233. this._next = null;
  51234. firstBatch = internalRoot.firstBatch = next;
  51235. // Append the next earliest batch's children to the update queue.
  51236. if (firstBatch !== null && firstBatch._hasChildren) {
  51237. firstBatch.render(firstBatch._children);
  51238. }
  51239. };
  51240. ReactBatch.prototype._onComplete = function () {
  51241. if (this._didComplete) {
  51242. return;
  51243. }
  51244. this._didComplete = true;
  51245. var callbacks = this._callbacks;
  51246. if (callbacks === null) {
  51247. return;
  51248. }
  51249. // TODO: Error handling.
  51250. for (var i = 0; i < callbacks.length; i++) {
  51251. var _callback = callbacks[i];
  51252. _callback();
  51253. }
  51254. };
  51255. function ReactWork() {
  51256. this._callbacks = null;
  51257. this._didCommit = false;
  51258. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  51259. // list of Work objects.
  51260. this._onCommit = this._onCommit.bind(this);
  51261. }
  51262. ReactWork.prototype.then = function (onCommit) {
  51263. if (this._didCommit) {
  51264. onCommit();
  51265. return;
  51266. }
  51267. var callbacks = this._callbacks;
  51268. if (callbacks === null) {
  51269. callbacks = this._callbacks = [];
  51270. }
  51271. callbacks.push(onCommit);
  51272. };
  51273. ReactWork.prototype._onCommit = function () {
  51274. if (this._didCommit) {
  51275. return;
  51276. }
  51277. this._didCommit = true;
  51278. var callbacks = this._callbacks;
  51279. if (callbacks === null) {
  51280. return;
  51281. }
  51282. // TODO: Error handling.
  51283. for (var i = 0; i < callbacks.length; i++) {
  51284. var _callback2 = callbacks[i];
  51285. !(typeof _callback2 === 'function') ? invariant(false, 'Invalid argument passed as callback. Expected a function. Instead received: %s', _callback2) : void 0;
  51286. _callback2();
  51287. }
  51288. };
  51289. function ReactRoot(container, isConcurrent, hydrate) {
  51290. var root = createContainer(container, isConcurrent, hydrate);
  51291. this._internalRoot = root;
  51292. }
  51293. ReactRoot.prototype.render = function (children, callback) {
  51294. var root = this._internalRoot;
  51295. var work = new ReactWork();
  51296. callback = callback === undefined ? null : callback;
  51297. {
  51298. warnOnInvalidCallback(callback, 'render');
  51299. }
  51300. if (callback !== null) {
  51301. work.then(callback);
  51302. }
  51303. updateContainer(children, root, null, work._onCommit);
  51304. return work;
  51305. };
  51306. ReactRoot.prototype.unmount = function (callback) {
  51307. var root = this._internalRoot;
  51308. var work = new ReactWork();
  51309. callback = callback === undefined ? null : callback;
  51310. {
  51311. warnOnInvalidCallback(callback, 'render');
  51312. }
  51313. if (callback !== null) {
  51314. work.then(callback);
  51315. }
  51316. updateContainer(null, root, null, work._onCommit);
  51317. return work;
  51318. };
  51319. ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function (parentComponent, children, callback) {
  51320. var root = this._internalRoot;
  51321. var work = new ReactWork();
  51322. callback = callback === undefined ? null : callback;
  51323. {
  51324. warnOnInvalidCallback(callback, 'render');
  51325. }
  51326. if (callback !== null) {
  51327. work.then(callback);
  51328. }
  51329. updateContainer(children, root, parentComponent, work._onCommit);
  51330. return work;
  51331. };
  51332. ReactRoot.prototype.createBatch = function () {
  51333. var batch = new ReactBatch(this);
  51334. var expirationTime = batch._expirationTime;
  51335. var internalRoot = this._internalRoot;
  51336. var firstBatch = internalRoot.firstBatch;
  51337. if (firstBatch === null) {
  51338. internalRoot.firstBatch = batch;
  51339. batch._next = null;
  51340. } else {
  51341. // Insert sorted by expiration time then insertion order
  51342. var insertAfter = null;
  51343. var insertBefore = firstBatch;
  51344. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  51345. insertAfter = insertBefore;
  51346. insertBefore = insertBefore._next;
  51347. }
  51348. batch._next = insertBefore;
  51349. if (insertAfter !== null) {
  51350. insertAfter._next = batch;
  51351. }
  51352. }
  51353. return batch;
  51354. };
  51355. /**
  51356. * True if the supplied DOM node is a valid node element.
  51357. *
  51358. * @param {?DOMElement} node The candidate DOM node.
  51359. * @return {boolean} True if the DOM is a valid DOM node.
  51360. * @internal
  51361. */
  51362. function isValidContainer(node) {
  51363. 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 '));
  51364. }
  51365. function getReactRootElementInContainer(container) {
  51366. if (!container) {
  51367. return null;
  51368. }
  51369. if (container.nodeType === DOCUMENT_NODE) {
  51370. return container.documentElement;
  51371. } else {
  51372. return container.firstChild;
  51373. }
  51374. }
  51375. function shouldHydrateDueToLegacyHeuristic(container) {
  51376. var rootElement = getReactRootElementInContainer(container);
  51377. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  51378. }
  51379. setBatchingImplementation(batchedUpdates$1, interactiveUpdates$1, flushInteractiveUpdates$1);
  51380. var warnedAboutHydrateAPI = false;
  51381. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  51382. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  51383. // First clear any existing content.
  51384. if (!shouldHydrate) {
  51385. var warned = false;
  51386. var rootSibling = void 0;
  51387. while (rootSibling = container.lastChild) {
  51388. {
  51389. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  51390. warned = true;
  51391. 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.');
  51392. }
  51393. }
  51394. container.removeChild(rootSibling);
  51395. }
  51396. }
  51397. {
  51398. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  51399. warnedAboutHydrateAPI = true;
  51400. 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.');
  51401. }
  51402. }
  51403. // Legacy roots are not async by default.
  51404. var isConcurrent = false;
  51405. return new ReactRoot(container, isConcurrent, shouldHydrate);
  51406. }
  51407. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  51408. // TODO: Ensure all entry points contain this check
  51409. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  51410. {
  51411. topLevelUpdateWarnings(container);
  51412. }
  51413. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  51414. // member of intersection type." Whyyyyyy.
  51415. var root = container._reactRootContainer;
  51416. if (!root) {
  51417. // Initial mount
  51418. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  51419. if (typeof callback === 'function') {
  51420. var originalCallback = callback;
  51421. callback = function () {
  51422. var instance = getPublicRootInstance(root._internalRoot);
  51423. originalCallback.call(instance);
  51424. };
  51425. }
  51426. // Initial mount should not be batched.
  51427. unbatchedUpdates(function () {
  51428. if (parentComponent != null) {
  51429. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  51430. } else {
  51431. root.render(children, callback);
  51432. }
  51433. });
  51434. } else {
  51435. if (typeof callback === 'function') {
  51436. var _originalCallback = callback;
  51437. callback = function () {
  51438. var instance = getPublicRootInstance(root._internalRoot);
  51439. _originalCallback.call(instance);
  51440. };
  51441. }
  51442. // Update
  51443. if (parentComponent != null) {
  51444. root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
  51445. } else {
  51446. root.render(children, callback);
  51447. }
  51448. }
  51449. return getPublicRootInstance(root._internalRoot);
  51450. }
  51451. function createPortal(children, container) {
  51452. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  51453. !isValidContainer(container) ? invariant(false, 'Target container is not a DOM element.') : void 0;
  51454. // TODO: pass ReactDOM portal implementation as third argument
  51455. return createPortal$1(children, container, null, key);
  51456. }
  51457. var ReactDOM = {
  51458. createPortal: createPortal,
  51459. findDOMNode: function (componentOrElement) {
  51460. {
  51461. var owner = ReactCurrentOwner.current;
  51462. if (owner !== null && owner.stateNode !== null) {
  51463. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  51464. !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;
  51465. owner.stateNode._warnedAboutRefsInRender = true;
  51466. }
  51467. }
  51468. if (componentOrElement == null) {
  51469. return null;
  51470. }
  51471. if (componentOrElement.nodeType === ELEMENT_NODE) {
  51472. return componentOrElement;
  51473. }
  51474. {
  51475. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  51476. }
  51477. return findHostInstance(componentOrElement);
  51478. },
  51479. hydrate: function (element, container, callback) {
  51480. // TODO: throw or warn if we couldn't hydrate?
  51481. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  51482. },
  51483. render: function (element, container, callback) {
  51484. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  51485. },
  51486. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  51487. !(parentComponent != null && has(parentComponent)) ? invariant(false, 'parentComponent must be a valid React Component') : void 0;
  51488. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  51489. },
  51490. unmountComponentAtNode: function (container) {
  51491. !isValidContainer(container) ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : void 0;
  51492. if (container._reactRootContainer) {
  51493. {
  51494. var rootEl = getReactRootElementInContainer(container);
  51495. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  51496. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  51497. }
  51498. // Unmount should not be batched.
  51499. unbatchedUpdates(function () {
  51500. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  51501. container._reactRootContainer = null;
  51502. });
  51503. });
  51504. // If you call unmountComponentAtNode twice in quick succession, you'll
  51505. // get `true` twice. That's probably fine?
  51506. return true;
  51507. } else {
  51508. {
  51509. var _rootEl = getReactRootElementInContainer(container);
  51510. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  51511. // Check if the container itself is a React root node.
  51512. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  51513. !!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;
  51514. }
  51515. return false;
  51516. }
  51517. },
  51518. // Temporary alias since we already shipped React 16 RC with it.
  51519. // TODO: remove in React 17.
  51520. unstable_createPortal: function () {
  51521. if (!didWarnAboutUnstableCreatePortal) {
  51522. didWarnAboutUnstableCreatePortal = true;
  51523. 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.');
  51524. }
  51525. return createPortal.apply(undefined, arguments);
  51526. },
  51527. unstable_batchedUpdates: batchedUpdates$1,
  51528. unstable_interactiveUpdates: interactiveUpdates$1,
  51529. flushSync: flushSync,
  51530. unstable_flushControlled: flushControlled,
  51531. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  51532. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  51533. // and ReactTestUtils.js. This is an array for better minification.
  51534. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch]
  51535. }
  51536. };
  51537. function createRoot(container, options) {
  51538. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  51539. !isValidContainer(container) ? invariant(false, '%s(...): Target container is not a DOM element.', functionName) : void 0;
  51540. var hydrate = options != null && options.hydrate === true;
  51541. return new ReactRoot(container, true, hydrate);
  51542. }
  51543. if (enableStableConcurrentModeAPIs) {
  51544. ReactDOM.createRoot = createRoot;
  51545. } else {
  51546. ReactDOM.unstable_createRoot = createRoot;
  51547. }
  51548. var foundDevTools = injectIntoDevTools({
  51549. findFiberByHostInstance: getClosestInstanceFromNode,
  51550. bundleType: 1,
  51551. version: ReactVersion,
  51552. rendererPackageName: 'react-dom'
  51553. });
  51554. {
  51555. if (!foundDevTools && canUseDOM && window.top === window.self) {
  51556. // If we're in Chrome or Firefox, provide a download link if not installed.
  51557. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  51558. var protocol = window.location.protocol;
  51559. // Don't warn in exotic cases like chrome-extension://.
  51560. if (/^(https?|file):$/.test(protocol)) {
  51561. 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');
  51562. }
  51563. }
  51564. }
  51565. }
  51566. var ReactDOM$2 = Object.freeze({
  51567. default: ReactDOM
  51568. });
  51569. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  51570. // TODO: decide on the top-level export form.
  51571. // This is hacky but makes it work with both Rollup and Jest.
  51572. var reactDom = ReactDOM$3.default || ReactDOM$3;
  51573. module.exports = reactDom;
  51574. })();
  51575. }
  51576. /***/ }),
  51577. /***/ "../../node_modules/react-dom/index.js":
  51578. /*!***********************************************************!*\
  51579. !*** E:/Repos/Babylon.js/node_modules/react-dom/index.js ***!
  51580. \***********************************************************/
  51581. /*! no static exports found */
  51582. /***/ (function(module, exports, __webpack_require__) {
  51583. "use strict";
  51584. function checkDCE() {
  51585. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  51586. if (
  51587. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  51588. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  51589. ) {
  51590. return;
  51591. }
  51592. if (true) {
  51593. // This branch is unreachable because this function is only called
  51594. // in production, but the condition is true only in development.
  51595. // Therefore if the branch is still here, dead code elimination wasn't
  51596. // properly applied.
  51597. // Don't change the message. React DevTools relies on it. Also make sure
  51598. // this message doesn't occur elsewhere in this function, or it will cause
  51599. // a false positive.
  51600. throw new Error('^_^');
  51601. }
  51602. try {
  51603. // Verify that the code above has been dead code eliminated (DCE'd).
  51604. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  51605. } catch (err) {
  51606. // DevTools shouldn't crash React, no matter what.
  51607. // We should still report in case we break this code.
  51608. console.error(err);
  51609. }
  51610. }
  51611. if (false) {} else {
  51612. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  51613. }
  51614. /***/ }),
  51615. /***/ "../../node_modules/react/cjs/react.development.js":
  51616. /*!***********************************************************************!*\
  51617. !*** E:/Repos/Babylon.js/node_modules/react/cjs/react.development.js ***!
  51618. \***********************************************************************/
  51619. /*! no static exports found */
  51620. /***/ (function(module, exports, __webpack_require__) {
  51621. "use strict";
  51622. /** @license React v16.6.1
  51623. * react.development.js
  51624. *
  51625. * Copyright (c) Facebook, Inc. and its affiliates.
  51626. *
  51627. * This source code is licensed under the MIT license found in the
  51628. * LICENSE file in the root directory of this source tree.
  51629. */
  51630. if (true) {
  51631. (function() {
  51632. 'use strict';
  51633. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  51634. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  51635. // TODO: this is special because it gets imported during build.
  51636. var ReactVersion = '16.6.3';
  51637. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  51638. // nor polyfill, then a plain number is used for performance.
  51639. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  51640. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  51641. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  51642. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  51643. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  51644. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  51645. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  51646. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  51647. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  51648. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  51649. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  51650. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  51651. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  51652. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  51653. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  51654. function getIteratorFn(maybeIterable) {
  51655. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  51656. return null;
  51657. }
  51658. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  51659. if (typeof maybeIterator === 'function') {
  51660. return maybeIterator;
  51661. }
  51662. return null;
  51663. }
  51664. var enableHooks = false;
  51665. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  51666. // In some cases, StrictMode should also double-render lifecycles.
  51667. // This can be confusing for tests though,
  51668. // And it can be bad for performance in production.
  51669. // This feature flag can be used to control the behavior:
  51670. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  51671. // replay the begin phase of a failed component inside invokeGuardedCallback.
  51672. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  51673. // Gather advanced timing metrics for Profiler subtrees.
  51674. // Trace which interactions trigger each commit.
  51675. // Only used in www builds.
  51676. // Only used in www builds.
  51677. // React Fire: prevent the value and checked attributes from syncing
  51678. // with their related DOM properties
  51679. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  51680. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  51681. var enableStableConcurrentModeAPIs = false;
  51682. /**
  51683. * Use invariant() to assert state which your program assumes to be true.
  51684. *
  51685. * Provide sprintf-style format (only %s is supported) and arguments
  51686. * to provide information about what broke and what you were
  51687. * expecting.
  51688. *
  51689. * The invariant message will be stripped in production, but the invariant
  51690. * will remain to ensure logic does not differ in production.
  51691. */
  51692. var validateFormat = function () {};
  51693. {
  51694. validateFormat = function (format) {
  51695. if (format === undefined) {
  51696. throw new Error('invariant requires an error message argument');
  51697. }
  51698. };
  51699. }
  51700. function invariant(condition, format, a, b, c, d, e, f) {
  51701. validateFormat(format);
  51702. if (!condition) {
  51703. var error = void 0;
  51704. if (format === undefined) {
  51705. error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
  51706. } else {
  51707. var args = [a, b, c, d, e, f];
  51708. var argIndex = 0;
  51709. error = new Error(format.replace(/%s/g, function () {
  51710. return args[argIndex++];
  51711. }));
  51712. error.name = 'Invariant Violation';
  51713. }
  51714. error.framesToPop = 1; // we don't care about invariant's own frame
  51715. throw error;
  51716. }
  51717. }
  51718. // Relying on the `invariant()` implementation lets us
  51719. // preserve the format and params in the www builds.
  51720. /**
  51721. * Forked from fbjs/warning:
  51722. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  51723. *
  51724. * Only change is we use console.warn instead of console.error,
  51725. * and do nothing when 'console' is not supported.
  51726. * This really simplifies the code.
  51727. * ---
  51728. * Similar to invariant but only logs a warning if the condition is not met.
  51729. * This can be used to log issues in development environments in critical
  51730. * paths. Removing the logging code for production environments will keep the
  51731. * same logic and follow the same code paths.
  51732. */
  51733. var lowPriorityWarning = function () {};
  51734. {
  51735. var printWarning = function (format) {
  51736. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  51737. args[_key - 1] = arguments[_key];
  51738. }
  51739. var argIndex = 0;
  51740. var message = 'Warning: ' + format.replace(/%s/g, function () {
  51741. return args[argIndex++];
  51742. });
  51743. if (typeof console !== 'undefined') {
  51744. console.warn(message);
  51745. }
  51746. try {
  51747. // --- Welcome to debugging React ---
  51748. // This error was thrown as a convenience so that you can use this stack
  51749. // to find the callsite that caused this warning to fire.
  51750. throw new Error(message);
  51751. } catch (x) {}
  51752. };
  51753. lowPriorityWarning = function (condition, format) {
  51754. if (format === undefined) {
  51755. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  51756. }
  51757. if (!condition) {
  51758. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  51759. args[_key2 - 2] = arguments[_key2];
  51760. }
  51761. printWarning.apply(undefined, [format].concat(args));
  51762. }
  51763. };
  51764. }
  51765. var lowPriorityWarning$1 = lowPriorityWarning;
  51766. /**
  51767. * Similar to invariant but only logs a warning if the condition is not met.
  51768. * This can be used to log issues in development environments in critical
  51769. * paths. Removing the logging code for production environments will keep the
  51770. * same logic and follow the same code paths.
  51771. */
  51772. var warningWithoutStack = function () {};
  51773. {
  51774. warningWithoutStack = function (condition, format) {
  51775. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  51776. args[_key - 2] = arguments[_key];
  51777. }
  51778. if (format === undefined) {
  51779. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  51780. }
  51781. if (args.length > 8) {
  51782. // Check before the condition to catch violations early.
  51783. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  51784. }
  51785. if (condition) {
  51786. return;
  51787. }
  51788. if (typeof console !== 'undefined') {
  51789. var argsWithFormat = args.map(function (item) {
  51790. return '' + item;
  51791. });
  51792. argsWithFormat.unshift('Warning: ' + format);
  51793. // We intentionally don't use spread (or .apply) directly because it
  51794. // breaks IE9: https://github.com/facebook/react/issues/13610
  51795. Function.prototype.apply.call(console.error, console, argsWithFormat);
  51796. }
  51797. try {
  51798. // --- Welcome to debugging React ---
  51799. // This error was thrown as a convenience so that you can use this stack
  51800. // to find the callsite that caused this warning to fire.
  51801. var argIndex = 0;
  51802. var message = 'Warning: ' + format.replace(/%s/g, function () {
  51803. return args[argIndex++];
  51804. });
  51805. throw new Error(message);
  51806. } catch (x) {}
  51807. };
  51808. }
  51809. var warningWithoutStack$1 = warningWithoutStack;
  51810. var didWarnStateUpdateForUnmountedComponent = {};
  51811. function warnNoop(publicInstance, callerName) {
  51812. {
  51813. var _constructor = publicInstance.constructor;
  51814. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  51815. var warningKey = componentName + '.' + callerName;
  51816. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  51817. return;
  51818. }
  51819. 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);
  51820. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  51821. }
  51822. }
  51823. /**
  51824. * This is the abstract API for an update queue.
  51825. */
  51826. var ReactNoopUpdateQueue = {
  51827. /**
  51828. * Checks whether or not this composite component is mounted.
  51829. * @param {ReactClass} publicInstance The instance we want to test.
  51830. * @return {boolean} True if mounted, false otherwise.
  51831. * @protected
  51832. * @final
  51833. */
  51834. isMounted: function (publicInstance) {
  51835. return false;
  51836. },
  51837. /**
  51838. * Forces an update. This should only be invoked when it is known with
  51839. * certainty that we are **not** in a DOM transaction.
  51840. *
  51841. * You may want to call this when you know that some deeper aspect of the
  51842. * component's state has changed but `setState` was not called.
  51843. *
  51844. * This will not invoke `shouldComponentUpdate`, but it will invoke
  51845. * `componentWillUpdate` and `componentDidUpdate`.
  51846. *
  51847. * @param {ReactClass} publicInstance The instance that should rerender.
  51848. * @param {?function} callback Called after component is updated.
  51849. * @param {?string} callerName name of the calling function in the public API.
  51850. * @internal
  51851. */
  51852. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  51853. warnNoop(publicInstance, 'forceUpdate');
  51854. },
  51855. /**
  51856. * Replaces all of the state. Always use this or `setState` to mutate state.
  51857. * You should treat `this.state` as immutable.
  51858. *
  51859. * There is no guarantee that `this.state` will be immediately updated, so
  51860. * accessing `this.state` after calling this method may return the old value.
  51861. *
  51862. * @param {ReactClass} publicInstance The instance that should rerender.
  51863. * @param {object} completeState Next state.
  51864. * @param {?function} callback Called after component is updated.
  51865. * @param {?string} callerName name of the calling function in the public API.
  51866. * @internal
  51867. */
  51868. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  51869. warnNoop(publicInstance, 'replaceState');
  51870. },
  51871. /**
  51872. * Sets a subset of the state. This only exists because _pendingState is
  51873. * internal. This provides a merging strategy that is not available to deep
  51874. * properties which is confusing. TODO: Expose pendingState or don't use it
  51875. * during the merge.
  51876. *
  51877. * @param {ReactClass} publicInstance The instance that should rerender.
  51878. * @param {object} partialState Next partial state to be merged with state.
  51879. * @param {?function} callback Called after component is updated.
  51880. * @param {?string} Name of the calling function in the public API.
  51881. * @internal
  51882. */
  51883. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  51884. warnNoop(publicInstance, 'setState');
  51885. }
  51886. };
  51887. var emptyObject = {};
  51888. {
  51889. Object.freeze(emptyObject);
  51890. }
  51891. /**
  51892. * Base class helpers for the updating state of a component.
  51893. */
  51894. function Component(props, context, updater) {
  51895. this.props = props;
  51896. this.context = context;
  51897. // If a component has string refs, we will assign a different object later.
  51898. this.refs = emptyObject;
  51899. // We initialize the default updater but the real one gets injected by the
  51900. // renderer.
  51901. this.updater = updater || ReactNoopUpdateQueue;
  51902. }
  51903. Component.prototype.isReactComponent = {};
  51904. /**
  51905. * Sets a subset of the state. Always use this to mutate
  51906. * state. You should treat `this.state` as immutable.
  51907. *
  51908. * There is no guarantee that `this.state` will be immediately updated, so
  51909. * accessing `this.state` after calling this method may return the old value.
  51910. *
  51911. * There is no guarantee that calls to `setState` will run synchronously,
  51912. * as they may eventually be batched together. You can provide an optional
  51913. * callback that will be executed when the call to setState is actually
  51914. * completed.
  51915. *
  51916. * When a function is provided to setState, it will be called at some point in
  51917. * the future (not synchronously). It will be called with the up to date
  51918. * component arguments (state, props, context). These values can be different
  51919. * from this.* because your function may be called after receiveProps but before
  51920. * shouldComponentUpdate, and this new state, props, and context will not yet be
  51921. * assigned to this.
  51922. *
  51923. * @param {object|function} partialState Next partial state or function to
  51924. * produce next partial state to be merged with current state.
  51925. * @param {?function} callback Called after state is updated.
  51926. * @final
  51927. * @protected
  51928. */
  51929. Component.prototype.setState = function (partialState, callback) {
  51930. !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
  51931. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  51932. };
  51933. /**
  51934. * Forces an update. This should only be invoked when it is known with
  51935. * certainty that we are **not** in a DOM transaction.
  51936. *
  51937. * You may want to call this when you know that some deeper aspect of the
  51938. * component's state has changed but `setState` was not called.
  51939. *
  51940. * This will not invoke `shouldComponentUpdate`, but it will invoke
  51941. * `componentWillUpdate` and `componentDidUpdate`.
  51942. *
  51943. * @param {?function} callback Called after update is complete.
  51944. * @final
  51945. * @protected
  51946. */
  51947. Component.prototype.forceUpdate = function (callback) {
  51948. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  51949. };
  51950. /**
  51951. * Deprecated APIs. These APIs used to exist on classic React classes but since
  51952. * we would like to deprecate them, we're not going to move them over to this
  51953. * modern base class. Instead, we define a getter that warns if it's accessed.
  51954. */
  51955. {
  51956. var deprecatedAPIs = {
  51957. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  51958. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  51959. };
  51960. var defineDeprecationWarning = function (methodName, info) {
  51961. Object.defineProperty(Component.prototype, methodName, {
  51962. get: function () {
  51963. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  51964. return undefined;
  51965. }
  51966. });
  51967. };
  51968. for (var fnName in deprecatedAPIs) {
  51969. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  51970. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  51971. }
  51972. }
  51973. }
  51974. function ComponentDummy() {}
  51975. ComponentDummy.prototype = Component.prototype;
  51976. /**
  51977. * Convenience component with default shallow equality check for sCU.
  51978. */
  51979. function PureComponent(props, context, updater) {
  51980. this.props = props;
  51981. this.context = context;
  51982. // If a component has string refs, we will assign a different object later.
  51983. this.refs = emptyObject;
  51984. this.updater = updater || ReactNoopUpdateQueue;
  51985. }
  51986. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  51987. pureComponentPrototype.constructor = PureComponent;
  51988. // Avoid an extra prototype jump for these methods.
  51989. _assign(pureComponentPrototype, Component.prototype);
  51990. pureComponentPrototype.isPureReactComponent = true;
  51991. // an immutable object with a single mutable value
  51992. function createRef() {
  51993. var refObject = {
  51994. current: null
  51995. };
  51996. {
  51997. Object.seal(refObject);
  51998. }
  51999. return refObject;
  52000. }
  52001. /**
  52002. * Keeps track of the current owner.
  52003. *
  52004. * The current owner is the component who should own any components that are
  52005. * currently being constructed.
  52006. */
  52007. var ReactCurrentOwner = {
  52008. /**
  52009. * @internal
  52010. * @type {ReactComponent}
  52011. */
  52012. current: null,
  52013. currentDispatcher: null
  52014. };
  52015. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  52016. var describeComponentFrame = function (name, source, ownerName) {
  52017. var sourceInfo = '';
  52018. if (source) {
  52019. var path = source.fileName;
  52020. var fileName = path.replace(BEFORE_SLASH_RE, '');
  52021. {
  52022. // In DEV, include code for a common special case:
  52023. // prefer "folder/index.js" instead of just "index.js".
  52024. if (/^index\./.test(fileName)) {
  52025. var match = path.match(BEFORE_SLASH_RE);
  52026. if (match) {
  52027. var pathBeforeSlash = match[1];
  52028. if (pathBeforeSlash) {
  52029. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  52030. fileName = folderName + '/' + fileName;
  52031. }
  52032. }
  52033. }
  52034. }
  52035. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  52036. } else if (ownerName) {
  52037. sourceInfo = ' (created by ' + ownerName + ')';
  52038. }
  52039. return '\n in ' + (name || 'Unknown') + sourceInfo;
  52040. };
  52041. var Resolved = 1;
  52042. function refineResolvedLazyComponent(lazyComponent) {
  52043. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  52044. }
  52045. function getWrappedName(outerType, innerType, wrapperName) {
  52046. var functionName = innerType.displayName || innerType.name || '';
  52047. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  52048. }
  52049. function getComponentName(type) {
  52050. if (type == null) {
  52051. // Host root, text node or just invalid type.
  52052. return null;
  52053. }
  52054. {
  52055. if (typeof type.tag === 'number') {
  52056. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  52057. }
  52058. }
  52059. if (typeof type === 'function') {
  52060. return type.displayName || type.name || null;
  52061. }
  52062. if (typeof type === 'string') {
  52063. return type;
  52064. }
  52065. switch (type) {
  52066. case REACT_CONCURRENT_MODE_TYPE:
  52067. return 'ConcurrentMode';
  52068. case REACT_FRAGMENT_TYPE:
  52069. return 'Fragment';
  52070. case REACT_PORTAL_TYPE:
  52071. return 'Portal';
  52072. case REACT_PROFILER_TYPE:
  52073. return 'Profiler';
  52074. case REACT_STRICT_MODE_TYPE:
  52075. return 'StrictMode';
  52076. case REACT_SUSPENSE_TYPE:
  52077. return 'Suspense';
  52078. }
  52079. if (typeof type === 'object') {
  52080. switch (type.$$typeof) {
  52081. case REACT_CONTEXT_TYPE:
  52082. return 'Context.Consumer';
  52083. case REACT_PROVIDER_TYPE:
  52084. return 'Context.Provider';
  52085. case REACT_FORWARD_REF_TYPE:
  52086. return getWrappedName(type, type.render, 'ForwardRef');
  52087. case REACT_MEMO_TYPE:
  52088. return getComponentName(type.type);
  52089. case REACT_LAZY_TYPE:
  52090. {
  52091. var thenable = type;
  52092. var resolvedThenable = refineResolvedLazyComponent(thenable);
  52093. if (resolvedThenable) {
  52094. return getComponentName(resolvedThenable);
  52095. }
  52096. }
  52097. }
  52098. }
  52099. return null;
  52100. }
  52101. var ReactDebugCurrentFrame = {};
  52102. var currentlyValidatingElement = null;
  52103. function setCurrentlyValidatingElement(element) {
  52104. {
  52105. currentlyValidatingElement = element;
  52106. }
  52107. }
  52108. {
  52109. // Stack implementation injected by the current renderer.
  52110. ReactDebugCurrentFrame.getCurrentStack = null;
  52111. ReactDebugCurrentFrame.getStackAddendum = function () {
  52112. var stack = '';
  52113. // Add an extra top frame while an element is being validated
  52114. if (currentlyValidatingElement) {
  52115. var name = getComponentName(currentlyValidatingElement.type);
  52116. var owner = currentlyValidatingElement._owner;
  52117. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  52118. }
  52119. // Delegate to the injected renderer-specific implementation
  52120. var impl = ReactDebugCurrentFrame.getCurrentStack;
  52121. if (impl) {
  52122. stack += impl() || '';
  52123. }
  52124. return stack;
  52125. };
  52126. }
  52127. var ReactSharedInternals = {
  52128. ReactCurrentOwner: ReactCurrentOwner,
  52129. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  52130. assign: _assign
  52131. };
  52132. {
  52133. _assign(ReactSharedInternals, {
  52134. // These should not be included in production.
  52135. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  52136. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  52137. // TODO: remove in React 17.0.
  52138. ReactComponentTreeHook: {}
  52139. });
  52140. }
  52141. /**
  52142. * Similar to invariant but only logs a warning if the condition is not met.
  52143. * This can be used to log issues in development environments in critical
  52144. * paths. Removing the logging code for production environments will keep the
  52145. * same logic and follow the same code paths.
  52146. */
  52147. var warning = warningWithoutStack$1;
  52148. {
  52149. warning = function (condition, format) {
  52150. if (condition) {
  52151. return;
  52152. }
  52153. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  52154. var stack = ReactDebugCurrentFrame.getStackAddendum();
  52155. // eslint-disable-next-line react-internal/warning-and-invariant-args
  52156. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  52157. args[_key - 2] = arguments[_key];
  52158. }
  52159. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  52160. };
  52161. }
  52162. var warning$1 = warning;
  52163. var hasOwnProperty = Object.prototype.hasOwnProperty;
  52164. var RESERVED_PROPS = {
  52165. key: true,
  52166. ref: true,
  52167. __self: true,
  52168. __source: true
  52169. };
  52170. var specialPropKeyWarningShown = void 0;
  52171. var specialPropRefWarningShown = void 0;
  52172. function hasValidRef(config) {
  52173. {
  52174. if (hasOwnProperty.call(config, 'ref')) {
  52175. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  52176. if (getter && getter.isReactWarning) {
  52177. return false;
  52178. }
  52179. }
  52180. }
  52181. return config.ref !== undefined;
  52182. }
  52183. function hasValidKey(config) {
  52184. {
  52185. if (hasOwnProperty.call(config, 'key')) {
  52186. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  52187. if (getter && getter.isReactWarning) {
  52188. return false;
  52189. }
  52190. }
  52191. }
  52192. return config.key !== undefined;
  52193. }
  52194. function defineKeyPropWarningGetter(props, displayName) {
  52195. var warnAboutAccessingKey = function () {
  52196. if (!specialPropKeyWarningShown) {
  52197. specialPropKeyWarningShown = true;
  52198. 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);
  52199. }
  52200. };
  52201. warnAboutAccessingKey.isReactWarning = true;
  52202. Object.defineProperty(props, 'key', {
  52203. get: warnAboutAccessingKey,
  52204. configurable: true
  52205. });
  52206. }
  52207. function defineRefPropWarningGetter(props, displayName) {
  52208. var warnAboutAccessingRef = function () {
  52209. if (!specialPropRefWarningShown) {
  52210. specialPropRefWarningShown = true;
  52211. 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);
  52212. }
  52213. };
  52214. warnAboutAccessingRef.isReactWarning = true;
  52215. Object.defineProperty(props, 'ref', {
  52216. get: warnAboutAccessingRef,
  52217. configurable: true
  52218. });
  52219. }
  52220. /**
  52221. * Factory method to create a new React element. This no longer adheres to
  52222. * the class pattern, so do not use new to call it. Also, no instanceof check
  52223. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  52224. * if something is a React Element.
  52225. *
  52226. * @param {*} type
  52227. * @param {*} key
  52228. * @param {string|object} ref
  52229. * @param {*} self A *temporary* helper to detect places where `this` is
  52230. * different from the `owner` when React.createElement is called, so that we
  52231. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  52232. * functions, and as long as `this` and owner are the same, there will be no
  52233. * change in behavior.
  52234. * @param {*} source An annotation object (added by a transpiler or otherwise)
  52235. * indicating filename, line number, and/or other information.
  52236. * @param {*} owner
  52237. * @param {*} props
  52238. * @internal
  52239. */
  52240. var ReactElement = function (type, key, ref, self, source, owner, props) {
  52241. var element = {
  52242. // This tag allows us to uniquely identify this as a React Element
  52243. $$typeof: REACT_ELEMENT_TYPE,
  52244. // Built-in properties that belong on the element
  52245. type: type,
  52246. key: key,
  52247. ref: ref,
  52248. props: props,
  52249. // Record the component responsible for creating this element.
  52250. _owner: owner
  52251. };
  52252. {
  52253. // The validation flag is currently mutative. We put it on
  52254. // an external backing store so that we can freeze the whole object.
  52255. // This can be replaced with a WeakMap once they are implemented in
  52256. // commonly used development environments.
  52257. element._store = {};
  52258. // To make comparing ReactElements easier for testing purposes, we make
  52259. // the validation flag non-enumerable (where possible, which should
  52260. // include every environment we run tests in), so the test framework
  52261. // ignores it.
  52262. Object.defineProperty(element._store, 'validated', {
  52263. configurable: false,
  52264. enumerable: false,
  52265. writable: true,
  52266. value: false
  52267. });
  52268. // self and source are DEV only properties.
  52269. Object.defineProperty(element, '_self', {
  52270. configurable: false,
  52271. enumerable: false,
  52272. writable: false,
  52273. value: self
  52274. });
  52275. // Two elements created in two different places should be considered
  52276. // equal for testing purposes and therefore we hide it from enumeration.
  52277. Object.defineProperty(element, '_source', {
  52278. configurable: false,
  52279. enumerable: false,
  52280. writable: false,
  52281. value: source
  52282. });
  52283. if (Object.freeze) {
  52284. Object.freeze(element.props);
  52285. Object.freeze(element);
  52286. }
  52287. }
  52288. return element;
  52289. };
  52290. /**
  52291. * Create and return a new ReactElement of the given type.
  52292. * See https://reactjs.org/docs/react-api.html#createelement
  52293. */
  52294. function createElement(type, config, children) {
  52295. var propName = void 0;
  52296. // Reserved names are extracted
  52297. var props = {};
  52298. var key = null;
  52299. var ref = null;
  52300. var self = null;
  52301. var source = null;
  52302. if (config != null) {
  52303. if (hasValidRef(config)) {
  52304. ref = config.ref;
  52305. }
  52306. if (hasValidKey(config)) {
  52307. key = '' + config.key;
  52308. }
  52309. self = config.__self === undefined ? null : config.__self;
  52310. source = config.__source === undefined ? null : config.__source;
  52311. // Remaining properties are added to a new props object
  52312. for (propName in config) {
  52313. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  52314. props[propName] = config[propName];
  52315. }
  52316. }
  52317. }
  52318. // Children can be more than one argument, and those are transferred onto
  52319. // the newly allocated props object.
  52320. var childrenLength = arguments.length - 2;
  52321. if (childrenLength === 1) {
  52322. props.children = children;
  52323. } else if (childrenLength > 1) {
  52324. var childArray = Array(childrenLength);
  52325. for (var i = 0; i < childrenLength; i++) {
  52326. childArray[i] = arguments[i + 2];
  52327. }
  52328. {
  52329. if (Object.freeze) {
  52330. Object.freeze(childArray);
  52331. }
  52332. }
  52333. props.children = childArray;
  52334. }
  52335. // Resolve default props
  52336. if (type && type.defaultProps) {
  52337. var defaultProps = type.defaultProps;
  52338. for (propName in defaultProps) {
  52339. if (props[propName] === undefined) {
  52340. props[propName] = defaultProps[propName];
  52341. }
  52342. }
  52343. }
  52344. {
  52345. if (key || ref) {
  52346. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  52347. if (key) {
  52348. defineKeyPropWarningGetter(props, displayName);
  52349. }
  52350. if (ref) {
  52351. defineRefPropWarningGetter(props, displayName);
  52352. }
  52353. }
  52354. }
  52355. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  52356. }
  52357. /**
  52358. * Return a function that produces ReactElements of a given type.
  52359. * See https://reactjs.org/docs/react-api.html#createfactory
  52360. */
  52361. function cloneAndReplaceKey(oldElement, newKey) {
  52362. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  52363. return newElement;
  52364. }
  52365. /**
  52366. * Clone and return a new ReactElement using element as the starting point.
  52367. * See https://reactjs.org/docs/react-api.html#cloneelement
  52368. */
  52369. function cloneElement(element, config, children) {
  52370. !!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
  52371. var propName = void 0;
  52372. // Original props are copied
  52373. var props = _assign({}, element.props);
  52374. // Reserved names are extracted
  52375. var key = element.key;
  52376. var ref = element.ref;
  52377. // Self is preserved since the owner is preserved.
  52378. var self = element._self;
  52379. // Source is preserved since cloneElement is unlikely to be targeted by a
  52380. // transpiler, and the original source is probably a better indicator of the
  52381. // true owner.
  52382. var source = element._source;
  52383. // Owner will be preserved, unless ref is overridden
  52384. var owner = element._owner;
  52385. if (config != null) {
  52386. if (hasValidRef(config)) {
  52387. // Silently steal the ref from the parent.
  52388. ref = config.ref;
  52389. owner = ReactCurrentOwner.current;
  52390. }
  52391. if (hasValidKey(config)) {
  52392. key = '' + config.key;
  52393. }
  52394. // Remaining properties override existing props
  52395. var defaultProps = void 0;
  52396. if (element.type && element.type.defaultProps) {
  52397. defaultProps = element.type.defaultProps;
  52398. }
  52399. for (propName in config) {
  52400. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  52401. if (config[propName] === undefined && defaultProps !== undefined) {
  52402. // Resolve default props
  52403. props[propName] = defaultProps[propName];
  52404. } else {
  52405. props[propName] = config[propName];
  52406. }
  52407. }
  52408. }
  52409. }
  52410. // Children can be more than one argument, and those are transferred onto
  52411. // the newly allocated props object.
  52412. var childrenLength = arguments.length - 2;
  52413. if (childrenLength === 1) {
  52414. props.children = children;
  52415. } else if (childrenLength > 1) {
  52416. var childArray = Array(childrenLength);
  52417. for (var i = 0; i < childrenLength; i++) {
  52418. childArray[i] = arguments[i + 2];
  52419. }
  52420. props.children = childArray;
  52421. }
  52422. return ReactElement(element.type, key, ref, self, source, owner, props);
  52423. }
  52424. /**
  52425. * Verifies the object is a ReactElement.
  52426. * See https://reactjs.org/docs/react-api.html#isvalidelement
  52427. * @param {?object} object
  52428. * @return {boolean} True if `object` is a ReactElement.
  52429. * @final
  52430. */
  52431. function isValidElement(object) {
  52432. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  52433. }
  52434. var SEPARATOR = '.';
  52435. var SUBSEPARATOR = ':';
  52436. /**
  52437. * Escape and wrap key so it is safe to use as a reactid
  52438. *
  52439. * @param {string} key to be escaped.
  52440. * @return {string} the escaped key.
  52441. */
  52442. function escape(key) {
  52443. var escapeRegex = /[=:]/g;
  52444. var escaperLookup = {
  52445. '=': '=0',
  52446. ':': '=2'
  52447. };
  52448. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  52449. return escaperLookup[match];
  52450. });
  52451. return '$' + escapedString;
  52452. }
  52453. /**
  52454. * TODO: Test that a single child and an array with one item have the same key
  52455. * pattern.
  52456. */
  52457. var didWarnAboutMaps = false;
  52458. var userProvidedKeyEscapeRegex = /\/+/g;
  52459. function escapeUserProvidedKey(text) {
  52460. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  52461. }
  52462. var POOL_SIZE = 10;
  52463. var traverseContextPool = [];
  52464. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  52465. if (traverseContextPool.length) {
  52466. var traverseContext = traverseContextPool.pop();
  52467. traverseContext.result = mapResult;
  52468. traverseContext.keyPrefix = keyPrefix;
  52469. traverseContext.func = mapFunction;
  52470. traverseContext.context = mapContext;
  52471. traverseContext.count = 0;
  52472. return traverseContext;
  52473. } else {
  52474. return {
  52475. result: mapResult,
  52476. keyPrefix: keyPrefix,
  52477. func: mapFunction,
  52478. context: mapContext,
  52479. count: 0
  52480. };
  52481. }
  52482. }
  52483. function releaseTraverseContext(traverseContext) {
  52484. traverseContext.result = null;
  52485. traverseContext.keyPrefix = null;
  52486. traverseContext.func = null;
  52487. traverseContext.context = null;
  52488. traverseContext.count = 0;
  52489. if (traverseContextPool.length < POOL_SIZE) {
  52490. traverseContextPool.push(traverseContext);
  52491. }
  52492. }
  52493. /**
  52494. * @param {?*} children Children tree container.
  52495. * @param {!string} nameSoFar Name of the key path so far.
  52496. * @param {!function} callback Callback to invoke with each child found.
  52497. * @param {?*} traverseContext Used to pass information throughout the traversal
  52498. * process.
  52499. * @return {!number} The number of children in this subtree.
  52500. */
  52501. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  52502. var type = typeof children;
  52503. if (type === 'undefined' || type === 'boolean') {
  52504. // All of the above are perceived as null.
  52505. children = null;
  52506. }
  52507. var invokeCallback = false;
  52508. if (children === null) {
  52509. invokeCallback = true;
  52510. } else {
  52511. switch (type) {
  52512. case 'string':
  52513. case 'number':
  52514. invokeCallback = true;
  52515. break;
  52516. case 'object':
  52517. switch (children.$$typeof) {
  52518. case REACT_ELEMENT_TYPE:
  52519. case REACT_PORTAL_TYPE:
  52520. invokeCallback = true;
  52521. }
  52522. }
  52523. }
  52524. if (invokeCallback) {
  52525. callback(traverseContext, children,
  52526. // If it's the only child, treat the name as if it was wrapped in an array
  52527. // so that it's consistent if the number of children grows.
  52528. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  52529. return 1;
  52530. }
  52531. var child = void 0;
  52532. var nextName = void 0;
  52533. var subtreeCount = 0; // Count of children found in the current subtree.
  52534. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  52535. if (Array.isArray(children)) {
  52536. for (var i = 0; i < children.length; i++) {
  52537. child = children[i];
  52538. nextName = nextNamePrefix + getComponentKey(child, i);
  52539. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  52540. }
  52541. } else {
  52542. var iteratorFn = getIteratorFn(children);
  52543. if (typeof iteratorFn === 'function') {
  52544. {
  52545. // Warn about using Maps as children
  52546. if (iteratorFn === children.entries) {
  52547. !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;
  52548. didWarnAboutMaps = true;
  52549. }
  52550. }
  52551. var iterator = iteratorFn.call(children);
  52552. var step = void 0;
  52553. var ii = 0;
  52554. while (!(step = iterator.next()).done) {
  52555. child = step.value;
  52556. nextName = nextNamePrefix + getComponentKey(child, ii++);
  52557. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  52558. }
  52559. } else if (type === 'object') {
  52560. var addendum = '';
  52561. {
  52562. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  52563. }
  52564. var childrenString = '' + children;
  52565. invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
  52566. }
  52567. }
  52568. return subtreeCount;
  52569. }
  52570. /**
  52571. * Traverses children that are typically specified as `props.children`, but
  52572. * might also be specified through attributes:
  52573. *
  52574. * - `traverseAllChildren(this.props.children, ...)`
  52575. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  52576. *
  52577. * The `traverseContext` is an optional argument that is passed through the
  52578. * entire traversal. It can be used to store accumulations or anything else that
  52579. * the callback might find relevant.
  52580. *
  52581. * @param {?*} children Children tree object.
  52582. * @param {!function} callback To invoke upon traversing each child.
  52583. * @param {?*} traverseContext Context for traversal.
  52584. * @return {!number} The number of children in this subtree.
  52585. */
  52586. function traverseAllChildren(children, callback, traverseContext) {
  52587. if (children == null) {
  52588. return 0;
  52589. }
  52590. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  52591. }
  52592. /**
  52593. * Generate a key string that identifies a component within a set.
  52594. *
  52595. * @param {*} component A component that could contain a manual key.
  52596. * @param {number} index Index that is used if a manual key is not provided.
  52597. * @return {string}
  52598. */
  52599. function getComponentKey(component, index) {
  52600. // Do some typechecking here since we call this blindly. We want to ensure
  52601. // that we don't block potential future ES APIs.
  52602. if (typeof component === 'object' && component !== null && component.key != null) {
  52603. // Explicit key
  52604. return escape(component.key);
  52605. }
  52606. // Implicit key determined by the index in the set
  52607. return index.toString(36);
  52608. }
  52609. function forEachSingleChild(bookKeeping, child, name) {
  52610. var func = bookKeeping.func,
  52611. context = bookKeeping.context;
  52612. func.call(context, child, bookKeeping.count++);
  52613. }
  52614. /**
  52615. * Iterates through children that are typically specified as `props.children`.
  52616. *
  52617. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  52618. *
  52619. * The provided forEachFunc(child, index) will be called for each
  52620. * leaf child.
  52621. *
  52622. * @param {?*} children Children tree container.
  52623. * @param {function(*, int)} forEachFunc
  52624. * @param {*} forEachContext Context for forEachContext.
  52625. */
  52626. function forEachChildren(children, forEachFunc, forEachContext) {
  52627. if (children == null) {
  52628. return children;
  52629. }
  52630. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  52631. traverseAllChildren(children, forEachSingleChild, traverseContext);
  52632. releaseTraverseContext(traverseContext);
  52633. }
  52634. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  52635. var result = bookKeeping.result,
  52636. keyPrefix = bookKeeping.keyPrefix,
  52637. func = bookKeeping.func,
  52638. context = bookKeeping.context;
  52639. var mappedChild = func.call(context, child, bookKeeping.count++);
  52640. if (Array.isArray(mappedChild)) {
  52641. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  52642. return c;
  52643. });
  52644. } else if (mappedChild != null) {
  52645. if (isValidElement(mappedChild)) {
  52646. mappedChild = cloneAndReplaceKey(mappedChild,
  52647. // Keep both the (mapped) and old keys if they differ, just as
  52648. // traverseAllChildren used to do for objects as children
  52649. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  52650. }
  52651. result.push(mappedChild);
  52652. }
  52653. }
  52654. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  52655. var escapedPrefix = '';
  52656. if (prefix != null) {
  52657. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  52658. }
  52659. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  52660. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  52661. releaseTraverseContext(traverseContext);
  52662. }
  52663. /**
  52664. * Maps children that are typically specified as `props.children`.
  52665. *
  52666. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  52667. *
  52668. * The provided mapFunction(child, key, index) will be called for each
  52669. * leaf child.
  52670. *
  52671. * @param {?*} children Children tree container.
  52672. * @param {function(*, int)} func The map function.
  52673. * @param {*} context Context for mapFunction.
  52674. * @return {object} Object containing the ordered map of results.
  52675. */
  52676. function mapChildren(children, func, context) {
  52677. if (children == null) {
  52678. return children;
  52679. }
  52680. var result = [];
  52681. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  52682. return result;
  52683. }
  52684. /**
  52685. * Count the number of children that are typically specified as
  52686. * `props.children`.
  52687. *
  52688. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  52689. *
  52690. * @param {?*} children Children tree container.
  52691. * @return {number} The number of children.
  52692. */
  52693. function countChildren(children) {
  52694. return traverseAllChildren(children, function () {
  52695. return null;
  52696. }, null);
  52697. }
  52698. /**
  52699. * Flatten a children object (typically specified as `props.children`) and
  52700. * return an array with appropriately re-keyed children.
  52701. *
  52702. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  52703. */
  52704. function toArray(children) {
  52705. var result = [];
  52706. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  52707. return child;
  52708. });
  52709. return result;
  52710. }
  52711. /**
  52712. * Returns the first child in a collection of children and verifies that there
  52713. * is only one child in the collection.
  52714. *
  52715. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  52716. *
  52717. * The current implementation of this function assumes that a single child gets
  52718. * passed without a wrapper, but the purpose of this helper function is to
  52719. * abstract away the particular structure of children.
  52720. *
  52721. * @param {?object} children Child collection structure.
  52722. * @return {ReactElement} The first and only `ReactElement` contained in the
  52723. * structure.
  52724. */
  52725. function onlyChild(children) {
  52726. !isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0;
  52727. return children;
  52728. }
  52729. function createContext(defaultValue, calculateChangedBits) {
  52730. if (calculateChangedBits === undefined) {
  52731. calculateChangedBits = null;
  52732. } else {
  52733. {
  52734. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  52735. }
  52736. }
  52737. var context = {
  52738. $$typeof: REACT_CONTEXT_TYPE,
  52739. _calculateChangedBits: calculateChangedBits,
  52740. // As a workaround to support multiple concurrent renderers, we categorize
  52741. // some renderers as primary and others as secondary. We only expect
  52742. // there to be two concurrent renderers at most: React Native (primary) and
  52743. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  52744. // Secondary renderers store their context values on separate fields.
  52745. _currentValue: defaultValue,
  52746. _currentValue2: defaultValue,
  52747. // Used to track how many concurrent renderers this context currently
  52748. // supports within in a single renderer. Such as parallel server rendering.
  52749. _threadCount: 0,
  52750. // These are circular
  52751. Provider: null,
  52752. Consumer: null
  52753. };
  52754. context.Provider = {
  52755. $$typeof: REACT_PROVIDER_TYPE,
  52756. _context: context
  52757. };
  52758. var hasWarnedAboutUsingNestedContextConsumers = false;
  52759. var hasWarnedAboutUsingConsumerProvider = false;
  52760. {
  52761. // A separate object, but proxies back to the original context object for
  52762. // backwards compatibility. It has a different $$typeof, so we can properly
  52763. // warn for the incorrect usage of Context as a Consumer.
  52764. var Consumer = {
  52765. $$typeof: REACT_CONTEXT_TYPE,
  52766. _context: context,
  52767. _calculateChangedBits: context._calculateChangedBits
  52768. };
  52769. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  52770. Object.defineProperties(Consumer, {
  52771. Provider: {
  52772. get: function () {
  52773. if (!hasWarnedAboutUsingConsumerProvider) {
  52774. hasWarnedAboutUsingConsumerProvider = true;
  52775. 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?');
  52776. }
  52777. return context.Provider;
  52778. },
  52779. set: function (_Provider) {
  52780. context.Provider = _Provider;
  52781. }
  52782. },
  52783. _currentValue: {
  52784. get: function () {
  52785. return context._currentValue;
  52786. },
  52787. set: function (_currentValue) {
  52788. context._currentValue = _currentValue;
  52789. }
  52790. },
  52791. _currentValue2: {
  52792. get: function () {
  52793. return context._currentValue2;
  52794. },
  52795. set: function (_currentValue2) {
  52796. context._currentValue2 = _currentValue2;
  52797. }
  52798. },
  52799. _threadCount: {
  52800. get: function () {
  52801. return context._threadCount;
  52802. },
  52803. set: function (_threadCount) {
  52804. context._threadCount = _threadCount;
  52805. }
  52806. },
  52807. Consumer: {
  52808. get: function () {
  52809. if (!hasWarnedAboutUsingNestedContextConsumers) {
  52810. hasWarnedAboutUsingNestedContextConsumers = true;
  52811. 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?');
  52812. }
  52813. return context.Consumer;
  52814. }
  52815. }
  52816. });
  52817. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  52818. context.Consumer = Consumer;
  52819. }
  52820. {
  52821. context._currentRenderer = null;
  52822. context._currentRenderer2 = null;
  52823. }
  52824. return context;
  52825. }
  52826. function lazy(ctor) {
  52827. return {
  52828. $$typeof: REACT_LAZY_TYPE,
  52829. _ctor: ctor,
  52830. // React uses these fields to store the result.
  52831. _status: -1,
  52832. _result: null
  52833. };
  52834. }
  52835. function forwardRef(render) {
  52836. {
  52837. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  52838. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  52839. } else if (typeof render !== 'function') {
  52840. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  52841. } else {
  52842. !(
  52843. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  52844. 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;
  52845. }
  52846. if (render != null) {
  52847. !(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;
  52848. }
  52849. }
  52850. return {
  52851. $$typeof: REACT_FORWARD_REF_TYPE,
  52852. render: render
  52853. };
  52854. }
  52855. function isValidElementType(type) {
  52856. return typeof type === 'string' || typeof type === 'function' ||
  52857. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  52858. 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);
  52859. }
  52860. function memo(type, compare) {
  52861. {
  52862. if (!isValidElementType(type)) {
  52863. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  52864. }
  52865. }
  52866. return {
  52867. $$typeof: REACT_MEMO_TYPE,
  52868. type: type,
  52869. compare: compare === undefined ? null : compare
  52870. };
  52871. }
  52872. function resolveDispatcher() {
  52873. var dispatcher = ReactCurrentOwner.currentDispatcher;
  52874. !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
  52875. return dispatcher;
  52876. }
  52877. function useContext(Context, observedBits) {
  52878. var dispatcher = resolveDispatcher();
  52879. {
  52880. // TODO: add a more generic warning for invalid values.
  52881. if (Context._context !== undefined) {
  52882. var realContext = Context._context;
  52883. // Don't deduplicate because this legitimately causes bugs
  52884. // and nobody should be using this in existing code.
  52885. if (realContext.Consumer === Context) {
  52886. 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?');
  52887. } else if (realContext.Provider === Context) {
  52888. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  52889. }
  52890. }
  52891. }
  52892. return dispatcher.useContext(Context, observedBits);
  52893. }
  52894. function useState(initialState) {
  52895. var dispatcher = resolveDispatcher();
  52896. return dispatcher.useState(initialState);
  52897. }
  52898. function useReducer(reducer, initialState, initialAction) {
  52899. var dispatcher = resolveDispatcher();
  52900. return dispatcher.useReducer(reducer, initialState, initialAction);
  52901. }
  52902. function useRef(initialValue) {
  52903. var dispatcher = resolveDispatcher();
  52904. return dispatcher.useRef(initialValue);
  52905. }
  52906. function useEffect(create, inputs) {
  52907. var dispatcher = resolveDispatcher();
  52908. return dispatcher.useEffect(create, inputs);
  52909. }
  52910. function useMutationEffect(create, inputs) {
  52911. var dispatcher = resolveDispatcher();
  52912. return dispatcher.useMutationEffect(create, inputs);
  52913. }
  52914. function useLayoutEffect(create, inputs) {
  52915. var dispatcher = resolveDispatcher();
  52916. return dispatcher.useLayoutEffect(create, inputs);
  52917. }
  52918. function useCallback(callback, inputs) {
  52919. var dispatcher = resolveDispatcher();
  52920. return dispatcher.useCallback(callback, inputs);
  52921. }
  52922. function useMemo(create, inputs) {
  52923. var dispatcher = resolveDispatcher();
  52924. return dispatcher.useMemo(create, inputs);
  52925. }
  52926. function useImperativeMethods(ref, create, inputs) {
  52927. var dispatcher = resolveDispatcher();
  52928. return dispatcher.useImperativeMethods(ref, create, inputs);
  52929. }
  52930. /**
  52931. * ReactElementValidator provides a wrapper around a element factory
  52932. * which validates the props passed to the element. This is intended to be
  52933. * used only in DEV and could be replaced by a static type checker for languages
  52934. * that support it.
  52935. */
  52936. var propTypesMisspellWarningShown = void 0;
  52937. {
  52938. propTypesMisspellWarningShown = false;
  52939. }
  52940. function getDeclarationErrorAddendum() {
  52941. if (ReactCurrentOwner.current) {
  52942. var name = getComponentName(ReactCurrentOwner.current.type);
  52943. if (name) {
  52944. return '\n\nCheck the render method of `' + name + '`.';
  52945. }
  52946. }
  52947. return '';
  52948. }
  52949. function getSourceInfoErrorAddendum(elementProps) {
  52950. if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
  52951. var source = elementProps.__source;
  52952. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  52953. var lineNumber = source.lineNumber;
  52954. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  52955. }
  52956. return '';
  52957. }
  52958. /**
  52959. * Warn if there's no key explicitly set on dynamic arrays of children or
  52960. * object keys are not valid. This allows us to keep track of children between
  52961. * updates.
  52962. */
  52963. var ownerHasKeyUseWarning = {};
  52964. function getCurrentComponentErrorInfo(parentType) {
  52965. var info = getDeclarationErrorAddendum();
  52966. if (!info) {
  52967. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  52968. if (parentName) {
  52969. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  52970. }
  52971. }
  52972. return info;
  52973. }
  52974. /**
  52975. * Warn if the element doesn't have an explicit key assigned to it.
  52976. * This element is in an array. The array could grow and shrink or be
  52977. * reordered. All children that haven't already been validated are required to
  52978. * have a "key" property assigned to it. Error statuses are cached so a warning
  52979. * will only be shown once.
  52980. *
  52981. * @internal
  52982. * @param {ReactElement} element Element that requires a key.
  52983. * @param {*} parentType element's parent's type.
  52984. */
  52985. function validateExplicitKey(element, parentType) {
  52986. if (!element._store || element._store.validated || element.key != null) {
  52987. return;
  52988. }
  52989. element._store.validated = true;
  52990. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  52991. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  52992. return;
  52993. }
  52994. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  52995. // Usually the current owner is the offender, but if it accepts children as a
  52996. // property, it may be the creator of the child that's responsible for
  52997. // assigning it a key.
  52998. var childOwner = '';
  52999. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  53000. // Give the component that originally created this child.
  53001. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  53002. }
  53003. setCurrentlyValidatingElement(element);
  53004. {
  53005. warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  53006. }
  53007. setCurrentlyValidatingElement(null);
  53008. }
  53009. /**
  53010. * Ensure that every element either is passed in a static location, in an
  53011. * array with an explicit keys property defined, or in an object literal
  53012. * with valid key property.
  53013. *
  53014. * @internal
  53015. * @param {ReactNode} node Statically passed child of any type.
  53016. * @param {*} parentType node's parent's type.
  53017. */
  53018. function validateChildKeys(node, parentType) {
  53019. if (typeof node !== 'object') {
  53020. return;
  53021. }
  53022. if (Array.isArray(node)) {
  53023. for (var i = 0; i < node.length; i++) {
  53024. var child = node[i];
  53025. if (isValidElement(child)) {
  53026. validateExplicitKey(child, parentType);
  53027. }
  53028. }
  53029. } else if (isValidElement(node)) {
  53030. // This element was passed in a valid location.
  53031. if (node._store) {
  53032. node._store.validated = true;
  53033. }
  53034. } else if (node) {
  53035. var iteratorFn = getIteratorFn(node);
  53036. if (typeof iteratorFn === 'function') {
  53037. // Entry iterators used to provide implicit keys,
  53038. // but now we print a separate warning for them later.
  53039. if (iteratorFn !== node.entries) {
  53040. var iterator = iteratorFn.call(node);
  53041. var step = void 0;
  53042. while (!(step = iterator.next()).done) {
  53043. if (isValidElement(step.value)) {
  53044. validateExplicitKey(step.value, parentType);
  53045. }
  53046. }
  53047. }
  53048. }
  53049. }
  53050. }
  53051. /**
  53052. * Given an element, validate that its props follow the propTypes definition,
  53053. * provided by the type.
  53054. *
  53055. * @param {ReactElement} element
  53056. */
  53057. function validatePropTypes(element) {
  53058. var type = element.type;
  53059. var name = void 0,
  53060. propTypes = void 0;
  53061. if (typeof type === 'function') {
  53062. // Class or function component
  53063. name = type.displayName || type.name;
  53064. propTypes = type.propTypes;
  53065. } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
  53066. // ForwardRef
  53067. var functionName = type.render.displayName || type.render.name || '';
  53068. name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
  53069. propTypes = type.propTypes;
  53070. } else {
  53071. return;
  53072. }
  53073. if (propTypes) {
  53074. setCurrentlyValidatingElement(element);
  53075. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  53076. setCurrentlyValidatingElement(null);
  53077. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  53078. propTypesMisspellWarningShown = true;
  53079. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  53080. }
  53081. if (typeof type.getDefaultProps === 'function') {
  53082. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  53083. }
  53084. }
  53085. /**
  53086. * Given a fragment, validate that it can only be provided with fragment props
  53087. * @param {ReactElement} fragment
  53088. */
  53089. function validateFragmentProps(fragment) {
  53090. setCurrentlyValidatingElement(fragment);
  53091. var keys = Object.keys(fragment.props);
  53092. for (var i = 0; i < keys.length; i++) {
  53093. var key = keys[i];
  53094. if (key !== 'children' && key !== 'key') {
  53095. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  53096. break;
  53097. }
  53098. }
  53099. if (fragment.ref !== null) {
  53100. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  53101. }
  53102. setCurrentlyValidatingElement(null);
  53103. }
  53104. function createElementWithValidation(type, props, children) {
  53105. var validType = isValidElementType(type);
  53106. // We warn in this case but don't throw. We expect the element creation to
  53107. // succeed and there will likely be errors in render.
  53108. if (!validType) {
  53109. var info = '';
  53110. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  53111. 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.";
  53112. }
  53113. var sourceInfo = getSourceInfoErrorAddendum(props);
  53114. if (sourceInfo) {
  53115. info += sourceInfo;
  53116. } else {
  53117. info += getDeclarationErrorAddendum();
  53118. }
  53119. var typeString = void 0;
  53120. if (type === null) {
  53121. typeString = 'null';
  53122. } else if (Array.isArray(type)) {
  53123. typeString = 'array';
  53124. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  53125. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  53126. info = ' Did you accidentally export a JSX literal instead of a component?';
  53127. } else {
  53128. typeString = typeof type;
  53129. }
  53130. 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);
  53131. }
  53132. var element = createElement.apply(this, arguments);
  53133. // The result can be nullish if a mock or a custom function is used.
  53134. // TODO: Drop this when these are no longer allowed as the type argument.
  53135. if (element == null) {
  53136. return element;
  53137. }
  53138. // Skip key warning if the type isn't valid since our key validation logic
  53139. // doesn't expect a non-string/function type and can throw confusing errors.
  53140. // We don't want exception behavior to differ between dev and prod.
  53141. // (Rendering will throw with a helpful message and as soon as the type is
  53142. // fixed, the key warnings will appear.)
  53143. if (validType) {
  53144. for (var i = 2; i < arguments.length; i++) {
  53145. validateChildKeys(arguments[i], type);
  53146. }
  53147. }
  53148. if (type === REACT_FRAGMENT_TYPE) {
  53149. validateFragmentProps(element);
  53150. } else {
  53151. validatePropTypes(element);
  53152. }
  53153. return element;
  53154. }
  53155. function createFactoryWithValidation(type) {
  53156. var validatedFactory = createElementWithValidation.bind(null, type);
  53157. validatedFactory.type = type;
  53158. // Legacy hook: remove it
  53159. {
  53160. Object.defineProperty(validatedFactory, 'type', {
  53161. enumerable: false,
  53162. get: function () {
  53163. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  53164. Object.defineProperty(this, 'type', {
  53165. value: type
  53166. });
  53167. return type;
  53168. }
  53169. });
  53170. }
  53171. return validatedFactory;
  53172. }
  53173. function cloneElementWithValidation(element, props, children) {
  53174. var newElement = cloneElement.apply(this, arguments);
  53175. for (var i = 2; i < arguments.length; i++) {
  53176. validateChildKeys(arguments[i], newElement.type);
  53177. }
  53178. validatePropTypes(newElement);
  53179. return newElement;
  53180. }
  53181. var React = {
  53182. Children: {
  53183. map: mapChildren,
  53184. forEach: forEachChildren,
  53185. count: countChildren,
  53186. toArray: toArray,
  53187. only: onlyChild
  53188. },
  53189. createRef: createRef,
  53190. Component: Component,
  53191. PureComponent: PureComponent,
  53192. createContext: createContext,
  53193. forwardRef: forwardRef,
  53194. lazy: lazy,
  53195. memo: memo,
  53196. Fragment: REACT_FRAGMENT_TYPE,
  53197. StrictMode: REACT_STRICT_MODE_TYPE,
  53198. Suspense: REACT_SUSPENSE_TYPE,
  53199. createElement: createElementWithValidation,
  53200. cloneElement: cloneElementWithValidation,
  53201. createFactory: createFactoryWithValidation,
  53202. isValidElement: isValidElement,
  53203. version: ReactVersion,
  53204. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  53205. };
  53206. if (enableStableConcurrentModeAPIs) {
  53207. React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  53208. React.Profiler = REACT_PROFILER_TYPE;
  53209. } else {
  53210. React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
  53211. React.unstable_Profiler = REACT_PROFILER_TYPE;
  53212. }
  53213. if (enableHooks) {
  53214. React.useCallback = useCallback;
  53215. React.useContext = useContext;
  53216. React.useEffect = useEffect;
  53217. React.useImperativeMethods = useImperativeMethods;
  53218. React.useLayoutEffect = useLayoutEffect;
  53219. React.useMemo = useMemo;
  53220. React.useMutationEffect = useMutationEffect;
  53221. React.useReducer = useReducer;
  53222. React.useRef = useRef;
  53223. React.useState = useState;
  53224. }
  53225. var React$2 = Object.freeze({
  53226. default: React
  53227. });
  53228. var React$3 = ( React$2 && React ) || React$2;
  53229. // TODO: decide on the top-level export form.
  53230. // This is hacky but makes it work with both Rollup and Jest.
  53231. var react = React$3.default || React$3;
  53232. module.exports = react;
  53233. })();
  53234. }
  53235. /***/ }),
  53236. /***/ "../../node_modules/react/index.js":
  53237. /*!*******************************************************!*\
  53238. !*** E:/Repos/Babylon.js/node_modules/react/index.js ***!
  53239. \*******************************************************/
  53240. /*! no static exports found */
  53241. /***/ (function(module, exports, __webpack_require__) {
  53242. "use strict";
  53243. if (false) {} else {
  53244. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  53245. }
  53246. /***/ }),
  53247. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  53248. /*!***************************************************************************************!*\
  53249. !*** E:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  53250. \***************************************************************************************/
  53251. /*! no static exports found */
  53252. /***/ (function(module, exports, __webpack_require__) {
  53253. "use strict";
  53254. /** @license React v0.11.3
  53255. * scheduler-tracing.development.js
  53256. *
  53257. * Copyright (c) Facebook, Inc. and its affiliates.
  53258. *
  53259. * This source code is licensed under the MIT license found in the
  53260. * LICENSE file in the root directory of this source tree.
  53261. */
  53262. if (true) {
  53263. (function() {
  53264. 'use strict';
  53265. Object.defineProperty(exports, '__esModule', { value: true });
  53266. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  53267. // In some cases, StrictMode should also double-render lifecycles.
  53268. // This can be confusing for tests though,
  53269. // And it can be bad for performance in production.
  53270. // This feature flag can be used to control the behavior:
  53271. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  53272. // replay the begin phase of a failed component inside invokeGuardedCallback.
  53273. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  53274. // Gather advanced timing metrics for Profiler subtrees.
  53275. // Trace which interactions trigger each commit.
  53276. var enableSchedulerTracing = true;
  53277. // Only used in www builds.
  53278. // Only used in www builds.
  53279. // React Fire: prevent the value and checked attributes from syncing
  53280. // with their related DOM properties
  53281. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  53282. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  53283. var DEFAULT_THREAD_ID = 0;
  53284. // Counters used to generate unique IDs.
  53285. var interactionIDCounter = 0;
  53286. var threadIDCounter = 0;
  53287. // Set of currently traced interactions.
  53288. // Interactions "stack"–
  53289. // Meaning that newly traced interactions are appended to the previously active set.
  53290. // When an interaction goes out of scope, the previous set (if any) is restored.
  53291. exports.__interactionsRef = null;
  53292. // Listener(s) to notify when interactions begin and end.
  53293. exports.__subscriberRef = null;
  53294. if (enableSchedulerTracing) {
  53295. exports.__interactionsRef = {
  53296. current: new Set()
  53297. };
  53298. exports.__subscriberRef = {
  53299. current: null
  53300. };
  53301. }
  53302. function unstable_clear(callback) {
  53303. if (!enableSchedulerTracing) {
  53304. return callback();
  53305. }
  53306. var prevInteractions = exports.__interactionsRef.current;
  53307. exports.__interactionsRef.current = new Set();
  53308. try {
  53309. return callback();
  53310. } finally {
  53311. exports.__interactionsRef.current = prevInteractions;
  53312. }
  53313. }
  53314. function unstable_getCurrent() {
  53315. if (!enableSchedulerTracing) {
  53316. return null;
  53317. } else {
  53318. return exports.__interactionsRef.current;
  53319. }
  53320. }
  53321. function unstable_getThreadID() {
  53322. return ++threadIDCounter;
  53323. }
  53324. function unstable_trace(name, timestamp, callback) {
  53325. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  53326. if (!enableSchedulerTracing) {
  53327. return callback();
  53328. }
  53329. var interaction = {
  53330. __count: 1,
  53331. id: interactionIDCounter++,
  53332. name: name,
  53333. timestamp: timestamp
  53334. };
  53335. var prevInteractions = exports.__interactionsRef.current;
  53336. // Traced interactions should stack/accumulate.
  53337. // To do that, clone the current interactions.
  53338. // The previous set will be restored upon completion.
  53339. var interactions = new Set(prevInteractions);
  53340. interactions.add(interaction);
  53341. exports.__interactionsRef.current = interactions;
  53342. var subscriber = exports.__subscriberRef.current;
  53343. var returnValue = void 0;
  53344. try {
  53345. if (subscriber !== null) {
  53346. subscriber.onInteractionTraced(interaction);
  53347. }
  53348. } finally {
  53349. try {
  53350. if (subscriber !== null) {
  53351. subscriber.onWorkStarted(interactions, threadID);
  53352. }
  53353. } finally {
  53354. try {
  53355. returnValue = callback();
  53356. } finally {
  53357. exports.__interactionsRef.current = prevInteractions;
  53358. try {
  53359. if (subscriber !== null) {
  53360. subscriber.onWorkStopped(interactions, threadID);
  53361. }
  53362. } finally {
  53363. interaction.__count--;
  53364. // If no async work was scheduled for this interaction,
  53365. // Notify subscribers that it's completed.
  53366. if (subscriber !== null && interaction.__count === 0) {
  53367. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53368. }
  53369. }
  53370. }
  53371. }
  53372. }
  53373. return returnValue;
  53374. }
  53375. function unstable_wrap(callback) {
  53376. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  53377. if (!enableSchedulerTracing) {
  53378. return callback;
  53379. }
  53380. var wrappedInteractions = exports.__interactionsRef.current;
  53381. var subscriber = exports.__subscriberRef.current;
  53382. if (subscriber !== null) {
  53383. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  53384. }
  53385. // Update the pending async work count for the current interactions.
  53386. // Update after calling subscribers in case of error.
  53387. wrappedInteractions.forEach(function (interaction) {
  53388. interaction.__count++;
  53389. });
  53390. var hasRun = false;
  53391. function wrapped() {
  53392. var prevInteractions = exports.__interactionsRef.current;
  53393. exports.__interactionsRef.current = wrappedInteractions;
  53394. subscriber = exports.__subscriberRef.current;
  53395. try {
  53396. var returnValue = void 0;
  53397. try {
  53398. if (subscriber !== null) {
  53399. subscriber.onWorkStarted(wrappedInteractions, threadID);
  53400. }
  53401. } finally {
  53402. try {
  53403. returnValue = callback.apply(undefined, arguments);
  53404. } finally {
  53405. exports.__interactionsRef.current = prevInteractions;
  53406. if (subscriber !== null) {
  53407. subscriber.onWorkStopped(wrappedInteractions, threadID);
  53408. }
  53409. }
  53410. }
  53411. return returnValue;
  53412. } finally {
  53413. if (!hasRun) {
  53414. // We only expect a wrapped function to be executed once,
  53415. // But in the event that it's executed more than once–
  53416. // Only decrement the outstanding interaction counts once.
  53417. hasRun = true;
  53418. // Update pending async counts for all wrapped interactions.
  53419. // If this was the last scheduled async work for any of them,
  53420. // Mark them as completed.
  53421. wrappedInteractions.forEach(function (interaction) {
  53422. interaction.__count--;
  53423. if (subscriber !== null && interaction.__count === 0) {
  53424. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53425. }
  53426. });
  53427. }
  53428. }
  53429. }
  53430. wrapped.cancel = function cancel() {
  53431. subscriber = exports.__subscriberRef.current;
  53432. try {
  53433. if (subscriber !== null) {
  53434. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  53435. }
  53436. } finally {
  53437. // Update pending async counts for all wrapped interactions.
  53438. // If this was the last scheduled async work for any of them,
  53439. // Mark them as completed.
  53440. wrappedInteractions.forEach(function (interaction) {
  53441. interaction.__count--;
  53442. if (subscriber && interaction.__count === 0) {
  53443. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53444. }
  53445. });
  53446. }
  53447. };
  53448. return wrapped;
  53449. }
  53450. var subscribers = null;
  53451. if (enableSchedulerTracing) {
  53452. subscribers = new Set();
  53453. }
  53454. function unstable_subscribe(subscriber) {
  53455. if (enableSchedulerTracing) {
  53456. subscribers.add(subscriber);
  53457. if (subscribers.size === 1) {
  53458. exports.__subscriberRef.current = {
  53459. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  53460. onInteractionTraced: onInteractionTraced,
  53461. onWorkCanceled: onWorkCanceled,
  53462. onWorkScheduled: onWorkScheduled,
  53463. onWorkStarted: onWorkStarted,
  53464. onWorkStopped: onWorkStopped
  53465. };
  53466. }
  53467. }
  53468. }
  53469. function unstable_unsubscribe(subscriber) {
  53470. if (enableSchedulerTracing) {
  53471. subscribers.delete(subscriber);
  53472. if (subscribers.size === 0) {
  53473. exports.__subscriberRef.current = null;
  53474. }
  53475. }
  53476. }
  53477. function onInteractionTraced(interaction) {
  53478. var didCatchError = false;
  53479. var caughtError = null;
  53480. subscribers.forEach(function (subscriber) {
  53481. try {
  53482. subscriber.onInteractionTraced(interaction);
  53483. } catch (error) {
  53484. if (!didCatchError) {
  53485. didCatchError = true;
  53486. caughtError = error;
  53487. }
  53488. }
  53489. });
  53490. if (didCatchError) {
  53491. throw caughtError;
  53492. }
  53493. }
  53494. function onInteractionScheduledWorkCompleted(interaction) {
  53495. var didCatchError = false;
  53496. var caughtError = null;
  53497. subscribers.forEach(function (subscriber) {
  53498. try {
  53499. subscriber.onInteractionScheduledWorkCompleted(interaction);
  53500. } catch (error) {
  53501. if (!didCatchError) {
  53502. didCatchError = true;
  53503. caughtError = error;
  53504. }
  53505. }
  53506. });
  53507. if (didCatchError) {
  53508. throw caughtError;
  53509. }
  53510. }
  53511. function onWorkScheduled(interactions, threadID) {
  53512. var didCatchError = false;
  53513. var caughtError = null;
  53514. subscribers.forEach(function (subscriber) {
  53515. try {
  53516. subscriber.onWorkScheduled(interactions, threadID);
  53517. } catch (error) {
  53518. if (!didCatchError) {
  53519. didCatchError = true;
  53520. caughtError = error;
  53521. }
  53522. }
  53523. });
  53524. if (didCatchError) {
  53525. throw caughtError;
  53526. }
  53527. }
  53528. function onWorkStarted(interactions, threadID) {
  53529. var didCatchError = false;
  53530. var caughtError = null;
  53531. subscribers.forEach(function (subscriber) {
  53532. try {
  53533. subscriber.onWorkStarted(interactions, threadID);
  53534. } catch (error) {
  53535. if (!didCatchError) {
  53536. didCatchError = true;
  53537. caughtError = error;
  53538. }
  53539. }
  53540. });
  53541. if (didCatchError) {
  53542. throw caughtError;
  53543. }
  53544. }
  53545. function onWorkStopped(interactions, threadID) {
  53546. var didCatchError = false;
  53547. var caughtError = null;
  53548. subscribers.forEach(function (subscriber) {
  53549. try {
  53550. subscriber.onWorkStopped(interactions, threadID);
  53551. } catch (error) {
  53552. if (!didCatchError) {
  53553. didCatchError = true;
  53554. caughtError = error;
  53555. }
  53556. }
  53557. });
  53558. if (didCatchError) {
  53559. throw caughtError;
  53560. }
  53561. }
  53562. function onWorkCanceled(interactions, threadID) {
  53563. var didCatchError = false;
  53564. var caughtError = null;
  53565. subscribers.forEach(function (subscriber) {
  53566. try {
  53567. subscriber.onWorkCanceled(interactions, threadID);
  53568. } catch (error) {
  53569. if (!didCatchError) {
  53570. didCatchError = true;
  53571. caughtError = error;
  53572. }
  53573. }
  53574. });
  53575. if (didCatchError) {
  53576. throw caughtError;
  53577. }
  53578. }
  53579. exports.unstable_clear = unstable_clear;
  53580. exports.unstable_getCurrent = unstable_getCurrent;
  53581. exports.unstable_getThreadID = unstable_getThreadID;
  53582. exports.unstable_trace = unstable_trace;
  53583. exports.unstable_wrap = unstable_wrap;
  53584. exports.unstable_subscribe = unstable_subscribe;
  53585. exports.unstable_unsubscribe = unstable_unsubscribe;
  53586. })();
  53587. }
  53588. /***/ }),
  53589. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  53590. /*!*******************************************************************************!*\
  53591. !*** E:/Repos/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  53592. \*******************************************************************************/
  53593. /*! no static exports found */
  53594. /***/ (function(module, exports, __webpack_require__) {
  53595. "use strict";
  53596. /* WEBPACK VAR INJECTION */(function(global) {/** @license React v0.11.3
  53597. * scheduler.development.js
  53598. *
  53599. * Copyright (c) Facebook, Inc. and its affiliates.
  53600. *
  53601. * This source code is licensed under the MIT license found in the
  53602. * LICENSE file in the root directory of this source tree.
  53603. */
  53604. if (true) {
  53605. (function() {
  53606. 'use strict';
  53607. Object.defineProperty(exports, '__esModule', { value: true });
  53608. /* eslint-disable no-var */
  53609. // TODO: Use symbols?
  53610. var ImmediatePriority = 1;
  53611. var UserBlockingPriority = 2;
  53612. var NormalPriority = 3;
  53613. var LowPriority = 4;
  53614. var IdlePriority = 5;
  53615. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  53616. // Math.pow(2, 30) - 1
  53617. // 0b111111111111111111111111111111
  53618. var maxSigned31BitInt = 1073741823;
  53619. // Times out immediately
  53620. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  53621. // Eventually times out
  53622. var USER_BLOCKING_PRIORITY = 250;
  53623. var NORMAL_PRIORITY_TIMEOUT = 5000;
  53624. var LOW_PRIORITY_TIMEOUT = 10000;
  53625. // Never times out
  53626. var IDLE_PRIORITY = maxSigned31BitInt;
  53627. // Callbacks are stored as a circular, doubly linked list.
  53628. var firstCallbackNode = null;
  53629. var currentDidTimeout = false;
  53630. var currentPriorityLevel = NormalPriority;
  53631. var currentEventStartTime = -1;
  53632. var currentExpirationTime = -1;
  53633. // This is set when a callback is being executed, to prevent re-entrancy.
  53634. var isExecutingCallback = false;
  53635. var isHostCallbackScheduled = false;
  53636. var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
  53637. function ensureHostCallbackIsScheduled() {
  53638. if (isExecutingCallback) {
  53639. // Don't schedule work yet; wait until the next time we yield.
  53640. return;
  53641. }
  53642. // Schedule the host callback using the earliest expiration in the list.
  53643. var expirationTime = firstCallbackNode.expirationTime;
  53644. if (!isHostCallbackScheduled) {
  53645. isHostCallbackScheduled = true;
  53646. } else {
  53647. // Cancel the existing host callback.
  53648. cancelHostCallback();
  53649. }
  53650. requestHostCallback(flushWork, expirationTime);
  53651. }
  53652. function flushFirstCallback() {
  53653. var flushedNode = firstCallbackNode;
  53654. // Remove the node from the list before calling the callback. That way the
  53655. // list is in a consistent state even if the callback throws.
  53656. var next = firstCallbackNode.next;
  53657. if (firstCallbackNode === next) {
  53658. // This is the last callback in the list.
  53659. firstCallbackNode = null;
  53660. next = null;
  53661. } else {
  53662. var lastCallbackNode = firstCallbackNode.previous;
  53663. firstCallbackNode = lastCallbackNode.next = next;
  53664. next.previous = lastCallbackNode;
  53665. }
  53666. flushedNode.next = flushedNode.previous = null;
  53667. // Now it's safe to call the callback.
  53668. var callback = flushedNode.callback;
  53669. var expirationTime = flushedNode.expirationTime;
  53670. var priorityLevel = flushedNode.priorityLevel;
  53671. var previousPriorityLevel = currentPriorityLevel;
  53672. var previousExpirationTime = currentExpirationTime;
  53673. currentPriorityLevel = priorityLevel;
  53674. currentExpirationTime = expirationTime;
  53675. var continuationCallback;
  53676. try {
  53677. continuationCallback = callback();
  53678. } finally {
  53679. currentPriorityLevel = previousPriorityLevel;
  53680. currentExpirationTime = previousExpirationTime;
  53681. }
  53682. // A callback may return a continuation. The continuation should be scheduled
  53683. // with the same priority and expiration as the just-finished callback.
  53684. if (typeof continuationCallback === 'function') {
  53685. var continuationNode = {
  53686. callback: continuationCallback,
  53687. priorityLevel: priorityLevel,
  53688. expirationTime: expirationTime,
  53689. next: null,
  53690. previous: null
  53691. };
  53692. // Insert the new callback into the list, sorted by its expiration. This is
  53693. // almost the same as the code in `scheduleCallback`, except the callback
  53694. // is inserted into the list *before* callbacks of equal expiration instead
  53695. // of after.
  53696. if (firstCallbackNode === null) {
  53697. // This is the first callback in the list.
  53698. firstCallbackNode = continuationNode.next = continuationNode.previous = continuationNode;
  53699. } else {
  53700. var nextAfterContinuation = null;
  53701. var node = firstCallbackNode;
  53702. do {
  53703. if (node.expirationTime >= expirationTime) {
  53704. // This callback expires at or after the continuation. We will insert
  53705. // the continuation *before* this callback.
  53706. nextAfterContinuation = node;
  53707. break;
  53708. }
  53709. node = node.next;
  53710. } while (node !== firstCallbackNode);
  53711. if (nextAfterContinuation === null) {
  53712. // No equal or lower priority callback was found, which means the new
  53713. // callback is the lowest priority callback in the list.
  53714. nextAfterContinuation = firstCallbackNode;
  53715. } else if (nextAfterContinuation === firstCallbackNode) {
  53716. // The new callback is the highest priority callback in the list.
  53717. firstCallbackNode = continuationNode;
  53718. ensureHostCallbackIsScheduled();
  53719. }
  53720. var previous = nextAfterContinuation.previous;
  53721. previous.next = nextAfterContinuation.previous = continuationNode;
  53722. continuationNode.next = nextAfterContinuation;
  53723. continuationNode.previous = previous;
  53724. }
  53725. }
  53726. }
  53727. function flushImmediateWork() {
  53728. if (
  53729. // Confirm we've exited the outer most event handler
  53730. currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
  53731. isExecutingCallback = true;
  53732. try {
  53733. do {
  53734. flushFirstCallback();
  53735. } while (
  53736. // Keep flushing until there are no more immediate callbacks
  53737. firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority);
  53738. } finally {
  53739. isExecutingCallback = false;
  53740. if (firstCallbackNode !== null) {
  53741. // There's still work remaining. Request another callback.
  53742. ensureHostCallbackIsScheduled();
  53743. } else {
  53744. isHostCallbackScheduled = false;
  53745. }
  53746. }
  53747. }
  53748. }
  53749. function flushWork(didTimeout) {
  53750. isExecutingCallback = true;
  53751. var previousDidTimeout = currentDidTimeout;
  53752. currentDidTimeout = didTimeout;
  53753. try {
  53754. if (didTimeout) {
  53755. // Flush all the expired callbacks without yielding.
  53756. while (firstCallbackNode !== null) {
  53757. // Read the current time. Flush all the callbacks that expire at or
  53758. // earlier than that time. Then read the current time again and repeat.
  53759. // This optimizes for as few performance.now calls as possible.
  53760. var currentTime = exports.unstable_now();
  53761. if (firstCallbackNode.expirationTime <= currentTime) {
  53762. do {
  53763. flushFirstCallback();
  53764. } while (firstCallbackNode !== null && firstCallbackNode.expirationTime <= currentTime);
  53765. continue;
  53766. }
  53767. break;
  53768. }
  53769. } else {
  53770. // Keep flushing callbacks until we run out of time in the frame.
  53771. if (firstCallbackNode !== null) {
  53772. do {
  53773. flushFirstCallback();
  53774. } while (firstCallbackNode !== null && !shouldYieldToHost());
  53775. }
  53776. }
  53777. } finally {
  53778. isExecutingCallback = false;
  53779. currentDidTimeout = previousDidTimeout;
  53780. if (firstCallbackNode !== null) {
  53781. // There's still work remaining. Request another callback.
  53782. ensureHostCallbackIsScheduled();
  53783. } else {
  53784. isHostCallbackScheduled = false;
  53785. }
  53786. // Before exiting, flush all the immediate work that was scheduled.
  53787. flushImmediateWork();
  53788. }
  53789. }
  53790. function unstable_runWithPriority(priorityLevel, eventHandler) {
  53791. switch (priorityLevel) {
  53792. case ImmediatePriority:
  53793. case UserBlockingPriority:
  53794. case NormalPriority:
  53795. case LowPriority:
  53796. case IdlePriority:
  53797. break;
  53798. default:
  53799. priorityLevel = NormalPriority;
  53800. }
  53801. var previousPriorityLevel = currentPriorityLevel;
  53802. var previousEventStartTime = currentEventStartTime;
  53803. currentPriorityLevel = priorityLevel;
  53804. currentEventStartTime = exports.unstable_now();
  53805. try {
  53806. return eventHandler();
  53807. } finally {
  53808. currentPriorityLevel = previousPriorityLevel;
  53809. currentEventStartTime = previousEventStartTime;
  53810. // Before exiting, flush all the immediate work that was scheduled.
  53811. flushImmediateWork();
  53812. }
  53813. }
  53814. function unstable_wrapCallback(callback) {
  53815. var parentPriorityLevel = currentPriorityLevel;
  53816. return function () {
  53817. // This is a fork of runWithPriority, inlined for performance.
  53818. var previousPriorityLevel = currentPriorityLevel;
  53819. var previousEventStartTime = currentEventStartTime;
  53820. currentPriorityLevel = parentPriorityLevel;
  53821. currentEventStartTime = exports.unstable_now();
  53822. try {
  53823. return callback.apply(this, arguments);
  53824. } finally {
  53825. currentPriorityLevel = previousPriorityLevel;
  53826. currentEventStartTime = previousEventStartTime;
  53827. flushImmediateWork();
  53828. }
  53829. };
  53830. }
  53831. function unstable_scheduleCallback(callback, deprecated_options) {
  53832. var startTime = currentEventStartTime !== -1 ? currentEventStartTime : exports.unstable_now();
  53833. var expirationTime;
  53834. if (typeof deprecated_options === 'object' && deprecated_options !== null && typeof deprecated_options.timeout === 'number') {
  53835. // FIXME: Remove this branch once we lift expiration times out of React.
  53836. expirationTime = startTime + deprecated_options.timeout;
  53837. } else {
  53838. switch (currentPriorityLevel) {
  53839. case ImmediatePriority:
  53840. expirationTime = startTime + IMMEDIATE_PRIORITY_TIMEOUT;
  53841. break;
  53842. case UserBlockingPriority:
  53843. expirationTime = startTime + USER_BLOCKING_PRIORITY;
  53844. break;
  53845. case IdlePriority:
  53846. expirationTime = startTime + IDLE_PRIORITY;
  53847. break;
  53848. case LowPriority:
  53849. expirationTime = startTime + LOW_PRIORITY_TIMEOUT;
  53850. break;
  53851. case NormalPriority:
  53852. default:
  53853. expirationTime = startTime + NORMAL_PRIORITY_TIMEOUT;
  53854. }
  53855. }
  53856. var newNode = {
  53857. callback: callback,
  53858. priorityLevel: currentPriorityLevel,
  53859. expirationTime: expirationTime,
  53860. next: null,
  53861. previous: null
  53862. };
  53863. // Insert the new callback into the list, ordered first by expiration, then
  53864. // by insertion. So the new callback is inserted any other callback with
  53865. // equal expiration.
  53866. if (firstCallbackNode === null) {
  53867. // This is the first callback in the list.
  53868. firstCallbackNode = newNode.next = newNode.previous = newNode;
  53869. ensureHostCallbackIsScheduled();
  53870. } else {
  53871. var next = null;
  53872. var node = firstCallbackNode;
  53873. do {
  53874. if (node.expirationTime > expirationTime) {
  53875. // The new callback expires before this one.
  53876. next = node;
  53877. break;
  53878. }
  53879. node = node.next;
  53880. } while (node !== firstCallbackNode);
  53881. if (next === null) {
  53882. // No callback with a later expiration was found, which means the new
  53883. // callback has the latest expiration in the list.
  53884. next = firstCallbackNode;
  53885. } else if (next === firstCallbackNode) {
  53886. // The new callback has the earliest expiration in the entire list.
  53887. firstCallbackNode = newNode;
  53888. ensureHostCallbackIsScheduled();
  53889. }
  53890. var previous = next.previous;
  53891. previous.next = next.previous = newNode;
  53892. newNode.next = next;
  53893. newNode.previous = previous;
  53894. }
  53895. return newNode;
  53896. }
  53897. function unstable_cancelCallback(callbackNode) {
  53898. var next = callbackNode.next;
  53899. if (next === null) {
  53900. // Already cancelled.
  53901. return;
  53902. }
  53903. if (next === callbackNode) {
  53904. // This is the only scheduled callback. Clear the list.
  53905. firstCallbackNode = null;
  53906. } else {
  53907. // Remove the callback from its position in the list.
  53908. if (callbackNode === firstCallbackNode) {
  53909. firstCallbackNode = next;
  53910. }
  53911. var previous = callbackNode.previous;
  53912. previous.next = next;
  53913. next.previous = previous;
  53914. }
  53915. callbackNode.next = callbackNode.previous = null;
  53916. }
  53917. function unstable_getCurrentPriorityLevel() {
  53918. return currentPriorityLevel;
  53919. }
  53920. function unstable_shouldYield() {
  53921. return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
  53922. }
  53923. // The remaining code is essentially a polyfill for requestIdleCallback. It
  53924. // works by scheduling a requestAnimationFrame, storing the time for the start
  53925. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  53926. // Within the postMessage handler do as much work as possible until time + frame
  53927. // rate. By separating the idle call into a separate event tick we ensure that
  53928. // layout, paint and other browser work is counted against the available time.
  53929. // The frame rate is dynamically adjusted.
  53930. // We capture a local reference to any global, in case it gets polyfilled after
  53931. // this module is initially evaluated. We want to be using a
  53932. // consistent implementation.
  53933. var localDate = Date;
  53934. // This initialization code may run even on server environments if a component
  53935. // just imports ReactDOM (e.g. for findDOMNode). Some environments might not
  53936. // have setTimeout or clearTimeout. However, we always expect them to be defined
  53937. // on the client. https://github.com/facebook/react/pull/13088
  53938. var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  53939. var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  53940. // We don't expect either of these to necessarily be defined, but we will error
  53941. // later if they are missing on the client.
  53942. var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
  53943. var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
  53944. // requestAnimationFrame does not run when the tab is in the background. If
  53945. // we're backgrounded we prefer for that work to happen so that the page
  53946. // continues to load in the background. So we also schedule a 'setTimeout' as
  53947. // a fallback.
  53948. // TODO: Need a better heuristic for backgrounded work.
  53949. var ANIMATION_FRAME_TIMEOUT = 100;
  53950. var rAFID;
  53951. var rAFTimeoutID;
  53952. var requestAnimationFrameWithTimeout = function (callback) {
  53953. // schedule rAF and also a setTimeout
  53954. rAFID = localRequestAnimationFrame(function (timestamp) {
  53955. // cancel the setTimeout
  53956. localClearTimeout(rAFTimeoutID);
  53957. callback(timestamp);
  53958. });
  53959. rAFTimeoutID = localSetTimeout(function () {
  53960. // cancel the requestAnimationFrame
  53961. localCancelAnimationFrame(rAFID);
  53962. callback(exports.unstable_now());
  53963. }, ANIMATION_FRAME_TIMEOUT);
  53964. };
  53965. if (hasNativePerformanceNow) {
  53966. var Performance = performance;
  53967. exports.unstable_now = function () {
  53968. return Performance.now();
  53969. };
  53970. } else {
  53971. exports.unstable_now = function () {
  53972. return localDate.now();
  53973. };
  53974. }
  53975. var requestHostCallback;
  53976. var cancelHostCallback;
  53977. var shouldYieldToHost;
  53978. var globalValue = null;
  53979. if (typeof window !== 'undefined') {
  53980. globalValue = window;
  53981. } else if (typeof global !== 'undefined') {
  53982. globalValue = global;
  53983. }
  53984. if (globalValue && globalValue._schedMock) {
  53985. // Dynamic injection, only for testing purposes.
  53986. var globalImpl = globalValue._schedMock;
  53987. requestHostCallback = globalImpl[0];
  53988. cancelHostCallback = globalImpl[1];
  53989. shouldYieldToHost = globalImpl[2];
  53990. exports.unstable_now = globalImpl[3];
  53991. } else if (
  53992. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  53993. // implementation using setTimeout.
  53994. typeof window === 'undefined' ||
  53995. // Check if MessageChannel is supported, too.
  53996. typeof MessageChannel !== 'function') {
  53997. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  53998. // fallback to a naive implementation.
  53999. var _callback = null;
  54000. var _flushCallback = function (didTimeout) {
  54001. if (_callback !== null) {
  54002. try {
  54003. _callback(didTimeout);
  54004. } finally {
  54005. _callback = null;
  54006. }
  54007. }
  54008. };
  54009. requestHostCallback = function (cb, ms) {
  54010. if (_callback !== null) {
  54011. // Protect against re-entrancy.
  54012. setTimeout(requestHostCallback, 0, cb);
  54013. } else {
  54014. _callback = cb;
  54015. setTimeout(_flushCallback, 0, false);
  54016. }
  54017. };
  54018. cancelHostCallback = function () {
  54019. _callback = null;
  54020. };
  54021. shouldYieldToHost = function () {
  54022. return false;
  54023. };
  54024. } else {
  54025. if (typeof console !== 'undefined') {
  54026. // TODO: Remove fb.me link
  54027. if (typeof localRequestAnimationFrame !== 'function') {
  54028. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  54029. }
  54030. if (typeof localCancelAnimationFrame !== 'function') {
  54031. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  54032. }
  54033. }
  54034. var scheduledHostCallback = null;
  54035. var isMessageEventScheduled = false;
  54036. var timeoutTime = -1;
  54037. var isAnimationFrameScheduled = false;
  54038. var isFlushingHostCallback = false;
  54039. var frameDeadline = 0;
  54040. // We start out assuming that we run at 30fps but then the heuristic tracking
  54041. // will adjust this value to a faster fps if we get more frequent animation
  54042. // frames.
  54043. var previousFrameTime = 33;
  54044. var activeFrameTime = 33;
  54045. shouldYieldToHost = function () {
  54046. return frameDeadline <= exports.unstable_now();
  54047. };
  54048. // We use the postMessage trick to defer idle work until after the repaint.
  54049. var channel = new MessageChannel();
  54050. var port = channel.port2;
  54051. channel.port1.onmessage = function (event) {
  54052. isMessageEventScheduled = false;
  54053. var prevScheduledCallback = scheduledHostCallback;
  54054. var prevTimeoutTime = timeoutTime;
  54055. scheduledHostCallback = null;
  54056. timeoutTime = -1;
  54057. var currentTime = exports.unstable_now();
  54058. var didTimeout = false;
  54059. if (frameDeadline - currentTime <= 0) {
  54060. // There's no time left in this idle period. Check if the callback has
  54061. // a timeout and whether it's been exceeded.
  54062. if (prevTimeoutTime !== -1 && prevTimeoutTime <= currentTime) {
  54063. // Exceeded the timeout. Invoke the callback even though there's no
  54064. // time left.
  54065. didTimeout = true;
  54066. } else {
  54067. // No timeout.
  54068. if (!isAnimationFrameScheduled) {
  54069. // Schedule another animation callback so we retry later.
  54070. isAnimationFrameScheduled = true;
  54071. requestAnimationFrameWithTimeout(animationTick);
  54072. }
  54073. // Exit without invoking the callback.
  54074. scheduledHostCallback = prevScheduledCallback;
  54075. timeoutTime = prevTimeoutTime;
  54076. return;
  54077. }
  54078. }
  54079. if (prevScheduledCallback !== null) {
  54080. isFlushingHostCallback = true;
  54081. try {
  54082. prevScheduledCallback(didTimeout);
  54083. } finally {
  54084. isFlushingHostCallback = false;
  54085. }
  54086. }
  54087. };
  54088. var animationTick = function (rafTime) {
  54089. if (scheduledHostCallback !== null) {
  54090. // Eagerly schedule the next animation callback at the beginning of the
  54091. // frame. If the scheduler queue is not empty at the end of the frame, it
  54092. // will continue flushing inside that callback. If the queue *is* empty,
  54093. // then it will exit immediately. Posting the callback at the start of the
  54094. // frame ensures it's fired within the earliest possible frame. If we
  54095. // waited until the end of the frame to post the callback, we risk the
  54096. // browser skipping a frame and not firing the callback until the frame
  54097. // after that.
  54098. requestAnimationFrameWithTimeout(animationTick);
  54099. } else {
  54100. // No pending work. Exit.
  54101. isAnimationFrameScheduled = false;
  54102. return;
  54103. }
  54104. var nextFrameTime = rafTime - frameDeadline + activeFrameTime;
  54105. if (nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime) {
  54106. if (nextFrameTime < 8) {
  54107. // Defensive coding. We don't support higher frame rates than 120hz.
  54108. // If the calculated frame time gets lower than 8, it is probably a bug.
  54109. nextFrameTime = 8;
  54110. }
  54111. // If one frame goes long, then the next one can be short to catch up.
  54112. // If two frames are short in a row, then that's an indication that we
  54113. // actually have a higher frame rate than what we're currently optimizing.
  54114. // We adjust our heuristic dynamically accordingly. For example, if we're
  54115. // running on 120hz display or 90hz VR display.
  54116. // Take the max of the two in case one of them was an anomaly due to
  54117. // missed frame deadlines.
  54118. activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime;
  54119. } else {
  54120. previousFrameTime = nextFrameTime;
  54121. }
  54122. frameDeadline = rafTime + activeFrameTime;
  54123. if (!isMessageEventScheduled) {
  54124. isMessageEventScheduled = true;
  54125. port.postMessage(undefined);
  54126. }
  54127. };
  54128. requestHostCallback = function (callback, absoluteTimeout) {
  54129. scheduledHostCallback = callback;
  54130. timeoutTime = absoluteTimeout;
  54131. if (isFlushingHostCallback || absoluteTimeout < 0) {
  54132. // Don't wait for the next frame. Continue working ASAP, in a new event.
  54133. port.postMessage(undefined);
  54134. } else if (!isAnimationFrameScheduled) {
  54135. // If rAF didn't already schedule one, we need to schedule a frame.
  54136. // TODO: If this rAF doesn't materialize because the browser throttles, we
  54137. // might want to still have setTimeout trigger rIC as a backup to ensure
  54138. // that we keep performing work.
  54139. isAnimationFrameScheduled = true;
  54140. requestAnimationFrameWithTimeout(animationTick);
  54141. }
  54142. };
  54143. cancelHostCallback = function () {
  54144. scheduledHostCallback = null;
  54145. isMessageEventScheduled = false;
  54146. timeoutTime = -1;
  54147. };
  54148. }
  54149. exports.unstable_ImmediatePriority = ImmediatePriority;
  54150. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  54151. exports.unstable_NormalPriority = NormalPriority;
  54152. exports.unstable_IdlePriority = IdlePriority;
  54153. exports.unstable_LowPriority = LowPriority;
  54154. exports.unstable_runWithPriority = unstable_runWithPriority;
  54155. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  54156. exports.unstable_cancelCallback = unstable_cancelCallback;
  54157. exports.unstable_wrapCallback = unstable_wrapCallback;
  54158. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  54159. exports.unstable_shouldYield = unstable_shouldYield;
  54160. })();
  54161. }
  54162. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  54163. /***/ }),
  54164. /***/ "../../node_modules/scheduler/index.js":
  54165. /*!***********************************************************!*\
  54166. !*** E:/Repos/Babylon.js/node_modules/scheduler/index.js ***!
  54167. \***********************************************************/
  54168. /*! no static exports found */
  54169. /***/ (function(module, exports, __webpack_require__) {
  54170. "use strict";
  54171. if (false) {} else {
  54172. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  54173. }
  54174. /***/ }),
  54175. /***/ "../../node_modules/scheduler/tracing.js":
  54176. /*!*************************************************************!*\
  54177. !*** E:/Repos/Babylon.js/node_modules/scheduler/tracing.js ***!
  54178. \*************************************************************/
  54179. /*! no static exports found */
  54180. /***/ (function(module, exports, __webpack_require__) {
  54181. "use strict";
  54182. if (false) {} else {
  54183. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  54184. }
  54185. /***/ }),
  54186. /***/ "../../node_modules/setimmediate/setImmediate.js":
  54187. /*!*********************************************************************!*\
  54188. !*** E:/Repos/Babylon.js/node_modules/setimmediate/setImmediate.js ***!
  54189. \*********************************************************************/
  54190. /*! no static exports found */
  54191. /***/ (function(module, exports, __webpack_require__) {
  54192. /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
  54193. "use strict";
  54194. if (global.setImmediate) {
  54195. return;
  54196. }
  54197. var nextHandle = 1; // Spec says greater than zero
  54198. var tasksByHandle = {};
  54199. var currentlyRunningATask = false;
  54200. var doc = global.document;
  54201. var registerImmediate;
  54202. function setImmediate(callback) {
  54203. // Callback can either be a function or a string
  54204. if (typeof callback !== "function") {
  54205. callback = new Function("" + callback);
  54206. }
  54207. // Copy function arguments
  54208. var args = new Array(arguments.length - 1);
  54209. for (var i = 0; i < args.length; i++) {
  54210. args[i] = arguments[i + 1];
  54211. }
  54212. // Store and register the task
  54213. var task = { callback: callback, args: args };
  54214. tasksByHandle[nextHandle] = task;
  54215. registerImmediate(nextHandle);
  54216. return nextHandle++;
  54217. }
  54218. function clearImmediate(handle) {
  54219. delete tasksByHandle[handle];
  54220. }
  54221. function run(task) {
  54222. var callback = task.callback;
  54223. var args = task.args;
  54224. switch (args.length) {
  54225. case 0:
  54226. callback();
  54227. break;
  54228. case 1:
  54229. callback(args[0]);
  54230. break;
  54231. case 2:
  54232. callback(args[0], args[1]);
  54233. break;
  54234. case 3:
  54235. callback(args[0], args[1], args[2]);
  54236. break;
  54237. default:
  54238. callback.apply(undefined, args);
  54239. break;
  54240. }
  54241. }
  54242. function runIfPresent(handle) {
  54243. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  54244. // So if we're currently running a task, we'll need to delay this invocation.
  54245. if (currentlyRunningATask) {
  54246. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  54247. // "too much recursion" error.
  54248. setTimeout(runIfPresent, 0, handle);
  54249. } else {
  54250. var task = tasksByHandle[handle];
  54251. if (task) {
  54252. currentlyRunningATask = true;
  54253. try {
  54254. run(task);
  54255. } finally {
  54256. clearImmediate(handle);
  54257. currentlyRunningATask = false;
  54258. }
  54259. }
  54260. }
  54261. }
  54262. function installNextTickImplementation() {
  54263. registerImmediate = function(handle) {
  54264. process.nextTick(function () { runIfPresent(handle); });
  54265. };
  54266. }
  54267. function canUsePostMessage() {
  54268. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  54269. // where `global.postMessage` means something completely different and can't be used for this purpose.
  54270. if (global.postMessage && !global.importScripts) {
  54271. var postMessageIsAsynchronous = true;
  54272. var oldOnMessage = global.onmessage;
  54273. global.onmessage = function() {
  54274. postMessageIsAsynchronous = false;
  54275. };
  54276. global.postMessage("", "*");
  54277. global.onmessage = oldOnMessage;
  54278. return postMessageIsAsynchronous;
  54279. }
  54280. }
  54281. function installPostMessageImplementation() {
  54282. // Installs an event handler on `global` for the `message` event: see
  54283. // * https://developer.mozilla.org/en/DOM/window.postMessage
  54284. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  54285. var messagePrefix = "setImmediate$" + Math.random() + "$";
  54286. var onGlobalMessage = function(event) {
  54287. if (event.source === global &&
  54288. typeof event.data === "string" &&
  54289. event.data.indexOf(messagePrefix) === 0) {
  54290. runIfPresent(+event.data.slice(messagePrefix.length));
  54291. }
  54292. };
  54293. if (global.addEventListener) {
  54294. global.addEventListener("message", onGlobalMessage, false);
  54295. } else {
  54296. global.attachEvent("onmessage", onGlobalMessage);
  54297. }
  54298. registerImmediate = function(handle) {
  54299. global.postMessage(messagePrefix + handle, "*");
  54300. };
  54301. }
  54302. function installMessageChannelImplementation() {
  54303. var channel = new MessageChannel();
  54304. channel.port1.onmessage = function(event) {
  54305. var handle = event.data;
  54306. runIfPresent(handle);
  54307. };
  54308. registerImmediate = function(handle) {
  54309. channel.port2.postMessage(handle);
  54310. };
  54311. }
  54312. function installReadyStateChangeImplementation() {
  54313. var html = doc.documentElement;
  54314. registerImmediate = function(handle) {
  54315. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  54316. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  54317. var script = doc.createElement("script");
  54318. script.onreadystatechange = function () {
  54319. runIfPresent(handle);
  54320. script.onreadystatechange = null;
  54321. html.removeChild(script);
  54322. script = null;
  54323. };
  54324. html.appendChild(script);
  54325. };
  54326. }
  54327. function installSetTimeoutImplementation() {
  54328. registerImmediate = function(handle) {
  54329. setTimeout(runIfPresent, 0, handle);
  54330. };
  54331. }
  54332. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  54333. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  54334. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  54335. // Don't get fooled by e.g. browserify environments.
  54336. if ({}.toString.call(global.process) === "[object process]") {
  54337. // For Node.js before 0.9
  54338. installNextTickImplementation();
  54339. } else if (canUsePostMessage()) {
  54340. // For non-IE10 modern browsers
  54341. installPostMessageImplementation();
  54342. } else if (global.MessageChannel) {
  54343. // For web workers, where supported
  54344. installMessageChannelImplementation();
  54345. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  54346. // For IE 6–8
  54347. installReadyStateChangeImplementation();
  54348. } else {
  54349. // For older browsers
  54350. installSetTimeoutImplementation();
  54351. }
  54352. attachTo.setImmediate = setImmediate;
  54353. attachTo.clearImmediate = clearImmediate;
  54354. }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  54355. /* 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")))
  54356. /***/ }),
  54357. /***/ "../../node_modules/storm-react-diagrams/dist/main.js":
  54358. /*!**************************************************************************!*\
  54359. !*** E:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/main.js ***!
  54360. \**************************************************************************/
  54361. /*! no static exports found */
  54362. /***/ (function(module, exports, __webpack_require__) {
  54363. (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};
  54364. //!-------------- FACTORIES ------------
  54365. 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}}}])});
  54366. //# sourceMappingURL=main.js.map
  54367. /***/ }),
  54368. /***/ "../../node_modules/storm-react-diagrams/dist/style.min.css":
  54369. /*!********************************************************************************!*\
  54370. !*** E:/Repos/Babylon.js/node_modules/storm-react-diagrams/dist/style.min.css ***!
  54371. \********************************************************************************/
  54372. /*! no static exports found */
  54373. /***/ (function(module, exports, __webpack_require__) {
  54374. var content = __webpack_require__(/*! !../../css-loader!./style.min.css */ "../../node_modules/css-loader/index.js!../../node_modules/storm-react-diagrams/dist/style.min.css");
  54375. if(typeof content === 'string') content = [[module.i, content, '']];
  54376. var transform;
  54377. var insertInto;
  54378. var options = {"hmr":true}
  54379. options.transform = transform
  54380. options.insertInto = undefined;
  54381. var update = __webpack_require__(/*! ../../style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  54382. if(content.locals) module.exports = content.locals;
  54383. if(false) {}
  54384. /***/ }),
  54385. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  54386. /*!**********************************************************************!*\
  54387. !*** E:/Repos/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  54388. \**********************************************************************/
  54389. /*! no static exports found */
  54390. /***/ (function(module, exports, __webpack_require__) {
  54391. /*
  54392. MIT License http://www.opensource.org/licenses/mit-license.php
  54393. Author Tobias Koppers @sokra
  54394. */
  54395. var stylesInDom = {};
  54396. var memoize = function (fn) {
  54397. var memo;
  54398. return function () {
  54399. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  54400. return memo;
  54401. };
  54402. };
  54403. var isOldIE = memoize(function () {
  54404. // Test for IE <= 9 as proposed by Browserhacks
  54405. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  54406. // Tests for existence of standard globals is to allow style-loader
  54407. // to operate correctly into non-standard environments
  54408. // @see https://github.com/webpack-contrib/style-loader/issues/177
  54409. return window && document && document.all && !window.atob;
  54410. });
  54411. var getTarget = function (target) {
  54412. return document.querySelector(target);
  54413. };
  54414. var getElement = (function (fn) {
  54415. var memo = {};
  54416. return function(target) {
  54417. // If passing function in options, then use it for resolve "head" element.
  54418. // Useful for Shadow Root style i.e
  54419. // {
  54420. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  54421. // }
  54422. if (typeof target === 'function') {
  54423. return target();
  54424. }
  54425. if (typeof memo[target] === "undefined") {
  54426. var styleTarget = getTarget.call(this, target);
  54427. // Special case to return head of iframe instead of iframe itself
  54428. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  54429. try {
  54430. // This will throw an exception if access to iframe is blocked
  54431. // due to cross-origin restrictions
  54432. styleTarget = styleTarget.contentDocument.head;
  54433. } catch(e) {
  54434. styleTarget = null;
  54435. }
  54436. }
  54437. memo[target] = styleTarget;
  54438. }
  54439. return memo[target]
  54440. };
  54441. })();
  54442. var singleton = null;
  54443. var singletonCounter = 0;
  54444. var stylesInsertedAtTop = [];
  54445. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  54446. module.exports = function(list, options) {
  54447. if (typeof DEBUG !== "undefined" && DEBUG) {
  54448. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  54449. }
  54450. options = options || {};
  54451. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  54452. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  54453. // tags it will allow on a page
  54454. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  54455. // By default, add <style> tags to the <head> element
  54456. if (!options.insertInto) options.insertInto = "head";
  54457. // By default, add <style> tags to the bottom of the target
  54458. if (!options.insertAt) options.insertAt = "bottom";
  54459. var styles = listToStyles(list, options);
  54460. addStylesToDom(styles, options);
  54461. return function update (newList) {
  54462. var mayRemove = [];
  54463. for (var i = 0; i < styles.length; i++) {
  54464. var item = styles[i];
  54465. var domStyle = stylesInDom[item.id];
  54466. domStyle.refs--;
  54467. mayRemove.push(domStyle);
  54468. }
  54469. if(newList) {
  54470. var newStyles = listToStyles(newList, options);
  54471. addStylesToDom(newStyles, options);
  54472. }
  54473. for (var i = 0; i < mayRemove.length; i++) {
  54474. var domStyle = mayRemove[i];
  54475. if(domStyle.refs === 0) {
  54476. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  54477. delete stylesInDom[domStyle.id];
  54478. }
  54479. }
  54480. };
  54481. };
  54482. function addStylesToDom (styles, options) {
  54483. for (var i = 0; i < styles.length; i++) {
  54484. var item = styles[i];
  54485. var domStyle = stylesInDom[item.id];
  54486. if(domStyle) {
  54487. domStyle.refs++;
  54488. for(var j = 0; j < domStyle.parts.length; j++) {
  54489. domStyle.parts[j](item.parts[j]);
  54490. }
  54491. for(; j < item.parts.length; j++) {
  54492. domStyle.parts.push(addStyle(item.parts[j], options));
  54493. }
  54494. } else {
  54495. var parts = [];
  54496. for(var j = 0; j < item.parts.length; j++) {
  54497. parts.push(addStyle(item.parts[j], options));
  54498. }
  54499. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  54500. }
  54501. }
  54502. }
  54503. function listToStyles (list, options) {
  54504. var styles = [];
  54505. var newStyles = {};
  54506. for (var i = 0; i < list.length; i++) {
  54507. var item = list[i];
  54508. var id = options.base ? item[0] + options.base : item[0];
  54509. var css = item[1];
  54510. var media = item[2];
  54511. var sourceMap = item[3];
  54512. var part = {css: css, media: media, sourceMap: sourceMap};
  54513. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  54514. else newStyles[id].parts.push(part);
  54515. }
  54516. return styles;
  54517. }
  54518. function insertStyleElement (options, style) {
  54519. var target = getElement(options.insertInto)
  54520. if (!target) {
  54521. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  54522. }
  54523. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  54524. if (options.insertAt === "top") {
  54525. if (!lastStyleElementInsertedAtTop) {
  54526. target.insertBefore(style, target.firstChild);
  54527. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  54528. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  54529. } else {
  54530. target.appendChild(style);
  54531. }
  54532. stylesInsertedAtTop.push(style);
  54533. } else if (options.insertAt === "bottom") {
  54534. target.appendChild(style);
  54535. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  54536. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  54537. target.insertBefore(style, nextSibling);
  54538. } else {
  54539. 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");
  54540. }
  54541. }
  54542. function removeStyleElement (style) {
  54543. if (style.parentNode === null) return false;
  54544. style.parentNode.removeChild(style);
  54545. var idx = stylesInsertedAtTop.indexOf(style);
  54546. if(idx >= 0) {
  54547. stylesInsertedAtTop.splice(idx, 1);
  54548. }
  54549. }
  54550. function createStyleElement (options) {
  54551. var style = document.createElement("style");
  54552. if(options.attrs.type === undefined) {
  54553. options.attrs.type = "text/css";
  54554. }
  54555. addAttrs(style, options.attrs);
  54556. insertStyleElement(options, style);
  54557. return style;
  54558. }
  54559. function createLinkElement (options) {
  54560. var link = document.createElement("link");
  54561. if(options.attrs.type === undefined) {
  54562. options.attrs.type = "text/css";
  54563. }
  54564. options.attrs.rel = "stylesheet";
  54565. addAttrs(link, options.attrs);
  54566. insertStyleElement(options, link);
  54567. return link;
  54568. }
  54569. function addAttrs (el, attrs) {
  54570. Object.keys(attrs).forEach(function (key) {
  54571. el.setAttribute(key, attrs[key]);
  54572. });
  54573. }
  54574. function addStyle (obj, options) {
  54575. var style, update, remove, result;
  54576. // If a transform function was defined, run it on the css
  54577. if (options.transform && obj.css) {
  54578. result = options.transform(obj.css);
  54579. if (result) {
  54580. // If transform returns a value, use that instead of the original css.
  54581. // This allows running runtime transformations on the css.
  54582. obj.css = result;
  54583. } else {
  54584. // If the transform function returns a falsy value, don't add this css.
  54585. // This allows conditional loading of css
  54586. return function() {
  54587. // noop
  54588. };
  54589. }
  54590. }
  54591. if (options.singleton) {
  54592. var styleIndex = singletonCounter++;
  54593. style = singleton || (singleton = createStyleElement(options));
  54594. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  54595. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  54596. } else if (
  54597. obj.sourceMap &&
  54598. typeof URL === "function" &&
  54599. typeof URL.createObjectURL === "function" &&
  54600. typeof URL.revokeObjectURL === "function" &&
  54601. typeof Blob === "function" &&
  54602. typeof btoa === "function"
  54603. ) {
  54604. style = createLinkElement(options);
  54605. update = updateLink.bind(null, style, options);
  54606. remove = function () {
  54607. removeStyleElement(style);
  54608. if(style.href) URL.revokeObjectURL(style.href);
  54609. };
  54610. } else {
  54611. style = createStyleElement(options);
  54612. update = applyToTag.bind(null, style);
  54613. remove = function () {
  54614. removeStyleElement(style);
  54615. };
  54616. }
  54617. update(obj);
  54618. return function updateStyle (newObj) {
  54619. if (newObj) {
  54620. if (
  54621. newObj.css === obj.css &&
  54622. newObj.media === obj.media &&
  54623. newObj.sourceMap === obj.sourceMap
  54624. ) {
  54625. return;
  54626. }
  54627. update(obj = newObj);
  54628. } else {
  54629. remove();
  54630. }
  54631. };
  54632. }
  54633. var replaceText = (function () {
  54634. var textStore = [];
  54635. return function (index, replacement) {
  54636. textStore[index] = replacement;
  54637. return textStore.filter(Boolean).join('\n');
  54638. };
  54639. })();
  54640. function applyToSingletonTag (style, index, remove, obj) {
  54641. var css = remove ? "" : obj.css;
  54642. if (style.styleSheet) {
  54643. style.styleSheet.cssText = replaceText(index, css);
  54644. } else {
  54645. var cssNode = document.createTextNode(css);
  54646. var childNodes = style.childNodes;
  54647. if (childNodes[index]) style.removeChild(childNodes[index]);
  54648. if (childNodes.length) {
  54649. style.insertBefore(cssNode, childNodes[index]);
  54650. } else {
  54651. style.appendChild(cssNode);
  54652. }
  54653. }
  54654. }
  54655. function applyToTag (style, obj) {
  54656. var css = obj.css;
  54657. var media = obj.media;
  54658. if(media) {
  54659. style.setAttribute("media", media)
  54660. }
  54661. if(style.styleSheet) {
  54662. style.styleSheet.cssText = css;
  54663. } else {
  54664. while(style.firstChild) {
  54665. style.removeChild(style.firstChild);
  54666. }
  54667. style.appendChild(document.createTextNode(css));
  54668. }
  54669. }
  54670. function updateLink (link, options, obj) {
  54671. var css = obj.css;
  54672. var sourceMap = obj.sourceMap;
  54673. /*
  54674. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  54675. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  54676. on by default. Otherwise default to the convertToAbsoluteUrls option
  54677. directly
  54678. */
  54679. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  54680. if (options.convertToAbsoluteUrls || autoFixUrls) {
  54681. css = fixUrls(css);
  54682. }
  54683. if (sourceMap) {
  54684. // http://stackoverflow.com/a/26603875
  54685. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  54686. }
  54687. var blob = new Blob([css], { type: "text/css" });
  54688. var oldSrc = link.href;
  54689. link.href = URL.createObjectURL(blob);
  54690. if(oldSrc) URL.revokeObjectURL(oldSrc);
  54691. }
  54692. /***/ }),
  54693. /***/ "../../node_modules/style-loader/lib/urls.js":
  54694. /*!*****************************************************************!*\
  54695. !*** E:/Repos/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  54696. \*****************************************************************/
  54697. /*! no static exports found */
  54698. /***/ (function(module, exports) {
  54699. /**
  54700. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  54701. * embed the css on the page. This breaks all relative urls because now they are relative to a
  54702. * bundle instead of the current page.
  54703. *
  54704. * One solution is to only use full urls, but that may be impossible.
  54705. *
  54706. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  54707. *
  54708. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  54709. *
  54710. */
  54711. module.exports = function (css) {
  54712. // get current location
  54713. var location = typeof window !== "undefined" && window.location;
  54714. if (!location) {
  54715. throw new Error("fixUrls requires window.location");
  54716. }
  54717. // blank or null?
  54718. if (!css || typeof css !== "string") {
  54719. return css;
  54720. }
  54721. var baseUrl = location.protocol + "//" + location.host;
  54722. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  54723. // convert each url(...)
  54724. /*
  54725. This regular expression is just a way to recursively match brackets within
  54726. a string.
  54727. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  54728. ( = Start a capturing group
  54729. (?: = Start a non-capturing group
  54730. [^)(] = Match anything that isn't a parentheses
  54731. | = OR
  54732. \( = Match a start parentheses
  54733. (?: = Start another non-capturing groups
  54734. [^)(]+ = Match anything that isn't a parentheses
  54735. | = OR
  54736. \( = Match a start parentheses
  54737. [^)(]* = Match anything that isn't a parentheses
  54738. \) = Match a end parentheses
  54739. ) = End Group
  54740. *\) = Match anything and then a close parens
  54741. ) = Close non-capturing group
  54742. * = Match anything
  54743. ) = Close capturing group
  54744. \) = Match a close parens
  54745. /gi = Get all matches, not the first. Be case insensitive.
  54746. */
  54747. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  54748. // strip quotes (if they exist)
  54749. var unquotedOrigUrl = origUrl
  54750. .trim()
  54751. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  54752. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  54753. // already a full url? no change
  54754. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  54755. return fullMatch;
  54756. }
  54757. // convert the url to a full url
  54758. var newUrl;
  54759. if (unquotedOrigUrl.indexOf("//") === 0) {
  54760. //TODO: should we add protocol?
  54761. newUrl = unquotedOrigUrl;
  54762. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  54763. // path should be relative to the base url
  54764. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  54765. } else {
  54766. // path should be relative to current directory
  54767. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  54768. }
  54769. // send back the fixed url(...)
  54770. return "url(" + JSON.stringify(newUrl) + ")";
  54771. });
  54772. // send back the fixed css
  54773. return fixedCss;
  54774. };
  54775. /***/ }),
  54776. /***/ "../../node_modules/timers-browserify/main.js":
  54777. /*!******************************************************************!*\
  54778. !*** E:/Repos/Babylon.js/node_modules/timers-browserify/main.js ***!
  54779. \******************************************************************/
  54780. /*! no static exports found */
  54781. /***/ (function(module, exports, __webpack_require__) {
  54782. /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
  54783. (typeof self !== "undefined" && self) ||
  54784. window;
  54785. var apply = Function.prototype.apply;
  54786. // DOM APIs, for completeness
  54787. exports.setTimeout = function() {
  54788. return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
  54789. };
  54790. exports.setInterval = function() {
  54791. return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
  54792. };
  54793. exports.clearTimeout =
  54794. exports.clearInterval = function(timeout) {
  54795. if (timeout) {
  54796. timeout.close();
  54797. }
  54798. };
  54799. function Timeout(id, clearFn) {
  54800. this._id = id;
  54801. this._clearFn = clearFn;
  54802. }
  54803. Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  54804. Timeout.prototype.close = function() {
  54805. this._clearFn.call(scope, this._id);
  54806. };
  54807. // Does not start the time, just sets up the members needed.
  54808. exports.enroll = function(item, msecs) {
  54809. clearTimeout(item._idleTimeoutId);
  54810. item._idleTimeout = msecs;
  54811. };
  54812. exports.unenroll = function(item) {
  54813. clearTimeout(item._idleTimeoutId);
  54814. item._idleTimeout = -1;
  54815. };
  54816. exports._unrefActive = exports.active = function(item) {
  54817. clearTimeout(item._idleTimeoutId);
  54818. var msecs = item._idleTimeout;
  54819. if (msecs >= 0) {
  54820. item._idleTimeoutId = setTimeout(function onTimeout() {
  54821. if (item._onTimeout)
  54822. item._onTimeout();
  54823. }, msecs);
  54824. }
  54825. };
  54826. // setimmediate attaches itself to the global object
  54827. __webpack_require__(/*! setimmediate */ "../../node_modules/setimmediate/setImmediate.js");
  54828. // On some exotic environments, it's not clear which object `setimmediate` was
  54829. // able to install onto. Search each possibility in the same order as the
  54830. // `setimmediate` library.
  54831. exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
  54832. (typeof global !== "undefined" && global.setImmediate) ||
  54833. (this && this.setImmediate);
  54834. exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
  54835. (typeof global !== "undefined" && global.clearImmediate) ||
  54836. (this && this.clearImmediate);
  54837. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  54838. /***/ }),
  54839. /***/ "../../node_modules/tslib/tslib.es6.js":
  54840. /*!***********************************************************!*\
  54841. !*** E:/Repos/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  54842. \***********************************************************/
  54843. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  54844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54845. "use strict";
  54846. __webpack_require__.r(__webpack_exports__);
  54847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  54848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  54849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  54850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  54851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  54852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  54853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  54854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  54855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  54856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  54857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  54858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  54859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  54860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  54861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  54862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  54863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  54864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  54865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  54866. /*! *****************************************************************************
  54867. Copyright (c) Microsoft Corporation. All rights reserved.
  54868. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  54869. this file except in compliance with the License. You may obtain a copy of the
  54870. License at http://www.apache.org/licenses/LICENSE-2.0
  54871. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  54872. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  54873. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  54874. MERCHANTABLITY OR NON-INFRINGEMENT.
  54875. See the Apache Version 2.0 License for specific language governing permissions
  54876. and limitations under the License.
  54877. ***************************************************************************** */
  54878. /* global Reflect, Promise */
  54879. var extendStatics = function(d, b) {
  54880. extendStatics = Object.setPrototypeOf ||
  54881. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  54882. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  54883. return extendStatics(d, b);
  54884. };
  54885. function __extends(d, b) {
  54886. extendStatics(d, b);
  54887. function __() { this.constructor = d; }
  54888. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  54889. }
  54890. var __assign = function() {
  54891. __assign = Object.assign || function __assign(t) {
  54892. for (var s, i = 1, n = arguments.length; i < n; i++) {
  54893. s = arguments[i];
  54894. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  54895. }
  54896. return t;
  54897. }
  54898. return __assign.apply(this, arguments);
  54899. }
  54900. function __rest(s, e) {
  54901. var t = {};
  54902. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  54903. t[p] = s[p];
  54904. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  54905. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
  54906. t[p[i]] = s[p[i]];
  54907. return t;
  54908. }
  54909. function __decorate(decorators, target, key, desc) {
  54910. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  54911. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  54912. 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;
  54913. return c > 3 && r && Object.defineProperty(target, key, r), r;
  54914. }
  54915. function __param(paramIndex, decorator) {
  54916. return function (target, key) { decorator(target, key, paramIndex); }
  54917. }
  54918. function __metadata(metadataKey, metadataValue) {
  54919. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  54920. }
  54921. function __awaiter(thisArg, _arguments, P, generator) {
  54922. return new (P || (P = Promise))(function (resolve, reject) {
  54923. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  54924. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  54925. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  54926. step((generator = generator.apply(thisArg, _arguments || [])).next());
  54927. });
  54928. }
  54929. function __generator(thisArg, body) {
  54930. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  54931. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  54932. function verb(n) { return function (v) { return step([n, v]); }; }
  54933. function step(op) {
  54934. if (f) throw new TypeError("Generator is already executing.");
  54935. while (_) try {
  54936. 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;
  54937. if (y = 0, t) op = [op[0] & 2, t.value];
  54938. switch (op[0]) {
  54939. case 0: case 1: t = op; break;
  54940. case 4: _.label++; return { value: op[1], done: false };
  54941. case 5: _.label++; y = op[1]; op = [0]; continue;
  54942. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  54943. default:
  54944. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  54945. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  54946. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  54947. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  54948. if (t[2]) _.ops.pop();
  54949. _.trys.pop(); continue;
  54950. }
  54951. op = body.call(thisArg, _);
  54952. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  54953. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  54954. }
  54955. }
  54956. function __exportStar(m, exports) {
  54957. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  54958. }
  54959. function __values(o) {
  54960. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  54961. if (m) return m.call(o);
  54962. return {
  54963. next: function () {
  54964. if (o && i >= o.length) o = void 0;
  54965. return { value: o && o[i++], done: !o };
  54966. }
  54967. };
  54968. }
  54969. function __read(o, n) {
  54970. var m = typeof Symbol === "function" && o[Symbol.iterator];
  54971. if (!m) return o;
  54972. var i = m.call(o), r, ar = [], e;
  54973. try {
  54974. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  54975. }
  54976. catch (error) { e = { error: error }; }
  54977. finally {
  54978. try {
  54979. if (r && !r.done && (m = i["return"])) m.call(i);
  54980. }
  54981. finally { if (e) throw e.error; }
  54982. }
  54983. return ar;
  54984. }
  54985. function __spread() {
  54986. for (var ar = [], i = 0; i < arguments.length; i++)
  54987. ar = ar.concat(__read(arguments[i]));
  54988. return ar;
  54989. }
  54990. function __await(v) {
  54991. return this instanceof __await ? (this.v = v, this) : new __await(v);
  54992. }
  54993. function __asyncGenerator(thisArg, _arguments, generator) {
  54994. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  54995. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  54996. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  54997. 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); }); }; }
  54998. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  54999. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  55000. function fulfill(value) { resume("next", value); }
  55001. function reject(value) { resume("throw", value); }
  55002. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  55003. }
  55004. function __asyncDelegator(o) {
  55005. var i, p;
  55006. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  55007. 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; }
  55008. }
  55009. function __asyncValues(o) {
  55010. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  55011. var m = o[Symbol.asyncIterator], i;
  55012. 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);
  55013. 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); }); }; }
  55014. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  55015. }
  55016. function __makeTemplateObject(cooked, raw) {
  55017. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  55018. return cooked;
  55019. };
  55020. function __importStar(mod) {
  55021. if (mod && mod.__esModule) return mod;
  55022. var result = {};
  55023. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  55024. result.default = mod;
  55025. return result;
  55026. }
  55027. function __importDefault(mod) {
  55028. return (mod && mod.__esModule) ? mod : { default: mod };
  55029. }
  55030. /***/ }),
  55031. /***/ "../../node_modules/webpack/buildin/global.js":
  55032. /*!***********************************!*\
  55033. !*** (webpack)/buildin/global.js ***!
  55034. \***********************************/
  55035. /*! no static exports found */
  55036. /***/ (function(module, exports) {
  55037. var g;
  55038. // This works in non-strict mode
  55039. g = (function() {
  55040. return this;
  55041. })();
  55042. try {
  55043. // This works if eval is allowed (see CSP)
  55044. g = g || new Function("return this")();
  55045. } catch (e) {
  55046. // This works if the window reference is available
  55047. if (typeof window === "object") g = window;
  55048. }
  55049. // g can still be undefined, but nothing to do about it...
  55050. // We return undefined, instead of nothing here, so it's
  55051. // easier to handle this case. if(!global) { ...}
  55052. module.exports = g;
  55053. /***/ }),
  55054. /***/ "../../node_modules/webpack/buildin/module.js":
  55055. /*!***********************************!*\
  55056. !*** (webpack)/buildin/module.js ***!
  55057. \***********************************/
  55058. /*! no static exports found */
  55059. /***/ (function(module, exports) {
  55060. module.exports = function(module) {
  55061. if (!module.webpackPolyfill) {
  55062. module.deprecate = function() {};
  55063. module.paths = [];
  55064. // module.parent = undefined by default
  55065. if (!module.children) module.children = [];
  55066. Object.defineProperty(module, "loaded", {
  55067. enumerable: true,
  55068. get: function() {
  55069. return module.l;
  55070. }
  55071. });
  55072. Object.defineProperty(module, "id", {
  55073. enumerable: true,
  55074. get: function() {
  55075. return module.i;
  55076. }
  55077. });
  55078. module.webpackPolyfill = 1;
  55079. }
  55080. return module;
  55081. };
  55082. /***/ }),
  55083. /***/ "./blockTools.ts":
  55084. /*!***********************!*\
  55085. !*** ./blockTools.ts ***!
  55086. \***********************/
  55087. /*! exports provided: BlockTools */
  55088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55089. "use strict";
  55090. __webpack_require__.r(__webpack_exports__);
  55091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  55092. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/alphaTestBlock */ "babylonjs/Misc/observable");
  55093. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__);
  55094. var BlockTools = /** @class */ (function () {
  55095. function BlockTools() {
  55096. }
  55097. BlockTools.GetBlockFromString = function (data, scene) {
  55098. switch (data) {
  55099. case "BonesBlock":
  55100. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  55101. case "InstancesBlock":
  55102. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  55103. case "MorphTargetsBlock":
  55104. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  55105. case "AlphaTestBlock":
  55106. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AlphaTestBlock"]("AlphaTest");
  55107. case "ImageProcessingBlock":
  55108. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  55109. case "ColorMergerBlock":
  55110. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  55111. case "VectorMergerBlock":
  55112. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  55113. case "ColorSplitterBlock":
  55114. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  55115. case "VectorSplitterBlock":
  55116. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  55117. case "TextureBlock":
  55118. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  55119. case "ReflectionTextureBlock":
  55120. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Texture");
  55121. case "LightBlock":
  55122. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  55123. case "FogBlock":
  55124. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  55125. case "VertexOutputBlock":
  55126. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  55127. case "FragmentOutputBlock":
  55128. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  55129. case "AddBlock":
  55130. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  55131. case "ClampBlock":
  55132. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  55133. case "ScaleBlock":
  55134. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  55135. case "CrossBlock":
  55136. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  55137. case "DotBlock":
  55138. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  55139. case "PowBlock":
  55140. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  55141. case "MultiplyBlock":
  55142. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  55143. case "TransformBlock":
  55144. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  55145. case "TrigonometryBlock":
  55146. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  55147. case "RemapBlock":
  55148. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  55149. case "NormalizeBlock":
  55150. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  55151. case "FresnelBlock":
  55152. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  55153. case "LerpBlock":
  55154. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  55155. case "DivideBlock":
  55156. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  55157. case "SubtractBlock":
  55158. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  55159. case "StepBlock":
  55160. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  55161. case "OneMinusBlock":
  55162. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  55163. case "ViewDirectionBlock":
  55164. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  55165. case "LightInformationBlock":
  55166. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  55167. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  55168. return lightInformationBlock;
  55169. case "MaxBlock":
  55170. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  55171. case "MinBlock":
  55172. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  55173. case "LengthBlock":
  55174. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  55175. case "DistanceBlock":
  55176. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  55177. case "NegateBlock":
  55178. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  55179. case "PerturbNormalBlock":
  55180. return new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  55181. case "CosBlock": {
  55182. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  55183. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  55184. return cosBlock;
  55185. }
  55186. case "SinBlock": {
  55187. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  55188. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  55189. return sinBlock;
  55190. }
  55191. case "AbsBlock": {
  55192. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  55193. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  55194. return absBlock;
  55195. }
  55196. case "SqrtBlock": {
  55197. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  55198. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  55199. return sqrtBlock;
  55200. }
  55201. case "ExpBlock": {
  55202. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  55203. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  55204. return expBlock;
  55205. }
  55206. case "Exp2Block": {
  55207. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  55208. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  55209. return exp2Block;
  55210. }
  55211. case "RoundBlock": {
  55212. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  55213. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  55214. return roundBlock;
  55215. }
  55216. case "CeilingBlock": {
  55217. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  55218. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  55219. return ceilingBlock;
  55220. }
  55221. case "FloorBlock": {
  55222. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  55223. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  55224. return floorBlock;
  55225. }
  55226. case "WorldMatrixBlock": {
  55227. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  55228. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  55229. return worldMatrixBlock;
  55230. }
  55231. case "WorldViewMatrixBlock": {
  55232. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  55233. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  55234. return worldViewMatrixBlock;
  55235. }
  55236. case "WorldViewProjectionMatrixBlock": {
  55237. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  55238. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  55239. return worldViewProjectionMatrixBlock;
  55240. }
  55241. case "ViewMatrixBlock": {
  55242. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  55243. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  55244. return viewMatrixBlock;
  55245. }
  55246. case "ViewProjectionMatrixBlock": {
  55247. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  55248. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  55249. return viewProjectionMatrixBlock;
  55250. }
  55251. case "ProjectionMatrixBlock": {
  55252. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  55253. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  55254. return projectionMatrixBlock;
  55255. }
  55256. case "CameraPositionBlock": {
  55257. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  55258. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  55259. return cameraPosition;
  55260. }
  55261. case "FogColorBlock": {
  55262. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  55263. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  55264. return FogColor;
  55265. }
  55266. case "PositionBlock": {
  55267. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  55268. meshPosition.setAsAttribute("position");
  55269. return meshPosition;
  55270. }
  55271. case "UVBlock": {
  55272. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  55273. meshUV.setAsAttribute("uv");
  55274. return meshUV;
  55275. }
  55276. case "ColorBlock": {
  55277. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  55278. meshColor.setAsAttribute("color");
  55279. return meshColor;
  55280. }
  55281. case "NormalBlock": {
  55282. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  55283. meshNormal.setAsAttribute("normal");
  55284. return meshNormal;
  55285. }
  55286. case "TangentBlock": {
  55287. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  55288. meshTangent.setAsAttribute("tangent");
  55289. return meshTangent;
  55290. }
  55291. case "MatrixIndicesBlock": {
  55292. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  55293. meshMatrixIndices.setAsAttribute("matricesIndices");
  55294. return meshMatrixIndices;
  55295. }
  55296. case "MatrixWeightsBlock": {
  55297. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  55298. meshMatrixWeights.setAsAttribute("matricesWeights");
  55299. return meshMatrixWeights;
  55300. }
  55301. case "TimeBlock": {
  55302. var timeBlock = new babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Time", undefined, babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float);
  55303. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  55304. return timeBlock;
  55305. }
  55306. }
  55307. return null;
  55308. };
  55309. BlockTools.GetColorFromConnectionNodeType = function (type) {
  55310. var color = "Red";
  55311. switch (type) {
  55312. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  55313. color = "#ca9e27";
  55314. break;
  55315. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55316. color = "#16bcb1";
  55317. break;
  55318. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55319. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55320. color = "#b786cb";
  55321. break;
  55322. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55323. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55324. color = "#be5126";
  55325. break;
  55326. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55327. color = "#591990";
  55328. break;
  55329. }
  55330. return color;
  55331. };
  55332. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  55333. switch (type) {
  55334. case "Float":
  55335. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  55336. case "Vector2":
  55337. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  55338. case "Vector3":
  55339. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  55340. case "Vector4":
  55341. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  55342. case "Matrix":
  55343. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  55344. case "Color3":
  55345. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  55346. case "Color4":
  55347. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  55348. }
  55349. return babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  55350. };
  55351. BlockTools.GetStringFromConnectionNodeType = function (type) {
  55352. switch (type) {
  55353. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  55354. return "Float";
  55355. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55356. return "Vector2";
  55357. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55358. return "Vector3";
  55359. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55360. return "Vector4";
  55361. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55362. return "Color3";
  55363. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55364. return "Color4";
  55365. case babylonjs_Materials_Node_Blocks_Fragment_alphaTestBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55366. return "Matrix";
  55367. }
  55368. return "";
  55369. };
  55370. return BlockTools;
  55371. }());
  55372. /***/ }),
  55373. /***/ "./components/diagram/clamp/clampNodeFactory.tsx":
  55374. /*!*******************************************************!*\
  55375. !*** ./components/diagram/clamp/clampNodeFactory.tsx ***!
  55376. \*******************************************************/
  55377. /*! exports provided: ClampNodeFactory */
  55378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55379. "use strict";
  55380. __webpack_require__.r(__webpack_exports__);
  55381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeFactory", function() { return ClampNodeFactory; });
  55382. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55383. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55384. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55385. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55386. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  55387. /* harmony import */ var _clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodeWidget */ "./components/diagram/clamp/clampNodeWidget.tsx");
  55388. /* harmony import */ var _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  55389. var ClampNodeFactory = /** @class */ (function (_super) {
  55390. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeFactory, _super);
  55391. function ClampNodeFactory(globalState) {
  55392. var _this = _super.call(this, "clamp") || this;
  55393. _this._globalState = globalState;
  55394. return _this;
  55395. }
  55396. ClampNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  55397. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_clampNodeWidget__WEBPACK_IMPORTED_MODULE_3__["ClampNodeWidget"], { node: node, globalState: this._globalState });
  55398. };
  55399. ClampNodeFactory.prototype.getNewInstance = function () {
  55400. return new _clampNodeModel__WEBPACK_IMPORTED_MODULE_4__["ClampNodeModel"]();
  55401. };
  55402. return ClampNodeFactory;
  55403. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  55404. /***/ }),
  55405. /***/ "./components/diagram/clamp/clampNodeModel.tsx":
  55406. /*!*****************************************************!*\
  55407. !*** ./components/diagram/clamp/clampNodeModel.tsx ***!
  55408. \*****************************************************/
  55409. /*! exports provided: ClampNodeModel */
  55410. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55411. "use strict";
  55412. __webpack_require__.r(__webpack_exports__);
  55413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeModel", function() { return ClampNodeModel; });
  55414. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55415. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55416. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55417. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  55418. /* harmony import */ var _clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clampNodePropertyComponent */ "./components/diagram/clamp/clampNodePropertyComponent.tsx");
  55419. var ClampNodeModel = /** @class */ (function (_super) {
  55420. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeModel, _super);
  55421. /**
  55422. * Constructs the node model
  55423. */
  55424. function ClampNodeModel() {
  55425. return _super.call(this, "clamp") || this;
  55426. }
  55427. Object.defineProperty(ClampNodeModel.prototype, "clampBlock", {
  55428. get: function () {
  55429. return this.block;
  55430. },
  55431. enumerable: true,
  55432. configurable: true
  55433. });
  55434. ClampNodeModel.prototype.renderProperties = function (globalState) {
  55435. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["ClampPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  55436. };
  55437. return ClampNodeModel;
  55438. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  55439. /***/ }),
  55440. /***/ "./components/diagram/clamp/clampNodePropertyComponent.tsx":
  55441. /*!*****************************************************************!*\
  55442. !*** ./components/diagram/clamp/clampNodePropertyComponent.tsx ***!
  55443. \*****************************************************************/
  55444. /*! exports provided: ClampPropertyTabComponentProps */
  55445. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55446. "use strict";
  55447. __webpack_require__.r(__webpack_exports__);
  55448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampPropertyTabComponentProps", function() { return ClampPropertyTabComponentProps; });
  55449. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55450. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55451. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55452. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55453. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  55454. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55455. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  55456. var ClampPropertyTabComponentProps = /** @class */ (function (_super) {
  55457. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampPropertyTabComponentProps, _super);
  55458. function ClampPropertyTabComponentProps(props) {
  55459. return _super.call(this, props) || this;
  55460. }
  55461. ClampPropertyTabComponentProps.prototype.forceRebuild = function () {
  55462. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55463. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  55464. };
  55465. ClampPropertyTabComponentProps.prototype.render = function () {
  55466. var _this = this;
  55467. var clampBlock = this.props.remapNode.clampBlock;
  55468. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  55469. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  55470. 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(); } }),
  55471. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: clampBlock.getClassName() })),
  55472. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  55473. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Minimum", propertyName: "minimum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }),
  55474. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__["FloatLineComponent"], { label: "Maximum", propertyName: "maximum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }))));
  55475. };
  55476. return ClampPropertyTabComponentProps;
  55477. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55478. /***/ }),
  55479. /***/ "./components/diagram/clamp/clampNodeWidget.tsx":
  55480. /*!******************************************************!*\
  55481. !*** ./components/diagram/clamp/clampNodeWidget.tsx ***!
  55482. \******************************************************/
  55483. /*! exports provided: ClampNodeWidget */
  55484. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55485. "use strict";
  55486. __webpack_require__.r(__webpack_exports__);
  55487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampNodeWidget", function() { return ClampNodeWidget; });
  55488. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55489. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55490. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55491. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  55492. var ClampNodeWidget = /** @class */ (function (_super) {
  55493. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ClampNodeWidget, _super);
  55494. function ClampNodeWidget(props) {
  55495. var _this = _super.call(this, props) || this;
  55496. _this.state = {};
  55497. if (_this.props.node) {
  55498. _this.props.node.addListener({
  55499. selectionChanged: function () {
  55500. var selected = _this.props.node.selected;
  55501. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  55502. }
  55503. });
  55504. }
  55505. return _this;
  55506. }
  55507. ClampNodeWidget.prototype.renderValue = function (value) {
  55508. if (value) {
  55509. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  55510. }
  55511. return null;
  55512. };
  55513. ClampNodeWidget.prototype.render = function () {
  55514. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, true);
  55515. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  55516. var clampBlock = this.props.node.block;
  55517. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  55518. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, clampBlock.name),
  55519. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  55520. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  55521. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]")));
  55522. };
  55523. return ClampNodeWidget;
  55524. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55525. /***/ }),
  55526. /***/ "./components/diagram/defaultNodeModel.ts":
  55527. /*!************************************************!*\
  55528. !*** ./components/diagram/defaultNodeModel.ts ***!
  55529. \************************************************/
  55530. /*! exports provided: DefaultNodeModel */
  55531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55532. "use strict";
  55533. __webpack_require__.r(__webpack_exports__);
  55534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultNodeModel", function() { return DefaultNodeModel; });
  55535. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55536. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55537. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55538. /* harmony import */ var _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  55539. /**
  55540. * Generic node model which stores information about a node editor block
  55541. */
  55542. var DefaultNodeModel = /** @class */ (function (_super) {
  55543. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultNodeModel, _super);
  55544. /**
  55545. * Constructs the node model
  55546. */
  55547. function DefaultNodeModel(key) {
  55548. var _this = _super.call(this, key) || this;
  55549. /**
  55550. * The babylon block this node represents
  55551. */
  55552. _this.block = null;
  55553. return _this;
  55554. }
  55555. DefaultNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  55556. var _this = this;
  55557. this.block = options.nodeMaterialBlock || null;
  55558. if (!options.nodeMaterialBlock) {
  55559. return;
  55560. }
  55561. // Create output ports
  55562. options.nodeMaterialBlock._outputs.forEach(function (connection) {
  55563. var outputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "output");
  55564. outputPort.syncWithNodeMaterialConnectionPoint(connection);
  55565. _this.addPort(outputPort);
  55566. });
  55567. // Create input ports and nodes if they exist
  55568. options.nodeMaterialBlock._inputs.forEach(function (connection) {
  55569. var inputPort = new _port_defaultPortModel__WEBPACK_IMPORTED_MODULE_2__["DefaultPortModel"](connection.name, "input");
  55570. inputPort.connection = connection;
  55571. _this.addPort(inputPort);
  55572. if (connection.connectedPoint) {
  55573. // Block is not a leaf node, create node for the given block type
  55574. var connectedNode;
  55575. var existingNodes = nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  55576. if (existingNodes.length == 0) {
  55577. connectedNode = graphEditor.createNodeFromObject({ nodeMaterialBlock: connection.connectedPoint._ownerBlock });
  55578. }
  55579. else {
  55580. connectedNode = existingNodes[0];
  55581. }
  55582. var link = connectedNode.ports[connection.connectedPoint.name].link(inputPort);
  55583. if (graphEditor._toAdd) {
  55584. graphEditor._toAdd.push(link);
  55585. }
  55586. else {
  55587. model.addAll(link);
  55588. }
  55589. }
  55590. });
  55591. };
  55592. DefaultNodeModel.prototype.renderProperties = function (globalState) {
  55593. return null;
  55594. };
  55595. return DefaultNodeModel;
  55596. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["NodeModel"]));
  55597. /***/ }),
  55598. /***/ "./components/diagram/diagram.scss":
  55599. /*!*****************************************!*\
  55600. !*** ./components/diagram/diagram.scss ***!
  55601. \*****************************************/
  55602. /*! no static exports found */
  55603. /***/ (function(module, exports, __webpack_require__) {
  55604. 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");
  55605. if(typeof content === 'string') content = [[module.i, content, '']];
  55606. var transform;
  55607. var insertInto;
  55608. var options = {"hmr":true}
  55609. options.transform = transform
  55610. options.insertInto = undefined;
  55611. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  55612. if(content.locals) module.exports = content.locals;
  55613. if(false) {}
  55614. /***/ }),
  55615. /***/ "./components/diagram/generic/genericNodeFactory.tsx":
  55616. /*!***********************************************************!*\
  55617. !*** ./components/diagram/generic/genericNodeFactory.tsx ***!
  55618. \***********************************************************/
  55619. /*! exports provided: GenericNodeFactory */
  55620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55621. "use strict";
  55622. __webpack_require__.r(__webpack_exports__);
  55623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeFactory", function() { return GenericNodeFactory; });
  55624. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55625. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55626. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55627. /* harmony import */ var _genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./genericNodeWidget */ "./components/diagram/generic/genericNodeWidget.tsx");
  55628. /* harmony import */ var _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  55629. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55630. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  55631. /**
  55632. * Node factory which creates editor nodes
  55633. */
  55634. var GenericNodeFactory = /** @class */ (function (_super) {
  55635. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeFactory, _super);
  55636. /**
  55637. * Constructs a GenericNodeFactory
  55638. */
  55639. function GenericNodeFactory(globalState) {
  55640. var _this = _super.call(this, "generic") || this;
  55641. _this._globalState = globalState;
  55642. return _this;
  55643. }
  55644. /**
  55645. * Generates a node widget
  55646. * @param diagramEngine diagram engine
  55647. * @param node node to generate
  55648. * @returns node widget jsx
  55649. */
  55650. GenericNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  55651. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_genericNodeWidget__WEBPACK_IMPORTED_MODULE_2__["GenericNodeWidget"], { node: node, globalState: this._globalState });
  55652. };
  55653. /**
  55654. * Gets a new instance of a node model
  55655. * @returns generic node model
  55656. */
  55657. GenericNodeFactory.prototype.getNewInstance = function () {
  55658. return new _genericNodeModel__WEBPACK_IMPORTED_MODULE_3__["GenericNodeModel"]();
  55659. };
  55660. return GenericNodeFactory;
  55661. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  55662. /***/ }),
  55663. /***/ "./components/diagram/generic/genericNodeModel.tsx":
  55664. /*!*********************************************************!*\
  55665. !*** ./components/diagram/generic/genericNodeModel.tsx ***!
  55666. \*********************************************************/
  55667. /*! exports provided: GenericNodeModel */
  55668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55669. "use strict";
  55670. __webpack_require__.r(__webpack_exports__);
  55671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeModel", function() { return GenericNodeModel; });
  55672. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55673. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55674. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55675. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  55676. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55677. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55678. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  55679. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  55680. /**
  55681. * Generic node model which stores information about a node editor block
  55682. */
  55683. var GenericNodeModel = /** @class */ (function (_super) {
  55684. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeModel, _super);
  55685. /**
  55686. * Constructs the node model
  55687. */
  55688. function GenericNodeModel() {
  55689. var _this = _super.call(this, "generic") || this;
  55690. /**
  55691. * Vector2 for the node if it exists
  55692. */
  55693. _this.vector2 = null;
  55694. /**
  55695. * Vector3 for the node if it exists
  55696. */
  55697. _this.vector3 = null;
  55698. /**
  55699. * Vector4 for the node if it exists
  55700. */
  55701. _this.vector4 = null;
  55702. /**
  55703. * Matrix for the node if it exists
  55704. */
  55705. _this.matrix = null;
  55706. return _this;
  55707. }
  55708. GenericNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  55709. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  55710. };
  55711. GenericNodeModel.prototype.renderProperties = function (globalState) {
  55712. var _this = this;
  55713. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  55714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "GENERAL" },
  55715. 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(); } }),
  55716. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextLineComponent"], { label: "Type", value: this.block.getClassName() })),
  55717. this.block.getClassName() === "TransformBlock" &&
  55718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  55719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  55720. var transformBlock = _this.block;
  55721. if (value) {
  55722. transformBlock.complementW = 0;
  55723. }
  55724. else {
  55725. transformBlock.complementW = 1;
  55726. }
  55727. globalState.onRebuildRequiredObservable.notifyObservers();
  55728. }, isSelected: function () { return _this.block.complementW === 0; } })),
  55729. this.block.getClassName() === "PerturbNormalBlock" &&
  55730. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  55731. 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(); } }),
  55732. 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(); } }))));
  55733. };
  55734. return GenericNodeModel;
  55735. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  55736. /***/ }),
  55737. /***/ "./components/diagram/generic/genericNodeWidget.tsx":
  55738. /*!**********************************************************!*\
  55739. !*** ./components/diagram/generic/genericNodeWidget.tsx ***!
  55740. \**********************************************************/
  55741. /*! exports provided: GenericNodeWidget */
  55742. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55743. "use strict";
  55744. __webpack_require__.r(__webpack_exports__);
  55745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericNodeWidget", function() { return GenericNodeWidget; });
  55746. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55747. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55748. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55749. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  55750. /**
  55751. * Used to display a node block for the node editor
  55752. */
  55753. var GenericNodeWidget = /** @class */ (function (_super) {
  55754. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GenericNodeWidget, _super);
  55755. /**
  55756. * Creates a GenericNodeWidget
  55757. * @param props
  55758. */
  55759. function GenericNodeWidget(props) {
  55760. var _this = _super.call(this, props) || this;
  55761. _this.state = {};
  55762. if (_this.props.node) {
  55763. _this.props.node.addListener({
  55764. selectionChanged: function () {
  55765. var selected = _this.props.node.selected;
  55766. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  55767. }
  55768. });
  55769. }
  55770. return _this;
  55771. }
  55772. GenericNodeWidget.prototype.render = function () {
  55773. // Header label
  55774. var header = "";
  55775. if (this.props.node && this.props.node.block) {
  55776. header = this.props.node.block.name;
  55777. }
  55778. // Input/Output ports
  55779. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  55780. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  55781. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" + (outputPorts.length === 0 ? " output" : "") },
  55782. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, header),
  55783. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  55784. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  55785. };
  55786. return GenericNodeWidget;
  55787. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  55788. /***/ }),
  55789. /***/ "./components/diagram/input/inputNodeFactory.tsx":
  55790. /*!*******************************************************!*\
  55791. !*** ./components/diagram/input/inputNodeFactory.tsx ***!
  55792. \*******************************************************/
  55793. /*! exports provided: InputNodeFactory */
  55794. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55795. "use strict";
  55796. __webpack_require__.r(__webpack_exports__);
  55797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeFactory", function() { return InputNodeFactory; });
  55798. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55799. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  55800. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  55801. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55802. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  55803. /* harmony import */ var _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  55804. /* harmony import */ var _inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputNodeWidget */ "./components/diagram/input/inputNodeWidget.tsx");
  55805. /**
  55806. * Node factory which creates editor nodes
  55807. */
  55808. var InputNodeFactory = /** @class */ (function (_super) {
  55809. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeFactory, _super);
  55810. /**
  55811. * Constructs a GenericNodeFactory
  55812. */
  55813. function InputNodeFactory(globalState) {
  55814. var _this = _super.call(this, "input") || this;
  55815. _this._globalState = globalState;
  55816. return _this;
  55817. }
  55818. /**
  55819. * Generates a node widget
  55820. * @param diagramEngine diagram engine
  55821. * @param node node to generate
  55822. * @returns node widget jsx
  55823. */
  55824. InputNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  55825. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_inputNodeWidget__WEBPACK_IMPORTED_MODULE_4__["InputNodeWidget"], { node: node, globalState: this._globalState });
  55826. };
  55827. /**
  55828. * Gets a new instance of a node model
  55829. * @returns input node model
  55830. */
  55831. InputNodeFactory.prototype.getNewInstance = function () {
  55832. return new _inputNodeModel__WEBPACK_IMPORTED_MODULE_3__["InputNodeModel"]();
  55833. };
  55834. return InputNodeFactory;
  55835. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  55836. /***/ }),
  55837. /***/ "./components/diagram/input/inputNodeModel.tsx":
  55838. /*!*****************************************************!*\
  55839. !*** ./components/diagram/input/inputNodeModel.tsx ***!
  55840. \*****************************************************/
  55841. /*! exports provided: InputNodeModel */
  55842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55843. "use strict";
  55844. __webpack_require__.r(__webpack_exports__);
  55845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeModel", function() { return InputNodeModel; });
  55846. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55847. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55848. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55849. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  55850. /* harmony import */ var _inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputNodePropertyComponent */ "./components/diagram/input/inputNodePropertyComponent.tsx");
  55851. /**
  55852. * Generic node model which stores information about a node editor block
  55853. */
  55854. var InputNodeModel = /** @class */ (function (_super) {
  55855. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeModel, _super);
  55856. /**
  55857. * Constructs the node model
  55858. */
  55859. function InputNodeModel() {
  55860. return _super.call(this, "input") || this;
  55861. }
  55862. Object.defineProperty(InputNodeModel.prototype, "inputBlock", {
  55863. get: function () {
  55864. return this.block;
  55865. },
  55866. enumerable: true,
  55867. configurable: true
  55868. });
  55869. InputNodeModel.prototype.renderProperties = function (globalState) {
  55870. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["InputPropertyTabComponentProps"], { globalState: globalState, inputNode: this }));
  55871. };
  55872. return InputNodeModel;
  55873. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  55874. /***/ }),
  55875. /***/ "./components/diagram/input/inputNodePropertyComponent.tsx":
  55876. /*!*****************************************************************!*\
  55877. !*** ./components/diagram/input/inputNodePropertyComponent.tsx ***!
  55878. \*****************************************************************/
  55879. /*! exports provided: InputPropertyTabComponentProps */
  55880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55881. "use strict";
  55882. __webpack_require__.r(__webpack_exports__);
  55883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponentProps", function() { return InputPropertyTabComponentProps; });
  55884. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  55885. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  55886. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  55887. /* harmony import */ var _propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  55888. /* harmony import */ var _propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  55889. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  55890. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__);
  55891. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  55892. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  55893. /* harmony import */ var _propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  55894. /* harmony import */ var _propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  55895. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  55896. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  55897. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  55898. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  55899. /* harmony import */ var _propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  55900. /* harmony import */ var _propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  55901. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  55902. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  55903. var InputPropertyTabComponentProps = /** @class */ (function (_super) {
  55904. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputPropertyTabComponentProps, _super);
  55905. function InputPropertyTabComponentProps(props) {
  55906. return _super.call(this, props) || this;
  55907. }
  55908. InputPropertyTabComponentProps.prototype.renderValue = function (globalState) {
  55909. var _this = this;
  55910. var inputBlock = this.props.inputNode.inputBlock;
  55911. switch (inputBlock.type) {
  55912. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float: {
  55913. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  55914. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  55915. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__["FloatLineComponent"], { label: "Min", target: inputBlock, propertyName: "min", onChange: function () {
  55916. _this.forceUpdate();
  55917. } }),
  55918. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_15__["FloatLineComponent"], { label: "Max", target: inputBlock, propertyName: "max", onChange: function () {
  55919. _this.forceUpdate();
  55920. } }),
  55921. cantDisplaySlider &&
  55922. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  55923. !cantDisplaySlider &&
  55924. 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 () {
  55925. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  55926. } })));
  55927. }
  55928. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55929. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55930. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55931. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55932. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55933. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55934. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55935. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55936. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_13__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55937. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55938. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_14__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  55939. }
  55940. return null;
  55941. };
  55942. InputPropertyTabComponentProps.prototype.setDefaultValue = function () {
  55943. var inputBlock = this.props.inputNode.inputBlock;
  55944. inputBlock.setDefaultValue();
  55945. };
  55946. InputPropertyTabComponentProps.prototype.render = function () {
  55947. var _this = this;
  55948. var inputBlock = this.props.inputNode.inputBlock;
  55949. var systemValuesOptions = [];
  55950. var attributeOptions = [];
  55951. var animationOptions = [];
  55952. switch (inputBlock.type) {
  55953. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Float:
  55954. animationOptions = [
  55955. { label: "None", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None },
  55956. { label: "Time", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].Time },
  55957. ];
  55958. break;
  55959. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  55960. systemValuesOptions = [
  55961. { label: "World", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].World },
  55962. { label: "World x View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldView },
  55963. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].WorldViewProjection },
  55964. { label: "View", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].View },
  55965. { label: "View x Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].ViewProjection },
  55966. { label: "Projection", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].Projection }
  55967. ];
  55968. break;
  55969. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color3:
  55970. systemValuesOptions = [
  55971. { label: "Fog color", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].FogColor }
  55972. ];
  55973. break;
  55974. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Color4:
  55975. attributeOptions = [
  55976. { label: "color", value: "color" }
  55977. ];
  55978. break;
  55979. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  55980. attributeOptions = [
  55981. { label: "uv", value: "uv" },
  55982. { label: "uv2", value: "uv2" },
  55983. ];
  55984. break;
  55985. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  55986. systemValuesOptions = [
  55987. { label: "Camera position", value: babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialSystemValues"].CameraPosition }
  55988. ];
  55989. attributeOptions = [
  55990. { label: "position", value: "position" },
  55991. { label: "normal", value: "normal" },
  55992. { label: "tangent", value: "tangent" },
  55993. ];
  55994. break;
  55995. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  55996. attributeOptions = [
  55997. { label: "matricesIndices", value: "matricesIndices" },
  55998. { label: "matricesWeights", value: "matricesWeights" }
  55999. ];
  56000. break;
  56001. }
  56002. var modeOptions = [
  56003. { label: "User-defined", value: 0 }
  56004. ];
  56005. if (attributeOptions.length > 0) {
  56006. modeOptions.push({ label: "Mesh attribute", value: 1 });
  56007. }
  56008. if (systemValuesOptions.length > 0) {
  56009. modeOptions.push({ label: "System value", value: 2 });
  56010. }
  56011. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "GENERAL" },
  56013. !inputBlock.isAttribute &&
  56014. 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(); } }),
  56015. 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) })),
  56016. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_9__["LineContainerComponent"], { title: "PROPERTIES" },
  56017. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  56018. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_12__["CheckBoxLineComponent"], { label: "Visible in the Inspector", target: inputBlock, propertyName: "visibleInInspector" }),
  56019. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  56020. if (block.isAttribute) {
  56021. return 1;
  56022. }
  56023. if (block.isSystemValue) {
  56024. return 2;
  56025. }
  56026. return 0;
  56027. }, onSelect: function (value) {
  56028. switch (value) {
  56029. case 0:
  56030. inputBlock.isUniform = true;
  56031. inputBlock.setAsSystemValue(null);
  56032. _this.setDefaultValue();
  56033. break;
  56034. case 1:
  56035. inputBlock.setAsAttribute(attributeOptions[0].value);
  56036. break;
  56037. case 2:
  56038. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  56039. break;
  56040. }
  56041. _this.forceUpdate();
  56042. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56043. } }),
  56044. inputBlock.isAttribute &&
  56045. 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) {
  56046. inputBlock.setAsAttribute(value);
  56047. _this.forceUpdate();
  56048. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56049. } }),
  56050. inputBlock.isUniform && animationOptions.length > 0 &&
  56051. 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) {
  56052. _this.forceUpdate();
  56053. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56054. } }),
  56055. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_4__["AnimatedInputBlockTypes"].None &&
  56056. this.renderValue(this.props.globalState),
  56057. inputBlock.isUniform && inputBlock.isSystemValue &&
  56058. 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) {
  56059. inputBlock.setAsSystemValue(value);
  56060. _this.forceUpdate();
  56061. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56062. } }))));
  56063. };
  56064. return InputPropertyTabComponentProps;
  56065. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56066. /***/ }),
  56067. /***/ "./components/diagram/input/inputNodeWidget.tsx":
  56068. /*!******************************************************!*\
  56069. !*** ./components/diagram/input/inputNodeWidget.tsx ***!
  56070. \******************************************************/
  56071. /*! exports provided: InputNodeWidget */
  56072. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56073. "use strict";
  56074. __webpack_require__.r(__webpack_exports__);
  56075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNodeWidget", function() { return InputNodeWidget; });
  56076. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56077. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56078. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56079. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialSystemValues */ "babylonjs/Misc/observable");
  56080. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__);
  56081. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../stringTools */ "./stringTools.ts");
  56082. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56083. /**
  56084. * Used to display a node block for the node editor
  56085. */
  56086. var InputNodeWidget = /** @class */ (function (_super) {
  56087. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](InputNodeWidget, _super);
  56088. /**
  56089. * Creates a GenericNodeWidget
  56090. * @param props
  56091. */
  56092. function InputNodeWidget(props) {
  56093. var _this = _super.call(this, props) || this;
  56094. _this.state = {};
  56095. if (_this.props.node) {
  56096. _this.props.node.addListener({
  56097. selectionChanged: function () {
  56098. var selected = _this.props.node.selected;
  56099. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56100. }
  56101. });
  56102. }
  56103. return _this;
  56104. }
  56105. InputNodeWidget.prototype.renderValue = function (value) {
  56106. if (value !== "") {
  56107. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  56108. }
  56109. return null;
  56110. };
  56111. InputNodeWidget.prototype.render = function () {
  56112. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_4__["PortHelper"].GenerateOutputPorts(this.props.node, true);
  56113. var inputBlock = this.props.node.inputBlock;
  56114. var value = "";
  56115. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  56116. var color = "";
  56117. if (inputBlock) {
  56118. if (inputBlock.isAttribute) {
  56119. value = "mesh." + inputBlock.name;
  56120. name = _stringTools__WEBPACK_IMPORTED_MODULE_3__["StringTools"].GetBaseType(inputBlock.output.type);
  56121. }
  56122. else if (inputBlock.isSystemValue) {
  56123. switch (inputBlock.systemValue) {
  56124. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].World:
  56125. value = "World";
  56126. break;
  56127. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldView:
  56128. value = "World x View";
  56129. break;
  56130. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].WorldViewProjection:
  56131. value = "World x View x Projection";
  56132. break;
  56133. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].View:
  56134. value = "View";
  56135. break;
  56136. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].ViewProjection:
  56137. value = "View x Projection";
  56138. break;
  56139. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].Projection:
  56140. value = "Projection";
  56141. break;
  56142. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].CameraPosition:
  56143. value = "Camera position";
  56144. break;
  56145. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialSystemValues"].FogColor:
  56146. value = "Fog color";
  56147. break;
  56148. }
  56149. }
  56150. else {
  56151. if (!inputBlock || !inputBlock.isUniform) {
  56152. return null;
  56153. }
  56154. switch (inputBlock.type) {
  56155. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Float:
  56156. if (inputBlock.animationType !== babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"].None) {
  56157. value = babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["AnimatedInputBlockTypes"][inputBlock.animationType];
  56158. }
  56159. else {
  56160. value = inputBlock.value.toFixed(2);
  56161. }
  56162. break;
  56163. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56164. var vec2Value = inputBlock.value;
  56165. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  56166. break;
  56167. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56168. var vec3Value = inputBlock.value;
  56169. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  56170. break;
  56171. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56172. var vec4Value = inputBlock.value;
  56173. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  56174. break;
  56175. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color3:
  56176. case babylonjs_Materials_Node_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_2__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  56177. color = inputBlock.value.toHexString();
  56178. break;
  56179. }
  56180. }
  56181. }
  56182. }
  56183. else {
  56184. name = "Not connected input";
  56185. }
  56186. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock input" + (inputBlock && inputBlock.isAttribute ? " attribute" : ""), style: {
  56187. background: color
  56188. } },
  56189. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, name),
  56190. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  56191. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, this.renderValue(value))));
  56192. };
  56193. return InputNodeWidget;
  56194. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56195. /***/ }),
  56196. /***/ "./components/diagram/light/lightNodeFactory.tsx":
  56197. /*!*******************************************************!*\
  56198. !*** ./components/diagram/light/lightNodeFactory.tsx ***!
  56199. \*******************************************************/
  56200. /*! exports provided: LightNodeFactory */
  56201. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56202. "use strict";
  56203. __webpack_require__.r(__webpack_exports__);
  56204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeFactory", function() { return LightNodeFactory; });
  56205. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56206. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56207. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56208. /* harmony import */ var _lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightNodeWidget */ "./components/diagram/light/lightNodeWidget.tsx");
  56209. /* harmony import */ var _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  56210. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56211. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  56212. /**
  56213. * Node factory which creates editor nodes
  56214. */
  56215. var LightNodeFactory = /** @class */ (function (_super) {
  56216. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeFactory, _super);
  56217. /**
  56218. * Constructs a LightNodeFactory
  56219. */
  56220. function LightNodeFactory(globalState) {
  56221. var _this = _super.call(this, "light") || this;
  56222. _this._globalState = globalState;
  56223. return _this;
  56224. }
  56225. /**
  56226. * Generates a node widget
  56227. * @param diagramEngine diagram engine
  56228. * @param node node to generate
  56229. * @returns node widget jsx
  56230. */
  56231. LightNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56232. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightNodeWidget"], { node: node, globalState: this._globalState });
  56233. };
  56234. /**
  56235. * Gets a new instance of a node model
  56236. * @returns light node model
  56237. */
  56238. LightNodeFactory.prototype.getNewInstance = function () {
  56239. return new _lightNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightNodeModel"]();
  56240. };
  56241. return LightNodeFactory;
  56242. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56243. /***/ }),
  56244. /***/ "./components/diagram/light/lightNodeModel.tsx":
  56245. /*!*****************************************************!*\
  56246. !*** ./components/diagram/light/lightNodeModel.tsx ***!
  56247. \*****************************************************/
  56248. /*! exports provided: LightNodeModel */
  56249. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56250. "use strict";
  56251. __webpack_require__.r(__webpack_exports__);
  56252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeModel", function() { return LightNodeModel; });
  56253. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56254. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56255. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56256. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56257. /* harmony import */ var _lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightPropertyTabComponent */ "./components/diagram/light/lightPropertyTabComponent.tsx");
  56258. /**
  56259. * Light node model which stores information about a node editor block
  56260. */
  56261. var LightNodeModel = /** @class */ (function (_super) {
  56262. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeModel, _super);
  56263. /**
  56264. * Constructs the node model
  56265. */
  56266. function LightNodeModel() {
  56267. return _super.call(this, "light") || this;
  56268. }
  56269. Object.defineProperty(LightNodeModel.prototype, "light", {
  56270. /**
  56271. * Light for the node if it exists
  56272. */
  56273. get: function () {
  56274. return this._block.light;
  56275. },
  56276. set: function (value) {
  56277. this._block.light = value;
  56278. },
  56279. enumerable: true,
  56280. configurable: true
  56281. });
  56282. LightNodeModel.prototype.renderProperties = function (globalState) {
  56283. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightPropertyTabComponent"], { globalState: globalState, node: this }));
  56284. };
  56285. LightNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  56286. this._block = options.nodeMaterialBlock;
  56287. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  56288. };
  56289. return LightNodeModel;
  56290. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56291. /***/ }),
  56292. /***/ "./components/diagram/light/lightNodeWidget.tsx":
  56293. /*!******************************************************!*\
  56294. !*** ./components/diagram/light/lightNodeWidget.tsx ***!
  56295. \******************************************************/
  56296. /*! exports provided: LightNodeWidget */
  56297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56298. "use strict";
  56299. __webpack_require__.r(__webpack_exports__);
  56300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightNodeWidget", function() { return LightNodeWidget; });
  56301. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56302. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56303. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56304. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56305. /**
  56306. * Used to display a node block for the node editor
  56307. */
  56308. var LightNodeWidget = /** @class */ (function (_super) {
  56309. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightNodeWidget, _super);
  56310. /**
  56311. * Creates a GenericNodeWidget
  56312. * @param props
  56313. */
  56314. function LightNodeWidget(props) {
  56315. var _this = _super.call(this, props) || this;
  56316. _this.state = {};
  56317. if (_this.props.node) {
  56318. _this.props.node.addListener({
  56319. selectionChanged: function () {
  56320. var selected = _this.props.node.selected;
  56321. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56322. }
  56323. });
  56324. }
  56325. return _this;
  56326. }
  56327. LightNodeWidget.prototype.render = function () {
  56328. // Input/Output ports
  56329. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  56330. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  56331. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  56332. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  56333. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  56334. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  56335. };
  56336. return LightNodeWidget;
  56337. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56338. /***/ }),
  56339. /***/ "./components/diagram/light/lightPropertyTabComponent.tsx":
  56340. /*!****************************************************************!*\
  56341. !*** ./components/diagram/light/lightPropertyTabComponent.tsx ***!
  56342. \****************************************************************/
  56343. /*! exports provided: LightPropertyTabComponent */
  56344. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56345. "use strict";
  56346. __webpack_require__.r(__webpack_exports__);
  56347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  56348. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56349. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56350. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56351. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56352. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56353. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56354. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  56355. var LightPropertyTabComponent = /** @class */ (function (_super) {
  56356. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightPropertyTabComponent, _super);
  56357. function LightPropertyTabComponent() {
  56358. return _super !== null && _super.apply(this, arguments) || this;
  56359. }
  56360. LightPropertyTabComponent.prototype.render = function () {
  56361. var _this = this;
  56362. var scene = this.props.globalState.nodeMaterial.getScene();
  56363. var lightOptions = scene.lights.map(function (l) {
  56364. return { label: l.name, value: l.name };
  56365. });
  56366. lightOptions.splice(0, 0, { label: "All", value: "" });
  56367. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56368. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  56369. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightBlock" }),
  56370. 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(); } })),
  56371. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  56372. 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) {
  56373. if (name === "") {
  56374. _this.props.node.light = null;
  56375. }
  56376. else {
  56377. _this.props.node.light = scene.getLightByName(name);
  56378. }
  56379. _this.forceUpdate();
  56380. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56381. } }))));
  56382. };
  56383. return LightPropertyTabComponent;
  56384. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56385. /***/ }),
  56386. /***/ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx":
  56387. /*!*****************************************************************************!*\
  56388. !*** ./components/diagram/lightInformation/lightInformationNodeFactory.tsx ***!
  56389. \*****************************************************************************/
  56390. /*! exports provided: LightInformationNodeFactory */
  56391. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56392. "use strict";
  56393. __webpack_require__.r(__webpack_exports__);
  56394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeFactory", function() { return LightInformationNodeFactory; });
  56395. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56396. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56397. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56398. /* harmony import */ var _lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lightInformationNodeWidget */ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx");
  56399. /* harmony import */ var _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  56400. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  56402. /**
  56403. * Node factory which creates editor nodes
  56404. */
  56405. var LightInformationNodeFactory = /** @class */ (function (_super) {
  56406. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeFactory, _super);
  56407. /**
  56408. * Constructs a LightNodeFactory
  56409. */
  56410. function LightInformationNodeFactory(globalState) {
  56411. var _this = _super.call(this, "light-information") || this;
  56412. _this._globalState = globalState;
  56413. return _this;
  56414. }
  56415. /**
  56416. * Generates a node widget
  56417. * @param diagramEngine diagram engine
  56418. * @param node node to generate
  56419. * @returns node widget jsx
  56420. */
  56421. LightInformationNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56422. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_lightInformationNodeWidget__WEBPACK_IMPORTED_MODULE_2__["LightInformationNodeWidget"], { node: node, globalState: this._globalState });
  56423. };
  56424. /**
  56425. * Gets a new instance of a node model
  56426. * @returns light node model
  56427. */
  56428. LightInformationNodeFactory.prototype.getNewInstance = function () {
  56429. return new _lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_3__["LightInformationNodeModel"]();
  56430. };
  56431. return LightInformationNodeFactory;
  56432. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56433. /***/ }),
  56434. /***/ "./components/diagram/lightInformation/lightInformationNodeModel.tsx":
  56435. /*!***************************************************************************!*\
  56436. !*** ./components/diagram/lightInformation/lightInformationNodeModel.tsx ***!
  56437. \***************************************************************************/
  56438. /*! exports provided: LightInformationNodeModel */
  56439. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56440. "use strict";
  56441. __webpack_require__.r(__webpack_exports__);
  56442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeModel", function() { return LightInformationNodeModel; });
  56443. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56444. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56445. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56446. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56447. /* harmony import */ var _lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lightInformationPropertyTabComponent */ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx");
  56448. var LightInformationNodeModel = /** @class */ (function (_super) {
  56449. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeModel, _super);
  56450. /**
  56451. * Constructs the node model
  56452. */
  56453. function LightInformationNodeModel() {
  56454. return _super.call(this, "light-information") || this;
  56455. }
  56456. Object.defineProperty(LightInformationNodeModel.prototype, "light", {
  56457. /**
  56458. * Light for the node if it exists
  56459. */
  56460. get: function () {
  56461. return this._block.light;
  56462. },
  56463. set: function (value) {
  56464. this._block.light = value;
  56465. },
  56466. enumerable: true,
  56467. configurable: true
  56468. });
  56469. LightInformationNodeModel.prototype.renderProperties = function (globalState) {
  56470. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["LightInformationPropertyTabComponent"], { globalState: globalState, node: this }));
  56471. };
  56472. LightInformationNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  56473. this._block = options.nodeMaterialBlock;
  56474. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  56475. };
  56476. return LightInformationNodeModel;
  56477. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56478. /***/ }),
  56479. /***/ "./components/diagram/lightInformation/lightInformationNodeWidget.tsx":
  56480. /*!****************************************************************************!*\
  56481. !*** ./components/diagram/lightInformation/lightInformationNodeWidget.tsx ***!
  56482. \****************************************************************************/
  56483. /*! exports provided: LightInformationNodeWidget */
  56484. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56485. "use strict";
  56486. __webpack_require__.r(__webpack_exports__);
  56487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationNodeWidget", function() { return LightInformationNodeWidget; });
  56488. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56489. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56490. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56491. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56492. /**
  56493. * Used to display a node block for the node editor
  56494. */
  56495. var LightInformationNodeWidget = /** @class */ (function (_super) {
  56496. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationNodeWidget, _super);
  56497. /**
  56498. * Creates a GenericNodeWidget
  56499. * @param props
  56500. */
  56501. function LightInformationNodeWidget(props) {
  56502. var _this = _super.call(this, props) || this;
  56503. _this.state = {};
  56504. if (_this.props.node) {
  56505. _this.props.node.addListener({
  56506. selectionChanged: function () {
  56507. var selected = _this.props.node.selected;
  56508. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56509. }
  56510. });
  56511. }
  56512. return _this;
  56513. }
  56514. LightInformationNodeWidget.prototype.render = function () {
  56515. // Input/Output ports
  56516. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  56517. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  56518. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock" },
  56519. 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") + ")"),
  56520. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  56521. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts)));
  56522. };
  56523. return LightInformationNodeWidget;
  56524. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56525. /***/ }),
  56526. /***/ "./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx":
  56527. /*!**************************************************************************************!*\
  56528. !*** ./components/diagram/lightInformation/lightInformationPropertyTabComponent.tsx ***!
  56529. \**************************************************************************************/
  56530. /*! exports provided: LightInformationPropertyTabComponent */
  56531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56532. "use strict";
  56533. __webpack_require__.r(__webpack_exports__);
  56534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  56535. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56536. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56537. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56538. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56539. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56540. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56541. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  56542. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  56543. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LightInformationPropertyTabComponent, _super);
  56544. function LightInformationPropertyTabComponent() {
  56545. return _super !== null && _super.apply(this, arguments) || this;
  56546. }
  56547. LightInformationPropertyTabComponent.prototype.render = function () {
  56548. var _this = this;
  56549. var scene = this.props.globalState.nodeMaterial.getScene();
  56550. var lightOptions = scene.lights.map(function (l) {
  56551. return { label: l.name, value: l.name };
  56552. });
  56553. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56554. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  56555. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: "LightInformationBlock" }),
  56556. 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(); } })),
  56557. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  56558. 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) {
  56559. _this.props.node.light = scene.getLightByName(name);
  56560. _this.forceUpdate();
  56561. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56562. } }))));
  56563. };
  56564. return LightInformationPropertyTabComponent;
  56565. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56566. /***/ }),
  56567. /***/ "./components/diagram/link/advancedLinkFactory.tsx":
  56568. /*!*********************************************************!*\
  56569. !*** ./components/diagram/link/advancedLinkFactory.tsx ***!
  56570. \*********************************************************/
  56571. /*! exports provided: AdvancedLinkFactory */
  56572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56573. "use strict";
  56574. __webpack_require__.r(__webpack_exports__);
  56575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkFactory", function() { return AdvancedLinkFactory; });
  56576. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56577. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56578. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56579. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56580. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56581. /* harmony import */ var _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  56582. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../blockTools */ "./blockTools.ts");
  56583. var AdvancedLinkFactory = /** @class */ (function (_super) {
  56584. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkFactory, _super);
  56585. function AdvancedLinkFactory() {
  56586. var _this = _super.call(this) || this;
  56587. _this.type = "advanced";
  56588. return _this;
  56589. }
  56590. AdvancedLinkFactory.prototype.getNewInstance = function (initialConfig) {
  56591. return new _advancedLinkModel__WEBPACK_IMPORTED_MODULE_3__["AdvancedLinkModel"]();
  56592. };
  56593. AdvancedLinkFactory.prototype.generateLinkSegment = function (model, widget, selected, path) {
  56594. var portModel = (model.getTargetPort() || model.getSourcePort());
  56595. var type = portModel.connection.type;
  56596. var color = _blockTools__WEBPACK_IMPORTED_MODULE_4__["BlockTools"].GetColorFromConnectionNodeType(type);
  56597. var width = 3;
  56598. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("path", { className: selected ? widget.bem("--path-selected") : "", strokeWidth: width, stroke: color, d: path }));
  56599. };
  56600. return AdvancedLinkFactory;
  56601. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkFactory"]));
  56602. /***/ }),
  56603. /***/ "./components/diagram/link/advancedLinkModel.tsx":
  56604. /*!*******************************************************!*\
  56605. !*** ./components/diagram/link/advancedLinkModel.tsx ***!
  56606. \*******************************************************/
  56607. /*! exports provided: AdvancedLinkModel */
  56608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56609. "use strict";
  56610. __webpack_require__.r(__webpack_exports__);
  56611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLinkModel", function() { return AdvancedLinkModel; });
  56612. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56613. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56614. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56615. var AdvancedLinkModel = /** @class */ (function (_super) {
  56616. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](AdvancedLinkModel, _super);
  56617. function AdvancedLinkModel() {
  56618. return _super.call(this, "advanced") || this;
  56619. }
  56620. return AdvancedLinkModel;
  56621. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DefaultLinkModel"]));
  56622. /***/ }),
  56623. /***/ "./components/diagram/port/defaultPortModel.ts":
  56624. /*!*****************************************************!*\
  56625. !*** ./components/diagram/port/defaultPortModel.ts ***!
  56626. \*****************************************************/
  56627. /*! exports provided: DefaultPortModel */
  56628. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56629. "use strict";
  56630. __webpack_require__.r(__webpack_exports__);
  56631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortModel", function() { return DefaultPortModel; });
  56632. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56633. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56634. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56635. /* harmony import */ var _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../link/advancedLinkModel */ "./components/diagram/link/advancedLinkModel.tsx");
  56636. /**
  56637. * Port model
  56638. */
  56639. var DefaultPortModel = /** @class */ (function (_super) {
  56640. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortModel, _super);
  56641. function DefaultPortModel(name, type) {
  56642. if (type === void 0) { type = "input"; }
  56643. var _this = _super.call(this, name, "generic") || this;
  56644. /**
  56645. * What the port is connected to
  56646. */
  56647. _this.connection = null;
  56648. _this.position = type;
  56649. DefaultPortModel.idCounter++;
  56650. return _this;
  56651. }
  56652. DefaultPortModel.prototype.canLinkToPort = function (port) {
  56653. if (!this.connection || !port.connection) {
  56654. return true;
  56655. }
  56656. return this.connection.canConnectTo(port.connection);
  56657. };
  56658. DefaultPortModel.prototype.syncWithNodeMaterialConnectionPoint = function (connection) {
  56659. this.connection = connection;
  56660. this.name = connection.name;
  56661. };
  56662. DefaultPortModel.prototype.getNodeModel = function () {
  56663. return this.parent;
  56664. };
  56665. DefaultPortModel.prototype.link = function (outPort) {
  56666. var link = this.createLinkModel();
  56667. link.setSourcePort(this);
  56668. link.setTargetPort(outPort);
  56669. return link;
  56670. };
  56671. DefaultPortModel.prototype.createLinkModel = function () {
  56672. return new _link_advancedLinkModel__WEBPACK_IMPORTED_MODULE_2__["AdvancedLinkModel"]();
  56673. };
  56674. DefaultPortModel.SortInputOutput = function (a, b) {
  56675. if (!a || !b) {
  56676. return null;
  56677. }
  56678. else if (a.position == "output" && b.position == "input") {
  56679. return {
  56680. input: b,
  56681. output: a
  56682. };
  56683. }
  56684. else if (b.position == "output" && a.position == "input") {
  56685. return {
  56686. input: a,
  56687. output: b
  56688. };
  56689. }
  56690. else {
  56691. return null;
  56692. }
  56693. };
  56694. DefaultPortModel.idCounter = 0;
  56695. return DefaultPortModel;
  56696. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["PortModel"]));
  56697. /***/ }),
  56698. /***/ "./components/diagram/port/defaultPortWidget.tsx":
  56699. /*!*******************************************************!*\
  56700. !*** ./components/diagram/port/defaultPortWidget.tsx ***!
  56701. \*******************************************************/
  56702. /*! exports provided: DefaultPortWidget */
  56703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56704. "use strict";
  56705. __webpack_require__.r(__webpack_exports__);
  56706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPortWidget", function() { return DefaultPortWidget; });
  56707. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56708. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56709. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56710. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56711. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56712. var DefaultPortWidget = /** @class */ (function (_super) {
  56713. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DefaultPortWidget, _super);
  56714. function DefaultPortWidget(props) {
  56715. var _this = _super.call(this, "srd-port", props) || this;
  56716. _this.state = {
  56717. selected: false
  56718. };
  56719. return _this;
  56720. }
  56721. DefaultPortWidget.prototype.getClassName = function () {
  56722. return "port " + _super.prototype.getClassName.call(this) + (this.state.selected ? this.bem("--selected") : "");
  56723. };
  56724. DefaultPortWidget.prototype.render = function () {
  56725. var _this = this;
  56726. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({ style: this.props.style }, this.getProps(), { onMouseEnter: function () {
  56727. _this.setState({ selected: true });
  56728. }, onMouseLeave: function () {
  56729. _this.setState({ selected: false });
  56730. }, "data-name": this.props.name, "data-nodeid": this.props.node.getID() })));
  56731. };
  56732. return DefaultPortWidget;
  56733. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["BaseWidget"]));
  56734. /***/ }),
  56735. /***/ "./components/diagram/portHelper.tsx":
  56736. /*!*******************************************!*\
  56737. !*** ./components/diagram/portHelper.tsx ***!
  56738. \*******************************************/
  56739. /*! exports provided: PortHelper */
  56740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56741. "use strict";
  56742. __webpack_require__.r(__webpack_exports__);
  56743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PortHelper", function() { return PortHelper; });
  56744. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56745. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  56746. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  56747. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__);
  56748. /* harmony import */ var _port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./port/defaultPortWidget */ "./components/diagram/port/defaultPortWidget.tsx");
  56749. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  56750. var PortHelper = /** @class */ (function () {
  56751. function PortHelper() {
  56752. }
  56753. PortHelper._GetPortTypeIndicator = function (connection) {
  56754. switch (connection.type) {
  56755. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  56756. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  56757. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABESURBVDhPY/z//z8DJYAJSpMNRg3Ab4APEL+GYhAbK8AXjSCNIhAmwxsgFoUwUQFNvZAJxCCbQRjExgpGU+LAG8DAAAA+ghAthzG18wAAAABJRU5ErkJggg==" });
  56758. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  56759. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSpMN8BngA8SvoRjExgrweQGkUQTCZHgDxKIQJiqgqRcygRhkMwiD2FjB4I4FosBoNA6DaGRgAABqpx09dHGG2QAAAABJRU5ErkJggg==" });
  56760. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  56761. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  56762. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPY/z//z8DJYAJSmMDPkD8GopBbKwAnwtAGkUgTIY3QCwKYaICfC4gCuAzIBOIQTaDMIiNFYwG4mgggsCQD0QGBgD0QypNGzDYqQAAAABJRU5ErkJggg==" });
  56763. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  56764. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  56765. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABRSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQYGkBeQ8GsghgEQm5A45V6AmwTFIUAMsgGEQWxC4gyDLxZIBqPpAAiQTQPiIZcOGBgAyCDrTTmX3gcAAAAASUVORK5CYII=" });
  56766. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  56767. return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAABuSURBVDhPY/z//z8DJYAJSpMN0A3wAeLXUAxiwwAucQZ0L4AUiECYOMEbIBaFMGnghUwoDQKhQMwIxSA2DCCrwfACCMAEQBqRAVZxqnuBZEB1A9DjHgZwsQdpOgDZAMLo6QAmTjAdkAQo9AIDAwD62SHFU/Hk8QAAAABJRU5ErkJggg==" });
  56768. }
  56769. return null;
  56770. };
  56771. PortHelper._GetPortStyle = function (type) {
  56772. return {
  56773. background: _blockTools__WEBPACK_IMPORTED_MODULE_3__["BlockTools"].GetColorFromConnectionNodeType(type)
  56774. };
  56775. };
  56776. PortHelper.GenerateOutputPorts = function (node, ignoreLabel) {
  56777. if (!node) {
  56778. return new Array();
  56779. }
  56780. var outputPorts = [];
  56781. for (var key in node.ports) {
  56782. var port = node.ports[key];
  56783. if (port.position === "output") {
  56784. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  56785. var style = this._GetPortStyle(port.connection.type);
  56786. outputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "output-port" },
  56787. !ignoreLabel &&
  56788. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-label" }, port.connection.name),
  56789. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-plug" },
  56790. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-border" }),
  56791. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  56792. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "output-port-type" }, typeIndicator))));
  56793. }
  56794. }
  56795. return outputPorts;
  56796. };
  56797. PortHelper.GenerateInputPorts = function (node, includeOnly, ignoreLabel) {
  56798. if (ignoreLabel === void 0) { ignoreLabel = false; }
  56799. if (!node) {
  56800. return new Array();
  56801. }
  56802. var inputPorts = [];
  56803. for (var key in node.ports) {
  56804. var port = node.ports[key];
  56805. if (port.position === "input") {
  56806. var typeIndicator = this._GetPortTypeIndicator(port.connection);
  56807. var style = this._GetPortStyle(port.connection.type);
  56808. if (!includeOnly || includeOnly.indexOf(port.name) !== -1) {
  56809. inputPorts.push(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { key: key, className: "input-port" },
  56810. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-plug" },
  56811. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-border" }),
  56812. react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_port_defaultPortWidget__WEBPACK_IMPORTED_MODULE_2__["DefaultPortWidget"], { key: key, name: port.name, node: node, style: style }),
  56813. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-type" }, typeIndicator)),
  56814. !ignoreLabel &&
  56815. react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "input-port-label" }, port.connection.name)));
  56816. }
  56817. }
  56818. }
  56819. return inputPorts;
  56820. };
  56821. return PortHelper;
  56822. }());
  56823. /***/ }),
  56824. /***/ "./components/diagram/remap/remapNodeFactory.tsx":
  56825. /*!*******************************************************!*\
  56826. !*** ./components/diagram/remap/remapNodeFactory.tsx ***!
  56827. \*******************************************************/
  56828. /*! exports provided: RemapNodeFactory */
  56829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56830. "use strict";
  56831. __webpack_require__.r(__webpack_exports__);
  56832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeFactory", function() { return RemapNodeFactory; });
  56833. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56834. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  56835. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  56836. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56837. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  56838. /* harmony import */ var _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  56839. /* harmony import */ var _remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./remapNodeWidget */ "./components/diagram/remap/remapNodeWidget.tsx");
  56840. /**
  56841. * Node factory which creates editor nodes
  56842. */
  56843. var RemapNodeFactory = /** @class */ (function (_super) {
  56844. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeFactory, _super);
  56845. /**
  56846. * Constructs a GenericNodeFactory
  56847. */
  56848. function RemapNodeFactory(globalState) {
  56849. var _this = _super.call(this, "remap") || this;
  56850. _this._globalState = globalState;
  56851. return _this;
  56852. }
  56853. /**
  56854. * Generates a node widget
  56855. * @param diagramEngine diagram engine
  56856. * @param node node to generate
  56857. * @returns node widget jsx
  56858. */
  56859. RemapNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  56860. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_remapNodeWidget__WEBPACK_IMPORTED_MODULE_4__["RemapNodeWidget"], { node: node, globalState: this._globalState });
  56861. };
  56862. /**
  56863. * Gets a new instance of a node model
  56864. * @returns input node model
  56865. */
  56866. RemapNodeFactory.prototype.getNewInstance = function () {
  56867. return new _remapNodeModel__WEBPACK_IMPORTED_MODULE_3__["RemapNodeModel"]();
  56868. };
  56869. return RemapNodeFactory;
  56870. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  56871. /***/ }),
  56872. /***/ "./components/diagram/remap/remapNodeModel.tsx":
  56873. /*!*****************************************************!*\
  56874. !*** ./components/diagram/remap/remapNodeModel.tsx ***!
  56875. \*****************************************************/
  56876. /*! exports provided: RemapNodeModel */
  56877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56878. "use strict";
  56879. __webpack_require__.r(__webpack_exports__);
  56880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeModel", function() { return RemapNodeModel; });
  56881. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56882. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56883. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56884. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  56885. /* harmony import */ var _remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./remapNodePropertyComponent */ "./components/diagram/remap/remapNodePropertyComponent.tsx");
  56886. /**
  56887. * Generic node model which stores information about a node editor block
  56888. */
  56889. var RemapNodeModel = /** @class */ (function (_super) {
  56890. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeModel, _super);
  56891. /**
  56892. * Constructs the node model
  56893. */
  56894. function RemapNodeModel() {
  56895. return _super.call(this, "remap") || this;
  56896. }
  56897. Object.defineProperty(RemapNodeModel.prototype, "remapBlock", {
  56898. get: function () {
  56899. return this.block;
  56900. },
  56901. enumerable: true,
  56902. configurable: true
  56903. });
  56904. RemapNodeModel.prototype.renderProperties = function (globalState) {
  56905. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["RemapPropertyTabComponentProps"], { globalState: globalState, remapNode: this }));
  56906. };
  56907. return RemapNodeModel;
  56908. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  56909. /***/ }),
  56910. /***/ "./components/diagram/remap/remapNodePropertyComponent.tsx":
  56911. /*!*****************************************************************!*\
  56912. !*** ./components/diagram/remap/remapNodePropertyComponent.tsx ***!
  56913. \*****************************************************************/
  56914. /*! exports provided: RemapPropertyTabComponentProps */
  56915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56916. "use strict";
  56917. __webpack_require__.r(__webpack_exports__);
  56918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapPropertyTabComponentProps", function() { return RemapPropertyTabComponentProps; });
  56919. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56920. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56921. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56922. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  56923. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  56924. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  56925. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  56926. var RemapPropertyTabComponentProps = /** @class */ (function (_super) {
  56927. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapPropertyTabComponentProps, _super);
  56928. function RemapPropertyTabComponentProps(props) {
  56929. return _super.call(this, props) || this;
  56930. }
  56931. RemapPropertyTabComponentProps.prototype.forceRebuild = function () {
  56932. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  56933. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  56934. };
  56935. RemapPropertyTabComponentProps.prototype.render = function () {
  56936. var _this = this;
  56937. var remapBlock = this.props.remapNode.remapBlock;
  56938. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  56939. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  56940. 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(); } }),
  56941. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextLineComponent"], { label: "Type", value: remapBlock.getClassName() })),
  56942. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  56943. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "From", propertyName: "sourceRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }),
  56944. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "To", propertyName: "targetRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }))));
  56945. };
  56946. return RemapPropertyTabComponentProps;
  56947. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  56948. /***/ }),
  56949. /***/ "./components/diagram/remap/remapNodeWidget.tsx":
  56950. /*!******************************************************!*\
  56951. !*** ./components/diagram/remap/remapNodeWidget.tsx ***!
  56952. \******************************************************/
  56953. /*! exports provided: RemapNodeWidget */
  56954. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56955. "use strict";
  56956. __webpack_require__.r(__webpack_exports__);
  56957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapNodeWidget", function() { return RemapNodeWidget; });
  56958. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  56959. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  56960. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  56961. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  56962. /**
  56963. * Used to display a node block for the node editor
  56964. */
  56965. var RemapNodeWidget = /** @class */ (function (_super) {
  56966. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](RemapNodeWidget, _super);
  56967. /**
  56968. * Creates a GenericNodeWidget
  56969. * @param props
  56970. */
  56971. function RemapNodeWidget(props) {
  56972. var _this = _super.call(this, props) || this;
  56973. _this.state = {};
  56974. if (_this.props.node) {
  56975. _this.props.node.addListener({
  56976. selectionChanged: function () {
  56977. var selected = _this.props.node.selected;
  56978. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  56979. }
  56980. });
  56981. }
  56982. return _this;
  56983. }
  56984. RemapNodeWidget.prototype.renderValue = function (value) {
  56985. if (value) {
  56986. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, value));
  56987. }
  56988. return null;
  56989. };
  56990. RemapNodeWidget.prototype.extractInputValue = function (connectionPoint) {
  56991. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  56992. if (connectedBlock.isInput) {
  56993. var inputBlock = connectedBlock;
  56994. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  56995. return inputBlock.value;
  56996. }
  56997. }
  56998. return "?";
  56999. };
  57000. RemapNodeWidget.prototype.render = function () {
  57001. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node, undefined, false);
  57002. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  57003. var remapBlock = this.props.node.block;
  57004. var sourceRangeX = remapBlock.sourceMin.isConnected ? this.extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  57005. var sourceRangeY = remapBlock.sourceMax.isConnected ? this.extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  57006. var targetRangeX = remapBlock.targetMin.isConnected ? this.extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  57007. var targetRangeY = remapBlock.targetMax.isConnected ? this.extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  57008. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock remap" },
  57009. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, remapBlock.name),
  57010. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  57011. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  57012. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" }, "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]")));
  57013. };
  57014. return RemapNodeWidget;
  57015. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57016. /***/ }),
  57017. /***/ "./components/diagram/texture/textureNodeFactory.tsx":
  57018. /*!***********************************************************!*\
  57019. !*** ./components/diagram/texture/textureNodeFactory.tsx ***!
  57020. \***********************************************************/
  57021. /*! exports provided: TextureNodeFactory */
  57022. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57023. "use strict";
  57024. __webpack_require__.r(__webpack_exports__);
  57025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeFactory", function() { return TextureNodeFactory; });
  57026. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57027. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  57028. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  57029. /* harmony import */ var _textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureNodeWidget */ "./components/diagram/texture/textureNodeWidget.tsx");
  57030. /* harmony import */ var _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  57031. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57032. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
  57033. /**
  57034. * Node factory which creates editor nodes
  57035. */
  57036. var TextureNodeFactory = /** @class */ (function (_super) {
  57037. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeFactory, _super);
  57038. /**
  57039. * Constructs a TextureNodeFactory
  57040. */
  57041. function TextureNodeFactory(globalState) {
  57042. var _this = _super.call(this, "texture") || this;
  57043. _this._globalState = globalState;
  57044. return _this;
  57045. }
  57046. /**
  57047. * Generates a node widget
  57048. * @param diagramEngine diagram engine
  57049. * @param node node to generate
  57050. * @returns node widget jsx
  57051. */
  57052. TextureNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  57053. return react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_textureNodeWidget__WEBPACK_IMPORTED_MODULE_2__["TextureNodeWidget"], { node: node, globalState: this._globalState });
  57054. };
  57055. /**
  57056. * Gets a new instance of a node model
  57057. * @returns texture node model
  57058. */
  57059. TextureNodeFactory.prototype.getNewInstance = function () {
  57060. return new _textureNodeModel__WEBPACK_IMPORTED_MODULE_3__["TextureNodeModel"]();
  57061. };
  57062. return TextureNodeFactory;
  57063. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  57064. /***/ }),
  57065. /***/ "./components/diagram/texture/textureNodeModel.tsx":
  57066. /*!*********************************************************!*\
  57067. !*** ./components/diagram/texture/textureNodeModel.tsx ***!
  57068. \*********************************************************/
  57069. /*! exports provided: TextureNodeModel */
  57070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57071. "use strict";
  57072. __webpack_require__.r(__webpack_exports__);
  57073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeModel", function() { return TextureNodeModel; });
  57074. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57075. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57076. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57077. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  57078. /* harmony import */ var _texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./texturePropertyTabComponent */ "./components/diagram/texture/texturePropertyTabComponent.tsx");
  57079. /**
  57080. * Texture node model which stores information about a node editor block
  57081. */
  57082. var TextureNodeModel = /** @class */ (function (_super) {
  57083. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeModel, _super);
  57084. /**
  57085. * Constructs the node model
  57086. */
  57087. function TextureNodeModel() {
  57088. return _super.call(this, "texture") || this;
  57089. }
  57090. Object.defineProperty(TextureNodeModel.prototype, "texture", {
  57091. /**
  57092. * Texture for the node if it exists
  57093. */
  57094. get: function () {
  57095. return this._block.texture;
  57096. },
  57097. set: function (value) {
  57098. this._block.texture = value;
  57099. },
  57100. enumerable: true,
  57101. configurable: true
  57102. });
  57103. TextureNodeModel.prototype.renderProperties = function (globalState) {
  57104. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["TexturePropertyTabComponent"], { globalState: globalState, node: this }));
  57105. };
  57106. TextureNodeModel.prototype.prepare = function (options, nodes, model, graphEditor) {
  57107. this._block = options.nodeMaterialBlock;
  57108. _super.prototype.prepare.call(this, options, nodes, model, graphEditor);
  57109. };
  57110. return TextureNodeModel;
  57111. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  57112. /***/ }),
  57113. /***/ "./components/diagram/texture/textureNodeWidget.tsx":
  57114. /*!**********************************************************!*\
  57115. !*** ./components/diagram/texture/textureNodeWidget.tsx ***!
  57116. \**********************************************************/
  57117. /*! exports provided: TextureNodeWidget */
  57118. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57119. "use strict";
  57120. __webpack_require__.r(__webpack_exports__);
  57121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureNodeWidget", function() { return TextureNodeWidget; });
  57122. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57123. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57124. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57125. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  57126. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  57127. /**
  57128. * Used to display a node block for the node editor
  57129. */
  57130. var TextureNodeWidget = /** @class */ (function (_super) {
  57131. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureNodeWidget, _super);
  57132. /**
  57133. * Creates a GenericNodeWidget
  57134. * @param props
  57135. */
  57136. function TextureNodeWidget(props) {
  57137. var _this = _super.call(this, props) || this;
  57138. _this.state = {};
  57139. if (_this.props.node) {
  57140. _this.props.node.addListener({
  57141. selectionChanged: function () {
  57142. var selected = _this.props.node.selected;
  57143. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  57144. }
  57145. });
  57146. }
  57147. return _this;
  57148. }
  57149. TextureNodeWidget.prototype.render = function () {
  57150. // Input/Output ports
  57151. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  57152. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_3__["PortHelper"].GenerateInputPorts(this.props.node, ["uv"]);
  57153. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock texture-block" },
  57154. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, this.props.node.block.name),
  57155. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  57156. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  57157. this.props.node && this.props.node.texture &&
  57158. 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 })));
  57159. };
  57160. return TextureNodeWidget;
  57161. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57162. /***/ }),
  57163. /***/ "./components/diagram/texture/texturePropertyTabComponent.tsx":
  57164. /*!********************************************************************!*\
  57165. !*** ./components/diagram/texture/texturePropertyTabComponent.tsx ***!
  57166. \********************************************************************/
  57167. /*! exports provided: TexturePropertyTabComponent */
  57168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57169. "use strict";
  57170. __webpack_require__.r(__webpack_exports__);
  57171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  57172. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57173. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57175. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  57176. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  57177. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  57178. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  57179. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57180. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57181. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  57182. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  57183. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  57184. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  57185. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  57186. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TexturePropertyTabComponent, _super);
  57187. function TexturePropertyTabComponent(props) {
  57188. var _this = _super.call(this, props) || this;
  57189. var texture = _this.props.node.texture;
  57190. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) !== "http" };
  57191. return _this;
  57192. }
  57193. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  57194. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  57195. var r = Math.random() * 10 | 0;
  57196. return r.toString();
  57197. });
  57198. };
  57199. TexturePropertyTabComponent.prototype.updateAftertextureLoad = function () {
  57200. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57201. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57202. };
  57203. /**
  57204. * Replaces the texture of the node
  57205. * @param file the file of the texture to use
  57206. */
  57207. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  57208. var _this = this;
  57209. if (!this.props.node) {
  57210. return;
  57211. }
  57212. var texture = this.props.node.texture;
  57213. if (!texture) {
  57214. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](null, this.props.globalState.nodeMaterial.getScene(), false, false);
  57215. texture = this.props.node.texture;
  57216. }
  57217. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  57218. var blob = new Blob([data], { type: "octet/stream" });
  57219. var reader = new FileReader();
  57220. reader.readAsDataURL(blob);
  57221. reader.onloadend = function () {
  57222. var base64data = reader.result;
  57223. if (texture.isCube) {
  57224. var extension = undefined;
  57225. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  57226. extension = ".dds";
  57227. }
  57228. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  57229. extension = ".env";
  57230. }
  57231. texture.updateURL(base64data, extension, function () { return _this.updateAftertextureLoad(); });
  57232. }
  57233. else {
  57234. texture.updateURL(base64data, null, function () { return _this.updateAftertextureLoad(); });
  57235. }
  57236. };
  57237. }, undefined, true);
  57238. };
  57239. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  57240. var _this = this;
  57241. var texture = this.props.node.texture;
  57242. if (!texture) {
  57243. this.props.node.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](url, this.props.globalState.nodeMaterial.getScene(), false, false, undefined, function () {
  57244. _this.updateAftertextureLoad();
  57245. });
  57246. return;
  57247. }
  57248. texture.updateURL(url, null, function () { return _this.updateAftertextureLoad(); });
  57249. };
  57250. TexturePropertyTabComponent.prototype.render = function () {
  57251. var _this = this;
  57252. var url = "";
  57253. var texture = this.props.node.texture;
  57254. if (texture && texture.name && texture.name.substring(0, 4) === "http") {
  57255. url = texture.name;
  57256. }
  57257. url = url.replace(/\?nocache=\d+/, "");
  57258. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57259. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "GENERAL" },
  57260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: "Texture" }),
  57261. 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(); } })),
  57262. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "PROPERTIES" },
  57263. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_7__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.node.block }),
  57264. texture &&
  57265. 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) {
  57266. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  57267. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57268. } }),
  57269. texture &&
  57270. 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) {
  57271. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  57272. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57273. } }),
  57274. texture &&
  57275. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Offset U", target: texture, propertyName: "uOffset", onChange: function () {
  57276. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57277. } }),
  57278. texture &&
  57279. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Offset U", target: texture, propertyName: "vOffset", onChange: function () {
  57280. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57281. } }),
  57282. texture &&
  57283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Scale U", target: texture, propertyName: "uScale", onChange: function () {
  57284. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57285. } }),
  57286. texture &&
  57287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__["FloatLineComponent"], { label: "Scale V", target: texture, propertyName: "vScale", onChange: function () {
  57288. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57289. } }),
  57290. texture &&
  57291. 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 () {
  57292. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57293. } }),
  57294. texture &&
  57295. 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 () {
  57296. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57297. } }),
  57298. texture &&
  57299. 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 () {
  57300. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57301. } })),
  57302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_5__["LineContainerComponent"], { title: "SOURCE" },
  57303. 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) {
  57304. _this.setState({ isEmbedded: value });
  57305. _this.props.node.texture = null;
  57306. _this.updateAftertextureLoad();
  57307. } }),
  57308. this.state.isEmbedded &&
  57309. 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" }),
  57310. !this.state.isEmbedded &&
  57311. 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); } }),
  57312. !this.state.isEmbedded && url &&
  57313. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }))));
  57314. };
  57315. return TexturePropertyTabComponent;
  57316. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57317. /***/ }),
  57318. /***/ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx":
  57319. /*!*********************************************************************!*\
  57320. !*** ./components/diagram/trigonometry/trigonometryNodeFactory.tsx ***!
  57321. \*********************************************************************/
  57322. /*! exports provided: TrigonometryNodeFactory */
  57323. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57324. "use strict";
  57325. __webpack_require__.r(__webpack_exports__);
  57326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeFactory", function() { return TrigonometryNodeFactory; });
  57327. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57328. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  57329. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  57330. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57331. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  57332. /* harmony import */ var _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  57333. /* harmony import */ var _trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trigonometryNodeWidget */ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx");
  57334. /**
  57335. * Node factory which creates editor nodes
  57336. */
  57337. var TrigonometryNodeFactory = /** @class */ (function (_super) {
  57338. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeFactory, _super);
  57339. /**
  57340. * Constructs a GenericNodeFactory
  57341. */
  57342. function TrigonometryNodeFactory(globalState) {
  57343. var _this = _super.call(this, "trigonometry") || this;
  57344. _this._globalState = globalState;
  57345. return _this;
  57346. }
  57347. /**
  57348. * Generates a node widget
  57349. * @param diagramEngine diagram engine
  57350. * @param node node to generate
  57351. * @returns node widget jsx
  57352. */
  57353. TrigonometryNodeFactory.prototype.generateReactWidget = function (diagramEngine, node) {
  57354. return react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_trigonometryNodeWidget__WEBPACK_IMPORTED_MODULE_4__["TrigonometryNodeWidget"], { node: node, globalState: this._globalState });
  57355. };
  57356. /**
  57357. * Gets a new instance of a node model
  57358. * @returns input node model
  57359. */
  57360. TrigonometryNodeFactory.prototype.getNewInstance = function () {
  57361. return new _trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_3__["TrigonometryNodeModel"]();
  57362. };
  57363. return TrigonometryNodeFactory;
  57364. }(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["AbstractNodeFactory"]));
  57365. /***/ }),
  57366. /***/ "./components/diagram/trigonometry/trigonometryNodeModel.tsx":
  57367. /*!*******************************************************************!*\
  57368. !*** ./components/diagram/trigonometry/trigonometryNodeModel.tsx ***!
  57369. \*******************************************************************/
  57370. /*! exports provided: TrigonometryNodeModel */
  57371. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57372. "use strict";
  57373. __webpack_require__.r(__webpack_exports__);
  57374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeModel", function() { return TrigonometryNodeModel; });
  57375. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57376. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57377. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57378. /* harmony import */ var _defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultNodeModel */ "./components/diagram/defaultNodeModel.ts");
  57379. /* harmony import */ var _trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trigonometryNodePropertyComponent */ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx");
  57380. /**
  57381. * Generic node model which stores information about a node editor block
  57382. */
  57383. var TrigonometryNodeModel = /** @class */ (function (_super) {
  57384. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeModel, _super);
  57385. /**
  57386. * Constructs the node model
  57387. */
  57388. function TrigonometryNodeModel() {
  57389. return _super.call(this, "trigonometry") || this;
  57390. }
  57391. Object.defineProperty(TrigonometryNodeModel.prototype, "trigonometryBlock", {
  57392. get: function () {
  57393. return this.block;
  57394. },
  57395. enumerable: true,
  57396. configurable: true
  57397. });
  57398. TrigonometryNodeModel.prototype.renderProperties = function (globalState) {
  57399. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["TrigonometryPropertyTabComponentProps"], { globalState: globalState, trigonometryNode: this }));
  57400. };
  57401. return TrigonometryNodeModel;
  57402. }(_defaultNodeModel__WEBPACK_IMPORTED_MODULE_2__["DefaultNodeModel"]));
  57403. /***/ }),
  57404. /***/ "./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx":
  57405. /*!*******************************************************************************!*\
  57406. !*** ./components/diagram/trigonometry/trigonometryNodePropertyComponent.tsx ***!
  57407. \*******************************************************************************/
  57408. /*! exports provided: TrigonometryPropertyTabComponentProps */
  57409. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57410. "use strict";
  57411. __webpack_require__.r(__webpack_exports__);
  57412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponentProps", function() { return TrigonometryPropertyTabComponentProps; });
  57413. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57414. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57415. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57416. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  57417. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57418. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  57419. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  57420. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  57421. /* 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__);
  57422. var TrigonometryPropertyTabComponentProps = /** @class */ (function (_super) {
  57423. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryPropertyTabComponentProps, _super);
  57424. function TrigonometryPropertyTabComponentProps(props) {
  57425. return _super.call(this, props) || this;
  57426. }
  57427. TrigonometryPropertyTabComponentProps.prototype.render = function () {
  57428. var _this = this;
  57429. var trigonometryBlock = this.props.trigonometryNode.trigonometryBlock;
  57430. var operationOptions = [
  57431. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Cos },
  57432. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Sin },
  57433. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Abs },
  57434. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp },
  57435. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Exp2 },
  57436. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Round },
  57437. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Ceiling },
  57438. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_6__["TrigonometryBlockOperations"].Floor }
  57439. ];
  57440. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  57441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  57442. 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 () {
  57443. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  57444. } }),
  57445. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_2__["TextLineComponent"], { label: "Type", value: trigonometryBlock.getClassName() })),
  57446. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "PROPERTIES" },
  57447. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  57448. _this.forceUpdate();
  57449. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  57450. } }))));
  57451. };
  57452. return TrigonometryPropertyTabComponentProps;
  57453. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57454. /***/ }),
  57455. /***/ "./components/diagram/trigonometry/trigonometryNodeWidget.tsx":
  57456. /*!********************************************************************!*\
  57457. !*** ./components/diagram/trigonometry/trigonometryNodeWidget.tsx ***!
  57458. \********************************************************************/
  57459. /*! exports provided: TrigonometryNodeWidget */
  57460. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57461. "use strict";
  57462. __webpack_require__.r(__webpack_exports__);
  57463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryNodeWidget", function() { return TrigonometryNodeWidget; });
  57464. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57465. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57466. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57467. /* harmony import */ var _portHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../portHelper */ "./components/diagram/portHelper.tsx");
  57468. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Misc/observable");
  57469. /* 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__);
  57470. /**
  57471. * Used to display a node block for the node editor
  57472. */
  57473. var TrigonometryNodeWidget = /** @class */ (function (_super) {
  57474. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TrigonometryNodeWidget, _super);
  57475. /**
  57476. * Creates a GenericNodeWidget
  57477. * @param props
  57478. */
  57479. function TrigonometryNodeWidget(props) {
  57480. var _this = _super.call(this, props) || this;
  57481. _this.state = {};
  57482. if (_this.props.node) {
  57483. _this.props.node.addListener({
  57484. selectionChanged: function () {
  57485. var selected = _this.props.node.selected;
  57486. _this.props.globalState.onSelectionChangedObservable.notifyObservers(selected ? _this.props.node : null);
  57487. }
  57488. });
  57489. }
  57490. return _this;
  57491. }
  57492. TrigonometryNodeWidget.prototype.render = function () {
  57493. var outputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateOutputPorts(this.props.node, false);
  57494. var inputPorts = _portHelper__WEBPACK_IMPORTED_MODULE_2__["PortHelper"].GenerateInputPorts(this.props.node);
  57495. var trigonometryBlock = this.props.node.trigonometryBlock;
  57496. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagramBlock trigonometry" },
  57497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header" }, trigonometryBlock.name),
  57498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "inputs" }, inputPorts),
  57499. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "outputs" }, outputPorts),
  57500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  57501. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value-text" }, babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_3__["TrigonometryBlockOperations"][trigonometryBlock.operation]))));
  57502. };
  57503. return TrigonometryNodeWidget;
  57504. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57505. /***/ }),
  57506. /***/ "./components/log/log.scss":
  57507. /*!*********************************!*\
  57508. !*** ./components/log/log.scss ***!
  57509. \*********************************/
  57510. /*! no static exports found */
  57511. /***/ (function(module, exports, __webpack_require__) {
  57512. 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");
  57513. if(typeof content === 'string') content = [[module.i, content, '']];
  57514. var transform;
  57515. var insertInto;
  57516. var options = {"hmr":true}
  57517. options.transform = transform
  57518. options.insertInto = undefined;
  57519. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  57520. if(content.locals) module.exports = content.locals;
  57521. if(false) {}
  57522. /***/ }),
  57523. /***/ "./components/log/logComponent.tsx":
  57524. /*!*****************************************!*\
  57525. !*** ./components/log/logComponent.tsx ***!
  57526. \*****************************************/
  57527. /*! exports provided: LogEntry, LogComponent */
  57528. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57529. "use strict";
  57530. __webpack_require__.r(__webpack_exports__);
  57531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  57532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  57533. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57534. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57535. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57536. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  57537. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  57538. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  57539. var LogEntry = /** @class */ (function () {
  57540. function LogEntry(message, isError) {
  57541. this.message = message;
  57542. this.isError = isError;
  57543. }
  57544. return LogEntry;
  57545. }());
  57546. var LogComponent = /** @class */ (function (_super) {
  57547. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LogComponent, _super);
  57548. function LogComponent(props) {
  57549. var _this = _super.call(this, props) || this;
  57550. _this.state = { logs: [] };
  57551. return _this;
  57552. }
  57553. LogComponent.prototype.componentDidMount = function () {
  57554. var _this = this;
  57555. this.props.globalState.onLogRequiredObservable.add(function (log) {
  57556. var currentLogs = _this.state.logs;
  57557. currentLogs.push(log);
  57558. _this.setState({ logs: currentLogs });
  57559. });
  57560. };
  57561. LogComponent.prototype.componentDidUpdate = function () {
  57562. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  57563. if (!logConsole) {
  57564. return;
  57565. }
  57566. logConsole.scrollTop = logConsole.scrollHeight;
  57567. };
  57568. LogComponent.prototype.render = function () {
  57569. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  57570. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, l.message));
  57571. })));
  57572. };
  57573. return LogComponent;
  57574. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57575. /***/ }),
  57576. /***/ "./components/nodeList/nodeList.scss":
  57577. /*!*******************************************!*\
  57578. !*** ./components/nodeList/nodeList.scss ***!
  57579. \*******************************************/
  57580. /*! no static exports found */
  57581. /***/ (function(module, exports, __webpack_require__) {
  57582. 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");
  57583. if(typeof content === 'string') content = [[module.i, content, '']];
  57584. var transform;
  57585. var insertInto;
  57586. var options = {"hmr":true}
  57587. options.transform = transform
  57588. options.insertInto = undefined;
  57589. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  57590. if(content.locals) module.exports = content.locals;
  57591. if(false) {}
  57592. /***/ }),
  57593. /***/ "./components/nodeList/nodeListComponent.tsx":
  57594. /*!***************************************************!*\
  57595. !*** ./components/nodeList/nodeListComponent.tsx ***!
  57596. \***************************************************/
  57597. /*! exports provided: NodeListComponent */
  57598. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57599. "use strict";
  57600. __webpack_require__.r(__webpack_exports__);
  57601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  57602. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57603. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57604. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57605. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  57606. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  57607. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  57608. var NodeListComponent = /** @class */ (function (_super) {
  57609. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NodeListComponent, _super);
  57610. function NodeListComponent(props) {
  57611. var _this = _super.call(this, props) || this;
  57612. _this.state = { filter: "" };
  57613. return _this;
  57614. }
  57615. NodeListComponent.prototype.filterContent = function (filter) {
  57616. this.setState({ filter: filter });
  57617. };
  57618. NodeListComponent.prototype.render = function () {
  57619. var _this = this;
  57620. // Block types used to create the menu from
  57621. var allBlocks = {
  57622. Animation: ["BonesBlock", "MorphTargetsBlock"],
  57623. Basic_Math: ["AddBlock", "DivideBlock", "MultiplyBlock", "ScaleBlock", "SubtractBlock", "OneMinusBlock", "MaxBlock", "MinBlock", "LengthBlock", "DistanceBlock", "NegateBlock"],
  57624. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  57625. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "TimeBlock"],
  57626. Interpolation: ["LerpBlock"],
  57627. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  57628. Mesh_Attributes: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock"],
  57629. Output_Blocks: ["VertexOutputBlock", "FragmentOutputBlock", "AlphaTestBlock"],
  57630. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  57631. Round: ["StepBlock", "RoundBlock", "CeilingBlock", "FloorBlock"],
  57632. Scene_Attributes: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ReflectionTextureBlock", "ViewDirectionBlock", "PerturbNormalBlock"],
  57633. Trigonometry: ["CosBlock", "SinBlock", "AbsBlock", "ExpBlock", "Exp2Block", "SqrtBlock", "PowBlock"],
  57634. Vector_Math: ["CrossBlock", "DotBlock", "TransformBlock", "FresnelBlock"],
  57635. };
  57636. // Create node menu
  57637. var blockMenu = [];
  57638. for (var key in allBlocks) {
  57639. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  57640. .sort(function (a, b) { return a.localeCompare(b); })
  57641. .map(function (block, i) {
  57642. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block });
  57643. });
  57644. if (blockList.length) {
  57645. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key.replace("_", " "), closed: false }, blockList));
  57646. }
  57647. }
  57648. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  57649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  57650. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  57651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  57652. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  57653. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  57654. };
  57655. return NodeListComponent;
  57656. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57657. /***/ }),
  57658. /***/ "./components/preview/previewAreaComponent.tsx":
  57659. /*!*****************************************************!*\
  57660. !*** ./components/preview/previewAreaComponent.tsx ***!
  57661. \*****************************************************/
  57662. /*! exports provided: PreviewAreaComponent */
  57663. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57664. "use strict";
  57665. __webpack_require__.r(__webpack_exports__);
  57666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  57667. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57668. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57669. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57670. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  57671. /* 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");
  57672. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Misc/observable");
  57673. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  57674. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  57675. var PreviewAreaComponent = /** @class */ (function (_super) {
  57676. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewAreaComponent, _super);
  57677. function PreviewAreaComponent() {
  57678. return _super !== null && _super.apply(this, arguments) || this;
  57679. }
  57680. PreviewAreaComponent.prototype.changeAnimation = function () {
  57681. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  57682. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  57683. this.forceUpdate();
  57684. };
  57685. PreviewAreaComponent.prototype.changeBackground = function (value) {
  57686. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(value);
  57687. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorR", newColor.r);
  57688. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorG", newColor.g);
  57689. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorB", newColor.b);
  57690. this.props.globalState.backgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromColor3(newColor, 1.0);
  57691. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  57692. };
  57693. PreviewAreaComponent.prototype.render = function () {
  57694. var _this = this;
  57695. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  57696. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  57697. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" })),
  57698. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  57699. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { onClick: function () { return _this.changeAnimation(); }, className: "button" },
  57700. 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"] })),
  57701. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  57702. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "color-picker", id: "color-picker-label" },
  57703. 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"] })),
  57704. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "color-picker", id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } })))));
  57705. };
  57706. return PreviewAreaComponent;
  57707. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57708. /***/ }),
  57709. /***/ "./components/preview/previewManager.ts":
  57710. /*!**********************************************!*\
  57711. !*** ./components/preview/previewManager.ts ***!
  57712. \**********************************************/
  57713. /*! exports provided: PreviewManager */
  57714. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57715. "use strict";
  57716. __webpack_require__.r(__webpack_exports__);
  57717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  57718. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Misc/observable");
  57719. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  57720. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  57721. var PreviewManager = /** @class */ (function () {
  57722. function PreviewManager(targetCanvas, globalState) {
  57723. var _this = this;
  57724. this._nodeMaterial = globalState.nodeMaterial;
  57725. this._globalState = globalState;
  57726. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  57727. var serializationObject = nodeMaterial.serialize();
  57728. _this._updatePreview(serializationObject);
  57729. });
  57730. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function () {
  57731. _this._refreshPreviewMesh();
  57732. });
  57733. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  57734. var serializationObject = _this._nodeMaterial.serialize();
  57735. _this._updatePreview(serializationObject);
  57736. });
  57737. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  57738. _this._scene.clearColor = _this._globalState.backgroundColor;
  57739. });
  57740. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  57741. _this._handleAnimations();
  57742. });
  57743. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  57744. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  57745. 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);
  57746. this._camera.lowerRadiusLimit = 3;
  57747. this._camera.upperRadiusLimit = 10;
  57748. this._camera.wheelPrecision = 20;
  57749. this._camera.minZ = 0.1;
  57750. this._camera.attachControl(targetCanvas, false);
  57751. this._refreshPreviewMesh();
  57752. this._engine.runRenderLoop(function () {
  57753. _this._engine.resize();
  57754. _this._scene.render();
  57755. });
  57756. }
  57757. PreviewManager.prototype._handleAnimations = function () {
  57758. this._scene.stopAllAnimations();
  57759. if (this._globalState.rotatePreview) {
  57760. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  57761. var root = _a[_i];
  57762. var transformNode = root;
  57763. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh") {
  57764. if (transformNode.rotationQuaternion) {
  57765. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  57766. transformNode.rotationQuaternion = null;
  57767. }
  57768. 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);
  57769. }
  57770. }
  57771. }
  57772. };
  57773. PreviewManager.prototype._prepareMeshes = function () {
  57774. // Light
  57775. if (!this._scene.lights.length) {
  57776. 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);
  57777. }
  57778. // Framing
  57779. this._camera.useFramingBehavior = true;
  57780. var framingBehavior = this._camera.getBehaviorByName("Framing");
  57781. framingBehavior.framingTime = 0;
  57782. framingBehavior.elevationReturnTime = -1;
  57783. if (this._scene.meshes.length) {
  57784. var worldExtends = this._scene.getWorldExtends();
  57785. this._camera.lowerRadiusLimit = null;
  57786. this._camera.upperRadiusLimit = null;
  57787. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  57788. }
  57789. this._camera.pinchPrecision = 200 / this._camera.radius;
  57790. this._camera.upperRadiusLimit = 5 * this._camera.radius;
  57791. this._camera.wheelDeltaPercentage = 0.01;
  57792. this._camera.pinchDeltaPercentage = 0.01;
  57793. // Animations
  57794. this._handleAnimations();
  57795. // Material
  57796. var serializationObject = this._nodeMaterial.serialize();
  57797. this._updatePreview(serializationObject);
  57798. };
  57799. PreviewManager.prototype._refreshPreviewMesh = function () {
  57800. var _this = this;
  57801. if (this._currentType !== this._globalState.previewMeshType || this._currentType === _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom) {
  57802. this._currentType = this._globalState.previewMeshType;
  57803. if (this._meshes && this._meshes.length) {
  57804. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  57805. var mesh = _a[_i];
  57806. mesh.dispose();
  57807. }
  57808. }
  57809. this._meshes = [];
  57810. var lights = this._scene.lights.slice(0);
  57811. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  57812. var light = lights_1[_b];
  57813. light.dispose();
  57814. }
  57815. switch (this._globalState.previewMeshType) {
  57816. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  57817. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateBox("dummy-box", 2, this._scene));
  57818. break;
  57819. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  57820. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  57821. break;
  57822. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  57823. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  57824. break;
  57825. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  57826. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  57827. var _a;
  57828. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  57829. _this._prepareMeshes();
  57830. });
  57831. return;
  57832. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Plane:
  57833. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene));
  57834. break;
  57835. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].ShaderBall:
  57836. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  57837. var _a;
  57838. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  57839. _this._prepareMeshes();
  57840. });
  57841. return;
  57842. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom:
  57843. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewMeshFile, this._scene).then(function () {
  57844. var _a;
  57845. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  57846. _this._prepareMeshes();
  57847. });
  57848. return;
  57849. }
  57850. this._prepareMeshes();
  57851. }
  57852. };
  57853. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  57854. return material.forceCompilationAsync(mesh);
  57855. };
  57856. PreviewManager.prototype._updatePreview = function (serializationObject) {
  57857. var _this = this;
  57858. try {
  57859. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  57860. if (this._meshes.length) {
  57861. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  57862. Promise.all(tasks).then(function () {
  57863. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  57864. var mesh = _a[_i];
  57865. mesh.material = tempMaterial_1;
  57866. }
  57867. if (_this._material) {
  57868. _this._material.dispose();
  57869. }
  57870. _this._material = tempMaterial_1;
  57871. });
  57872. }
  57873. else {
  57874. this._material = tempMaterial_1;
  57875. }
  57876. }
  57877. catch (err) {
  57878. // Ignore the error
  57879. }
  57880. };
  57881. PreviewManager.prototype.dispose = function () {
  57882. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  57883. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  57884. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  57885. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  57886. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  57887. if (this._material) {
  57888. this._material.dispose();
  57889. }
  57890. this._camera.dispose();
  57891. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  57892. var mesh = _a[_i];
  57893. mesh.dispose();
  57894. }
  57895. if (this._light) {
  57896. this._light.dispose();
  57897. }
  57898. this._scene.dispose();
  57899. this._engine.dispose();
  57900. };
  57901. return PreviewManager;
  57902. }());
  57903. /***/ }),
  57904. /***/ "./components/preview/previewMeshControlComponent.tsx":
  57905. /*!************************************************************!*\
  57906. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  57907. \************************************************************/
  57908. /*! exports provided: PreviewMeshControlComponent */
  57909. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57910. "use strict";
  57911. __webpack_require__.r(__webpack_exports__);
  57912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  57913. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57914. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57915. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  57916. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  57917. /* 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");
  57918. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  57919. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  57920. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  57921. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PreviewMeshControlComponent, _super);
  57922. function PreviewMeshControlComponent() {
  57923. return _super !== null && _super.apply(this, arguments) || this;
  57924. }
  57925. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  57926. if (this.props.globalState.previewMeshType === newOne) {
  57927. return;
  57928. }
  57929. this.props.globalState.previewMeshType = newOne;
  57930. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  57931. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("PreviewMeshType", newOne);
  57932. this.forceUpdate();
  57933. };
  57934. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  57935. var files = evt.target.files;
  57936. if (files && files.length) {
  57937. var file = files[0];
  57938. this.props.globalState.previewMeshFile = file;
  57939. this.props.globalState.previewMeshType = _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Custom;
  57940. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  57941. this.forceUpdate();
  57942. }
  57943. document.getElementById("file-picker").value = "";
  57944. };
  57945. PreviewMeshControlComponent.prototype.render = function () {
  57946. var _this = this;
  57947. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  57948. 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" : "") },
  57949. 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"] })),
  57950. 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" : "") },
  57951. 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"] })),
  57952. 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" : "") },
  57953. 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"] })),
  57954. 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" : "") },
  57955. 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"] })),
  57956. 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" : "") },
  57957. 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"] })),
  57958. 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" : "") },
  57959. 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"] })),
  57960. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align" },
  57961. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-picker", id: "file-picker-label" },
  57962. 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"] })),
  57963. 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" }))));
  57964. };
  57965. return PreviewMeshControlComponent;
  57966. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  57967. /***/ }),
  57968. /***/ "./components/preview/previewMeshType.ts":
  57969. /*!***********************************************!*\
  57970. !*** ./components/preview/previewMeshType.ts ***!
  57971. \***********************************************/
  57972. /*! exports provided: PreviewMeshType */
  57973. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57974. "use strict";
  57975. __webpack_require__.r(__webpack_exports__);
  57976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  57977. var PreviewMeshType;
  57978. (function (PreviewMeshType) {
  57979. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  57980. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  57981. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  57982. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  57983. PreviewMeshType[PreviewMeshType["Plane"] = 4] = "Plane";
  57984. PreviewMeshType[PreviewMeshType["ShaderBall"] = 5] = "ShaderBall";
  57985. PreviewMeshType[PreviewMeshType["Custom"] = 6] = "Custom";
  57986. })(PreviewMeshType || (PreviewMeshType = {}));
  57987. /***/ }),
  57988. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  57989. /*!**************************************************************************!*\
  57990. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  57991. \**************************************************************************/
  57992. /*! exports provided: Color3PropertyTabComponent */
  57993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57994. "use strict";
  57995. __webpack_require__.r(__webpack_exports__);
  57996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  57997. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  57998. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  57999. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58000. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  58001. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  58002. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3PropertyTabComponent, _super);
  58003. function Color3PropertyTabComponent() {
  58004. return _super !== null && _super.apply(this, arguments) || this;
  58005. }
  58006. Color3PropertyTabComponent.prototype.render = function () {
  58007. var _this = this;
  58008. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58009. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58010. } }));
  58011. };
  58012. return Color3PropertyTabComponent;
  58013. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58014. /***/ }),
  58015. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  58016. /*!*************************************************************************!*\
  58017. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  58018. \*************************************************************************/
  58019. /*! exports provided: FloatPropertyTabComponent */
  58020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58021. "use strict";
  58022. __webpack_require__.r(__webpack_exports__);
  58023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  58024. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58025. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58026. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58027. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  58028. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  58029. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatPropertyTabComponent, _super);
  58030. function FloatPropertyTabComponent() {
  58031. return _super !== null && _super.apply(this, arguments) || this;
  58032. }
  58033. FloatPropertyTabComponent.prototype.render = function () {
  58034. var _this = this;
  58035. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58036. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58037. } }));
  58038. };
  58039. return FloatPropertyTabComponent;
  58040. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58041. /***/ }),
  58042. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  58043. /*!**************************************************************************!*\
  58044. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  58045. \**************************************************************************/
  58046. /*! exports provided: MatrixPropertyTabComponent */
  58047. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58048. "use strict";
  58049. __webpack_require__.r(__webpack_exports__);
  58050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  58051. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58052. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58053. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58054. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  58055. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  58056. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixPropertyTabComponent, _super);
  58057. function MatrixPropertyTabComponent() {
  58058. return _super !== null && _super.apply(this, arguments) || this;
  58059. }
  58060. MatrixPropertyTabComponent.prototype.render = function () {
  58061. var _this = this;
  58062. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__["MatrixLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58063. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58064. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  58065. _this.props.inputBlock.matrixMode = mode;
  58066. } }));
  58067. };
  58068. return MatrixPropertyTabComponent;
  58069. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58070. /***/ }),
  58071. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  58072. /*!***************************************************************************!*\
  58073. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  58074. \***************************************************************************/
  58075. /*! exports provided: Vector2PropertyTabComponent */
  58076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58077. "use strict";
  58078. __webpack_require__.r(__webpack_exports__);
  58079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  58080. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58081. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58082. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58083. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  58084. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  58085. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2PropertyTabComponent, _super);
  58086. function Vector2PropertyTabComponent() {
  58087. return _super !== null && _super.apply(this, arguments) || this;
  58088. }
  58089. Vector2PropertyTabComponent.prototype.render = function () {
  58090. var _this = this;
  58091. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58092. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58093. } }));
  58094. };
  58095. return Vector2PropertyTabComponent;
  58096. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58097. /***/ }),
  58098. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  58099. /*!***************************************************************************!*\
  58100. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  58101. \***************************************************************************/
  58102. /*! exports provided: Vector3PropertyTabComponent */
  58103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58104. "use strict";
  58105. __webpack_require__.r(__webpack_exports__);
  58106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  58107. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58108. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58109. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58110. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  58111. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  58112. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3PropertyTabComponent, _super);
  58113. function Vector3PropertyTabComponent() {
  58114. return _super !== null && _super.apply(this, arguments) || this;
  58115. }
  58116. Vector3PropertyTabComponent.prototype.render = function () {
  58117. var _this = this;
  58118. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58119. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58120. } }));
  58121. };
  58122. return Vector3PropertyTabComponent;
  58123. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58124. /***/ }),
  58125. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  58126. /*!***************************************************************************!*\
  58127. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  58128. \***************************************************************************/
  58129. /*! exports provided: Vector4PropertyTabComponent */
  58130. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58131. "use strict";
  58132. __webpack_require__.r(__webpack_exports__);
  58133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  58134. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58135. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58136. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58137. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  58138. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  58139. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4PropertyTabComponent, _super);
  58140. function Vector4PropertyTabComponent() {
  58141. return _super !== null && _super.apply(this, arguments) || this;
  58142. }
  58143. Vector4PropertyTabComponent.prototype.render = function () {
  58144. var _this = this;
  58145. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  58146. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  58147. } }));
  58148. };
  58149. return Vector4PropertyTabComponent;
  58150. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58151. /***/ }),
  58152. /***/ "./components/propertyTab/propertyTab.scss":
  58153. /*!*************************************************!*\
  58154. !*** ./components/propertyTab/propertyTab.scss ***!
  58155. \*************************************************/
  58156. /*! no static exports found */
  58157. /***/ (function(module, exports, __webpack_require__) {
  58158. 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");
  58159. if(typeof content === 'string') content = [[module.i, content, '']];
  58160. var transform;
  58161. var insertInto;
  58162. var options = {"hmr":true}
  58163. options.transform = transform
  58164. options.insertInto = undefined;
  58165. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  58166. if(content.locals) module.exports = content.locals;
  58167. if(false) {}
  58168. /***/ }),
  58169. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  58170. /*!*********************************************************!*\
  58171. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  58172. \*********************************************************/
  58173. /*! exports provided: PropertyTabComponent */
  58174. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58175. "use strict";
  58176. __webpack_require__.r(__webpack_exports__);
  58177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  58178. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58179. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58180. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  58181. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  58182. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  58183. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  58184. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  58185. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  58186. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  58187. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  58188. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  58189. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  58190. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  58191. var PropertyTabComponent = /** @class */ (function (_super) {
  58192. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](PropertyTabComponent, _super);
  58193. function PropertyTabComponent(props) {
  58194. var _this = _super.call(this, props) || this;
  58195. _this.state = { currentNode: null };
  58196. return _this;
  58197. }
  58198. PropertyTabComponent.prototype.componentDidMount = function () {
  58199. var _this = this;
  58200. this.props.globalState.onSelectionChangedObservable.add(function (block) {
  58201. _this.setState({ currentNode: block });
  58202. });
  58203. };
  58204. PropertyTabComponent.prototype.load = function (file) {
  58205. var _this = this;
  58206. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  58207. var decoder = new TextDecoder("utf-8");
  58208. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  58209. }, undefined, true);
  58210. };
  58211. PropertyTabComponent.prototype.save = function () {
  58212. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  58213. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  58214. };
  58215. PropertyTabComponent.prototype.customSave = function () {
  58216. var _this = this;
  58217. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  58218. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  58219. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  58220. }).catch(function (err) {
  58221. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  58222. });
  58223. };
  58224. PropertyTabComponent.prototype.render = function () {
  58225. var _this = this;
  58226. if (this.state.currentNode) {
  58227. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  58228. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  58229. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  58230. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  58231. this.state.currentNode.renderProperties(this.props.globalState)));
  58232. }
  58233. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  58234. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  58235. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  58236. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  58237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  58238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  58239. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  58240. _this.props.globalState.nodeMaterial.setToDefault();
  58241. _this.props.globalState.onResetRequiredObservable.notifyObservers(null);
  58242. } })),
  58243. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  58244. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  58245. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  58246. } }),
  58247. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  58248. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  58249. } })),
  58250. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  58251. 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) {
  58252. _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].StoreBoolean("EmbedTextures", value);
  58253. } })),
  58254. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  58255. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  58256. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  58257. _this.save();
  58258. } }),
  58259. this.props.globalState.customSave &&
  58260. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  58261. _this.customSave();
  58262. } }),
  58263. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  58264. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  58265. } }),
  58266. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  58267. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  58268. } })))));
  58269. };
  58270. return PropertyTabComponent;
  58271. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  58272. /***/ }),
  58273. /***/ "./dataStorage.ts":
  58274. /*!************************!*\
  58275. !*** ./dataStorage.ts ***!
  58276. \************************/
  58277. /*! exports provided: DataStorage */
  58278. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58279. "use strict";
  58280. __webpack_require__.r(__webpack_exports__);
  58281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStorage", function() { return DataStorage; });
  58282. var DataStorage = /** @class */ (function () {
  58283. function DataStorage() {
  58284. }
  58285. DataStorage.ReadBoolean = function (key, defaultValue) {
  58286. try {
  58287. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  58288. return this._InMemoryStorage[key];
  58289. }
  58290. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  58291. return localStorage.getItem(key) === "true";
  58292. }
  58293. else {
  58294. return defaultValue;
  58295. }
  58296. }
  58297. catch (e) {
  58298. this._InMemoryStorage = {};
  58299. this._InMemoryStorage[key] = defaultValue;
  58300. return defaultValue;
  58301. }
  58302. };
  58303. DataStorage.StoreBoolean = function (key, value) {
  58304. try {
  58305. if (this._InMemoryStorage) {
  58306. this._InMemoryStorage[key] = value;
  58307. }
  58308. else if (typeof (Storage) !== "undefined") {
  58309. localStorage.setItem(key, value ? "true" : "false");
  58310. }
  58311. }
  58312. catch (e) {
  58313. this._InMemoryStorage = {};
  58314. this._InMemoryStorage[key] = value;
  58315. }
  58316. };
  58317. DataStorage.ReadNumber = function (key, defaultValue) {
  58318. try {
  58319. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  58320. return this._InMemoryStorage[key];
  58321. }
  58322. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  58323. return parseFloat(localStorage.getItem(key));
  58324. }
  58325. else {
  58326. return defaultValue;
  58327. }
  58328. }
  58329. catch (e) {
  58330. this._InMemoryStorage = {};
  58331. this._InMemoryStorage[key] = defaultValue;
  58332. return defaultValue;
  58333. }
  58334. };
  58335. DataStorage.StoreNumber = function (key, value) {
  58336. try {
  58337. if (this._InMemoryStorage) {
  58338. this._InMemoryStorage[key] = value;
  58339. }
  58340. else if (typeof (Storage) !== "undefined") {
  58341. localStorage.setItem(key, value.toString());
  58342. }
  58343. }
  58344. catch (e) {
  58345. this._InMemoryStorage = {};
  58346. this._InMemoryStorage[key] = value;
  58347. }
  58348. };
  58349. return DataStorage;
  58350. }());
  58351. /***/ }),
  58352. /***/ "./globalState.ts":
  58353. /*!************************!*\
  58354. !*** ./globalState.ts ***!
  58355. \************************/
  58356. /*! exports provided: GlobalState */
  58357. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58358. "use strict";
  58359. __webpack_require__.r(__webpack_exports__);
  58360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  58361. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Misc/observable");
  58362. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  58363. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  58364. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  58365. var GlobalState = /** @class */ (function () {
  58366. function GlobalState() {
  58367. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58368. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58369. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58370. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58371. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58372. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58373. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58374. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58375. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58376. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58377. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  58378. this.blockKeyboardEvents = false;
  58379. this.previewMeshType = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  58380. var r = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorR", 0.37);
  58381. var g = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorG", 0.37);
  58382. var b = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorB", 0.37);
  58383. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  58384. }
  58385. return GlobalState;
  58386. }());
  58387. /***/ }),
  58388. /***/ "./graphEditor.tsx":
  58389. /*!*************************!*\
  58390. !*** ./graphEditor.tsx ***!
  58391. \*************************/
  58392. /*! exports provided: NodeCreationOptions, GraphEditor */
  58393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58394. "use strict";
  58395. __webpack_require__.r(__webpack_exports__);
  58396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeCreationOptions", function() { return NodeCreationOptions; });
  58397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  58398. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58399. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! storm-react-diagrams */ "../../node_modules/storm-react-diagrams/dist/main.js");
  58400. /* harmony import */ var storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__);
  58401. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  58402. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  58403. /* harmony import */ var _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeFactory */ "./components/diagram/generic/genericNodeFactory.tsx");
  58404. /* harmony import */ var _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/diagram/generic/genericNodeModel */ "./components/diagram/generic/genericNodeModel.tsx");
  58405. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  58406. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  58407. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  58408. /* harmony import */ var _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeFactory */ "./components/diagram/texture/textureNodeFactory.tsx");
  58409. /* harmony import */ var _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/diagram/texture/textureNodeModel */ "./components/diagram/texture/textureNodeModel.tsx");
  58410. /* harmony import */ var _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/diagram/port/defaultPortModel */ "./components/diagram/port/defaultPortModel.ts");
  58411. /* harmony import */ var _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/diagram/input/inputNodeFactory */ "./components/diagram/input/inputNodeFactory.tsx");
  58412. /* harmony import */ var _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/diagram/input/inputNodeModel */ "./components/diagram/input/inputNodeModel.tsx");
  58413. /* harmony import */ var babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Dual/textureBlock */ "babylonjs/Misc/observable");
  58414. /* 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__);
  58415. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  58416. /* harmony import */ var _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/diagram/light/lightNodeModel */ "./components/diagram/light/lightNodeModel.tsx");
  58417. /* harmony import */ var _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/diagram/light/lightNodeFactory */ "./components/diagram/light/lightNodeFactory.tsx");
  58418. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  58419. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  58420. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  58421. /* harmony import */ var _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/diagram/link/advancedLinkFactory */ "./components/diagram/link/advancedLinkFactory.tsx");
  58422. /* harmony import */ var _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeFactory */ "./components/diagram/remap/remapNodeFactory.tsx");
  58423. /* harmony import */ var _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/diagram/remap/remapNodeModel */ "./components/diagram/remap/remapNodeModel.tsx");
  58424. /* harmony import */ var _graphHelper__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./graphHelper */ "./graphHelper.ts");
  58425. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  58426. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  58427. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeFactory */ "./components/diagram/trigonometry/trigonometryNodeFactory.tsx");
  58428. /* harmony import */ var _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/diagram/trigonometry/trigonometryNodeModel */ "./components/diagram/trigonometry/trigonometryNodeModel.tsx");
  58429. /* harmony import */ var _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeFactory */ "./components/diagram/clamp/clampNodeFactory.tsx");
  58430. /* harmony import */ var _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/diagram/clamp/clampNodeModel */ "./components/diagram/clamp/clampNodeModel.tsx");
  58431. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeFactory */ "./components/diagram/lightInformation/lightInformationNodeFactory.tsx");
  58432. /* harmony import */ var _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/diagram/lightInformation/lightInformationNodeModel */ "./components/diagram/lightInformation/lightInformationNodeModel.tsx");
  58433. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  58434. __webpack_require__(/*! storm-react-diagrams/dist/style.min.css */ "../../node_modules/storm-react-diagrams/dist/style.min.css");
  58435. __webpack_require__(/*! ./main.scss */ "./main.scss");
  58436. __webpack_require__(/*! ./components/diagram/diagram.scss */ "./components/diagram/diagram.scss");
  58437. var NodeCreationOptions = /** @class */ (function () {
  58438. function NodeCreationOptions() {
  58439. }
  58440. return NodeCreationOptions;
  58441. }());
  58442. var GraphEditor = /** @class */ (function (_super) {
  58443. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](GraphEditor, _super);
  58444. function GraphEditor(props) {
  58445. var _this = _super.call(this, props) || this;
  58446. _this.NodeWidth = 100;
  58447. _this._leftWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("LeftWidth", 200);
  58448. _this._rightWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].ReadNumber("RightWidth", 300);
  58449. _this._nodes = new Array();
  58450. _this._blocks = new Array();
  58451. _this._copiedNodes = [];
  58452. _this._mouseLocationX = 0;
  58453. _this._mouseLocationY = 0;
  58454. /** @hidden */
  58455. _this._toAdd = [];
  58456. // setup the diagram engine
  58457. _this._engine = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramEngine"]();
  58458. _this._engine.installDefaultFactories();
  58459. _this._engine.registerNodeFactory(new _components_diagram_generic_genericNodeFactory__WEBPACK_IMPORTED_MODULE_3__["GenericNodeFactory"](_this.props.globalState));
  58460. _this._engine.registerNodeFactory(new _components_diagram_texture_textureNodeFactory__WEBPACK_IMPORTED_MODULE_8__["TextureNodeFactory"](_this.props.globalState));
  58461. _this._engine.registerNodeFactory(new _components_diagram_light_lightNodeFactory__WEBPACK_IMPORTED_MODULE_16__["LightNodeFactory"](_this.props.globalState));
  58462. _this._engine.registerNodeFactory(new _components_diagram_input_inputNodeFactory__WEBPACK_IMPORTED_MODULE_11__["InputNodeFactory"](_this.props.globalState));
  58463. _this._engine.registerNodeFactory(new _components_diagram_remap_remapNodeFactory__WEBPACK_IMPORTED_MODULE_21__["RemapNodeFactory"](_this.props.globalState));
  58464. _this._engine.registerNodeFactory(new _components_diagram_trigonometry_trigonometryNodeFactory__WEBPACK_IMPORTED_MODULE_26__["TrigonometryNodeFactory"](_this.props.globalState));
  58465. _this._engine.registerNodeFactory(new _components_diagram_clamp_clampNodeFactory__WEBPACK_IMPORTED_MODULE_28__["ClampNodeFactory"](_this.props.globalState));
  58466. _this._engine.registerNodeFactory(new _components_diagram_lightInformation_lightInformationNodeFactory__WEBPACK_IMPORTED_MODULE_30__["LightInformationNodeFactory"](_this.props.globalState));
  58467. _this._engine.registerLinkFactory(new _components_diagram_link_advancedLinkFactory__WEBPACK_IMPORTED_MODULE_20__["AdvancedLinkFactory"]());
  58468. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  58469. if (_this.props.globalState.nodeMaterial) {
  58470. _this.buildMaterial();
  58471. }
  58472. _this.forceUpdate();
  58473. });
  58474. _this.props.globalState.onResetRequiredObservable.add(function (locations) {
  58475. _this.build(false, locations);
  58476. if (_this.props.globalState.nodeMaterial) {
  58477. _this.buildMaterial();
  58478. }
  58479. });
  58480. _this.props.globalState.onUpdateRequiredObservable.add(function () {
  58481. _this.forceUpdate();
  58482. });
  58483. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  58484. _this.zoomToFit();
  58485. });
  58486. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  58487. _this.reOrganize();
  58488. });
  58489. _this.props.globalState.onGetNodeFromBlock = function (block) {
  58490. return _this._nodes.filter(function (n) { return n.block === block; })[0];
  58491. };
  58492. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  58493. if (!evt.ctrlKey) {
  58494. return;
  58495. }
  58496. if (evt.key === "c") {
  58497. var selectedItems = _this._engine.diagramModel.getSelectedItems();
  58498. if (!selectedItems.length) {
  58499. return;
  58500. }
  58501. var selectedItem = selectedItems[0];
  58502. if (!selectedItem.block) {
  58503. return;
  58504. }
  58505. _this._copiedNodes = selectedItems.map(function (i) { return i; });
  58506. }
  58507. else if (evt.key === "v") {
  58508. if (!_this._copiedNodes.length) {
  58509. return;
  58510. }
  58511. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  58512. var zoomLevel = _this._engine.diagramModel.getZoomLevel() / 100.0;
  58513. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._engine.diagramModel.getOffsetX() - _this.NodeWidth) / zoomLevel;
  58514. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  58515. var originalNode = null;
  58516. for (var _i = 0, _a = _this._copiedNodes; _i < _a.length; _i++) {
  58517. var node = _a[_i];
  58518. var block = node.block;
  58519. if (!block) {
  58520. continue;
  58521. }
  58522. var clone = block.clone(_this.props.globalState.nodeMaterial.getScene());
  58523. if (!clone) {
  58524. return;
  58525. }
  58526. var newNode = _this.createNodeFromObject({ nodeMaterialBlock: clone });
  58527. var x = 0;
  58528. var y = 0;
  58529. if (originalNode) {
  58530. x = currentX + node.x - originalNode.x;
  58531. y = currentY + node.y - originalNode.y;
  58532. }
  58533. else {
  58534. originalNode = node;
  58535. x = currentX;
  58536. y = currentY;
  58537. }
  58538. newNode.setPosition(x, y);
  58539. }
  58540. _this._engine.repaintCanvas();
  58541. }
  58542. }, false);
  58543. _this.build(true);
  58544. return _this;
  58545. }
  58546. /**
  58547. * Creates a node and recursivly creates its parent nodes from it's input
  58548. * @param nodeMaterialBlock
  58549. */
  58550. GraphEditor.prototype.createNodeFromObject = function (options) {
  58551. if (this._blocks.indexOf(options.nodeMaterialBlock) !== -1) {
  58552. return this._nodes.filter(function (n) { return n.block === options.nodeMaterialBlock; })[0];
  58553. }
  58554. this._blocks.push(options.nodeMaterialBlock);
  58555. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(options.nodeMaterialBlock) === -1) {
  58556. this.props.globalState.nodeMaterial.attachedBlocks.push(options.nodeMaterialBlock);
  58557. }
  58558. // Create new node in the graph
  58559. var newNode;
  58560. if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TextureBlock"]) {
  58561. newNode = new _components_diagram_texture_textureNodeModel__WEBPACK_IMPORTED_MODULE_9__["TextureNodeModel"]();
  58562. }
  58563. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightBlock"]) {
  58564. newNode = new _components_diagram_light_lightNodeModel__WEBPACK_IMPORTED_MODULE_15__["LightNodeModel"]();
  58565. }
  58566. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"]) {
  58567. newNode = new _components_diagram_input_inputNodeModel__WEBPACK_IMPORTED_MODULE_12__["InputNodeModel"]();
  58568. }
  58569. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["TrigonometryBlock"]) {
  58570. newNode = new _components_diagram_trigonometry_trigonometryNodeModel__WEBPACK_IMPORTED_MODULE_27__["TrigonometryNodeModel"]();
  58571. }
  58572. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["RemapBlock"]) {
  58573. newNode = new _components_diagram_remap_remapNodeModel__WEBPACK_IMPORTED_MODULE_22__["RemapNodeModel"]();
  58574. }
  58575. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["ClampBlock"]) {
  58576. newNode = new _components_diagram_clamp_clampNodeModel__WEBPACK_IMPORTED_MODULE_29__["ClampNodeModel"]();
  58577. }
  58578. else if (options.nodeMaterialBlock instanceof babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["LightInformationBlock"]) {
  58579. newNode = new _components_diagram_lightInformation_lightInformationNodeModel__WEBPACK_IMPORTED_MODULE_31__["LightInformationNodeModel"]();
  58580. }
  58581. else {
  58582. newNode = new _components_diagram_generic_genericNodeModel__WEBPACK_IMPORTED_MODULE_4__["GenericNodeModel"]();
  58583. }
  58584. if (options.nodeMaterialBlock.isFinalMerger) {
  58585. this.props.globalState.nodeMaterial.addOutputNode(options.nodeMaterialBlock);
  58586. }
  58587. this._nodes.push(newNode);
  58588. this._model.addAll(newNode);
  58589. if (options.nodeMaterialBlock) {
  58590. newNode.prepare(options, this._nodes, this._model, this);
  58591. }
  58592. return newNode;
  58593. };
  58594. GraphEditor.prototype.addValueNode = function (type) {
  58595. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetConnectionNodeTypeFromString(type);
  58596. var newInputBlock = new babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["InputBlock"](type, undefined, nodeType);
  58597. var localNode = this.createNodeFromObject({ type: type, nodeMaterialBlock: newInputBlock });
  58598. return localNode;
  58599. };
  58600. GraphEditor.prototype.onWidgetKeyUp = function (evt) {
  58601. var widget = this.refs["test"];
  58602. if (!widget || this.props.globalState.blockKeyboardEvents) {
  58603. return;
  58604. }
  58605. widget.onKeyUp(evt);
  58606. };
  58607. GraphEditor.prototype.componentDidMount = function () {
  58608. if (this.props.globalState.hostDocument) {
  58609. var widget = this.refs["test"];
  58610. widget.setState({ document: this.props.globalState.hostDocument });
  58611. this._onWidgetKeyUpPointer = this.onWidgetKeyUp.bind(this);
  58612. this.props.globalState.hostDocument.addEventListener("keyup", this._onWidgetKeyUpPointer, false);
  58613. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_24__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  58614. }
  58615. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  58616. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  58617. }
  58618. };
  58619. GraphEditor.prototype.componentWillUnmount = function () {
  58620. if (this.props.globalState.hostDocument) {
  58621. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  58622. }
  58623. if (this._previewManager) {
  58624. this._previewManager.dispose();
  58625. }
  58626. };
  58627. GraphEditor.prototype.zoomToFit = function (retry) {
  58628. var _this = this;
  58629. if (retry === void 0) { retry = 0; }
  58630. var xFactor = this._engine.canvas.clientWidth / this._engine.canvas.scrollWidth;
  58631. var yFactor = this._engine.canvas.clientHeight / this._engine.canvas.scrollHeight;
  58632. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  58633. if (zoomFactor === 1) {
  58634. return;
  58635. }
  58636. this._engine.diagramModel.setZoomLevel(this._engine.diagramModel.getZoomLevel() * zoomFactor);
  58637. this._engine.diagramModel.setOffset(0, 0);
  58638. this._engine.repaintCanvas();
  58639. retry++;
  58640. if (retry < 4) {
  58641. setTimeout(function () { return _this.zoomToFit(retry); }, 1);
  58642. }
  58643. };
  58644. GraphEditor.prototype.buildMaterial = function () {
  58645. if (!this.props.globalState.nodeMaterial) {
  58646. return;
  58647. }
  58648. try {
  58649. this.props.globalState.nodeMaterial.build(true);
  58650. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"]("Node material build successful", false));
  58651. }
  58652. catch (err) {
  58653. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogEntry"](err, true));
  58654. }
  58655. };
  58656. GraphEditor.prototype.applyFragmentOutputConstraints = function (rootInput) {
  58657. var model = rootInput.parent;
  58658. for (var inputKey in model.getPorts()) {
  58659. var input = model.getPorts()[inputKey];
  58660. if (rootInput.name === "rgba" && (inputKey === "a" || inputKey === "rgb")
  58661. ||
  58662. (rootInput.name === "a" || rootInput.name === "rgb") && inputKey === "rgba") {
  58663. for (var key in input.links) {
  58664. var other = input.links[key];
  58665. other.remove();
  58666. }
  58667. continue;
  58668. }
  58669. }
  58670. };
  58671. GraphEditor.prototype.build = function (needToWait, locations) {
  58672. var _this = this;
  58673. if (needToWait === void 0) { needToWait = false; }
  58674. if (locations === void 0) { locations = null; }
  58675. // setup the diagram model
  58676. this._model = new storm_react_diagrams__WEBPACK_IMPORTED_MODULE_1__["DiagramModel"]();
  58677. this._nodes = [];
  58678. this._blocks = [];
  58679. // Listen to events
  58680. this._model.addListener({
  58681. nodesUpdated: function (e) {
  58682. if (!e.isCreated) {
  58683. // Block is deleted
  58684. var targetBlock = e.node.block;
  58685. if (targetBlock) {
  58686. var attachedBlockIndex = _this.props.globalState.nodeMaterial.attachedBlocks.indexOf(targetBlock);
  58687. if (attachedBlockIndex > -1) {
  58688. _this.props.globalState.nodeMaterial.attachedBlocks.splice(attachedBlockIndex, 1);
  58689. }
  58690. if (targetBlock.isFinalMerger) {
  58691. _this.props.globalState.nodeMaterial.removeOutputNode(targetBlock);
  58692. }
  58693. var blockIndex = _this._blocks.indexOf(targetBlock);
  58694. if (blockIndex > -1) {
  58695. _this._blocks.splice(blockIndex, 1);
  58696. }
  58697. }
  58698. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58699. }
  58700. else {
  58701. }
  58702. },
  58703. linksUpdated: function (e) {
  58704. if (!e.isCreated) {
  58705. // Link is deleted
  58706. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  58707. var sourcePort = e.link.sourcePort;
  58708. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(sourcePort, e.link.targetPort);
  58709. if (link) {
  58710. if (link.input.connection && link.output.connection) {
  58711. if (link.input.connection.connectedPoint) {
  58712. // Disconnect standard nodes
  58713. link.output.connection.disconnectFrom(link.input.connection);
  58714. link.input.syncWithNodeMaterialConnectionPoint(link.input.connection);
  58715. link.output.syncWithNodeMaterialConnectionPoint(link.output.connection);
  58716. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  58717. }
  58718. }
  58719. }
  58720. else {
  58721. if (!e.link.targetPort && e.link.sourcePort && e.link.sourcePort.position === "input" && !e.link.sourcePort.connection.isConnected) {
  58722. // Drag from input port, we are going to build an input for it
  58723. var input_1 = e.link.sourcePort;
  58724. if (input_1.connection.type == babylonjs_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_13__["NodeMaterialBlockConnectionPointTypes"].AutoDetect) {
  58725. return;
  58726. }
  58727. var nodeModel_1 = _this.addValueNode(_blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetStringFromConnectionNodeType(input_1.connection.type));
  58728. var link_1 = nodeModel_1.ports.output.link(input_1);
  58729. nodeModel_1.x = e.link.points[1].x - _this.NodeWidth;
  58730. nodeModel_1.y = e.link.points[1].y;
  58731. setTimeout(function () {
  58732. _this._model.addLink(link_1);
  58733. input_1.syncWithNodeMaterialConnectionPoint(input_1.connection);
  58734. nodeModel_1.ports.output.syncWithNodeMaterialConnectionPoint(nodeModel_1.ports.output.connection);
  58735. var isFragmentOutput = input_1.parent.block.getClassName() === "FragmentOutputBlock";
  58736. if (isFragmentOutput) {
  58737. _this.applyFragmentOutputConstraints(input_1);
  58738. }
  58739. _this.forceUpdate();
  58740. }, 1);
  58741. nodeModel_1.ports.output.connection.connectTo(input_1.connection);
  58742. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  58743. }
  58744. }
  58745. _this.forceUpdate();
  58746. return;
  58747. }
  58748. else {
  58749. e.link.addListener({
  58750. sourcePortChanged: function () {
  58751. },
  58752. targetPortChanged: function (evt) {
  58753. // Link is created with a target port
  58754. var link = _components_diagram_port_defaultPortModel__WEBPACK_IMPORTED_MODULE_10__["DefaultPortModel"].SortInputOutput(e.link.sourcePort, e.link.targetPort);
  58755. if (link) {
  58756. if (link.output.connection && link.input.connection) {
  58757. var currentBlock = link.input.connection.ownerBlock;
  58758. var isFragmentOutput = currentBlock.getClassName() === "FragmentOutputBlock";
  58759. // Disconnect previous connection
  58760. for (var key in link.input.links) {
  58761. var other = link.input.links[key];
  58762. var sourcePortConnection = other.getSourcePort().connection;
  58763. var targetPortConnection = other.getTargetPort().connection;
  58764. if (sourcePortConnection !== link.output.connection &&
  58765. targetPortConnection !== link.output.connection) {
  58766. other.remove();
  58767. }
  58768. }
  58769. if (link.output.connection.canConnectTo(link.input.connection)) {
  58770. if (isFragmentOutput) {
  58771. _this.applyFragmentOutputConstraints(link.input);
  58772. }
  58773. link.output.connection.connectTo(link.input.connection);
  58774. }
  58775. else {
  58776. evt.entity.remove();
  58777. _this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("Cannot connect two different connection types");
  58778. }
  58779. _this.forceUpdate();
  58780. }
  58781. if (_this.props.globalState.nodeMaterial) {
  58782. _this.buildMaterial();
  58783. }
  58784. }
  58785. }
  58786. });
  58787. }
  58788. }
  58789. });
  58790. // Load graph of nodes from the material
  58791. if (this.props.globalState.nodeMaterial) {
  58792. var material = this.props.globalState.nodeMaterial;
  58793. material._vertexOutputNodes.forEach(function (n) {
  58794. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58795. });
  58796. material._fragmentOutputNodes.forEach(function (n) {
  58797. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58798. });
  58799. material.attachedBlocks.forEach(function (n) {
  58800. _this.createNodeFromObject({ nodeMaterialBlock: n });
  58801. });
  58802. }
  58803. // load model into engine
  58804. setTimeout(function () {
  58805. var _a;
  58806. if (_this._toAdd) {
  58807. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  58808. }
  58809. _this._toAdd = null;
  58810. _this._engine.setDiagramModel(_this._model);
  58811. _this.forceUpdate();
  58812. _this.reOrganize(locations);
  58813. }, needToWait ? 500 : 1);
  58814. };
  58815. GraphEditor.prototype.reOrganize = function (locations) {
  58816. var _this = this;
  58817. if (locations === void 0) { locations = null; }
  58818. if (!locations) {
  58819. var nodes = _graphHelper__WEBPACK_IMPORTED_MODULE_23__["GraphHelper"].DistributeGraph(this._model);
  58820. nodes.forEach(function (node) {
  58821. for (var nodeName in _this._model.nodes) {
  58822. var modelNode = _this._model.nodes[nodeName];
  58823. if (modelNode.id === node.id) {
  58824. modelNode.setPosition(node.x - node.width / 2, node.y - node.height / 2);
  58825. return;
  58826. }
  58827. }
  58828. });
  58829. }
  58830. else {
  58831. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  58832. var location = locations_1[_i];
  58833. for (var _a = 0, _b = this._nodes; _a < _b.length; _a++) {
  58834. var node = _b[_a];
  58835. if (node.block && node.block.uniqueId === location.blockId) {
  58836. node.setPosition(location.x, location.y);
  58837. break;
  58838. }
  58839. }
  58840. }
  58841. }
  58842. this._engine.repaintCanvas();
  58843. };
  58844. GraphEditor.prototype.onPointerDown = function (evt) {
  58845. this._startX = evt.clientX;
  58846. this._moveInProgress = true;
  58847. evt.currentTarget.setPointerCapture(evt.pointerId);
  58848. };
  58849. GraphEditor.prototype.onPointerUp = function (evt) {
  58850. this._moveInProgress = false;
  58851. evt.currentTarget.releasePointerCapture(evt.pointerId);
  58852. };
  58853. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  58854. if (forLeft === void 0) { forLeft = true; }
  58855. if (!this._moveInProgress) {
  58856. return;
  58857. }
  58858. var deltaX = evt.clientX - this._startX;
  58859. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  58860. if (forLeft) {
  58861. this._leftWidth += deltaX;
  58862. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  58863. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("LeftWidth", this._leftWidth);
  58864. }
  58865. else {
  58866. this._rightWidth -= deltaX;
  58867. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  58868. _dataStorage__WEBPACK_IMPORTED_MODULE_17__["DataStorage"].StoreNumber("RightWidth", this._rightWidth);
  58869. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  58870. }
  58871. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  58872. this._startX = evt.clientX;
  58873. };
  58874. GraphEditor.prototype.buildColumnLayout = function () {
  58875. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  58876. };
  58877. GraphEditor.prototype.emitNewBlock = function (event) {
  58878. var _this = this;
  58879. var data = event.dataTransfer.getData("babylonjs-material-node");
  58880. var nodeModel = null;
  58881. if (data.indexOf("Block") === -1) {
  58882. nodeModel = this.addValueNode(data);
  58883. }
  58884. else {
  58885. var block = _blockTools__WEBPACK_IMPORTED_MODULE_19__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene());
  58886. if (block) {
  58887. this._toAdd = [];
  58888. block.autoConfigure(this.props.globalState.nodeMaterial);
  58889. nodeModel = this.createNodeFromObject({ nodeMaterialBlock: block });
  58890. }
  58891. }
  58892. ;
  58893. if (nodeModel) {
  58894. var zoomLevel = this._engine.diagramModel.getZoomLevel() / 100.0;
  58895. var x_1 = (event.clientX - event.currentTarget.offsetLeft - this._engine.diagramModel.getOffsetX() - this.NodeWidth) / zoomLevel;
  58896. var y_1 = (event.clientY - event.currentTarget.offsetTop - this._engine.diagramModel.getOffsetY() - 20) / zoomLevel;
  58897. nodeModel.setPosition(x_1, y_1);
  58898. var block = nodeModel.block;
  58899. x_1 -= this.NodeWidth + 150;
  58900. block._inputs.forEach(function (connection) {
  58901. if (connection.connectedPoint) {
  58902. var existingNodes = _this._nodes.filter(function (n) { return n.block === connection._connectedPoint._ownerBlock; });
  58903. var connectedNode = existingNodes[0];
  58904. if (connectedNode.x === 0 && connectedNode.y === 0) {
  58905. connectedNode.setPosition(x_1, y_1);
  58906. y_1 += 80;
  58907. }
  58908. }
  58909. });
  58910. this._engine.repaintCanvas();
  58911. setTimeout(function () {
  58912. var _a;
  58913. (_a = _this._model).addAll.apply(_a, _this._toAdd);
  58914. _this._toAdd = null;
  58915. _this._model.clearSelection();
  58916. nodeModel.setSelected(true);
  58917. _this._engine.repaintCanvas();
  58918. }, 150);
  58919. }
  58920. this.forceUpdate();
  58921. };
  58922. GraphEditor.prototype.render = function () {
  58923. var _this = this;
  58924. return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_7__["Portal"], { globalState: this.props.globalState },
  58925. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { id: "node-editor-graph-root", style: {
  58926. gridTemplateColumns: this.buildColumnLayout()
  58927. }, onMouseMove: function (evt) {
  58928. _this._mouseLocationX = evt.pageX;
  58929. _this._mouseLocationY = evt.pageY;
  58930. }, onMouseDown: function (evt) {
  58931. if (evt.target.nodeName === "INPUT") {
  58932. return;
  58933. }
  58934. _this.props.globalState.blockKeyboardEvents = false;
  58935. } },
  58936. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_5__["NodeListComponent"], { globalState: this.props.globalState }),
  58937. 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); } }),
  58938. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  58939. _this.emitNewBlock(event);
  58940. }, onDragOver: function (event) {
  58941. event.preventDefault();
  58942. } },
  58943. 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 })),
  58944. 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); } }),
  58945. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "right-panel" },
  58946. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["PropertyTabComponent"], { globalState: this.props.globalState }),
  58947. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_25__["PreviewMeshControlComponent"], { globalState: this.props.globalState }),
  58948. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_32__["PreviewAreaComponent"], { globalState: this.props.globalState, width: this._rightWidth })),
  58949. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_14__["LogComponent"], { globalState: this.props.globalState })),
  58950. react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_18__["MessageDialogComponent"], { globalState: this.props.globalState }),
  58951. react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop")));
  58952. };
  58953. return GraphEditor;
  58954. }(react__WEBPACK_IMPORTED_MODULE_2__["Component"]));
  58955. /***/ }),
  58956. /***/ "./graphHelper.ts":
  58957. /*!************************!*\
  58958. !*** ./graphHelper.ts ***!
  58959. \************************/
  58960. /*! exports provided: GraphHelper */
  58961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58962. "use strict";
  58963. __webpack_require__.r(__webpack_exports__);
  58964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphHelper", function() { return GraphHelper; });
  58965. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  58966. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  58967. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_1__);
  58968. var GraphHelper = /** @class */ (function () {
  58969. function GraphHelper() {
  58970. }
  58971. GraphHelper.DistributeGraph = function (model) {
  58972. var nodes = this._MapElements(model);
  58973. var edges = this._MapEdges(model);
  58974. var graph = new dagre__WEBPACK_IMPORTED_MODULE_1__["graphlib"].Graph();
  58975. graph.setGraph({});
  58976. graph.setDefaultEdgeLabel(function () { return ({}); });
  58977. graph.graph().rankdir = "LR";
  58978. //add elements to dagre graph
  58979. nodes.forEach(function (node) {
  58980. graph.setNode(node.id, node.metadata);
  58981. });
  58982. edges.forEach(function (edge) {
  58983. if (edge.from && edge.to) {
  58984. graph.setEdge(edge.from.id, edge.to.id);
  58985. }
  58986. });
  58987. //auto-distribute
  58988. dagre__WEBPACK_IMPORTED_MODULE_1__["layout"](graph);
  58989. return graph.nodes().map(function (node) { return graph.node(node); });
  58990. };
  58991. GraphHelper._MapElements = function (model) {
  58992. var output = [];
  58993. // dagre compatible format
  58994. for (var nodeName in model.nodes) {
  58995. var node = model.nodes[nodeName];
  58996. var size = {
  58997. width: node.width | 200,
  58998. height: node.height | 100
  58999. };
  59000. output.push({ id: node.id, metadata: tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"]({}, size, { id: node.id }) });
  59001. }
  59002. return output;
  59003. };
  59004. GraphHelper._MapEdges = function (model) {
  59005. // returns links which connects nodes
  59006. // we check are there both from and to nodes in the model. Sometimes links can be detached
  59007. var output = [];
  59008. for (var linkName in model.links) {
  59009. var link = model.links[linkName];
  59010. output.push({
  59011. from: link.sourcePort.parent,
  59012. to: link.targetPort.parent
  59013. });
  59014. }
  59015. return output;
  59016. };
  59017. return GraphHelper;
  59018. }());
  59019. /***/ }),
  59020. /***/ "./index.ts":
  59021. /*!******************!*\
  59022. !*** ./index.ts ***!
  59023. \******************/
  59024. /*! exports provided: NodeEditor */
  59025. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59026. "use strict";
  59027. __webpack_require__.r(__webpack_exports__);
  59028. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  59029. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  59030. /***/ }),
  59031. /***/ "./legacy/legacy.ts":
  59032. /*!**************************!*\
  59033. !*** ./legacy/legacy.ts ***!
  59034. \**************************/
  59035. /*! exports provided: NodeEditor */
  59036. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59037. "use strict";
  59038. __webpack_require__.r(__webpack_exports__);
  59039. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  59040. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  59041. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  59042. if (typeof globalObject !== "undefined") {
  59043. globalObject.BABYLON = globalObject.BABYLON || {};
  59044. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  59045. }
  59046. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  59047. /***/ }),
  59048. /***/ "./main.scss":
  59049. /*!*******************!*\
  59050. !*** ./main.scss ***!
  59051. \*******************/
  59052. /*! no static exports found */
  59053. /***/ (function(module, exports, __webpack_require__) {
  59054. 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");
  59055. if(typeof content === 'string') content = [[module.i, content, '']];
  59056. var transform;
  59057. var insertInto;
  59058. var options = {"hmr":true}
  59059. options.transform = transform
  59060. options.insertInto = undefined;
  59061. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  59062. if(content.locals) module.exports = content.locals;
  59063. if(false) {}
  59064. /***/ }),
  59065. /***/ "./nodeEditor.ts":
  59066. /*!***********************!*\
  59067. !*** ./nodeEditor.ts ***!
  59068. \***********************/
  59069. /*! exports provided: NodeEditor */
  59070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59071. "use strict";
  59072. __webpack_require__.r(__webpack_exports__);
  59073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  59074. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59075. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  59076. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  59077. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  59078. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  59079. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  59080. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  59081. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  59082. /**
  59083. * Class used to create a node editor
  59084. */
  59085. var NodeEditor = /** @class */ (function () {
  59086. function NodeEditor() {
  59087. }
  59088. /**
  59089. * Show the node editor
  59090. * @param options defines the options to use to configure the node editor
  59091. */
  59092. NodeEditor.Show = function (options) {
  59093. if (this._CurrentState) {
  59094. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  59095. if (popupWindow) {
  59096. popupWindow.close();
  59097. }
  59098. }
  59099. var hostElement = options.hostElement;
  59100. if (!hostElement) {
  59101. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  59102. }
  59103. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  59104. globalState.nodeMaterial = options.nodeMaterial;
  59105. globalState.hostElement = hostElement;
  59106. globalState.hostDocument = hostElement.ownerDocument;
  59107. globalState.customSave = options.customSave;
  59108. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  59109. globalState: globalState
  59110. });
  59111. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  59112. if (options.customLoadObservable) {
  59113. options.customLoadObservable.add(function (data) {
  59114. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  59115. });
  59116. }
  59117. this._CurrentState = globalState;
  59118. // Close the popup window when the page is refreshed or scene is disposed
  59119. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  59120. if (globalState.nodeMaterial && popupWindow) {
  59121. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  59122. if (popupWindow) {
  59123. popupWindow.close();
  59124. }
  59125. });
  59126. window.onbeforeunload = function () {
  59127. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  59128. if (popupWindow) {
  59129. popupWindow.close();
  59130. }
  59131. };
  59132. }
  59133. };
  59134. return NodeEditor;
  59135. }());
  59136. /***/ }),
  59137. /***/ "./portal.tsx":
  59138. /*!********************!*\
  59139. !*** ./portal.tsx ***!
  59140. \********************/
  59141. /*! exports provided: Portal */
  59142. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59143. "use strict";
  59144. __webpack_require__.r(__webpack_exports__);
  59145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  59146. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59147. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59148. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59149. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  59150. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  59151. var Portal = /** @class */ (function (_super) {
  59152. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Portal, _super);
  59153. function Portal() {
  59154. return _super !== null && _super.apply(this, arguments) || this;
  59155. }
  59156. Portal.prototype.render = function () {
  59157. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  59158. };
  59159. return Portal;
  59160. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59161. /***/ }),
  59162. /***/ "./serializationTools.ts":
  59163. /*!*******************************!*\
  59164. !*** ./serializationTools.ts ***!
  59165. \*******************************/
  59166. /*! exports provided: SerializationTools */
  59167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59168. "use strict";
  59169. __webpack_require__.r(__webpack_exports__);
  59170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  59171. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Misc/observable");
  59172. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  59173. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  59174. var SerializationTools = /** @class */ (function () {
  59175. function SerializationTools() {
  59176. }
  59177. SerializationTools.Serialize = function (material, globalState) {
  59178. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  59179. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = _dataStorage__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].ReadBoolean("EmbedTextures", true);
  59180. var serializationObject = material.serialize();
  59181. // Store node locations
  59182. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  59183. var block = _a[_i];
  59184. var node = globalState.onGetNodeFromBlock(block);
  59185. if (!serializationObject.locations) {
  59186. serializationObject.locations = [];
  59187. }
  59188. serializationObject.locations.push({
  59189. blockId: block.uniqueId,
  59190. x: node ? node.x : 0,
  59191. y: node ? node.y : 0
  59192. });
  59193. }
  59194. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  59195. return JSON.stringify(serializationObject, undefined, 2);
  59196. };
  59197. SerializationTools.Deserialize = function (serializationObject, globalState) {
  59198. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  59199. // Check for id mapping
  59200. if (serializationObject.locations && serializationObject.map) {
  59201. var map = serializationObject.map;
  59202. var locations = serializationObject.locations;
  59203. for (var _i = 0, locations_1 = locations; _i < locations_1.length; _i++) {
  59204. var location = locations_1[_i];
  59205. location.blockId = map[location.blockId];
  59206. }
  59207. }
  59208. globalState.onResetRequiredObservable.notifyObservers(serializationObject.locations);
  59209. };
  59210. return SerializationTools;
  59211. }());
  59212. /***/ }),
  59213. /***/ "./sharedComponents/buttonLineComponent.tsx":
  59214. /*!**************************************************!*\
  59215. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  59216. \**************************************************/
  59217. /*! exports provided: ButtonLineComponent */
  59218. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59219. "use strict";
  59220. __webpack_require__.r(__webpack_exports__);
  59221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  59222. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59223. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59224. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59225. var ButtonLineComponent = /** @class */ (function (_super) {
  59226. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](ButtonLineComponent, _super);
  59227. function ButtonLineComponent(props) {
  59228. return _super.call(this, props) || this;
  59229. }
  59230. ButtonLineComponent.prototype.render = function () {
  59231. var _this = this;
  59232. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  59233. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  59234. };
  59235. return ButtonLineComponent;
  59236. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59237. /***/ }),
  59238. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  59239. /*!****************************************************!*\
  59240. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  59241. \****************************************************/
  59242. /*! exports provided: CheckBoxLineComponent */
  59243. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59244. "use strict";
  59245. __webpack_require__.r(__webpack_exports__);
  59246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  59247. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59248. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59249. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59250. var CheckBoxLineComponent = /** @class */ (function (_super) {
  59251. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](CheckBoxLineComponent, _super);
  59252. function CheckBoxLineComponent(props) {
  59253. var _this = _super.call(this, props) || this;
  59254. _this._localChange = false;
  59255. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  59256. if (_this.props.isSelected) {
  59257. _this.state = { isSelected: _this.props.isSelected() };
  59258. }
  59259. else {
  59260. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  59261. }
  59262. return _this;
  59263. }
  59264. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59265. var currentState;
  59266. if (nextProps.isSelected) {
  59267. currentState = nextProps.isSelected();
  59268. }
  59269. else {
  59270. currentState = nextProps.target[nextProps.propertyName] === true;
  59271. }
  59272. if (currentState !== nextState.isSelected || this._localChange) {
  59273. nextState.isSelected = currentState;
  59274. this._localChange = false;
  59275. return true;
  59276. }
  59277. return false;
  59278. };
  59279. CheckBoxLineComponent.prototype.onChange = function () {
  59280. this._localChange = true;
  59281. if (this.props.onSelect) {
  59282. this.props.onSelect(!this.state.isSelected);
  59283. }
  59284. else {
  59285. if (this.props.onPropertyChangedObservable) {
  59286. this.props.onPropertyChangedObservable.notifyObservers({
  59287. object: this.props.target,
  59288. property: this.props.propertyName,
  59289. value: !this.state.isSelected,
  59290. initialValue: this.state.isSelected
  59291. });
  59292. }
  59293. this.props.target[this.props.propertyName] = !this.state.isSelected;
  59294. }
  59295. if (this.props.onValueChanged) {
  59296. this.props.onValueChanged();
  59297. }
  59298. this.setState({ isSelected: !this.state.isSelected });
  59299. };
  59300. CheckBoxLineComponent.prototype.render = function () {
  59301. var _this = this;
  59302. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  59303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  59305. 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(); } }),
  59306. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  59307. };
  59308. CheckBoxLineComponent._UniqueIdSeed = 0;
  59309. return CheckBoxLineComponent;
  59310. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59311. /***/ }),
  59312. /***/ "./sharedComponents/color3LineComponent.tsx":
  59313. /*!**************************************************!*\
  59314. !*** ./sharedComponents/color3LineComponent.tsx ***!
  59315. \**************************************************/
  59316. /*! exports provided: Color3LineComponent */
  59317. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59318. "use strict";
  59319. __webpack_require__.r(__webpack_exports__);
  59320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  59321. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59322. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59323. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59324. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  59325. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  59326. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  59327. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59328. /* 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");
  59329. var Color3LineComponent = /** @class */ (function (_super) {
  59330. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Color3LineComponent, _super);
  59331. function Color3LineComponent(props) {
  59332. var _this = _super.call(this, props) || this;
  59333. _this._localChange = false;
  59334. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  59335. return _this;
  59336. }
  59337. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59338. var currentState = nextProps.target[nextProps.propertyName];
  59339. if (!currentState.equals(nextState.color) || this._localChange) {
  59340. nextState.color = currentState.clone();
  59341. this._localChange = false;
  59342. return true;
  59343. }
  59344. return false;
  59345. };
  59346. Color3LineComponent.prototype.onChange = function (newValue) {
  59347. this._localChange = true;
  59348. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  59349. if (this.props.onPropertyChangedObservable) {
  59350. this.props.onPropertyChangedObservable.notifyObservers({
  59351. object: this.props.target,
  59352. property: this.props.propertyName,
  59353. value: newColor,
  59354. initialValue: this.state.color
  59355. });
  59356. }
  59357. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  59358. this.props.target[this.props.propertyName] = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  59359. }
  59360. else {
  59361. this.props.target[this.props.propertyName] = newColor;
  59362. }
  59363. this.setState({ color: newColor });
  59364. if (this.props.onChange) {
  59365. this.props.onChange();
  59366. }
  59367. };
  59368. Color3LineComponent.prototype.switchExpandState = function () {
  59369. this._localChange = true;
  59370. this.setState({ isExpanded: !this.state.isExpanded });
  59371. };
  59372. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59373. if (!this.props.onPropertyChangedObservable) {
  59374. return;
  59375. }
  59376. this.props.onPropertyChangedObservable.notifyObservers({
  59377. object: this.props.target,
  59378. property: this.props.propertyName,
  59379. value: this.state.color,
  59380. initialValue: previousValue
  59381. });
  59382. };
  59383. Color3LineComponent.prototype.updateStateR = function (value) {
  59384. this._localChange = true;
  59385. var store = this.state.color.clone();
  59386. this.props.target[this.props.propertyName].x = value;
  59387. this.state.color.r = value;
  59388. this.props.target[this.props.propertyName] = this.state.color;
  59389. this.setState({ color: this.state.color });
  59390. this.raiseOnPropertyChanged(store);
  59391. };
  59392. Color3LineComponent.prototype.updateStateG = function (value) {
  59393. this._localChange = true;
  59394. var store = this.state.color.clone();
  59395. this.props.target[this.props.propertyName].g = value;
  59396. this.state.color.g = value;
  59397. this.props.target[this.props.propertyName] = this.state.color;
  59398. this.setState({ color: this.state.color });
  59399. this.raiseOnPropertyChanged(store);
  59400. };
  59401. Color3LineComponent.prototype.updateStateB = function (value) {
  59402. this._localChange = true;
  59403. var store = this.state.color.clone();
  59404. this.props.target[this.props.propertyName].b = value;
  59405. this.state.color.b = value;
  59406. this.props.target[this.props.propertyName] = this.state.color;
  59407. this.setState({ color: this.state.color });
  59408. this.raiseOnPropertyChanged(store);
  59409. };
  59410. Color3LineComponent.prototype.copyToClipboard = function () {
  59411. var element = document.createElement('div');
  59412. element.textContent = this.state.color.toHexString();
  59413. document.body.appendChild(element);
  59414. if (window.getSelection) {
  59415. var range = document.createRange();
  59416. range.selectNode(element);
  59417. window.getSelection().removeAllRanges();
  59418. window.getSelection().addRange(range);
  59419. }
  59420. document.execCommand('copy');
  59421. element.remove();
  59422. };
  59423. Color3LineComponent.prototype.render = function () {
  59424. var _this = this;
  59425. 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"] });
  59426. 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);
  59427. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  59428. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59429. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59430. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  59431. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  59432. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  59433. 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"] })),
  59434. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  59435. this.state.isExpanded &&
  59436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59437. 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); } }),
  59438. 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); } }),
  59439. 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); } }))));
  59440. };
  59441. return Color3LineComponent;
  59442. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59443. /***/ }),
  59444. /***/ "./sharedComponents/draggableLineComponent.tsx":
  59445. /*!*****************************************************!*\
  59446. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  59447. \*****************************************************/
  59448. /*! exports provided: DraggableLineComponent */
  59449. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59450. "use strict";
  59451. __webpack_require__.r(__webpack_exports__);
  59452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  59453. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59454. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59455. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59456. var DraggableLineComponent = /** @class */ (function (_super) {
  59457. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](DraggableLineComponent, _super);
  59458. function DraggableLineComponent(props) {
  59459. return _super.call(this, props) || this;
  59460. }
  59461. DraggableLineComponent.prototype.render = function () {
  59462. var _this = this;
  59463. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", draggable: true, onDragStart: function (event) {
  59464. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  59465. } }, this.props.data.replace("Block", "")));
  59466. };
  59467. return DraggableLineComponent;
  59468. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59469. /***/ }),
  59470. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  59471. /*!******************************************************!*\
  59472. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  59473. \******************************************************/
  59474. /*! exports provided: FileButtonLineComponent */
  59475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59476. "use strict";
  59477. __webpack_require__.r(__webpack_exports__);
  59478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  59479. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59480. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59481. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59482. var FileButtonLineComponent = /** @class */ (function (_super) {
  59483. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FileButtonLineComponent, _super);
  59484. function FileButtonLineComponent(props) {
  59485. return _super.call(this, props) || this;
  59486. }
  59487. FileButtonLineComponent.prototype.onChange = function (evt) {
  59488. var files = evt.target.files;
  59489. if (files && files.length) {
  59490. this.props.onClick(files[0]);
  59491. }
  59492. evt.target.value = "";
  59493. };
  59494. FileButtonLineComponent.prototype.render = function () {
  59495. var _this = this;
  59496. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  59497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  59498. 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); } })));
  59499. };
  59500. return FileButtonLineComponent;
  59501. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59502. /***/ }),
  59503. /***/ "./sharedComponents/floatLineComponent.tsx":
  59504. /*!*************************************************!*\
  59505. !*** ./sharedComponents/floatLineComponent.tsx ***!
  59506. \*************************************************/
  59507. /*! exports provided: FloatLineComponent */
  59508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59509. "use strict";
  59510. __webpack_require__.r(__webpack_exports__);
  59511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  59512. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59513. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59514. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59515. var FloatLineComponent = /** @class */ (function (_super) {
  59516. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](FloatLineComponent, _super);
  59517. function FloatLineComponent(props) {
  59518. var _this = _super.call(this, props) || this;
  59519. _this._localChange = false;
  59520. var currentValue = _this.props.target[_this.props.propertyName];
  59521. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 3)) : "0" };
  59522. _this._store = currentValue;
  59523. return _this;
  59524. }
  59525. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59526. if (this._localChange) {
  59527. this._localChange = false;
  59528. return true;
  59529. }
  59530. var newValue = nextProps.target[nextProps.propertyName];
  59531. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 3) : "0";
  59532. if (newValueString !== nextState.value) {
  59533. nextState.value = newValueString;
  59534. return true;
  59535. }
  59536. return false;
  59537. };
  59538. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59539. if (this.props.onChange) {
  59540. this.props.onChange(newValue);
  59541. }
  59542. if (!this.props.onPropertyChangedObservable) {
  59543. return;
  59544. }
  59545. this.props.onPropertyChangedObservable.notifyObservers({
  59546. object: this.props.target,
  59547. property: this.props.propertyName,
  59548. value: newValue,
  59549. initialValue: previousValue
  59550. });
  59551. };
  59552. FloatLineComponent.prototype.updateValue = function (valueString) {
  59553. if (/[^0-9\.\-]/g.test(valueString)) {
  59554. return;
  59555. }
  59556. var valueAsNumber;
  59557. if (this.props.isInteger) {
  59558. valueAsNumber = parseInt(valueString);
  59559. }
  59560. else {
  59561. valueAsNumber = parseFloat(valueString);
  59562. }
  59563. this._localChange = true;
  59564. this.setState({ value: valueString });
  59565. if (isNaN(valueAsNumber)) {
  59566. return;
  59567. }
  59568. this.props.target[this.props.propertyName] = valueAsNumber;
  59569. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  59570. this._store = valueAsNumber;
  59571. };
  59572. FloatLineComponent.prototype.render = function () {
  59573. var _this = this;
  59574. 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" },
  59575. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59576. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  59577. 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); } })))));
  59578. };
  59579. return FloatLineComponent;
  59580. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59581. /***/ }),
  59582. /***/ "./sharedComponents/lineContainerComponent.tsx":
  59583. /*!*****************************************************!*\
  59584. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  59585. \*****************************************************/
  59586. /*! exports provided: LineContainerComponent */
  59587. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59588. "use strict";
  59589. __webpack_require__.r(__webpack_exports__);
  59590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  59591. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59592. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59593. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59594. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  59595. /* 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");
  59596. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  59597. var LineContainerComponent = /** @class */ (function (_super) {
  59598. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](LineContainerComponent, _super);
  59599. function LineContainerComponent(props) {
  59600. var _this = _super.call(this, props) || this;
  59601. var initialState = _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  59602. _this.state = { isExpanded: initialState };
  59603. return _this;
  59604. }
  59605. LineContainerComponent.prototype.switchExpandedState = function () {
  59606. var newState = !this.state.isExpanded;
  59607. _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].StoreBoolean(this.props.title, newState);
  59608. this.setState({ isExpanded: newState });
  59609. };
  59610. LineContainerComponent.prototype.renderHeader = function () {
  59611. var _this = this;
  59612. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  59613. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  59614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  59615. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  59616. 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"] }))));
  59617. };
  59618. LineContainerComponent.prototype.render = function () {
  59619. if (!this.state.isExpanded) {
  59620. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  59621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  59622. }
  59623. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  59624. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  59625. this.renderHeader(),
  59626. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  59627. };
  59628. return LineContainerComponent;
  59629. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59630. /***/ }),
  59631. /***/ "./sharedComponents/matrixLineComponent.tsx":
  59632. /*!**************************************************!*\
  59633. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  59634. \**************************************************/
  59635. /*! exports provided: MatrixLineComponent */
  59636. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59637. "use strict";
  59638. __webpack_require__.r(__webpack_exports__);
  59639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  59640. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59641. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59642. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59643. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Misc/observable");
  59644. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  59645. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  59646. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  59647. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  59648. var MatrixLineComponent = /** @class */ (function (_super) {
  59649. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MatrixLineComponent, _super);
  59650. function MatrixLineComponent(props) {
  59651. var _this = _super.call(this, props) || this;
  59652. _this._localChange = false;
  59653. var matrix = _this.props.target[_this.props.propertyName].clone();
  59654. var angle = 0;
  59655. if (_this.props.mode) {
  59656. var quat = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  59657. matrix.decompose(undefined, quat);
  59658. var euler = quat.toEulerAngles();
  59659. switch (_this.props.mode) {
  59660. case 1:
  59661. angle = euler.x;
  59662. break;
  59663. case 2:
  59664. angle = euler.y;
  59665. break;
  59666. case 3:
  59667. angle = euler.z;
  59668. break;
  59669. }
  59670. }
  59671. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  59672. return _this;
  59673. }
  59674. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59675. var nextPropsValue = nextProps.target[nextProps.propertyName];
  59676. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  59677. nextState.value = nextPropsValue.clone();
  59678. this._localChange = false;
  59679. return true;
  59680. }
  59681. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  59682. };
  59683. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  59684. if (this.props.onChange) {
  59685. this.props.onChange(this.state.value);
  59686. }
  59687. if (!this.props.onPropertyChangedObservable) {
  59688. return;
  59689. }
  59690. this.props.onPropertyChangedObservable.notifyObservers({
  59691. object: this.props.target,
  59692. property: this.props.propertyName,
  59693. value: this.state.value,
  59694. initialValue: previousValue
  59695. });
  59696. };
  59697. MatrixLineComponent.prototype.updateMatrix = function () {
  59698. var store = this.props.target[this.props.propertyName].clone();
  59699. this.props.target[this.props.propertyName] = this.state.value;
  59700. this.setState({ value: store });
  59701. this.raiseOnPropertyChanged(store);
  59702. };
  59703. MatrixLineComponent.prototype.updateRow = function (value, row) {
  59704. this._localChange = true;
  59705. this.state.value.setRow(row, value);
  59706. this.updateMatrix();
  59707. };
  59708. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  59709. switch (this.state.mode) {
  59710. case 1: {
  59711. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  59712. break;
  59713. }
  59714. case 2: {
  59715. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  59716. break;
  59717. }
  59718. case 3: {
  59719. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  59720. break;
  59721. }
  59722. }
  59723. this.updateMatrix();
  59724. this.setState({ angle: value });
  59725. };
  59726. MatrixLineComponent.prototype.render = function () {
  59727. var _this = this;
  59728. var modeOptions = [
  59729. { label: "User-defined", value: 0 },
  59730. { label: "Rotation over X axis", value: 1 },
  59731. { label: "Rotation over Y axis", value: 2 },
  59732. { label: "Rotation over Z axis", value: 3 },
  59733. ];
  59734. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  59735. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  59736. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  59737. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59738. 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 () {
  59739. return _this.state.mode;
  59740. }, onSelect: function (value) {
  59741. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  59742. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  59743. _this.setState({ mode: value, angle: 0 });
  59744. _this.updateMatrix();
  59745. if (_this.props.onModeChange) {
  59746. _this.props.onModeChange(value);
  59747. }
  59748. } })),
  59749. this.state.mode === 0 &&
  59750. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59751. 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); } }),
  59752. 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); } }),
  59753. 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); } }),
  59754. 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); } })),
  59755. this.state.mode !== 0 &&
  59756. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  59757. 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); } }))));
  59758. };
  59759. return MatrixLineComponent;
  59760. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59761. /***/ }),
  59762. /***/ "./sharedComponents/messageDialog.tsx":
  59763. /*!********************************************!*\
  59764. !*** ./sharedComponents/messageDialog.tsx ***!
  59765. \********************************************/
  59766. /*! exports provided: MessageDialogComponent */
  59767. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59768. "use strict";
  59769. __webpack_require__.r(__webpack_exports__);
  59770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  59771. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59772. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59773. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59774. var MessageDialogComponent = /** @class */ (function (_super) {
  59775. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](MessageDialogComponent, _super);
  59776. function MessageDialogComponent(props) {
  59777. var _this = _super.call(this, props) || this;
  59778. _this.state = { message: "", isError: false };
  59779. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  59780. _this.setState({ message: message, isError: true });
  59781. });
  59782. return _this;
  59783. }
  59784. MessageDialogComponent.prototype.render = function () {
  59785. var _this = this;
  59786. if (!this.state.message) {
  59787. return null;
  59788. }
  59789. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  59790. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  59791. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  59792. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  59793. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  59794. };
  59795. return MessageDialogComponent;
  59796. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59797. /***/ }),
  59798. /***/ "./sharedComponents/numericInputComponent.tsx":
  59799. /*!****************************************************!*\
  59800. !*** ./sharedComponents/numericInputComponent.tsx ***!
  59801. \****************************************************/
  59802. /*! exports provided: NumericInputComponent */
  59803. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59804. "use strict";
  59805. __webpack_require__.r(__webpack_exports__);
  59806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  59807. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59808. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59809. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59810. var NumericInputComponent = /** @class */ (function (_super) {
  59811. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](NumericInputComponent, _super);
  59812. function NumericInputComponent(props) {
  59813. var _this = _super.call(this, props) || this;
  59814. _this._localChange = false;
  59815. _this.state = { value: _this.props.value.toFixed(3) };
  59816. return _this;
  59817. }
  59818. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59819. if (this._localChange) {
  59820. this._localChange = false;
  59821. return true;
  59822. }
  59823. if (nextProps.value.toString() !== nextState.value) {
  59824. nextState.value = nextProps.value.toFixed(3);
  59825. return true;
  59826. }
  59827. return false;
  59828. };
  59829. NumericInputComponent.prototype.updateValue = function (evt) {
  59830. var value = evt.target.value;
  59831. if (/[^0-9\.\-]/g.test(value)) {
  59832. return;
  59833. }
  59834. var valueAsNumber = parseFloat(value);
  59835. this._localChange = true;
  59836. this.setState({ value: value });
  59837. if (isNaN(valueAsNumber)) {
  59838. return;
  59839. }
  59840. this.props.onChange(valueAsNumber);
  59841. };
  59842. NumericInputComponent.prototype.render = function () {
  59843. var _this = this;
  59844. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  59845. this.props.label &&
  59846. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  59847. 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); } })));
  59848. };
  59849. NumericInputComponent.defaultProps = {
  59850. step: 1,
  59851. };
  59852. return NumericInputComponent;
  59853. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59854. /***/ }),
  59855. /***/ "./sharedComponents/optionsLineComponent.tsx":
  59856. /*!***************************************************!*\
  59857. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  59858. \***************************************************/
  59859. /*! exports provided: OptionsLineComponent */
  59860. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59861. "use strict";
  59862. __webpack_require__.r(__webpack_exports__);
  59863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  59864. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  59865. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  59866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  59867. var ListLineOption = /** @class */ (function () {
  59868. function ListLineOption() {
  59869. }
  59870. return ListLineOption;
  59871. }());
  59872. var OptionsLineComponent = /** @class */ (function (_super) {
  59873. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](OptionsLineComponent, _super);
  59874. function OptionsLineComponent(props) {
  59875. var _this = _super.call(this, props) || this;
  59876. _this._localChange = false;
  59877. _this.state = { value: _this._getValue(props) };
  59878. return _this;
  59879. }
  59880. OptionsLineComponent.prototype._getValue = function (props) {
  59881. if (props.getSelection) {
  59882. return props.getSelection(props.target);
  59883. }
  59884. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  59885. };
  59886. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  59887. if (this._localChange) {
  59888. this._localChange = false;
  59889. return true;
  59890. }
  59891. var newValue = this._getValue(nextProps);
  59892. if (newValue != null && newValue !== nextState.value) {
  59893. nextState.value = newValue;
  59894. return true;
  59895. }
  59896. return false;
  59897. };
  59898. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  59899. if (!this.props.onPropertyChangedObservable) {
  59900. return;
  59901. }
  59902. this.props.onPropertyChangedObservable.notifyObservers({
  59903. object: this.props.target,
  59904. property: this.props.propertyName,
  59905. value: newValue,
  59906. initialValue: previousValue
  59907. });
  59908. };
  59909. OptionsLineComponent.prototype.updateValue = function (valueString) {
  59910. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  59911. this._localChange = true;
  59912. var store = this.state.value;
  59913. if (!this.props.noDirectUpdate) {
  59914. this.props.target[this.props.propertyName] = value;
  59915. }
  59916. this.setState({ value: value });
  59917. this.raiseOnPropertyChanged(value, store);
  59918. if (this.props.onSelect) {
  59919. this.props.onSelect(value);
  59920. }
  59921. };
  59922. OptionsLineComponent.prototype.render = function () {
  59923. var _this = this;
  59924. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  59925. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  59926. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  59927. 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) {
  59928. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  59929. })))));
  59930. };
  59931. return OptionsLineComponent;
  59932. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  59933. /***/ }),
  59934. /***/ "./sharedComponents/popup.ts":
  59935. /*!***********************************!*\
  59936. !*** ./sharedComponents/popup.ts ***!
  59937. \***********************************/
  59938. /*! exports provided: Popup */
  59939. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59940. "use strict";
  59941. __webpack_require__.r(__webpack_exports__);
  59942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  59943. var Popup = /** @class */ (function () {
  59944. function Popup() {
  59945. }
  59946. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  59947. var _this = this;
  59948. if (width === void 0) { width = 300; }
  59949. if (height === void 0) { height = 800; }
  59950. var windowCreationOptionsList = {
  59951. width: width,
  59952. height: height,
  59953. top: (window.innerHeight - width) / 2 + window.screenY,
  59954. left: (window.innerWidth - height) / 2 + window.screenX
  59955. };
  59956. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  59957. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  59958. .join(',');
  59959. var popupWindow = window.open("", title, windowCreationOptions);
  59960. if (!popupWindow) {
  59961. return null;
  59962. }
  59963. var parentDocument = popupWindow.document;
  59964. // Font
  59965. var newLinkEl = parentDocument.createElement('link');
  59966. newLinkEl.rel = 'stylesheet';
  59967. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  59968. parentDocument.head.appendChild(newLinkEl);
  59969. parentDocument.title = title;
  59970. parentDocument.body.style.width = "100%";
  59971. parentDocument.body.style.height = "100%";
  59972. parentDocument.body.style.margin = "0";
  59973. parentDocument.body.style.padding = "0";
  59974. var parentControl = parentDocument.createElement("div");
  59975. parentControl.style.width = "100%";
  59976. parentControl.style.height = "100%";
  59977. parentControl.style.margin = "0";
  59978. parentControl.style.padding = "0";
  59979. popupWindow.document.body.appendChild(parentControl);
  59980. this._CopyStyles(window.document, parentDocument);
  59981. setTimeout(function () {
  59982. _this._CopyStyles(window.document, parentDocument);
  59983. }, 0);
  59984. this[windowVariableName] = popupWindow;
  59985. return parentControl;
  59986. };
  59987. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  59988. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  59989. var styleSheet = sourceDoc.styleSheets[index];
  59990. try {
  59991. if (styleSheet.cssRules) { // for <style> elements
  59992. var newStyleEl = sourceDoc.createElement('style');
  59993. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  59994. var cssRule = _a[_i];
  59995. // write the text of each rule into the body of the style element
  59996. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  59997. }
  59998. targetDoc.head.appendChild(newStyleEl);
  59999. }
  60000. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  60001. var newLinkEl = sourceDoc.createElement('link');
  60002. newLinkEl.rel = 'stylesheet';
  60003. newLinkEl.href = styleSheet.href;
  60004. targetDoc.head.appendChild(newLinkEl);
  60005. }
  60006. }
  60007. catch (e) {
  60008. console.log(e);
  60009. }
  60010. }
  60011. };
  60012. return Popup;
  60013. }());
  60014. /***/ }),
  60015. /***/ "./sharedComponents/sliderLineComponent.tsx":
  60016. /*!**************************************************!*\
  60017. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  60018. \**************************************************/
  60019. /*! exports provided: SliderLineComponent */
  60020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60021. "use strict";
  60022. __webpack_require__.r(__webpack_exports__);
  60023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  60024. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60025. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60026. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60027. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Misc/observable");
  60028. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  60029. var SliderLineComponent = /** @class */ (function (_super) {
  60030. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](SliderLineComponent, _super);
  60031. function SliderLineComponent(props) {
  60032. var _this = _super.call(this, props) || this;
  60033. _this._localChange = false;
  60034. if (_this.props.directValue !== undefined) {
  60035. _this.state = {
  60036. value: _this.props.directValue
  60037. };
  60038. }
  60039. else {
  60040. var value = _this.props.target[_this.props.propertyName];
  60041. if (value === undefined) {
  60042. value = _this.props.maximum;
  60043. }
  60044. _this.state = { value: value };
  60045. }
  60046. return _this;
  60047. }
  60048. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60049. if (nextProps.directValue !== undefined) {
  60050. nextState.value = nextProps.directValue;
  60051. return true;
  60052. }
  60053. var currentState = nextProps.target[nextProps.propertyName];
  60054. if (currentState === undefined) {
  60055. currentState = nextProps.maximum;
  60056. }
  60057. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  60058. nextState.value = currentState;
  60059. this._localChange = false;
  60060. return true;
  60061. }
  60062. return false;
  60063. };
  60064. SliderLineComponent.prototype.onChange = function (newValueString) {
  60065. this._localChange = true;
  60066. var newValue = parseFloat(newValueString);
  60067. if (this.props.useEuler) {
  60068. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  60069. }
  60070. if (this.props.target) {
  60071. if (this.props.onPropertyChangedObservable) {
  60072. this.props.onPropertyChangedObservable.notifyObservers({
  60073. object: this.props.target,
  60074. property: this.props.propertyName,
  60075. value: newValue,
  60076. initialValue: this.state.value
  60077. });
  60078. }
  60079. this.props.target[this.props.propertyName] = newValue;
  60080. }
  60081. if (this.props.onChange) {
  60082. this.props.onChange(newValue);
  60083. }
  60084. this.setState({ value: newValue });
  60085. };
  60086. SliderLineComponent.prototype.onInput = function (newValueString) {
  60087. var newValue = parseFloat(newValueString);
  60088. if (this.props.onInput) {
  60089. this.props.onInput(newValue);
  60090. }
  60091. };
  60092. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  60093. if (this.props.useEuler) {
  60094. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  60095. }
  60096. return value;
  60097. };
  60098. SliderLineComponent.prototype.render = function () {
  60099. var _this = this;
  60100. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  60101. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  60102. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60103. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  60104. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  60105. "\u00A0",
  60106. 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); } }))));
  60107. };
  60108. return SliderLineComponent;
  60109. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60110. /***/ }),
  60111. /***/ "./sharedComponents/textInputLineComponent.tsx":
  60112. /*!*****************************************************!*\
  60113. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  60114. \*****************************************************/
  60115. /*! exports provided: TextInputLineComponent */
  60116. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60117. "use strict";
  60118. __webpack_require__.r(__webpack_exports__);
  60119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  60120. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60121. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60122. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60123. var TextInputLineComponent = /** @class */ (function (_super) {
  60124. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextInputLineComponent, _super);
  60125. function TextInputLineComponent(props) {
  60126. var _this = _super.call(this, props) || this;
  60127. _this._localChange = false;
  60128. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  60129. return _this;
  60130. }
  60131. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60132. if (this._localChange) {
  60133. this._localChange = false;
  60134. return true;
  60135. }
  60136. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  60137. if (newValue !== nextState.value) {
  60138. nextState.value = newValue || "";
  60139. return true;
  60140. }
  60141. return false;
  60142. };
  60143. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  60144. if (this.props.onChange) {
  60145. this.props.onChange(newValue);
  60146. return;
  60147. }
  60148. if (!this.props.onPropertyChangedObservable) {
  60149. return;
  60150. }
  60151. this.props.onPropertyChangedObservable.notifyObservers({
  60152. object: this.props.target,
  60153. property: this.props.propertyName,
  60154. value: newValue,
  60155. initialValue: previousValue
  60156. });
  60157. };
  60158. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  60159. this._localChange = true;
  60160. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  60161. this.setState({ value: value });
  60162. if (raisePropertyChanged) {
  60163. this.raiseOnPropertyChanged(value, store);
  60164. }
  60165. if (this.props.propertyName) {
  60166. this.props.target[this.props.propertyName] = value;
  60167. }
  60168. };
  60169. TextInputLineComponent.prototype.render = function () {
  60170. var _this = this;
  60171. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  60172. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60173. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  60174. 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) {
  60175. if (evt.keyCode !== 13) {
  60176. return;
  60177. }
  60178. _this.updateValue(_this.state.value, true);
  60179. }, onBlur: function (evt) {
  60180. _this.updateValue(evt.target.value, true);
  60181. _this.props.globalState.blockKeyboardEvents = false;
  60182. } }))));
  60183. };
  60184. return TextInputLineComponent;
  60185. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60186. /***/ }),
  60187. /***/ "./sharedComponents/textLineComponent.tsx":
  60188. /*!************************************************!*\
  60189. !*** ./sharedComponents/textLineComponent.tsx ***!
  60190. \************************************************/
  60191. /*! exports provided: TextLineComponent */
  60192. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60193. "use strict";
  60194. __webpack_require__.r(__webpack_exports__);
  60195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  60196. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60197. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60198. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60199. var TextLineComponent = /** @class */ (function (_super) {
  60200. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextLineComponent, _super);
  60201. function TextLineComponent(props) {
  60202. return _super.call(this, props) || this;
  60203. }
  60204. TextLineComponent.prototype.onLink = function () {
  60205. if (!this.props.onLink) {
  60206. return;
  60207. }
  60208. this.props.onLink();
  60209. };
  60210. TextLineComponent.prototype.renderContent = function () {
  60211. var _this = this;
  60212. if (this.props.onLink) {
  60213. 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"));
  60214. }
  60215. 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"));
  60216. };
  60217. TextLineComponent.prototype.render = function () {
  60218. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  60219. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60220. this.renderContent()));
  60221. };
  60222. return TextLineComponent;
  60223. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60224. /***/ }),
  60225. /***/ "./sharedComponents/textureLineComponent.tsx":
  60226. /*!***************************************************!*\
  60227. !*** ./sharedComponents/textureLineComponent.tsx ***!
  60228. \***************************************************/
  60229. /*! exports provided: TextureLineComponent */
  60230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60231. "use strict";
  60232. __webpack_require__.r(__webpack_exports__);
  60233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  60234. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60235. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60236. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60237. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Misc/observable");
  60238. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  60239. var TextureLineComponent = /** @class */ (function (_super) {
  60240. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](TextureLineComponent, _super);
  60241. function TextureLineComponent(props) {
  60242. var _this = _super.call(this, props) || this;
  60243. _this.state = {
  60244. displayRed: true,
  60245. displayGreen: true,
  60246. displayBlue: true,
  60247. displayAlpha: true,
  60248. face: 0
  60249. };
  60250. return _this;
  60251. }
  60252. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60253. return true;
  60254. };
  60255. TextureLineComponent.prototype.componentDidMount = function () {
  60256. this.updatePreview();
  60257. };
  60258. TextureLineComponent.prototype.componentDidUpdate = function () {
  60259. this.updatePreview();
  60260. };
  60261. TextureLineComponent.prototype.updatePreview = function () {
  60262. var _this = this;
  60263. var texture = this.props.texture;
  60264. if (!texture.isReady() && texture._texture) {
  60265. texture._texture.onLoadedObservable.addOnce(function () {
  60266. _this.updatePreview();
  60267. });
  60268. }
  60269. var scene = texture.getScene();
  60270. var engine = scene.getEngine();
  60271. var size = texture.getSize();
  60272. var ratio = size.width / size.height;
  60273. var width = this.props.width;
  60274. var height = (width / ratio) | 1;
  60275. var passPostProcess;
  60276. if (!texture.isCube) {
  60277. 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);
  60278. }
  60279. else {
  60280. 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);
  60281. passCubePostProcess.face = this.state.face;
  60282. passPostProcess = passCubePostProcess;
  60283. }
  60284. if (!passPostProcess.getEffect().isReady()) {
  60285. // Try again later
  60286. passPostProcess.dispose();
  60287. setTimeout(function () { return _this.updatePreview(); }, 250);
  60288. return;
  60289. }
  60290. var previewCanvas = this.refs.canvas;
  60291. if (this.props.globalState) {
  60292. this.props.globalState.blockMutationUpdates = true;
  60293. }
  60294. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  60295. passPostProcess.onApply = function (effect) {
  60296. effect.setTexture("textureSampler", texture);
  60297. };
  60298. var internalTexture = rtt.getInternalTexture();
  60299. if (internalTexture) {
  60300. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  60301. // Read the contents of the framebuffer
  60302. var numberOfChannelsByLine = width * 4;
  60303. var halfHeight = height / 2;
  60304. //Reading datas from WebGL
  60305. var data = engine.readPixels(0, 0, width, height);
  60306. if (!texture.isCube) {
  60307. if (!this.state.displayRed || !this.state.displayGreen || !this.state.displayBlue) {
  60308. for (var i = 0; i < width * height * 4; i += 4) {
  60309. if (!this.state.displayRed) {
  60310. data[i] = 0;
  60311. }
  60312. if (!this.state.displayGreen) {
  60313. data[i + 1] = 0;
  60314. }
  60315. if (!this.state.displayBlue) {
  60316. data[i + 2] = 0;
  60317. }
  60318. if (this.state.displayAlpha) {
  60319. var alpha = data[i + 2];
  60320. data[i] = alpha;
  60321. data[i + 1] = alpha;
  60322. data[i + 2] = alpha;
  60323. data[i + 2] = 0;
  60324. }
  60325. }
  60326. }
  60327. }
  60328. //To flip image on Y axis.
  60329. if (texture.invertY || texture.isCube) {
  60330. for (var i = 0; i < halfHeight; i++) {
  60331. for (var j = 0; j < numberOfChannelsByLine; j++) {
  60332. var currentCell = j + i * numberOfChannelsByLine;
  60333. var targetLine = height - i - 1;
  60334. var targetCell = j + targetLine * numberOfChannelsByLine;
  60335. var temp = data[currentCell];
  60336. data[currentCell] = data[targetCell];
  60337. data[targetCell] = temp;
  60338. }
  60339. }
  60340. }
  60341. previewCanvas.width = width;
  60342. previewCanvas.height = height;
  60343. var context = previewCanvas.getContext('2d');
  60344. if (context) {
  60345. // Copy the pixels to the preview canvas
  60346. var imageData = context.createImageData(width, height);
  60347. var castData = imageData.data;
  60348. castData.set(data);
  60349. context.putImageData(imageData, 0, 0);
  60350. }
  60351. // Unbind
  60352. engine.unBindFramebuffer(internalTexture);
  60353. }
  60354. rtt.dispose();
  60355. passPostProcess.dispose();
  60356. previewCanvas.style.height = height + "px";
  60357. if (this.props.globalState) {
  60358. this.props.globalState.blockMutationUpdates = false;
  60359. }
  60360. };
  60361. TextureLineComponent.prototype.render = function () {
  60362. var _this = this;
  60363. var texture = this.props.texture;
  60364. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  60365. !this.props.hideChannelSelect && texture.isCube &&
  60366. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  60367. 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"),
  60368. 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"),
  60369. 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"),
  60370. 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"),
  60371. 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"),
  60372. 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")),
  60373. !this.props.hideChannelSelect && !texture.isCube &&
  60374. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  60375. 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"),
  60376. 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"),
  60377. 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"),
  60378. 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"),
  60379. 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")),
  60380. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  60381. };
  60382. return TextureLineComponent;
  60383. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60384. /***/ }),
  60385. /***/ "./sharedComponents/vector2LineComponent.tsx":
  60386. /*!***************************************************!*\
  60387. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  60388. \***************************************************/
  60389. /*! exports provided: Vector2LineComponent */
  60390. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60391. "use strict";
  60392. __webpack_require__.r(__webpack_exports__);
  60393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  60394. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60395. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60396. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60397. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60398. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60399. /* 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");
  60400. var Vector2LineComponent = /** @class */ (function (_super) {
  60401. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector2LineComponent, _super);
  60402. function Vector2LineComponent(props) {
  60403. var _this = _super.call(this, props) || this;
  60404. _this._localChange = false;
  60405. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  60406. return _this;
  60407. }
  60408. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60409. var nextPropsValue = nextProps.target[nextProps.propertyName];
  60410. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60411. nextState.value = nextPropsValue.clone();
  60412. this._localChange = false;
  60413. return true;
  60414. }
  60415. return false;
  60416. };
  60417. Vector2LineComponent.prototype.switchExpandState = function () {
  60418. this._localChange = true;
  60419. this.setState({ isExpanded: !this.state.isExpanded });
  60420. };
  60421. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60422. if (this.props.onChange) {
  60423. this.props.onChange(this.state.value);
  60424. }
  60425. if (!this.props.onPropertyChangedObservable) {
  60426. return;
  60427. }
  60428. this.props.onPropertyChangedObservable.notifyObservers({
  60429. object: this.props.target,
  60430. property: this.props.propertyName,
  60431. value: this.state.value,
  60432. initialValue: previousValue
  60433. });
  60434. };
  60435. Vector2LineComponent.prototype.updateStateX = function (value) {
  60436. this._localChange = true;
  60437. var store = this.state.value.clone();
  60438. this.props.target[this.props.propertyName].x = value;
  60439. this.state.value.x = value;
  60440. this.setState({ value: this.state.value });
  60441. this.raiseOnPropertyChanged(store);
  60442. };
  60443. Vector2LineComponent.prototype.updateStateY = function (value) {
  60444. this._localChange = true;
  60445. var store = this.state.value.clone();
  60446. this.props.target[this.props.propertyName].y = value;
  60447. this.state.value.y = value;
  60448. this.setState({ value: this.state.value });
  60449. this.raiseOnPropertyChanged(store);
  60450. };
  60451. Vector2LineComponent.prototype.render = function () {
  60452. var _this = this;
  60453. 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"] });
  60454. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60456. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60457. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  60458. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60459. this.state.isExpanded &&
  60460. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60461. 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); } }),
  60462. 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); } }))));
  60463. };
  60464. Vector2LineComponent.defaultProps = {
  60465. step: 0.001,
  60466. };
  60467. return Vector2LineComponent;
  60468. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60469. /***/ }),
  60470. /***/ "./sharedComponents/vector3LineComponent.tsx":
  60471. /*!***************************************************!*\
  60472. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  60473. \***************************************************/
  60474. /*! exports provided: Vector3LineComponent */
  60475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60476. "use strict";
  60477. __webpack_require__.r(__webpack_exports__);
  60478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  60479. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60480. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60481. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60482. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60483. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60484. /* 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");
  60485. var Vector3LineComponent = /** @class */ (function (_super) {
  60486. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector3LineComponent, _super);
  60487. function Vector3LineComponent(props) {
  60488. var _this = _super.call(this, props) || this;
  60489. _this._localChange = false;
  60490. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  60491. return _this;
  60492. }
  60493. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60494. var nextPropsValue = nextProps.target[nextProps.propertyName];
  60495. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60496. nextState.value = nextPropsValue.clone();
  60497. this._localChange = false;
  60498. return true;
  60499. }
  60500. return false;
  60501. };
  60502. Vector3LineComponent.prototype.switchExpandState = function () {
  60503. this._localChange = true;
  60504. this.setState({ isExpanded: !this.state.isExpanded });
  60505. };
  60506. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60507. if (this.props.onChange) {
  60508. this.props.onChange(this.state.value);
  60509. }
  60510. if (!this.props.onPropertyChangedObservable) {
  60511. return;
  60512. }
  60513. this.props.onPropertyChangedObservable.notifyObservers({
  60514. object: this.props.target,
  60515. property: this.props.propertyName,
  60516. value: this.state.value,
  60517. initialValue: previousValue
  60518. });
  60519. };
  60520. Vector3LineComponent.prototype.updateVector3 = function () {
  60521. var store = this.props.target[this.props.propertyName].clone();
  60522. this.props.target[this.props.propertyName] = this.state.value;
  60523. this.setState({ value: store });
  60524. this.raiseOnPropertyChanged(store);
  60525. };
  60526. Vector3LineComponent.prototype.updateStateX = function (value) {
  60527. this._localChange = true;
  60528. this.state.value.x = value;
  60529. this.updateVector3();
  60530. };
  60531. Vector3LineComponent.prototype.updateStateY = function (value) {
  60532. this._localChange = true;
  60533. this.state.value.y = value;
  60534. this.updateVector3();
  60535. };
  60536. Vector3LineComponent.prototype.updateStateZ = function (value) {
  60537. this._localChange = true;
  60538. this.state.value.z = value;
  60539. this.updateVector3();
  60540. };
  60541. Vector3LineComponent.prototype.render = function () {
  60542. var _this = this;
  60543. 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"] });
  60544. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60545. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60546. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60547. 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)),
  60548. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60549. this.state.isExpanded &&
  60550. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60551. 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); } }),
  60552. 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); } }),
  60553. 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); } }))));
  60554. };
  60555. Vector3LineComponent.defaultProps = {
  60556. step: 0.001,
  60557. };
  60558. return Vector3LineComponent;
  60559. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60560. /***/ }),
  60561. /***/ "./sharedComponents/vector4LineComponent.tsx":
  60562. /*!***************************************************!*\
  60563. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  60564. \***************************************************/
  60565. /*! exports provided: Vector4LineComponent */
  60566. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60567. "use strict";
  60568. __webpack_require__.r(__webpack_exports__);
  60569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  60570. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  60571. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  60572. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  60573. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  60574. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  60575. /* 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");
  60576. var Vector4LineComponent = /** @class */ (function (_super) {
  60577. tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Vector4LineComponent, _super);
  60578. function Vector4LineComponent(props) {
  60579. var _this = _super.call(this, props) || this;
  60580. _this._localChange = false;
  60581. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  60582. return _this;
  60583. }
  60584. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  60585. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  60586. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  60587. nextState.value = nextPropsValue.clone();
  60588. this._localChange = false;
  60589. return true;
  60590. }
  60591. return false;
  60592. };
  60593. Vector4LineComponent.prototype.switchExpandState = function () {
  60594. this._localChange = true;
  60595. this.setState({ isExpanded: !this.state.isExpanded });
  60596. };
  60597. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  60598. if (this.props.onChange) {
  60599. this.props.onChange(this.state.value);
  60600. }
  60601. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  60602. return;
  60603. }
  60604. this.props.onPropertyChangedObservable.notifyObservers({
  60605. object: this.props.target,
  60606. property: this.props.propertyName,
  60607. value: this.state.value,
  60608. initialValue: previousValue
  60609. });
  60610. };
  60611. Vector4LineComponent.prototype.updateVector4 = function () {
  60612. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  60613. if (this.props.value) {
  60614. this.props.value.copyFrom(this.state.value);
  60615. }
  60616. else {
  60617. this.props.target[this.props.propertyName] = this.state.value;
  60618. }
  60619. this.forceUpdate();
  60620. this.raiseOnPropertyChanged(store);
  60621. };
  60622. Vector4LineComponent.prototype.updateStateX = function (value) {
  60623. this._localChange = true;
  60624. this.state.value.x = value;
  60625. this.updateVector4();
  60626. };
  60627. Vector4LineComponent.prototype.updateStateY = function (value) {
  60628. this._localChange = true;
  60629. this.state.value.y = value;
  60630. this.updateVector4();
  60631. };
  60632. Vector4LineComponent.prototype.updateStateZ = function (value) {
  60633. this._localChange = true;
  60634. this.state.value.z = value;
  60635. this.updateVector4();
  60636. };
  60637. Vector4LineComponent.prototype.updateStateW = function (value) {
  60638. this._localChange = true;
  60639. this.state.value.w = value;
  60640. this.updateVector4();
  60641. };
  60642. Vector4LineComponent.prototype.render = function () {
  60643. var _this = this;
  60644. 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"] });
  60645. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  60646. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  60647. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  60648. 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)),
  60649. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  60650. this.state.isExpanded &&
  60651. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  60652. 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); } }),
  60653. 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); } }),
  60654. 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); } }),
  60655. 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); } }))));
  60656. };
  60657. Vector4LineComponent.defaultProps = {
  60658. step: 0.001,
  60659. };
  60660. return Vector4LineComponent;
  60661. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  60662. /***/ }),
  60663. /***/ "./stringTools.ts":
  60664. /*!************************!*\
  60665. !*** ./stringTools.ts ***!
  60666. \************************/
  60667. /*! exports provided: StringTools */
  60668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60669. "use strict";
  60670. __webpack_require__.r(__webpack_exports__);
  60671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  60672. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Misc/observable");
  60673. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__);
  60674. var StringTools = /** @class */ (function () {
  60675. function StringTools() {
  60676. }
  60677. /*
  60678. * Based on FileSaver.js
  60679. * A saveAs() FileSaver implementation.
  60680. *
  60681. * By Eli Grey, http://eligrey.com
  60682. *
  60683. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  60684. * source : http://purl.eligrey.com/github/FileSaver.js
  60685. */
  60686. StringTools._SaveAs = function (blob, name, document) {
  60687. var _this = this;
  60688. if ('download' in HTMLAnchorElement.prototype) {
  60689. var URL = window.URL || window.webkitURL;
  60690. var a = document.createElement('a');
  60691. a.download = name;
  60692. a.rel = 'noopener'; // tabnabbing
  60693. a.href = URL.createObjectURL(blob);
  60694. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  60695. setTimeout(function () { _this._Click(a, document); }, 0);
  60696. return;
  60697. }
  60698. // Open a popup immediately do go around popup blocker
  60699. // Mostly only available on user interaction and the fileReader is async so...
  60700. var popup = open('', '_blank');
  60701. if (popup) {
  60702. popup.document.title = popup.document.body.innerText = 'downloading...';
  60703. }
  60704. var force = blob.type === 'application/octet-stream';
  60705. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  60706. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  60707. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  60708. // Safari doesn't allow downloading of blob URLs
  60709. var reader = new FileReader();
  60710. reader.onloadend = function () {
  60711. var url = reader.result;
  60712. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  60713. if (popup) {
  60714. popup.location.href = url;
  60715. }
  60716. else {
  60717. location = url;
  60718. }
  60719. popup = null;
  60720. };
  60721. reader.readAsDataURL(blob);
  60722. }
  60723. else {
  60724. var URL = window.URL || window.webkitURL;
  60725. var url = URL.createObjectURL(blob);
  60726. if (popup) {
  60727. popup.location.href = url;
  60728. }
  60729. else {
  60730. location.href = url;
  60731. }
  60732. popup = null;
  60733. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  60734. }
  60735. };
  60736. StringTools._Click = function (node, document) {
  60737. try {
  60738. node.dispatchEvent(new MouseEvent('click'));
  60739. }
  60740. catch (e) {
  60741. var evt = document.createEvent('MouseEvents');
  60742. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  60743. node.dispatchEvent(evt);
  60744. }
  60745. };
  60746. /**
  60747. * Gets the base math type of node material block connection point.
  60748. * @param type Type to parse.
  60749. */
  60750. StringTools.GetBaseType = function (type) {
  60751. return babylonjs_Materials_Node_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  60752. };
  60753. /**
  60754. * Download a string into a file that will be saved locally by the browser
  60755. * @param content defines the string to download locally as a file
  60756. */
  60757. StringTools.DownloadAsFile = function (document, content, filename) {
  60758. var blob = new Blob([content], {
  60759. type: "application/octet-stream"
  60760. });
  60761. this._SaveAs(blob, filename, document);
  60762. };
  60763. return StringTools;
  60764. }());
  60765. /***/ }),
  60766. /***/ "babylonjs/Misc/observable":
  60767. /*!****************************************************************************************************!*\
  60768. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  60769. \****************************************************************************************************/
  60770. /*! no static exports found */
  60771. /***/ (function(module, exports) {
  60772. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Misc_observable__;
  60773. /***/ })
  60774. /******/ });
  60775. });
  60776. //# sourceMappingURL=babylon.nodeEditor.max.js.map